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/oidentd/PKGBUILD | 33 +++++++++++++++++++++++++++++++ community/oidentd/oidentd.default | 5 +++++ community/oidentd/oidentd.rc | 41 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 community/oidentd/PKGBUILD create mode 100644 community/oidentd/oidentd.default create mode 100644 community/oidentd/oidentd.rc (limited to 'community/oidentd') 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 +# Maintainer: Mateusz Herych +# Contributor: Tom Newsom + +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 -- cgit v1.2.3-54-g00ecf