summaryrefslogtreecommitdiffstats
path: root/testing/charybdis
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-10-22 06:14:23 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-10-22 06:14:23 +0000
commitef26de8b7f078fbff1ac0f640534522ea3fc4871 (patch)
tree90d9ad33f948d53cdef4c81abbb0c7dca81b33e1 /testing/charybdis
parentea1d2187ea42928c1200d87ff6856e0107a70c99 (diff)
downloadaports-ef26de8b7f078fbff1ac0f640534522ea3fc4871.tar.bz2
aports-ef26de8b7f078fbff1ac0f640534522ea3fc4871.tar.xz
testing/charybdis: new aport. Fixes Feature #1113
Diffstat (limited to 'testing/charybdis')
-rw-r--r--testing/charybdis/APKBUILD50
-rw-r--r--testing/charybdis/charybdis.confd3
-rw-r--r--testing/charybdis/charybdis.initd22
-rw-r--r--testing/charybdis/charybdis.pre-install3
4 files changed, 78 insertions, 0 deletions
diff --git a/testing/charybdis/APKBUILD b/testing/charybdis/APKBUILD
new file mode 100644
index 000000000..524b701c3
--- /dev/null
+++ b/testing/charybdis/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=charybdis
+pkgver=3.4.0
+pkgrel=0
+pkgdesc="A highly-scalable IRCv3-compliant IRC daemon"
+url="http://www.atheme.org/project/charybdis"
+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="saveas-http://www.stack.nl/~jilles/irc/$pkgname-$pkgver.tbz2/$pkgname-$pkgver.tar.bz2
+ $pkgname.initd
+ $pkgname.confd"
+_builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/charybdis \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib \
+ --disable-assert \
+ --enable-ssl \
+ --enable-ipv6 \
+ --with-rundir=/var/run \
+ --with-program-prefix=charybdis-
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ rm -f "$pkgdir"/usr/lib/*.la
+ install -m755 -D "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/charybdis-ircd || return 1
+ install -m644 -D "$srcdir"/$pkgname.confd \
+ "$pkgdir"/etc/conf.d/charybdis-ircd || return 1
+ chown ircd "$pkgdir"/var/run/charybdis
+ chown ircd "$pkgdir"/var/log/charybdis
+ chown ircd "$pkgdir"/var/charybdis
+}
+
+md5sums="b31c126ae76938233d6a0a6d1123dce8 charybdis-3.4.0.tar.bz2
+b11b3bba9a61f2b288ad83b62dbb67bf charybdis.initd
+4bbd6b06a4389bd4826ab8ba7f76393a charybdis.confd"
diff --git a/testing/charybdis/charybdis.confd b/testing/charybdis/charybdis.confd
new file mode 100644
index 000000000..de21ca6ec
--- /dev/null
+++ b/testing/charybdis/charybdis.confd
@@ -0,0 +1,3 @@
+CHARYBDIS_USER="ircd"
+CHARYBDIS_PID="/var/run/charybdis/ircd.pid"
+
diff --git a/testing/charybdis/charybdis.initd b/testing/charybdis/charybdis.initd
new file mode 100644
index 000000000..fd689a258
--- /dev/null
+++ b/testing/charybdis/charybdis.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/files/charybdis-ircd.initd,v 1.2 2008/01/08 21:17:02 jokey Exp $
+
+depend() {
+ use net
+ provide ircd
+}
+
+start() {
+ ebegin "Starting ircd-charybdis"
+ start-stop-daemon --start --quiet -u ${CHARYBDIS_USER} --exec /usr/bin/charybdis-ircd >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ircd-charybdis"
+ start-stop-daemon --stop --quiet --pidfile ${CHARYBDIS_PID}
+ eend $?
+}
+
diff --git a/testing/charybdis/charybdis.pre-install b/testing/charybdis/charybdis.pre-install
new file mode 100644
index 000000000..6bc4edc1e
--- /dev/null
+++ b/testing/charybdis/charybdis.pre-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+adduser -h /var/run/charybdis -s /bin/false -S -D ircd 2>/dev/null
+exit 0