# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1233680831 0
# Node ID f958b114c23a1246c8c39b185af26ff529bb3e49
# Parent  4c0f69a92618e001b42935d6521771167e715880
Add jabberd2

diff -r 4c0f69a92618 -r f958b114c23a jabberd2/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jabberd2/receipt	Tue Feb 03 17:07:11 2009 +0000
@@ -0,0 +1,34 @@
+# SliTaz package receipt.
+
+PACKAGE="jabberd2"
+VERSION="2.2.5"
+CATEGORY="network"
+SHORT_DESC="XMPP server (real-time communication)."
+MAINTAINER="pascal.bellard@slitaz.org"
+SOURCE="jabberd"
+TARBALL="$SOURCE-$VERSION.tar.bz2"
+WEB_SITE="http://$PACKAGE.xiaoka.com/"
+WGET_URL="http://ftp.xiaoka.com/$PACKAGE/releases/$TARBALL"
+DEPENDS="expat gsasl udns libidn zlib openssl"
+BUILD_DEPENDS="expat gsasl gsasl-dev udns udns-dev libidn-dev openssl-dev zlib-dev db-dev openldap-dev postgresql mysql sqlite"
+CONFIG_FILES="/etc/jabberd"
+
+# Rules to configure and make the package.
+compile_rules()
+{
+	cd $src
+	./configure --prefix=/usr --infodir=/usr/share/info \
+	--sysconfdir=/etc/jabberd --mandir=/usr/share/man $CONFIGURE_ARGS &&
+	make &&
+	make DESTDIR=$PWD/_pkg install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib/jabberd
+	cp -a $_pkg/etc $fs
+	cp -a $_pkg/usr/bin $fs/usr
+	cp -a $_pkg/usr/lib/jabberd/*so* $fs/usr/lib/jabberd
+}
+