From 47dfb5b6adee3e8c4b2897cdd00f4ca7bf2c8567 Mon Sep 17 00:00:00 2001 From: Harvie Date: Sun, 23 Jan 2011 04:54:34 +0100 Subject: [PATCH] Added ejabberd-mod_admin_extra-svn --- ejabberd-mod_admin_extra-svn/PKGBUILD | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ejabberd-mod_admin_extra-svn/PKGBUILD diff --git a/ejabberd-mod_admin_extra-svn/PKGBUILD b/ejabberd-mod_admin_extra-svn/PKGBUILD new file mode 100644 index 0000000..0888f67 --- /dev/null +++ b/ejabberd-mod_admin_extra-svn/PKGBUILD @@ -0,0 +1,46 @@ +# Contributor: Thomas Mudrunka +# Maintainer: Thomas Mudrunka +# You can also contact me on http://blog.harvie.cz/ + +pkgname=ejabberd-mod_admin_extra-svn +pkgver=1107 +pkgrel=1 +pkgdesc="Additional commands for ejabberdctl" +arch=(any) +url="http://www.ejabberd.im/mod_admin_extra" +license=('GPL') +depends=(ejabberd) +makedepends=(erlang subversion) +options=() + +_svntrunk=https://svn.process-one.net/ejabberd-modules +_svnmod=ejabberd-modules +md5sums=() + +build() { + cd $srcdir + + if [ -d $_svnmod/.svn ]; then + (cd $_svnmod && svn up -r $pkgver) + else + svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod + fi + + msg "SVN checkout done or server timeout" + msg "Starting make..." + + [ -d $srcdir/$_svnmod-build ] && rm -r $srcdir/$_svnmod-build + cp -r $_svnmod $_svnmod-build + cd $_svnmod-build + + # + # BUILD + # + cd mod_admin_extra/trunk + + ./build.sh + + rm -rf ebin/.svn + install -d -m 0755 $pkgdir/usr/lib/ejabberd + cp -r ebin $pkgdir/usr/lib/ejabberd/ebin +} -- 2.30.2