Package Details: hath 1.6.5-1

Git Clone URL: https://aur.archlinux.org/hath.git (read-only, click to copy)
Package Base: hath
Description: Open-source Peer-2-Peer gallery distribution system
Upstream URL: https://ehwiki.org/wiki/Hentai@Home
Keywords: Hentai@Home
Licenses: GPL-3.0-only
Submitter: jtmb
Maintainer: scientificworld (Misaka13514)
Last Packager: scientificworld
Votes: 6
Popularity: 0.001642
First Submitted: 2017-10-23 01:36 (UTC)
Last Updated: 2026-04-14 03:36 (UTC)

Dependencies (2)

Required by (0)

Sources (5)

Latest Comments

1 2 Next › Last »

jtmb commented on 2026-04-16 21:42 (UTC) (edited on 2026-04-17 01:39 (UTC) by jtmb)

here's a housekeeping patch for the systemd service unit, as well as clarification in the initial instructions.

diff --git a/PKGBUILD b/PKGBUILD
index 5eb7a98..346d7ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@

 pkgname=hath
 pkgver=1.6.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Open-source Peer-2-Peer gallery distribution system"
 arch=('any')
 url="https://ehwiki.org/wiki/Hentai@Home"
@@ -19,7 +19,7 @@ source=("https://repo.e-hentai.org/hath/HentaiAtHome_${pkgver}_src.zip"
         "hath.sysusers"
         "hath.tmpfiles")
 sha256sums=('d2aab9bf9029c59b2f4a6e2ea8e8e1a0a4db66d22109c03aea57df58a6b8619d'
-            '4b7124af5e27d25a9b3033b2a14e48ea8745417c3fd400a6ec6ddf1817b74b61'
+            'cacbc65c6312d2207a2ae1a747ecb3dc890dff0e5bc8076c20ac02a01b114750'
             '80064d7e31085b56ad5b41863f51b25c33a20328a7f49cd88f80dfed281c439a'
             '0c3a1a6c26cec616bc44274acbf5908e736581ae30cdf0af7508d4bfcad3a81e'
             '9d11932a3ff1011cbe5ad2f000d29e3ad6011235fcc94685dcbc9bd61a54f87c')
diff --git a/hath.install b/hath.install
index 1bca0b3..02fb559 100644
--- a/hath.install
+++ b/hath.install
@@ -6,6 +6,10 @@ cat << EOF
 ## when used as a downloader, your files will be in  ##
 ## /var/lib/hath/download/                           ##
 ##                                                   ##
+## On first run, use sudo hath to enter ID & token.  ##
+## after registration, it may be run directly        ##
+## or with systemd service.                          ##
+##                                                   ##
 ## Do not manually delete the cache; this adversely  ##
 ## impacts the H@H network. For more information:    ##
 ## https://ehwiki.org/wiki/Hentai@Home               ##
diff --git a/hath.service b/hath.service
index 4ea252b..b14308f 100644
--- a/hath.service
+++ b/hath.service
@@ -6,11 +6,11 @@ Wants=network-online.target
 [Service]
 User=hath
 WorkingDirectory=/var/lib/hath/ 
-ExecStart=/usr/bin/java -Xms16m -Xmx512m -jar /usr/share/java/hath/hath.jar 
+ExecStart=/usr/bin/hath 
 SuccessExitStatus=143
-TimeoutStopSec=10
+TimeoutStopSec=60
 Restart=always
-RestartSec=5
+RestartSec=600

 [Install]
 WantedBy=multi-user.target

scientificworld commented on 2026-04-14 03:37 (UTC)

@kris57 Updated. Thanks for your contribution!

kris57 commented on 2026-04-13 15:42 (UTC)

Here's a patch for the out-of-date flag. Thanks.

diff --git a/PKGBUILD b/PKGBUILD
index 2666a73..5eb7a98 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 # Contributor: Dct Mei <dctxmei@yandex.com>

 pkgname=hath
-pkgver=1.6.4
+pkgver=1.6.5
 pkgrel=1
 pkgdesc="Open-source Peer-2-Peer gallery distribution system"
 arch=('any')
@@ -18,7 +18,7 @@ source=("https://repo.e-hentai.org/hath/HentaiAtHome_${pkgver}_src.zip"
         "hath.sh"
         "hath.sysusers"
         "hath.tmpfiles")
