From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/ngircd/PKGBUILD | 30 ++++++++++++++++++++++++++++++ community/ngircd/ngircd.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 community/ngircd/PKGBUILD create mode 100644 community/ngircd/ngircd.sh (limited to 'community/ngircd') 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 +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 -- cgit v1.2.3-54-g00ecf