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
|
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.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
|
source = jackett.service
|
||||||
md5sums = 3f093c17ec9e1b64889db054365d5145
|
source = jackett.sysusers
|
||||||
md5sums = 1c3c0b8c8114d121060eacea251eaf28
|
sha256sums = ef27eeb95249c33ab5e4f12c103e872aa9944a842748ced62bc81a4dad2a3055
|
||||||
|
sha256sums = 47326614002708a829e8ce6b7d5fc5a068125e8d64ff47fdb5f3ab09d0c4b0c8
|
||||||
|
sha256sums = f48165d816e2b2f9a94f816e5deed58326fa23d7a3dfeaab95473899b554c6db
|
||||||
|
|
||||||
pkgname = jackett
|
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
|
pkgname=jackett
|
||||||
pkgver=0.8.749
|
pkgver=0.8.749
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Use many trackers with Sonarr'
|
pkgdesc='Use many trackers with Sonarr'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
url='https://github.com/Jackett/Jackett'
|
url='https://github.com/Jackett/Jackett'
|
||||||
depends=('mono' 'curl')
|
depends=('mono' 'curl')
|
||||||
source=("Jackett.Binaries.Mono-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/releases/download/v${pkgver}/Jackett.Binaries.Mono.tar.gz"
|
source=("Jackett.Binaries.Mono-${pkgver}.tar.gz::https://github.com/Jackett/Jackett/releases/download/v${pkgver}/Jackett.Binaries.Mono.tar.gz"
|
||||||
"jackett.service")
|
"jackett.service"
|
||||||
md5sums=('3f093c17ec9e1b64889db054365d5145'
|
"jackett.sysusers")
|
||||||
'1c3c0b8c8114d121060eacea251eaf28')
|
|
||||||
|
sha256sums=('ef27eeb95249c33ab5e4f12c103e872aa9944a842748ced62bc81a4dad2a3055'
|
||||||
|
'47326614002708a829e8ce6b7d5fc5a068125e8d64ff47fdb5f3ab09d0c4b0c8'
|
||||||
|
'f48165d816e2b2f9a94f816e5deed58326fa23d7a3dfeaab95473899b554c6db')
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -19,4 +22,6 @@ package() {
|
||||||
cp -dpr --no-preserve=ownership "${srcdir}/Jackett" "${pkgdir}/opt/"
|
cp -dpr --no-preserve=ownership "${srcdir}/Jackett" "${pkgdir}/opt/"
|
||||||
install -D -m644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
|
install -D -m644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
|
||||||
install -d -m755 "${pkgdir}/usr/share/Jackett"
|
install -d -m755 "${pkgdir}/usr/share/Jackett"
|
||||||
|
|
||||||
|
install -Dm644 "$srcdir/jackett.sysusers" "$pkgdir/usr/lib/sysusers.d/jackett.conf"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
post_install() {
|
post_install() {
|
||||||
if grep -q "^jackett" /etc/group &> /dev/null ; then
|
systemd-sysusers jackett.conf
|
||||||
groupmod -n jackett jackett &> /dev/null
|
|
||||||
else
|
chown -R jackett: /usr/share/Jackett /opt/Jackett
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
|
|
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