diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ngircd |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ngircd')
-rw-r--r-- | community/ngircd/PKGBUILD | 30 | ||||
-rw-r--r-- | community/ngircd/ngircd.sh | 36 |
2 files changed, 66 insertions, 0 deletions
diff --git a/community/ngircd/PKGBUILD b/community/ngircd/PKGBUILD new file mode 100644 index 000000000..215068dd0 --- /dev/null +++ b/community/ngircd/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 40090 2011-02-20 00:03:13Z mherych $ +# Maintainer: Mateusz Herych <heniekk@gmail.com> +pkgname=ngircd +pkgver=17.1 +pkgrel=1 +pkgdesc="Next Generation IRC Daemon" +arch=('i686' 'x86_64') +backup=(etc/ngircd.conf) +url="http://ngircd.barton.de/" +license=('GPL') +depends=('openssl' 'libident') +source=(ftp://ftp.berlios.de/pub/ngircd/ngircd-$pkgver.tar.gz ngircd.sh) +md5sums=('b4ad0b1f18875ff3f2e92f076e64496b' + '6d2e9f1bbb4a3a7349da0dcd3f6d8dc3') + +build() { + cd $startdir/src/$pkgname-$pkgver + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --with-ident \ + --with-openssl + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + install -D -m 755 ../ngircd.sh $pkgdir/etc/rc.d/ngircd +} diff --git a/community/ngircd/ngircd.sh b/community/ngircd/ngircd.sh new file mode 100644 index 000000000..3947f527e --- /dev/null +++ b/community/ngircd/ngircd.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting ngircd IRC daemon" + /usr/sbin/ngircd + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + add_daemon ngircd + fi + ;; + stop) + stat_busy "Stopping ngircd IRC daemon" + PID=`pidof -o %PPID /usr/sbin/ngircd` + kill $PID > /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon ngircd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 |