diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-25 13:17:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-25 13:18:25 +0000 |
commit | a4c70cb0129bc2a6b25b105fb8bfbfd5773897ae (patch) | |
tree | 7896d53e29b53cc98fe118a3c054ef9df058c27b /testing | |
parent | e497397c86d49bffc37b036667e331471dbaf149 (diff) | |
download | aports-a4c70cb0129bc2a6b25b105fb8bfbfd5773897ae.tar.bz2 aports-a4c70cb0129bc2a6b25b105fb8bfbfd5773897ae.tar.xz |
testing/ircservices: new aport
Services for IRC (NickServ, ChanServ, MemoServ)
http://www.ircservices.za.net/
ref #189
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ircservices/APKBUILD | 78 | ||||
-rw-r--r-- | testing/ircservices/ircservices.confd | 6 | ||||
-rw-r--r-- | testing/ircservices/ircservices.initd | 29 | ||||
-rw-r--r-- | testing/ircservices/ircservices.pre-install | 5 |
4 files changed, 118 insertions, 0 deletions
diff --git a/testing/ircservices/APKBUILD b/testing/ircservices/APKBUILD new file mode 100644 index 000000000..8367866b7 --- /dev/null +++ b/testing/ircservices/APKBUILD @@ -0,0 +1,78 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=ircservices +pkgver=5.1.20 +pkgrel=0 +pkgdesc="Services for IRC (NickServ, ChanServ, MemoServ)" +url="http://www.ircservices.za.net/" +license="GPL" +depends= +makedepends= +install=$pkgname.pre-install +pkgusers="ircservices" +pkggroups="ircservices" +subpackages="$pkgname-doc" +source="http://www.ircservices.za.net/download/$pkgname-$pkgver.tar.gz + $pkgname.initd" + +build() { + cd "$srcdir"/$pkgname-$pkgver + RUNGROUP=ircservices ./configure \ + -cc "$CC" \ + -cflags "$CFLAGS" \ + -bindest /usr/bin \ + -datdest /var/lib/ircservices \ + || return 1 + + # build targets one by one as paralell builds breaks + make config-check &&\ + make ircservices &&\ + make languages &&\ + make tools +} + +package() { + cd "$srcdir"/$pkgname-$pkgver +# export INSTALL_PREFIX="$pkgdir" + make -j1 \ + BINDEST="$pkgdir"/usr/bin \ + DATDEST="$pkgdir"/var/lib/ircservices \ + install || return 1 + + install -d "$pkgdir"/usr/share/man/man8 + install docs/ircservices.8 "$pkgdir"/usr/share/man/man8/ircservices.8 + install docs/convert-db.8 \ + "$pkgdir"/usr/share/man/man8/ircservices-convert-db.8 + + # try conform to FHS + cd "$pkgdir" + install -d etc/ircservices usr/share/ircservices var/log/ircservices + + mv var/lib/ircservices/convert-db usr/bin/ircservices-convert-db + + mv var/lib/ircservices/example-ircservices.conf \ + etc/ircservices/ircservices.conf + ln -s /etc/ircservices/ircservices.conf \ + var/lib/ircservices/ircservices.conf + + mv var/lib/ircservices/example-modules.conf \ + etc/ircservices/modules.conf + ln -s /etc/ircservices/modules.conf var/lib/ircservices/modules.conf + + mv var/lib/ircservices/languages \ + var/lib/ircservices/helpfiles \ + usr/share/ircservices/ + ln -s /usr/share/ircservices/languages var/lib/ircservices/ + ln -s /usr/share/ircservices/helpfiles var/lib/ircservices/ + + install -Dm755 "$srcdir"/ircservices.initd \ + etc/init.d/ircservices + + chown ircservices:ircservices var/lib/ircservices \ + var/log/ircservices + + chown root:ircservices etc/ircservices/ircservices.conf \ + etc/ircservices/modules.conf +} + +md5sums="11dbbdc7a3a18fe65086de787635012c ircservices-5.1.20.tar.gz +279ea42c5d97b47787b5959c9981fbaa ircservices.initd" diff --git a/testing/ircservices/ircservices.confd b/testing/ircservices/ircservices.confd new file mode 100644 index 000000000..31cc902d2 --- /dev/null +++ b/testing/ircservices/ircservices.confd @@ -0,0 +1,6 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.conf.d,v 1.2 2005/05/16 15:36:11 swegener Exp $ + +# Se this to true to have ircservices depend on a local ircd to be up +LOCALIRCD="false" diff --git a/testing/ircservices/ircservices.initd b/testing/ircservices/ircservices.initd new file mode 100644 index 000000000..8c2a11e8b --- /dev/null +++ b/testing/ircservices/ircservices.initd @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.5 2006/11/05 22:23:08 swegener Exp $ + +depend() { + need net + after firewall + use ircd +} + +start() { + ebegin "Starting IRC Services" + start-stop-daemon --start --quiet --exec /usr/bin/ircservices \ + --chuid ircservices \ + -- \ + -dir=/var/lib/ircservices \ + -log=/var/log/ircservices/ircservices.log \ + &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping IRC Services" + start-stop-daemon --stop --quiet \ + --pidfile /var/lib/ircservices/ircservices.pid + eend $? + rm -f /var/lib/ircservices/ircservices.pid +} diff --git a/testing/ircservices/ircservices.pre-install b/testing/ircservices/ircservices.pre-install new file mode 100644 index 000000000..08f611667 --- /dev/null +++ b/testing/ircservices/ircservices.pre-install @@ -0,0 +1,5 @@ +#!/usr/bin + +adduser -h /var/lib/ircservices -s /bin/false -S -D ircservices 2>/dev/null +exit 0 + |