summaryrefslogtreecommitdiff
path: root/community/oidentd
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/oidentd
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/oidentd')
-rw-r--r--community/oidentd/PKGBUILD33
-rw-r--r--community/oidentd/oidentd.default5
-rw-r--r--community/oidentd/oidentd.rc41
3 files changed, 79 insertions, 0 deletions
diff --git a/community/oidentd/PKGBUILD b/community/oidentd/PKGBUILD
new file mode 100644
index 000000000..da509f959
--- /dev/null
+++ b/community/oidentd/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 24924 2010-08-29 18:14:02Z mherych $
+# Maintainer: simo <simo@archlinux.org>
+# Maintainer: Mateusz Herych <heniekk@gmail.com>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=oidentd
+pkgver=2.0.8
+pkgrel=4
+pkgdesc="oidentd is an ident (rfc1413 compliant) daemon that runs on Linux"
+arch=('i686' 'x86_64')
+url="http://dev.ojnk.net/"
+license=('GPL')
+depends=('glibc')
+source=(http://downloads.sourceforge.net/sourceforge/ojnk/oidentd-$pkgver.tar.gz
+ oidentd.rc
+ oidentd.default)
+md5sums=('c3d9a56255819ef8904b867284386911'
+ '93cbf742cdd0b053f67482273d715f25'
+ '603307525771724b0f55a2c34fbc3f3e')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+ make prefix=$pkgdir/usr mandir=$pkgdir/usr/share/man install
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ install -D -m 755 $srcdir/$pkgname.rc $pkgdir/etc/rc.d/oidentd
+ install -D -m 644 $srcdir/$pkgname.default $pkgdir/etc/conf.d/oidentd
+}
+
diff --git a/community/oidentd/oidentd.default b/community/oidentd/oidentd.default
new file mode 100644
index 000000000..5eefa80e2
--- /dev/null
+++ b/community/oidentd/oidentd.default
@@ -0,0 +1,5 @@
+USER=nobody
+GROUP=nobody
+OPTS=""
+# You will need this, when you want oidentd listen both on IPv4 and IPv6
+# OPTS="-a ::"
diff --git a/community/oidentd/oidentd.rc b/community/oidentd/oidentd.rc
new file mode 100644
index 000000000..8b3c04c45
--- /dev/null
+++ b/community/oidentd/oidentd.rc
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/conf.d/oidentd
+
+# no daemon check needed for oidentd, and no pid nesecary.
+case "$1" in
+ start)
+ stat_busy "Starting oidentd Daemon..."
+ # oidentd is smart enough to only run one copy of
+ # itsself, no check nesecary, and no pidfile
+ /usr/sbin/oidentd -u ${USER} -g ${GROUP} ${OPTS}
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ add_daemon oidentd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping oidentd Daemon..."
+ # kill the process by it's full name, or the init script
+ # will terminate as well, wreaking havok.
+ killall /usr/sbin/oidentd
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm_daemon oidentd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0