From 22389197540458551d546f256361a7206a1235c5 Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 2 Jul 2016 13:26:22 -0300 Subject: Initial import from aur-mirror (version 2.3.3) --- PKGBUILD | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ddde437 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,74 @@ +# Submitter: Gaetan Bisson +# Contributor: Moritz Rudert (helios) +# Contributer: Janusz Lewandowski +# Maintainer: ushi + +pkgname=jabberd2 +pkgver=2.3.3 +pkgrel=1 +pkgdesc='Scalable, architecturally sound, and extensible XMPP server' +arch=('i686' 'x86_64' 'armv6h') +url='http://jabberd2.org/' +license=('GPL') +options=('!libtool') +depends=('udns' 'expat' 'gsasl' 'libidn' 'openssl') +optdepends=('sqlite3' 'postgresql-libs' 'libmysqlclient') +makedepends=('sqlite3' 'postgresql-libs' 'libmysqlclient') +install=install + +source=( + "https://github.com/jabberd2/jabberd2/releases/download/jabberd-${pkgver}/jabberd-${pkgver}.tar.xz" + 'pam_jabberd' +) + +sha256sums=( + 'c6c2f34d0811e90c5c791143018bb5b07ecbe2ea5d8cc10140235d25815cb030' + '89809dbf3f42f9df4690c3f98c1c74174f53774859d88374947b4123552c2dc8' +) + +backup=( + 'etc/jabberd/c2s.xml' + 'etc/jabberd/jabberd.cfg' + 'etc/jabberd/router-filter.xml' + 'etc/jabberd/router-users.xml' + 'etc/jabberd/router.xml' + 'etc/jabberd/s2s.xml' + 'etc/jabberd/sm.xml' + 'etc/jabberd/templates/roster.xml' + 'etc/pam.d/jabberd' +) + +build() { + cd "${srcdir}/jabberd-${pkgver}" + + ./configure \ + --prefix=/usr \ + --localstatedir=/var/lib \ + --sysconfdir=/etc/jabberd \ + --enable-sqlite \ + --enable-mysql \ + --enable-pgsql \ + --enable-pam \ + --enable-pipe \ + --enable-anon + + make +} + +package() { + cd "${srcdir}/jabberd-${pkgver}" + + make DESTDIR="${pkgdir}" install + + install -d "${pkgdir}/etc/pam.d/" + install ../pam_jabberd "${pkgdir}/etc/pam.d/jabberd" + + install -d "${pkgdir}/usr/share/jabberd/" + install tools/{db-setup.*,pipe-auth.pl,jabberd-authpipe-pam-0.1.pl} "${pkgdir}/usr/share/jabberd/" + + chmod o= "${pkgdir}/etc/jabberd/" + + rm -fr "${pkgdir}/usr/etc" + rm -f "${pkgdir}/etc/jabberd/"jabberd-*.conf + rm -f "${pkgdir}/etc/jabberd/"{,templates/}*.dist +} -- cgit v1.2.3-70-g09d2