diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-03-12 20:25:40 +0000 |
---|---|---|
committer | Michael Mason <ms13sp@gmail.com> | 2009-03-12 20:25:40 +0000 |
commit | 348e39b2fad5d54c78d9a773eb35a1c2550ecb8c (patch) | |
tree | d26378c4f1de1fead9ebffcfe145a72c9ccba845 /testing/jabberd14 | |
parent | 499f5ab5fadf57b692b58a44523cd7f904328cce (diff) | |
download | aports-348e39b2fad5d54c78d9a773eb35a1c2550ecb8c.tar.bz2 aports-348e39b2fad5d54c78d9a773eb35a1c2550ecb8c.tar.xz |
testing/jabberd14 Updated APKBUILD and added intit script
Diffstat (limited to 'testing/jabberd14')
-rw-r--r-- | testing/jabberd14/APKBUILD | 21 | ||||
-rw-r--r-- | testing/jabberd14/jabberd14.initd | 29 |
2 files changed, 41 insertions, 9 deletions
diff --git a/testing/jabberd14/APKBUILD b/testing/jabberd14/APKBUILD index 0f5d1e15d..88a2d20c7 100644 --- a/testing/jabberd14/APKBUILD +++ b/testing/jabberd14/APKBUILD @@ -1,26 +1,29 @@ -# Contributor: -# Maintainer: +# 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 gnutls libidn" -makedepends="gnutls-dev libidn-dev" +depends="uclibc uclibc++ gnutls libidn popt expat" +makedepends="automake pkgconfig gnutls-dev libidn-dev libtool uclibc++-dev popt-dev pth pth-dev expat-dev libgcrypt-dev" install= subpackages="$pkgname-doc $pkgname-dev" -source="http://download.jabberd.org/jabberd14/jabberd14-1.6.1.1.tar.gz" +source="http://download.jabberd.org/jabberd14/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - + export CXX=g++-uc + ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info - make || return 1 - make DESTDIR="$pkgdir" install + --infodir=/usr/share/info \ + --enable-ipv6 + make -j1 || return 1 + make -j1 DESTDIR="$pkgdir" install + +install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } diff --git a/testing/jabberd14/jabberd14.initd b/testing/jabberd14/jabberd14.initd new file mode 100644 index 000000000..3b8179174 --- /dev/null +++ b/testing/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 $? + +} |