upgpkg: nzbget-systemd 0.2-1

Refactor package.
This commit is contained in:
George Rawlinson 2021-07-24 15:12:21 +00:00
parent 09c5fc02e2
commit 69938d64ea
Signed by: grawlinson
GPG key ID: E0959FEA8B550539
6 changed files with 19 additions and 17 deletions

View file

@ -1,23 +1,25 @@
# Maintainer: Jan Holthuis <holthuis.jan@googlemail.com>
# Contributor: George Rawlinson <george@rawlinson.net.nz>
# Maintainer: George Rawlinson <george@rawlinson.net.nz>
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
pkgname=nzbget-systemd
_pkgname="${pkgname%-systemd}"
pkgver=0.1
pkgrel=4
pkgdesc="Systemd service for NZBGet"
url="https://github.com/Holzhaus/PKGBUILDs"
pkgver=0.2
pkgrel=1
pkgdesc="Systemd integration for NZBGet"
arch=('any')
depends=('nzbget')
license=('GPL')
source=("$_pkgname.service"
"$_pkgname.sysusers"
"$_pkgname.tmpfiles")
sha512sums=('74bb6d1a79c6a0c928877c7bc3149c2e7e2d0536b70abcb6e5a328f1aa4a33ce0ddfa02bee589f886f5c7e7cb8ad7c5a739b0e904196819ad81f6357c7b62944'
'b178acf03a0c2776a5609070a51d6a07f4ab2e3e8411e7c0b361db73638b097b663ab564b525a49ce01faf91eb8f9cfb3ef92eb44d702d774419213e0745ce0e'
'd1042a314238add1e10dbd02fc8912565fec47f67b54aeb10ba66cbaf2d20575985db9188e0ce40f679df1e2ce824435ce1523186d160406057c990e82d3fcbc')
source=(
'systemd.service'
'sysusers.conf'
'tmpfiles.conf'
)
b2sums=('0fbaa70fbed48c4f58ca33600c4bfc589cdd01dc50cb282325670951bacc9a08affcc578082c858dfd7bb315860fabfbbacb80f2e940849a4a674b15a41304b6'
'3f6f8b36bc34fce7629acfb2899b5318a275b300dec1eee29ec3a67b78866f0e4a5e9b9d77efe52afb916b7e18d39f4f2c0b32b179cc4381b842e7dc491aeca4'
'8c9017fef83d03f36d83debb0ad495784eb02bf80f553683a6de0223ee3a854fbce25277f660e85f359bcaef311ededbcca8c2081d62bbebc6812626bfa345b1')
package() {
install -Dm644 -t "${pkgdir}/usr/lib/systemd/system" "$_pkgname.service"
install -Dm644 "$_pkgname.sysusers" "${pkgdir}/usr/lib/sysusers.d/$_pkgname.conf"
install -Dm644 "$_pkgname.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/$_pkgname.conf"
install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/$_pkgname.service"
install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf"
install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"
}

View file

@ -1 +0,0 @@
u nzbget - "NZBGet User" /var/lib/nzbget -

View file

@ -1 +0,0 @@
d /var/lib/nzbget 0755 nzbget nzbget - -

View file

@ -0,0 +1 @@
u nzbget - "NZBGet daemon user" /var/lib/nzbget

View file

@ -0,0 +1 @@
d /var/lib/nzbget 0755 nzbget nzbget