aboutsummaryrefslogtreecommitdiffstats
path: root/unstable/jabberd14
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2009-03-25 21:23:00 +0000
committerMichael Mason <ms13sp@gmail.com>2009-03-25 21:23:00 +0000
commit0d48a9c85ddf7aee34b250f56ee0c213b9f9c843 (patch)
treeec20e8731039da2ad9ab1d426c8130065b9a532f /unstable/jabberd14
parentb15d5bb40ca2f16c94964fbc68f580cc8d53b8bf (diff)
downloadaports-0d48a9c85ddf7aee34b250f56ee0c213b9f9c843.tar.bz2
aports-0d48a9c85ddf7aee34b250f56ee0c213b9f9c843.tar.xz
testing/jabberd14 moved to unstable/jabberd14
Diffstat (limited to 'unstable/jabberd14')
-rw-r--r--unstable/jabberd14/APKBUILD31
-rw-r--r--unstable/jabberd14/jabberd14.initd29
2 files changed, 60 insertions, 0 deletions
diff --git a/unstable/jabberd14/APKBUILD b/unstable/jabberd14/APKBUILD
new file mode 100644
index 0000000000..c1b189cf14
--- /dev/null
+++ b/unstable/jabberd14/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+pkgname=jabberd14
+pkgver=1.6.1.1
+pkgrel=0
+pkgdesc="Jabber server or XMPP"
+url="http://jabberd.org/"
+license="GPL"
+depends="uclibc uclibc++ gnutls libidn popt expat pth"
+makedepends="uclibc-dev automake pkgconfig gnutls-dev libidn-dev libtool uclibc++-dev popt-dev pth-dev expat-dev libgcrypt-dev"
+install=
+subpackages="$pkgname-doc $pkgname-dev"
+source="http://download.jabberd.org/jabberd14/$pkgname-$pkgver.tar.gz
+ jabberd14.initd"
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ export CXX=g++-uc
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make -j1 || return 1
+ make -j1 DESTDIR="$pkgdir" install
+
+ install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+
+}
+
+md5sums="597c7ee14518ba22b1cee883b4737d87 jabberd14-1.6.1.1.tar.gz
+95f4bc715f24d37e37d2c05580dd3649 jabberd14.initd"
diff --git a/unstable/jabberd14/jabberd14.initd b/unstable/jabberd14/jabberd14.initd
new file mode 100644
index 0000000000..3b8179174e
--- /dev/null
+++ b/unstable/jabberd14/jabberd14.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-im/jabberd/files/jabberd-1.6.1.1.init,v 1.1 2008/06/18 12:24:56 nelchael Exp $
+
+depend() {
+
+ need net
+ provide jabber-server
+
+}
+
+start() {
+
+ ebegin "Starting Jabber Server"
+ start-stop-daemon --start \
+ -c jabber:jabber \
+ -x /usr/bin/jabberd -- -B -c /etc/jabber/jabberd.xml
+ eend $?
+
+}
+
+stop() {
+
+ ebegin "Stopping Jabber Server"
+ start-stop-daemon --stop -x /usr/bin/jabberd
+ eend $?
+
+}