Initial version

This commit is contained in:
Brandon Giesing 2015-06-19 20:56:05 -05:00
commit 125c253b30
4 changed files with 72 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = jackett
pkgdesc = User any tracker with Sonarr
pkgver = 0.3.1
pkgrel = 1
url = https://github.com/zone117x/Jackett
install = jackett.install
arch = any
license = GPL
depends = mono
depends = curl
source = https://github.com/zone117x/Jackett/releases/download/v0.3.1/Release.v0.3.1.zip
source = jackett.service
md5sums = 08a7b51dcdddfbbb0487aba455ce72d4
md5sums = bfefcb47a83a216e223dbc1294d03e0c
pkgname = jackett

23
PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: Brandon Giesing <brandon@giesing.cf>
pkgname=jackett
pkgver=0.3.1
pkgrel=1
pkgdesc='User any tracker with Sonarr'
arch=('any')
license=('GPL')
url='https://github.com/zone117x/Jackett'
depends=('mono' 'curl')
source=('https://github.com/zone117x/Jackett/releases/download/v0.3.1/Release.v0.3.1.zip' 'jackett.service')
md5sums=('08a7b51dcdddfbbb0487aba455ce72d4'
'bfefcb47a83a216e223dbc1294d03e0c')
install=$pkgname.install
package() {
cd "$srcdir"
install -d -m755 "${pkgdir}/opt/Jackett"
cp -dpr --no-preserve=ownership "${srcdir}/Release/"* "${pkgdir}/opt/Jackett"
install -D -m644 "${srcdir}/jackett.service" "${pkgdir}/usr/lib/systemd/system/jackett.service"
install -d -m755 "${pkgdir}/usr/share/Jackett"
}

17
jackett.install Normal file
View file

@ -0,0 +1,17 @@
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
chown -R jackett: /usr/share/Jackett
}
post_upgrade() {
post_install $1
}

15
jackett.service Normal file
View file

@ -0,0 +1,15 @@
[Unit]
Description=Jackett Service
After=network.target
[Service]
User=jackett
Group=jackett
Restart=always
RestartSec=5
Type=simple
ExecStart=/usr/bin/mono --debug /opt/Jackett/Jackett.exe
TimeoutStopSec=20
[Install]
WantedBy=multi-user.target