summaryrefslogtreecommitdiff
path: root/jabberd2-git/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-10 11:41:22 +0100
committerErich Eckner <git@eckner.net>2018-12-10 11:41:22 +0100
commit28fb92e62268aaf43e5588323126a9456c0732e6 (patch)
treed3b80dd746a859cfe3cb6533a771e66bcc378601 /jabberd2-git/PKGBUILD
parent6e50721bf3b6cc7e4e7e0ca3a0c1e04eddb290d4 (diff)
downloadarchlinuxewe.git.save-28fb92e62268aaf43e5588323126a9456c0732e6.tar.xz
jabberd2 -> jabberd2-git
Diffstat (limited to 'jabberd2-git/PKGBUILD')
-rw-r--r--jabberd2-git/PKGBUILD87
1 files changed, 87 insertions, 0 deletions
diff --git a/jabberd2-git/PKGBUILD b/jabberd2-git/PKGBUILD
new file mode 100644
index 00000000..daabb919
--- /dev/null
+++ b/jabberd2-git/PKGBUILD
@@ -0,0 +1,87 @@
+# Contributor: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Moritz Rudert (helios) <helios@planetcyborg.de>
+# Contributer: Janusz Lewandowski <lew21@enves.pl>
+# Contributor: ushi <ushi+arch@honkgong.info>
+# Contributor: dequis <dx@dxzone.com.ar>
+# Contributor: sxw <sxw@chronowerks.de>
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=jabberd2-git
+_pkgname=jabberd2
+pkgver=r1173.85812b6
+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')
+makedepends=('sqlite3' 'postgresql-libs' 'autoconf-archive')
+install=install
+source=(
+ "git+https://github.com/${_pkgname}/${_pkgname}.git"
+ 'pam_jabberd'
+)
+sha512sums=('SKIP'
+ 'e6507a2a7e226398253623bb46db7ae853b01649b7ac00f3eee0a9b57c2ef0e8ac1f90c4934269f5fe2b7667e56572bed233b847d0b66a3fd37a88b7ed8adc31')
+
+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'
+)
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ libtoolize --force
+ aclocal
+ autoheader
+ automake --add-missing --force-missing
+ autoconf
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+
+ ./configure \
+ --prefix=/usr \
+ --localstatedir=/var/lib \
+ --sysconfdir=/etc/jabberd \
+ --enable-sqlite \
+ --enable-pgsql \
+ --enable-pam \
+ --enable-pipe \
+ --enable-anon
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
+ 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
+}