summaryrefslogtreecommitdiff
path: root/community/ejabberd/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ejabberd/PKGBUILD')
-rw-r--r--community/ejabberd/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/ejabberd/PKGBUILD b/community/ejabberd/PKGBUILD
new file mode 100644
index 000000000..eada33e78
--- /dev/null
+++ b/community/ejabberd/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 44013 2011-04-01 16:47:17Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Jeff 'codemac' Mickey <jeff@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=ejabberd
+pkgver=2.1.6
+pkgrel=2
+pkgdesc="An erlang jabber server"
+arch=(i686 x86_64)
+url="http://www.ejabberd.im/"
+license=("GPL")
+depends=('expat' 'openssl' 'zlib' 'erlang' 'pam')
+makedepends=()
+backup=(etc/ejabberd/ejabberd.cfg \
+ etc/logrotate.d/ejabberd)
+install=ejabberd.install
+source=(http://www.process-one.net/downloads/ejabberd/${pkgver/_/-}/ejabberd-${pkgver}.tar.gz \
+ ejabberd \
+ ejabberd.logrotate)
+md5sums=('f5a41edee2204c414150075331ced506'
+ 'd2ed73bc83b7f0e423a3fd7fdf1b43d6'
+ 'f97c8a96160f30e0aecc9526c12e6606')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}/src
+
+ sed -i "s|EJABBERDDIR = \$(DESTDIR)@prefix@/var/lib/ejabberd|EJABBERDDIR = \$(DESTDIR)@prefix@/usr/lib/ejabberd|g" ./Makefile.in
+ [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-pam --enable-odbc
+ make
+ make DESTDIR=${pkgdir} install
+
+ install -D -m 0755 ${srcdir}/ejabberd ${pkgdir}/etc/rc.d/ejabberd
+ install -d ${pkgdir}/var/spool/ejabberd
+ install -d ${pkgdir}/var/lib/ejabberd
+
+ install -D -m0644 ${srcdir}/ejabberd.logrotate ${pkgdir}/etc/logrotate.d/ejabberd
+ chmod ug+r ${pkgdir}/etc/ejabberd/*
+ rm -rf $pkgdir/var/lock
+}