diff --git a/.SRCINFO b/.SRCINFO index b6e61934089..96397f1e9f5 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -10,8 +10,10 @@ pkgbase = jackett depends = curl source = Jackett.Binaries.Mono-0.8.749.tar.gz::https://github.com/Jackett/Jackett/releases/download/v0.8.749/Jackett.Binaries.Mono.tar.gz source = jackett.service - md5sums = 3f093c17ec9e1b64889db054365d5145 - md5sums = 1c3c0b8c8114d121060eacea251eaf28 + source = jackett.sysusers + sha256sums = ef27eeb95249c33ab5e4f12c103e872aa9944a842748ced62bc81a4dad2a3055 + sha256sums = 47326614002708a829e8ce6b7d5fc5a068125e8d64ff47fdb5f3ab09d0c4b0c8 + sha256sums = f48165d816e2b2f9a94f816e5deed58326fa23d7a3dfeaab95473899b554c6db pkgname = jackett diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000000..126ef55ce32 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.xz +*.gz +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD index b1685ee41c9..9d14ef829cf 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,15 +1,18 @@ pkgname=jackett pkgver=0.8.749 -pkgrel=1 +pkgrel=2 pkgdesc='Use many trackers with Sonarr' arch=('any') license=('GPL') url='https://github.com/Jackett/Jackett' depends=('mono' 'curl') source=("Jackett.Binaries.Mono-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/releases/download/v${pkgver}/Jackett.Binaries.Mono.tar.gz" - "jackett.service") -md5sums=('3f093c17ec9e1b64889db054365d5145' - '1c3c0b8c8114d121060eacea251eaf28') + "jackett.service" + "jackett.sysusers") + +sha256sums=('ef27eeb95249c33ab5e4f12c103e872aa9944a842748ced62bc81a4dad2a3055' + '47326614002708a829e8ce6b7d5fc5a068125e8d64ff47fdb5f3ab09d0c4b0c8' + 'f48165d816e2b2f9a94f816e5deed58326fa23d7a3dfeaab95473899b554c6db') install=$pkgname.install package() { @@ -19,4 +22,6 @@ package() { cp -dpr --no-preserve=ownership "${srcdir}/Jackett" "${pkgdir}/opt/" install -D -m644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service" install -d -m755 "${pkgdir}/usr/share/Jackett" + + install -Dm644 "$srcdir/jackett.sysusers" "$pkgdir/usr/lib/sysusers.d/jackett.conf" } diff --git a/jackett.install b/jackett.install index 279dcfef2d7..e597c9a718e 100644 --- a/jackett.install +++ b/jackett.install @@ -1,15 +1,7 @@ post_install() { - if grep -q "^jackett" /etc/group &> /dev/null ; then - groupmod -n jackett jackett &> /dev/null - else - groupadd -r jackett &> /dev/null - fi - if grep -q "^jackett:" /etc/passwd 2> /dev/null ; then - usermod -s /bin/false -c "jackett daemon" -d /usr/share/Jackett -g jackett jackett &> /dev/null - else - useradd -s /bin/false -c "jackett daemon user" -d /usr/share/Jackett -g jackett -r jackett &> /dev/null - fi - chown -R jackett: /usr/share/Jackett /opt/Jackett + systemd-sysusers jackett.conf + + chown -R jackett: /usr/share/Jackett /opt/Jackett } post_upgrade() { diff --git a/jackett.sysusers b/jackett.sysusers new file mode 100644 index 00000000000..78a6c5d05c7 --- /dev/null +++ b/jackett.sysusers @@ -0,0 +1 @@ +u jackett - "Jackett daemon" /usr/share/Jackett