# $Id: PKGBUILD 3171 2009-09-29 09:07:25Z spupykin $ # Maintainer: Jeff 'codemac' Mickey # Contributor: Sergej Pupykin pkgname=ejabberd pkgver=2.1.0_rc1 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 #http://www.process-one.net/en/projects/ejabberd/download/${pkgver/_/-}/$pkgname-${pkgver}.tar.gz \ source=(http://www.process-one.net/downloads/ejabberd/${pkgver/_/-}/sources/ejabberd-$pkgver.tar.gz \ ejabberd \ ejabberdctl.patch \ ejabberd.logrotate) md5sums=('88e5200ad0cb8342408d7b7c1e95446d' 'd000f6ab2b26a04501cbbc1558214f00' '79895c2944531d906f107d0cbebdd1ab' '65b55a547952097d354a73c33e34b11e') 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 || return 1 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 || return 1 # patch -p0 $pkgdir/usr/sbin/ejabberdctl <$srcdir/ejabberdctl.patch || return 1 install -D -m0644 $srcdir/ejabberd.logrotate $pkgdir/etc/logrotate.d/ejabberd && \ chmod ug+r $pkgdir/etc/ejabberd/* }