aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-10-22 07:10:59 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-10-22 07:10:59 +0000
commit480c1603a1d23d92bd36416023716ca71332efe1 (patch)
tree3ae4906b08d4c8d495d247f819365cbc6ae36abb /testing
parent0a5e89eab97504fe901bdae1c6bb87b360d59aff (diff)
parent3308828d2ac2f676b5c50165d803b5fba78f65c6 (diff)
downloadaports-480c1603a1d23d92bd36416023716ca71332efe1.tar.bz2
aports-480c1603a1d23d92bd36416023716ca71332efe1.tar.xz
Merge branch 'master' of ../aports-fcolista
Diffstat (limited to 'testing')
-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
-rw-r--r--testing/ckermit/APKBUILD2
5 files changed, 79 insertions, 1 deletions
diff --git a/testing/charybdis/APKBUILD b/testing/charybdis/APKBUILD
new file mode 100644
index 0000000000..524b701c32
--- /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 0000000000..de21ca6ecf
--- /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 0000000000..fd689a2588
--- /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 0000000000..6bc4edc1eb
--- /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
diff --git a/testing/ckermit/APKBUILD b/testing/ckermit/APKBUILD
index ed5430e819..5355a3d981 100644
--- a/testing/ckermit/APKBUILD
+++ b/testing/ckermit/APKBUILD
@@ -12,7 +12,7 @@ depends_dev="ncurses-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
-source="http://www.kermitproject.org/ftp/kermit/archives/cku302.tar.gz"
+source="http://www.kermitproject.org/ftp/kermit/archives/cku${pkgver/9.0./}.tar.gz"
_builddir="$srcdir"
build() {
cd "$_builddir"