diff options
author | Sam Dodrill <shadow.h511@gmail.com> | 2013-09-02 01:11:41 -0700 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-02 08:17:24 +0000 |
commit | e972f7f35baa2e461d874d7fdf3ac907d94ab903 (patch) | |
tree | 2600f9a3cc3e0d376838fd9d0fe8dddbd13a0e7e /testing/shadowircd/APKBUILD | |
parent | 97366cf813b35d6ff65c477d8ecd90022060f8fc (diff) | |
download | aports-e972f7f35baa2e461d874d7fdf3ac907d94ab903.tar.bz2 aports-e972f7f35baa2e461d874d7fdf3ac907d94ab903.tar.xz |
testing/shadowircd: new aport
Scalable IRC daemon with many useful features
http://www.github.com/shadowircd/shadowircd
Diffstat (limited to 'testing/shadowircd/APKBUILD')
-rw-r--r-- | testing/shadowircd/APKBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/testing/shadowircd/APKBUILD b/testing/shadowircd/APKBUILD new file mode 100644 index 0000000000..345c3aa671 --- /dev/null +++ b/testing/shadowircd/APKBUILD @@ -0,0 +1,70 @@ +# Contributor: Sam Dodrill <shadow.h511@gmail.com> +# Maintainer: Sam Dodrill <shadow.h511@gmail.com> +pkgname=shadowircd +pkgver=6.3.3 +pkgrel=1 +pkgdesc="Scalable IRC daemon with many useful features" +url="http://www.github.com/shadowircd/shadowircd" +arch="all" +license="GPL2" +pkgusers="ircd" +depends="" +depends_dev="bison flex openssl-dev zlib-dev libtool" +makedepends="$depends_dev" +install="$pkgname.pre-install" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/shadowircd/shadowircd/archive/shadowircd-6.3.3.tar.gz + $pkgname.initd + $pkgname.confd" +_builddir="$srcdir"/$pkgname-$pkgname-$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 \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/shadowircd \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --disable-assert \ + --enable-ssl \ + --enable-ipv6 \ + --with-rundir=/var/run \ + || return 1 + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/lib/*.la + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/shadowircd || return 1 + install -m644 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/shadowircd || return 1 + chown ircd "$pkgdir"/var/run/shadowircd + chown ircd "$pkgdir"/var/log/shadowircd + chown ircd "$pkgdir"/var/shadowircd + sed -i -e "s/\"modules\"/\"\/usr\/lib\/shadowircd\/modules\"/g" $pkgdir/etc/$pkgname/example.conf + sed -i -e "s/\"modules\/autoload\"/\"\/usr\/lib\/shadowircd\/modules\/autoload\"/g" "$pkgdir"/etc/$pkgname/example.conf + sed -i -e "s/usr\/local\/ircd\/modules/usr\/lib\/shadowircd\/modules/g" "$pkgdir"/etc/$pkgname/reference.conf +} + +md5sums="fff418e27b8979285a13b93ec7d6dbd1 shadowircd-6.3.3.tar.gz +9c5473325cf654433ea8844d3e4e4882 shadowircd.initd +585358efa2a9fa1cb15317d4442e1774 shadowircd.confd" +sha256sums="a3b6189a473e837d4248b8f18b1e8454ab111c8eafeb46eda477095771636f24 shadowircd-6.3.3.tar.gz +e969f81f76d32104edd6db7b5a47b6eaef09f595d6940c5a3821a7d2b29c6fd7 shadowircd.initd +0564d57624848d943cb0986d7115d596c98c24b5034b2c81ce489abe4ebd3912 shadowircd.confd" +sha512sums="f3638bee6d49c56738cf05dd7c67d93344ed5787eb8777589390dbc38a1481e9a28895bdd4534124dcc8dbe247f3e28e299fe0bc0bb89e4d974b4aff734701d4 shadowircd-6.3.3.tar.gz +5a3592d3be89af13cdc4e30dd1595e13e70fbb369ab3921d8ca7e8089618ad3be98edf9adb69510f889d8e9bd8f7dd515d7cdd8c4de591d7e36d67d33787abec shadowircd.initd +40e1d2a7a01b97721893dd6ea2bc1857c4bb74b257362ad8bcde9087fe44d1514cbea12a8ab53feb41499f73807de3fa8de9f89a5eb5cb2d558507e952db5a58 shadowircd.confd" |