aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-23 08:19:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-23 08:19:51 +0000
commitbf3e322fcf00eed1c92dbb9e636eda9de0f533c5 (patch)
tree83dcdf5f9d2d67fca18a56b094b1e0191ab8dc0c
parent537e20f006312ed17d1988415f753befce13bbfe (diff)
downloadaports-bf3e322fcf00eed1c92dbb9e636eda9de0f533c5.tar.bz2
aports-bf3e322fcf00eed1c92dbb9e636eda9de0f533c5.tar.xz
testing/znc: new aport
An advanced IRC bouncer http://znc.in ref #543
-rw-r--r--testing/znc/APKBUILD105
1 files changed, 105 insertions, 0 deletions
diff --git a/testing/znc/APKBUILD b/testing/znc/APKBUILD
new file mode 100644
index 0000000000..3614019b8b
--- /dev/null
+++ b/testing/znc/APKBUILD
@@ -0,0 +1,105 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=znc
+pkgver=0.096
+pkgrel=0
+pkgdesc="An advanced IRC bouncer"
+url="http://znc.in"
+arch="all"
+license="GPLv2"
+depends=
+depends_dev=
+makedepends="perl-dev openssl-dev cyrus-sasl-dev python-dev c-ares-dev swig
+ libiconv-dev tcl-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-extra $pkgname-modtcl
+ $pkgname-modperl"
+source="http://znc.in/releases/znc-$pkgver.tar.gz"
+
+_builddir="$srcdir"/znc-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-extra \
+ --enable-perl \
+ --enable-sasl \
+ --enable-tcl \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+_mv_to_sub() {
+ local i
+ for i in "$@"; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/$i || return 1
+ done
+}
+
+_mv_mod() {
+ local i
+ for i in "$@"; do
+ _mv_to_sub usr/lib/znc/$i || return 1
+ done
+}
+
+dev() {
+ default_dev
+ _mv_to_sub usr/bin/znc-buildmod
+}
+
+extra() {
+ pkgdesc="Extra modules for ZNC"
+ _mv_mod antiidle.so \
+ autovoice.so \
+ block_motd.so \
+ charset.so \
+ clearbufferonmsg.so \
+ ctcpflood.so \
+ droproot.so \
+ email.so \
+ fakeonline.so \
+ flooddetach.so \
+ imapauth.so \
+ listsockets.so \
+ log.so \
+ motdfile.so \
+ notify_connect.so \
+ saslauth.so \
+ send_raw.so \
+ shell.so
+}
+
+modtcl() {
+ pkgdesc="TCL module for ZNC"
+ depends="znc"
+ _mv_mod modtcl.so
+ _mv_to_sub usr/share/znc/modtcl
+}
+
+modperl() {
+ pkgdesc="Perl module for ZNC"
+ depends="znc"
+ _mv_mod modperl modperl.so
+}
+
+md5sums="38eec4f1911a68b4d2fc704170e7cbf6 znc-0.096.tar.gz"