Switch to sysusers and sha256, add .gitignore.
This commit is contained in:
parent
cdcdd2e264
commit
a95d15d87b
5 changed files with 21 additions and 17 deletions
6
.SRCINFO
6
.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
|
||||
|
||||
|
|
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
*.xz
|
||||
*.gz
|
||||
/src/
|
||||
/pkg/
|
13
PKGBUILD
13
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"
|
||||
}
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
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
|
||||
systemd-sysusers jackett.conf
|
||||
|
||||
chown -R jackett: /usr/share/Jackett /opt/Jackett
|
||||
}
|
||||
|
||||
|
|
1
jackett.sysusers
Normal file
1
jackett.sysusers
Normal file
|
@ -0,0 +1 @@
|
|||
u jackett - "Jackett daemon" /usr/share/Jackett
|
Loading…
Reference in a new issue