summaryrefslogtreecommitdiff
path: root/community/ircservices/PKGBUILD
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/ircservices/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ircservices/PKGBUILD')
-rw-r--r--community/ircservices/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/community/ircservices/PKGBUILD b/community/ircservices/PKGBUILD
new file mode 100644
index 000000000..0fb9aae45
--- /dev/null
+++ b/community/ircservices/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 44173 2011-04-04 11:41:07Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=ircservices
+pkgver=5.1.23
+pkgrel=2
+pkgdesc="Services for IRC (NickServ, ChanServ, MemoServ)"
+arch=(i686 x86_64)
+url="http://www.ircservices.za.net/"
+license=('GPL')
+depends=('glibc')
+makedepends=('patch')
+options=('!makeflags' 'emptydirs')
+install=ircservices.install
+source=(http://www.ircservices.za.net/download/ircservices-$pkgver.tar.gz
+ path-patch.patch
+ ircservices)
+md5sums=('666351f44adf57effc310a7a5943c9a2'
+ '7e4bbf6fb398323afc8e85656ec82c13'
+ 'd5d6409ab04b3a715f9adc29a4fb8a2d')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ patch -Np0 <../path-patch.patch
+
+ ./configure -prefix /usr
+
+ sed -i 's#getline#xgetline#' lang/langcomp.c
+ make
+
+ sed -i "s#DATDEST=/usr/lib/ircservices#DATDEST=$pkgdir/usr/lib/ircservices#" ./Makefile.inc
+ sed -i "s#BINDEST=/usr/sbin#BINDEST=$pkgdir/usr/sbin#" ./Makefile.inc
+
+ install -d -m 0755 $pkgdir/usr/sbin
+ install -d -m 0755 $pkgdir/usr/lib
+ install -d -m 0755 $pkgdir/etc/ircd
+ make DESTDIR=$pkgdir install
+
+ install -D -m 0755 $srcdir/ircservices $pkgdir/etc/rc.d/ircservices
+ cd $pkgdir && chmod -R ugo+r * && chmod 0755 ./usr/sbin/ircservices
+ find -type d -exec chmod 0755 {} \;
+ install -d -m 0755 $pkgdir/var/lib/ircd
+ cd ./var/lib/ircd
+ ln -s /usr/lib/ircservices/modules modules
+ ln -s /usr/lib/ircservices/languages languages
+ ln -s /usr/lib/ircservices/helpfiles helpfiles
+ ln -s /etc/ircd/ircservices.conf ircservices.conf
+ ln -s /etc/ircd/modules.conf modules.conf
+
+ mkdir -p $pkgdir/var/log/ircd
+ mv $pkgdir/usr/lib/ircservices/*.conf $pkgdir/etc/ircd/
+}