mirror of
https://github.com/archlinux/aur.git
synced 2026-02-18 18:32:43 +01:00
Initial
This commit is contained in:
parent
cadc397e31
commit
3fed415bb5
4 changed files with 51 additions and 60 deletions
25
.SRCINFO
25
.SRCINFO
|
|
@ -1,25 +1,24 @@
|
|||
pkgbase = nzbget-git
|
||||
pkgdesc = Download from Usenet using .nzb files
|
||||
pkgver = r1355.547b430
|
||||
pkgver = v20.0.r2169
|
||||
pkgrel = 1
|
||||
epoch = 1
|
||||
url = http://nzbget.net/
|
||||
url = https://github.com/nzbget/nzbget
|
||||
install = nzbget.install
|
||||
arch = any
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
makedepends = git
|
||||
makedepends = autoconf
|
||||
makedepends = automake
|
||||
depends = libxml2
|
||||
depends = ncurses
|
||||
depends = libgcrypt
|
||||
depends = openssl
|
||||
optdepends = python: run scripts
|
||||
optdepends = unrar: unpacking archives
|
||||
optdepends = p7zip: unpacking archives
|
||||
optdepends = par2cmdline: verificate and repair PAR 2.0 files
|
||||
provides = nzbget
|
||||
conflicts = nzbget nzbget-svn
|
||||
source = git://github.com/nzbget/nzbget.git
|
||||
provides = nzbget-systemd
|
||||
conflicts = nzbget
|
||||
source = nzbget-git::git+https://github.com/nzbget/nzbget.git
|
||||
source = nzbget.service
|
||||
sha512sums = SKIP
|
||||
sha512sums = d33dc707bb4f0265b08208f5e3be0c33f4ba8197717548160fc2b10dcd9c88dc299bf2c48a80ab6b7b8c86f5c3777f786ef55d317803315955dabd4bb28ed93a
|
||||
sha256sums = SKIP
|
||||
sha256sums = 66b2c2fbe949f6406a49674d28a2bdd258b20780ba47a586b640d6cc4d99f7c2
|
||||
|
||||
pkgname = nzbget-git
|
||||
|
||||
|
|
|
|||
61
PKGBUILD
61
PKGBUILD
|
|
@ -1,45 +1,52 @@
|
|||
# Maintainer: picard <info@fr32k.de>
|
||||
# Contributor: Richard "Nothing4You" Schwab <mail NOSPAM w.tf-w.tf>
|
||||
# Maintainer: Nicola Hinssen <nicola.hinssen@gmail.com>
|
||||
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
|
||||
|
||||
pkgname=nzbget-git
|
||||
_gitname=nzbget
|
||||
pkgver=r1444.e81b42f
|
||||
pkgver=v20.0.r2169
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="Download from Usenet using .nzb files"
|
||||
arch=('any')
|
||||
#backup=('etc/nzbget.conf')
|
||||
url="http://nzbget.net/"
|
||||
depends=('libxml2' 'ncurses' 'libgcrypt' 'openssl')
|
||||
makedepends=('git' 'autoconf' 'automake')
|
||||
conflicts=('nzbget nzbget-svn')
|
||||
provides=('nzbget')
|
||||
arch=('x86_64')
|
||||
url="https://github.com/nzbget/nzbget"
|
||||
license=('GPL')
|
||||
source=('git://github.com/nzbget/nzbget.git' 'nzbget.service')
|
||||
install='nzbget.install'
|
||||
sha512sums=('SKIP'
|
||||
'd33dc707bb4f0265b08208f5e3be0c33f4ba8197717548160fc2b10dcd9c88dc299bf2c48a80ab6b7b8c86f5c3777f786ef55d317803315955dabd4bb28ed93a')
|
||||
depends=('libxml2')
|
||||
makedepends=('git')
|
||||
optdepends=('python: run scripts'
|
||||
'unrar: unpacking archives'
|
||||
'p7zip: unpacking archives'
|
||||
'par2cmdline: verificate and repair PAR 2.0 files')
|
||||
provides=('nzbget'
|
||||
'nzbget-systemd')
|
||||
conflicts=('nzbget')
|
||||
install=nzbget.install
|
||||
source=("$pkgname::git+https://github.com/nzbget/nzbget.git"
|
||||
"nzbget.service")
|
||||
sha256sums=('SKIP'
|
||||
'66b2c2fbe949f6406a49674d28a2bdd258b20780ba47a586b640d6cc4d99f7c2')
|
||||
|
||||
pkgver() {
|
||||
cd "$_gitname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
cd "$pkgname"
|
||||
printf "%s.r%s" "$(git describe --tags | cut -d- -f1)" "$(git rev-list --count HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/$_gitname"
|
||||
cd "$pkgname"
|
||||
|
||||
./configure --prefix=/usr --sbindir=/usr/bin --enable-parcheck --with-tlslib=OpenSSL
|
||||
make
|
||||
./configure --prefix=/usr --sbindir='/usr/bin' --enable-parcheck --with-tlslib=OpenSSL
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/$_gitname"
|
||||
cd "$pkgname"
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir/" install
|
||||
|
||||
install -d "$pkgdir/usr/share/nzbget"
|
||||
install -m644 -t "$pkgdir/usr/share/nzbget" ChangeLog README
|
||||
install -d "${pkgdir}/usr/share/$pkgname"
|
||||
install -m 644 -t "${pkgdir}/usr/share/$pkgname" README
|
||||
|
||||
install -d "$pkgdir/usr/lib/systemd/system"
|
||||
install -m644 -t "$pkgdir/usr/lib/systemd/system" "$srcdir/nzbget.service"
|
||||
cd "$srcdir"
|
||||
|
||||
install -d "${pkgdir}/usr/lib/systemd/system"
|
||||
install -m 644 -t "${pkgdir}/usr/lib/systemd/system" nzbget.service
|
||||
|
||||
install -dm 750 "${pkgdir}/var/lib/nzbget"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,29 +1,14 @@
|
|||
post_install() {
|
||||
getent group nzbget &>/dev/null || groupadd -r nzbget >/dev/null
|
||||
getent passwd nzbget &>/dev/null || useradd -r -g nzbget -d /usr/share/nzbget -s /bin/false -c nzbget nzbget >/dev/null
|
||||
chown -R nzbget:nzbget /usr/share/nzbget
|
||||
echo "==> PLEASE NOTE:"
|
||||
echo "==> "
|
||||
echo "==> NZBGet needs to be configured before first use (systemctl start nzbget.service)."
|
||||
echo "==> The configuration file have to be placed under /etc/nzbget.conf."
|
||||
echo "==> Check out /usr/share/nzbget/nzbget.conf for examples."
|
||||
echo
|
||||
}
|
||||
|
||||
pre_upgrade(){
|
||||
post_install
|
||||
getent passwd nzbget &>/dev/null || useradd -r -g nzbget -d /var/lib/nzbget -s /bin/false -c nzbget nzbget >/dev/null
|
||||
chown -R nzbget:nzbget /var/lib/nzbget
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
systemctl daemon-reload
|
||||
echo "==> PLEASE UPGRADE NOTE:"
|
||||
echo "==> "
|
||||
echo "==> Restart NZBget (systemctl restart nzbget.service)."
|
||||
echo
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
systemctl stop nzbget.service
|
||||
getent passwd nzbget &>/dev/null && userdel nzbget >/dev/null
|
||||
getent group nzbget &>/dev/null && groupdel nzbget >/dev/null
|
||||
true
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ After=network.target
|
|||
User=nzbget
|
||||
Group=nzbget
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/nzbget -c /etc/nzbget.conf -D
|
||||
ExecStart=/usr/bin/nzbget -D
|
||||
ExecStop=/usr/bin/nzbget -Q
|
||||
ExecReload=/usr/bin/nzbget -O
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Reference in a new issue