-sha256sums=('4d3f7d67b05089dab0c6d774999605cd121997f36d0ef5f75a380d90f73df29d'
+sha256sums=('d2aab9bf9029c59b2f4a6e2ea8e8e1a0a4db66d22109c03aea57df58a6b8619d'
             '4b7124af5e27d25a9b3033b2a14e48ea8745417c3fd400a6ec6ddf1817b74b61'
             '80064d7e31085b56ad5b41863f51b25c33a20328a7f49cd88f80dfed281c439a'
             '0c3a1a6c26cec616bc44274acbf5908e736581ae30cdf0af7508d4bfcad3a81e'

scientificworld commented on 2024-09-13 13:45 (UTC)

I made a patch to update the package to the latest version. Anyone can apply it? Thanks.

diff --git a/PKGBUILD b/PKGBUILD
index 28a70e8..1e102ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
 # Maintainer: Dct Mei <dctxmei@yandex.com>

 pkgname=hath
-pkgver=1.6.1
+pkgver=1.6.3
 pkgrel=1
 pkgdesc="Open-source Peer-2-Peer gallery distribution system"
 arch=('any')
 url="https://ehwiki.org/wiki/Hentai@Home"
-license=('GPL3')
+license=('GPL-3.0-only')
 depends=('java-runtime')
 makedepends=('java-environment')
 install="$pkgname.install"
@@ -16,7 +16,7 @@ source=("https://repo.e-hentai.org/hath/HentaiAtHome_${pkgver}_src.zip"
         "hath.sh"
         "hath.sysusers"
         "hath.tmpfiles")
-sha256sums=('9d843b4af8c109450938206f7d72e7a90bd0fca6b3922ac555aaf328ee7c0e5b'
+sha256sums=('801de4cfdb2f57f9aab27371900b9fab33df82f83811b03e72425595dec45388'
             '4b7124af5e27d25a9b3033b2a14e48ea8745417c3fd400a6ec6ddf1817b74b61'
             '80064d7e31085b56ad5b41863f51b25c33a20328a7f49cd88f80dfed281c439a'
             '0c3a1a6c26cec616bc44274acbf5908e736581ae30cdf0af7508d4bfcad3a81e'

gdkags commented on 2020-07-28 20:32 (UTC)

works for me :D

dctxmei commented on 2020-07-28 17:04 (UTC)

@gdkags Hi, this is the modification I made, please test it: https://pastebin.com/GPL6fQ0U

gdkags commented on 2020-07-28 12:23 (UTC) (edited on 2020-07-28 12:47 (UTC) by gdkags)

Hi, I've added some changes, such that the folders are created through tmpfiles.d (you forgot the download folder btw) and there is a user created via sysusers.d so this can run with lower privileges. I've also changed to Restart=always, since hath usually quits cleanly even on errors. edit: should also add Wants=network-online.target otherwise this won't work

diff --git a/PKGBUILD b/PKGBUILD
index 75a0ef8..0ac9e7e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

 pkgname=hath
 pkgver=1.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Open-source Peer-2-Peer gallery distribution system"
 arch=(any)
 url="https://ehwiki.org/wiki/Hentai@Home"
@@ -12,11 +12,16 @@ depends=(java-runtime)
 makedepends=(java-environment)
 source=("https://repo.e-hentai.org/hath/HentaiAtHome_1.6.0_src.zip"
         "hath.sh"
-           "hath.service")
+           "hath.service"
+   "hath.sysusers"
+   "hath.tmpfiles")
+
 install="${pkgname}.install"
 sha256sums=('3c807dadb3303a407101c428c65a68f55b3463fc3da29133ffe43b73591eaab8'
             '737d8b70150f9e897c3f7413669562f1f92e0df6539403f1936d6463e832c841'
-            '8afd6ff66bfa986c7787e39aaad5d35a5ce1e2b722edb95bc86f76965d8d9fd0')
+            'f5c5fa6ec255f4448fb35b6bc5ca75fb80f4793b736a3a0d6cd70adc384901c6'
+            'f2df34cbda5e358979ac6f6222ef661501947c37636c8bd38f9556711093719b'
+            'f99402a0bd54f8a216817e0ada610ba9edc13acf18134e6716f469d756b87132')

 build() {
     make
@@ -24,12 +29,10 @@ build() {
 }

 package() {
-    mkdir -p -- "$pkgdir/var/lib/hath/cache"
-    mkdir -p -- "$pkgdir/var/lib/hath/data"
-    mkdir -p -- "$pkgdir/var/lib/hath/log"
-    mkdir -p -- "$pkgdir/var/lib/hath/tmp"
     install -Dm755 -- "build/HentaiAtHome.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
     install -Dm755 -- "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
     install -Dm644 -- "hath.service" "${pkgdir}/usr/lib/systemd/system/hath.service"
+    install -Dm644 "hath.sysusers" "${pkgdir}/usr/lib/sysusers.d/hath.conf"
+    install -Dm644 "hath.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/hath.conf"
     install -Dm644 -- LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
diff --git a/hath.service b/hath.service
index 885af13..5b06819 100644
--- a/hath.service
+++ b/hath.service
@@ -1,16 +1,18 @@
 [Unit]
 Description=Hentai@Home Service
 After=network-online.target
+Wants=network-online.target
+

 [Service]
-#User=nobody
+User=hath
 WorkingDirectory=/var/lib/hath/ 
 ExecStart=/usr/bin/java -Xms16m -Xmx512m -jar /usr/share/java/hath/hath.jar 
 SuccessExitStatus=143
 TimeoutStopSec=10
-Restart=on-failure
+Restart=always
 RestartSec=5


 [Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target
diff --git a/hath.sysusers b/hath.sysusers
new file mode 100644
index 0000000..0c21bdc
--- /dev/null
+++ b/hath.sysusers
@@ -0,0 +1 @@
+u hath   -      "Hentai@Home" /var/lib/hath
diff --git a/hath.tmpfiles b/hath.tmpfiles
new file mode 100644
index 0000000..fbe735f
--- /dev/null
+++ b/hath.tmpfiles
@@ -0,0 +1,6 @@
+d /var/lib/hath 0755 hath hath -
+d /var/lib/hath/cache 0755 hath hath -
+d /var/lib/hath/data 0755 hath hath -
+d /var/lib/hath/download 0755 hath hath -
+d /var/lib/hath/log 0755 hath hath -
+d /var/lib/hath/tmp 0755 hath hath -

dctxmei commented on 2020-01-03 05:37 (UTC)

@jtmb Please update as soon as possible, new PKGBUILD is available here:

https://raw.githubusercontent.com/archlinuxcn/repo/master/archlinuxcn/hath/PKGBUILD

jtmb commented on 2017-11-08 20:25 (UTC)

are you running the systemd hath.service, the command hath, or another way?