summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2016-07-02 13:26:22 -0300
committerdequis <dx@dxzone.com.ar>2016-07-02 13:26:22 -0300
commit22389197540458551d546f256361a7206a1235c5 (patch)
treeb262fc8e6488cf80996610bde7870017711e4e1e
downloadjabberd2-22389197540458551d546f256361a7206a1235c5.tar.xz
Initial import from aur-mirror (version 2.3.3)
-rw-r--r--.SRCINFO40
-rw-r--r--PKGBUILD74
-rw-r--r--install21
-rw-r--r--pam_jabberd2
4 files changed, 137 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..398d5b2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,40 @@
+# Generated by makepkg 4.2.1
+# Wed Apr 15 19:23:50 UTC 2015
+pkgbase = jabberd2
+ pkgdesc = Scalable, architecturally sound, and extensible XMPP server
+ pkgver = 2.3.3
+ pkgrel = 1
+ url = http://jabberd2.org/
+ install = install
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ license = GPL
+ makedepends = sqlite3
+ makedepends = postgresql-libs
+ makedepends = libmysqlclient
+ depends = udns
+ depends = expat
+ depends = gsasl
+ depends = libidn
+ depends = openssl
+ optdepends = sqlite3
+ optdepends = postgresql-libs
+ optdepends = libmysqlclient
+ options = !libtool
+ backup = etc/jabberd/c2s.xml
+ backup = etc/jabberd/jabberd.cfg
+ backup = etc/jabberd/router-filter.xml
+ backup = etc/jabberd/router-users.xml
+ backup = etc/jabberd/router.xml
+ backup = etc/jabberd/s2s.xml
+ backup = etc/jabberd/sm.xml
+ backup = etc/jabberd/templates/roster.xml
+ backup = etc/pam.d/jabberd
+ source = https://github.com/jabberd2/jabberd2/releases/download/jabberd-2.3.3/jabberd-2.3.3.tar.xz
+ source = pam_jabberd
+ sha256sums = c6c2f34d0811e90c5c791143018bb5b07ecbe2ea5d8cc10140235d25815cb030
+ sha256sums = 89809dbf3f42f9df4690c3f98c1c74174f53774859d88374947b4123552c2dc8
+
+pkgname = jabberd2
+
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
+}
diff --git a/install b/install
new file mode 100644
index 0000000..e4771c6
--- /dev/null
+++ b/install
@@ -0,0 +1,21 @@
+post_install() {
+ getent group jabber &>/dev/null || groupadd -r jabber >/dev/null
+ getent passwd jabber &>/dev/null || useradd -r -g jabber -d /etc/jabberd -s /bin/false -c jabber jabber >/dev/null
+ mkdir -p /var/lib/jabberd/{db,log,pid}
+ [ -f /var/lib/jabberd/db/sqlite.db ] || sqlite3 /var/lib/jabberd/db/sqlite.db < /usr/share/jabberd/db-setup.sqlite
+ chown -R jabber:jabber /var/lib/jabberd
+ chown -R root:jabber /etc/jabberd
+ cat <<EOF
+==> Customize the configuration files in /etc/jabberd/.
+==> For details, see: https://github.com/jabberd2/jabberd2/wiki/InstallGuide
+EOF
+}
+
+pre_remove() {
+ systemctl stop jabberd.service
+}
+
+post_remove() {
+ getent passwd jabber &>/dev/null && userdel jabber >/dev/null
+ getent group jabber &>/dev/null && groupdel jabber >/dev/null
+}
diff --git a/pam_jabberd b/pam_jabberd
new file mode 100644
index 0000000..fed9b45
--- /dev/null
+++ b/pam_jabberd
@@ -0,0 +1,2 @@
+auth required pam_unix.so
+account required pam_unix.so