summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-22 14:15:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-22 14:15:01 +0000
commit122695e35c7e68893a2c9ee47d90ba7e152e5a48 (patch)
treee0573927d7a1aa9187dc51b33b4532b56f60f6d7
parentf98b60c0eec376a964597c4ecc7d8b7ec2e73c9f (diff)
downloadaports-122695e35c7e68893a2c9ee47d90ba7e152e5a48.tar.bz2
aports-122695e35c7e68893a2c9ee47d90ba7e152e5a48.tar.xz
extra/ngircd: new aport
Next Generation IRC Daemon http://ngircd.barton.de/
-rw-r--r--extra/ngircd/APKBUILD36
-rw-r--r--extra/ngircd/ngircd.initd21
-rw-r--r--extra/ngircd/ngircd.pre-install4
3 files changed, 61 insertions, 0 deletions
diff --git a/extra/ngircd/APKBUILD b/extra/ngircd/APKBUILD
new file mode 100644
index 000000000..2f618a077
--- /dev/null
+++ b/extra/ngircd/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ngircd
+pkgver=14.1
+pkgrel=0
+pkgdesc="Next Generation IRC Daemon"
+url="http://ngircd.barton.de/"
+license="GPL"
+makedepends=""
+makedepends="openssl-dev zlib-dev"
+install="$pkgname.pre-install"
+source="ftp://ftp.berlios.de/pub/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname.initd
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i \
+ -e "s:/usr/local/etc/ngircd.motd:/etc/ngircd/ngircd.motd:" \
+ -e "s:;ServerUID = 65534:ServerUID = ngircd:" \
+ -e "s:;ServerGID = 65534:ServerGID = nogroup:" \
+ doc/sample-ngircd.conf
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/ngircd \
+ --mandir=/usr/share/man \
+ --without-ident \
+ --with-openssl
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm755 ../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+}
+
+md5sums="eef90855414c35bfb6590d17e24ee06f ngircd-14.1.tar.gz
+1a91f517ef865b51d67b77ceb28e4261 ngircd.initd
+c8fbedf0690f35ba565e6a1937afd4fb ngircd.pre-install"
diff --git a/extra/ngircd/ngircd.initd b/extra/ngircd/ngircd.initd
new file mode 100644
index 000000000..807d844e8
--- /dev/null
+++ b/extra/ngircd/ngircd.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ngircd/files/ngircd.init.d,v 1.3 2006/01/02 15:31:27 swegener Exp $
+
+depend() {
+ need net
+ provide ircd
+}
+
+start() {
+ ebegin "Starting ngIRCd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/ngircd
+ eend $? "Failed to start ngIRCd"
+}
+
+stop() {
+ ebegin "Stopping ngIRCd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/ngircd
+ eend $? "Failed to stop ngIRCd"
+}
diff --git a/extra/ngircd/ngircd.pre-install b/extra/ngircd/ngircd.pre-install
new file mode 100644
index 000000000..062e37ae4
--- /dev/null
+++ b/extra/ngircd/ngircd.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+adduser -H -h /etc/ngircd -s /bin/false -D ngircd 2>/dev/null
+exit 0