[community-testing] -> [community] 'znc-1.7.5-9' move

master
artoo 2 years ago
parent c6339ee1a4
commit d44f967d6b
  1. 47
      x86_64/community-testing/PKGBUILD
  2. 17
      x86_64/community-testing/znc.install
  3. 1
      x86_64/community-testing/znc.sysusers
  4. 1
      x86_64/community-testing/znc.tmpfiles
  5. 2
      x86_64/community/PKGBUILD

@ -1,47 +0,0 @@
# Maintainer: Sébastien Luttringer
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: mickael9 <mickael9 at gmail dot com>
pkgname=znc
pkgver=1.7.5
pkgrel=9
pkgdesc='An IRC bouncer with modules & scripts support'
url='https://wiki.znc.in/'
license=('GPL2')
arch=('x86_64')
depends=('libsasl' 'icu' 'boost-libs')
makedepends=('tcl' 'python' 'perl' 'cmake' 'boost')
optdepends=('tcl: modtcl module'
'python: modpython module'
'perl: modperl module'
'cyrus-sasl: saslauth module')
install=$pkgname.install
source=("https://znc.in/releases/archive/$pkgname-$pkgver.tar.gz"
"$pkgname.tmpfiles"
"$pkgname.sysusers")
validpgpkeys=('D5823CACB477191CAC0075555AE420CC0209989E') #Alexey Sokolov <alexey@asokolov.org>
sha256sums=('a8941e1385c8654287a4428018d93459482e9d5eeedf86bef7b020ddc5f24721'
'8cd1b5b011c706fea9dc0c70d4daa75a53bf0966d6e96a3fce3a541777aa2771'
'8802f1b84ab3031db7cc45678f008ceca9b08b2012412a3d4ff1ea596586bb2a')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DWANT_PYTHON=ON \
-DWANT_PERL=ON \
-DWANT_TCL=ON
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
}

@ -1,17 +0,0 @@
#/bin/bash
# arg 1: the new package version
post_install() {
echo '==> Use 'znc --makeconf' as user znc to generate your first config'
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
if (( "$(vercmp $2 1.0-4)" < 0 )); then
usermod -d /var/lib/znc znc 2>/dev/null && echo '==> znc home directory has moved to /var/lib/znc'
fi
:
}
# vim:set ts=2 sw=2 ft=sh et:

@ -1 +0,0 @@
u znc - - /var/lib/znc

@ -1 +0,0 @@
d /var/lib/znc 0750 znc znc -

@ -4,7 +4,7 @@
pkgname=znc
pkgver=1.7.5
pkgrel=8
pkgrel=9
pkgdesc='An IRC bouncer with modules & scripts support'
url='https://wiki.znc.in/'
license=('GPL2')

Loading…
Cancel
Save