diff options
author | dequis <dx@dxzone.com.ar> | 2016-07-02 13:26:22 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-07-02 13:26:22 -0300 |
commit | 22389197540458551d546f256361a7206a1235c5 (patch) | |
tree | b262fc8e6488cf80996610bde7870017711e4e1e /PKGBUILD | |
download | jabberd2-22389197540458551d546f256361a7206a1235c5.tar.xz |
Initial import from aur-mirror (version 2.3.3)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ddde437 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,74 @@ +# Submitter: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Moritz Rudert (helios) <helios@planetcyborg.de> +# Contributer: Janusz Lewandowski <lew21@enves.pl> +# Maintainer: ushi <ushi+arch@honkgong.info> + +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 +} |