Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

jabberd2-2.3.1 PKGBUILD

View PKGBUILD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
# Submitter: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Moritz Rudert (helios) <helios@planetcyborg.de>
# Maintainer: Janusz Lewandowski <lew21@enves.pl>
 
pkgname=jabberd2
pkgver=2.3.1
pkgrel=1
pkgdesc='Scalable, architecturally sound, and extensible XMPP server'
arch=('i686' 'x86_64')
url='http://jabberd2.org/'
license=('GPL')
options=('!libtool')
depends=('expat' 'gsasl' 'libidn' 'openssl')
optdepends=('sqlite3' 'postgresql-libs' 'libmysqlclient')
makedepends=('udns' 'sqlite3' 'postgresql-libs' 'libmysqlclient')
install=install
 
source=("https://github.com/jabberd2/jabberd2/releases/download/jabberd-${pkgver}/jabberd-${pkgver}.tar.xz"
'jabberd.service'
'pam_jabberd')
 
md5sums=('72ee83dd0bd725a441ca3edda39b79aa'
'a6851af95d62d5e889f549115c654a04'
'787db305724e1547a7bc7803c42b46b4')
 
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}/usr/lib/systemd/system/"
install ../jabberd.service "${pkgdir}/usr/lib/systemd/system/jabberd.service"
 
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.