Switch to systemds tmpfiles.
This commit is contained in:
parent
779c82ab0d
commit
04d08a5a16
4 changed files with 12 additions and 8 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -11,9 +11,11 @@ pkgbase = jackett
|
||||||
source = Jackett.Binaries.Mono-0.8.763.tar.gz::https://github.com/Jackett/Jackett/releases/download/v0.8.763/Jackett.Binaries.Mono.tar.gz
|
source = Jackett.Binaries.Mono-0.8.763.tar.gz::https://github.com/Jackett/Jackett/releases/download/v0.8.763/Jackett.Binaries.Mono.tar.gz
|
||||||
source = jackett.service
|
source = jackett.service
|
||||||
source = jackett.sysusers
|
source = jackett.sysusers
|
||||||
|
source = jackett.tmpfile
|
||||||
sha256sums = fa9882b6d2d415185dbfa2768e09db27f26264983de3b46948ef40b6466f7fad
|
sha256sums = fa9882b6d2d415185dbfa2768e09db27f26264983de3b46948ef40b6466f7fad
|
||||||
sha256sums = 75837fe04f5afd30cdbdd3349bb27b43994dc672202f886382903f7fbc92dc89
|
sha256sums = 75837fe04f5afd30cdbdd3349bb27b43994dc672202f886382903f7fbc92dc89
|
||||||
sha256sums = d005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590
|
sha256sums = d005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590
|
||||||
|
sha256sums = 289b7ea9394fe7d97a2fb8fdc1e67168ab7858ed2aa8fa881038eb70666ddec3
|
||||||
|
|
||||||
pkgname = jackett
|
pkgname = jackett
|
||||||
|
|
||||||
|
|
15
PKGBUILD
15
PKGBUILD
|
@ -9,20 +9,21 @@ depends=('mono' 'curl')
|
||||||
install='jackett.install'
|
install='jackett.install'
|
||||||
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"
|
||||||
"jackett.sysusers")
|
"jackett.sysusers"
|
||||||
|
"jackett.tmpfile")
|
||||||
|
|
||||||
sha256sums=('fa9882b6d2d415185dbfa2768e09db27f26264983de3b46948ef40b6466f7fad'
|
sha256sums=('fa9882b6d2d415185dbfa2768e09db27f26264983de3b46948ef40b6466f7fad'
|
||||||
'75837fe04f5afd30cdbdd3349bb27b43994dc672202f886382903f7fbc92dc89'
|
'75837fe04f5afd30cdbdd3349bb27b43994dc672202f886382903f7fbc92dc89'
|
||||||
'd005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590')
|
'd005fcd009ec5404e1ec88246c31e664167f5551d6cabc35f68eb41750bfe590'
|
||||||
|
'289b7ea9394fe7d97a2fb8fdc1e67168ab7858ed2aa8fa881038eb70666ddec3')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|
||||||
install -d -m755 "${pkgdir}/usr/lib/jackett/"
|
install -d -m 755 "${pkgdir}/usr/lib/jackett/"
|
||||||
cp -dpr --no-preserve=ownership "${srcdir}/Jackett/"* "${pkgdir}/usr/lib/jackett/"
|
cp -dpr --no-preserve=ownership "${srcdir}/Jackett/"* "${pkgdir}/usr/lib/jackett/"
|
||||||
|
|
||||||
install -d -m755 "${pkgdir}/var/lib/jackett"
|
install -D -m 644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
|
||||||
|
install -D -m 644 "${srcdir}/jackett.sysusers" "{$pkgdir}/usr/lib/sysusers.d/jackett.conf"
|
||||||
install -D -m644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
|
install -D -m 644 "${srcdir}/jackett.tmpfile" "{$pkgdir}/usr/lib/tmpfiles.d/jackett.conf"
|
||||||
install -D -m644 "$srcdir/jackett.sysusers" "$pkgdir/usr/lib/sysusers.d/jackett.conf"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
post_install() {
|
post_install() {
|
||||||
chown -R jackett: /usr/lib/jackett /var/lib/jackett
|
chown -R jackett: /usr/lib/jackett
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
|
|
1
jackett.tmpfile
Normal file
1
jackett.tmpfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
d /var/lib/jackett 0755 jackett jackett
|
Loading…
Reference in a new issue