diff options
author | Donald Webster | 2018-01-06 11:38:11 -0800 |
---|---|---|
committer | Donald Webster | 2018-01-06 11:57:47 -0800 |
commit | dd297bae51f9fbd86fea79b018151ebfbc764b73 (patch) | |
tree | 15cf8f203cf978f66a30c4fb408b454e71d58689 | |
download | aur-dd297bae51f9fbd86fea79b018151ebfbc764b73.tar.gz |
Adding nzbhydra2 package.
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | nzbhydra2.install | 13 | ||||
-rw-r--r-- | nzbhydra2.service | 15 | ||||
-rw-r--r-- | nzbhydra2.sysusers | 1 |
6 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d99e99ce60ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +# Generated by mksrcinfo v8 +# Sat Jan 6 19:53:32 UTC 2018 +pkgbase = nzbhydra2 + pkgdesc = Meta search for NZB indexers + pkgver = 1.0.3 + pkgrel = 1 + url = https://github.com/theotherp/nzbhydra2 + install = nzbhydra2.install + arch = any + license = Apache + depends = java-runtime-headless>=8 + optdepends = python2-lxml: faster result processing + conflicts = nzbhydra2-git + source = https://github.com/theotherp/nzbhydra2/releases/download/v1.0.3/nzbhydra2-1.0.3-linux.zip + source = nzbhydra2.service + source = nzbhydra2.install + source = nzbhydra2.sysusers + sha256sums = b878c612cf406ad4339012348190902ab52b389e2e995ae14589cb209997c9af + sha256sums = 49b9e3ef6c46e3b43fabda35b7c8a09d389d3cd3505f292f9a1f0a21a28ca289 + sha256sums = 8f9ec4cb221ef53a1ab0a3126d630cf104d00ea3a94204e1dca9f0748998aced + sha256sums = 8f91eb4f98f7f5c11590b29b1394dfa7ca62ad115feeac4f402c9ac094fb925a + +pkgname = nzbhydra2 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0f3d8b9bc2dc --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.gz +*.xz +*.zip +pkg +src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e13c1b63fe7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Donald Webster <fryfrog@gmail.com> +# Maintainer: Daniel Egeberg <daniel.egeberg@gmail.com> +pkgname="nzbhydra2" +pkgver=1.0.3 +pkgrel=1 +pkgdesc="Meta search for NZB indexers" +arch=('any') +url="https://github.com/theotherp/nzbhydra2" +license=('Apache') +depends=('java-runtime-headless>=8') +optdepends=('python2-lxml: faster result processing') +conflicts=('nzbhydra2-git') +install='nzbhydra2.install' +#https://github.com/theotherp/nzbhydra2/releases/download/v1.0.3/nzbhydra2-1.0.3-linux.zip +source=("https://github.com/theotherp/nzbhydra2/releases/download/v${pkgver}/${pkgname}-${pkgver}-linux.zip" + 'nzbhydra2.service' + 'nzbhydra2.install' + 'nzbhydra2.sysusers') + +sha256sums=('b878c612cf406ad4339012348190902ab52b389e2e995ae14589cb209997c9af' + '49b9e3ef6c46e3b43fabda35b7c8a09d389d3cd3505f292f9a1f0a21a28ca289' + '8f9ec4cb221ef53a1ab0a3126d630cf104d00ea3a94204e1dca9f0748998aced' + '8f91eb4f98f7f5c11590b29b1394dfa7ca62ad115feeac4f402c9ac094fb925a') + +package() { + install -d -m 755 "${pkgdir}/usr/lib/nzbhydra2" + + cd "${srcdir}" + cp -dpr --no-preserve=ownership downloaderScripts lib nzbhydra2 readme.md "${pkgdir}/usr/lib/nzbhydra2" + + install -d -m 755 "${pkgdir}/var/lib/nzbhydra2" + + install -D -m 644 "${srcdir}/nzbhydra2.service" "${pkgdir}/usr/lib/systemd/system/nzbhydra2.service" + install -D -m 644 "${srcdir}/nzbhydra2.sysusers" "${pkgdir}/usr/lib/sysusers.d/nzbhydra2.conf" +} diff --git a/nzbhydra2.install b/nzbhydra2.install new file mode 100644 index 000000000000..4febfcd1b263 --- /dev/null +++ b/nzbhydra2.install @@ -0,0 +1,13 @@ +post_install() { + systemd-sysusers nzbhydra2.conf + + mkdir -p /var/lib/nzbhydra2 + chown -R nzbhydra2: /var/lib/nzbhydra2 + + mkdir -p /etc/nzbhydra2 + chown -R nzbhydra2 /etc/nzbhydra2 +} + +post_upgrade() { + chown -R nzbhydra2: /var/lib/nzbhydra2 +} diff --git a/nzbhydra2.service b/nzbhydra2.service new file mode 100644 index 000000000000..54b3fab3ba63 --- /dev/null +++ b/nzbhydra2.service @@ -0,0 +1,15 @@ +[Unit] +Description=NZBHydra2 Daemon +Documentation=https://github.com/theotherp/nzbhydra2 +After=network.target + +[Service] +User=nzbhydra2 +Group=nzbhydra2 +Type=simple +WorkingDirectory=/usr/lib/nzbhydra2 +ExecStart=/usr/lib/nzbhydra/nzbhydra2 --nobrowser --datafolder /var/lib/nzbhydra2 +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/nzbhydra2.sysusers b/nzbhydra2.sysusers new file mode 100644 index 000000000000..d074fe067c4f --- /dev/null +++ b/nzbhydra2.sysusers @@ -0,0 +1 @@ +u nzbhydra2 - "nzbhydra2" /var/lib/nzbhydra2 |