[arch-commits] Commit in znc/repos (5 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Aug 6 22:14:32 UTC 2018


    Date: Monday, August 6, 2018 @ 22:14:32
  Author: foutrelis
Revision: 369956

archrelease: copy trunk to community-staging-x86_64

Added:
  znc/repos/community-staging-x86_64/
  znc/repos/community-staging-x86_64/PKGBUILD
    (from rev 369955, znc/trunk/PKGBUILD)
  znc/repos/community-staging-x86_64/znc.install
    (from rev 369955, znc/trunk/znc.install)
  znc/repos/community-staging-x86_64/znc.sysusers
    (from rev 369955, znc/trunk/znc.sysusers)
  znc/repos/community-staging-x86_64/znc.tmpfiles
    (from rev 369955, znc/trunk/znc.tmpfiles)

--------------+
 PKGBUILD     |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 znc.install  |   17 +++++++++++++++++
 znc.sysusers |    1 +
 znc.tmpfiles |    1 +
 4 files changed, 70 insertions(+)

Copied: znc/repos/community-staging-x86_64/PKGBUILD (from rev 369955, znc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-06 22:14:32 UTC (rev 369956)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: mickael9 <mickael9 at gmail dot com>
+
+pkgname=znc
+pkgver=1.7.1
+pkgrel=4
+pkgdesc='An IRC bouncer with modules & scripts support'
+url='http://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=("http://znc.in/releases/$pkgname-$pkgver.tar.gz"{,.sig}
+        "$pkgname.tmpfiles"
+        "$pkgname.sysusers")
+validpgpkeys=('D5823CACB477191CAC0075555AE420CC0209989E') #Alexey Sokolov <alexey at asokolov.org>
+sha256sums=('44cfea7158ea05dc2547c7c6bc22371e66c869def90351de0ab90a9c200d39c4'
+            'SKIP'
+            '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 \
+    -DWANT_SYSTEMD=ON \
+    -DSYSTEMD_DIR=/usr/lib/systemd/system
+  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"
+}

Copied: znc/repos/community-staging-x86_64/znc.install (from rev 369955, znc/trunk/znc.install)
===================================================================
--- community-staging-x86_64/znc.install	                        (rev 0)
+++ community-staging-x86_64/znc.install	2018-08-06 22:14:32 UTC (rev 369956)
@@ -0,0 +1,17 @@
+#/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:

Copied: znc/repos/community-staging-x86_64/znc.sysusers (from rev 369955, znc/trunk/znc.sysusers)
===================================================================
--- community-staging-x86_64/znc.sysusers	                        (rev 0)
+++ community-staging-x86_64/znc.sysusers	2018-08-06 22:14:32 UTC (rev 369956)
@@ -0,0 +1 @@
+u znc - - /var/lib/znc

Copied: znc/repos/community-staging-x86_64/znc.tmpfiles (from rev 369955, znc/trunk/znc.tmpfiles)
===================================================================
--- community-staging-x86_64/znc.tmpfiles	                        (rev 0)
+++ community-staging-x86_64/znc.tmpfiles	2018-08-06 22:14:32 UTC (rev 369956)
@@ -0,0 +1 @@
+d /var/lib/znc 0750 znc znc -



More information about the arch-commits mailing list