diff options
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabberd14/Manifest | 16 | ||||
-rw-r--r-- | net-im/jabberd14/files/1.6.1.1-makefile-destdir-fix.patch | 11 | ||||
-rw-r--r-- | net-im/jabberd14/files/digest-jabberd14-1.6.1.1 | 3 | ||||
-rw-r--r-- | net-im/jabberd14/files/jabberd14-1.6.1.init | 29 | ||||
-rw-r--r-- | net-im/jabberd14/jabberd14-1.6.1.1.ebuild | 103 |
5 files changed, 162 insertions, 0 deletions
diff --git a/net-im/jabberd14/Manifest b/net-im/jabberd14/Manifest new file mode 100644 index 00000000..3d37dba7 --- /dev/null +++ b/net-im/jabberd14/Manifest @@ -0,0 +1,16 @@ +AUX 1.6.1.1-makefile-destdir-fix.patch 590 RMD160 d43dbc8fae4acd7fd8a1ed54ac2e55253210e427 SHA1 ff79ee8a14518eacb923a537b66df4db66b809f4 SHA256 c966f047ef88308454d4796b1dce9929f2f80def159d8bc9b03eaba837c12897 +MD5 5fb2a4bfca3d62a4ff7a78cbdca84bc6 files/1.6.1.1-makefile-destdir-fix.patch 590 +RMD160 d43dbc8fae4acd7fd8a1ed54ac2e55253210e427 files/1.6.1.1-makefile-destdir-fix.patch 590 +SHA256 c966f047ef88308454d4796b1dce9929f2f80def159d8bc9b03eaba837c12897 files/1.6.1.1-makefile-destdir-fix.patch 590 +AUX jabberd14-1.6.1.init 554 RMD160 83098dfae23a67267dffeb5609e572b501fa9a8e SHA1 630cd9c50c20a73992b9891051e02350f6abcba9 SHA256 769e4ee4e193a1d63fe4839f923fb2a6339489a677595ba75986e19cb1ba39ac +MD5 3b4be327293fb0abc0cdb5dcac80d033 files/jabberd14-1.6.1.init 554 +RMD160 83098dfae23a67267dffeb5609e572b501fa9a8e files/jabberd14-1.6.1.init 554 +SHA256 769e4ee4e193a1d63fe4839f923fb2a6339489a677595ba75986e19cb1ba39ac files/jabberd14-1.6.1.init 554 +DIST jabberd14-1.6.1.1.tar.gz 834112 RMD160 0d3df653b6362f8e580c59ae1b4c9c6467b0bee5 SHA1 8b7ba77c9e02e9de7125e898900ff0ba5d65986e SHA256 8bba7f8e8781a088679bdcf0e46348a29da45de3eec2421f73575c5a6b8ddc31 +EBUILD jabberd14-1.6.1.1.ebuild 2655 RMD160 0d40a21d73c41d64b5808837556c49917cc323ba SHA1 aba4fd83f3b553029751c7cf521f6c1bcab1c984 SHA256 9dfeacba3c7570db652b29f881dea92e061e42fa4a29ffc584bc11ffd84aeeef +MD5 53d1f2daaf5c1d6bb849caebbc9ae9e7 jabberd14-1.6.1.1.ebuild 2655 +RMD160 0d40a21d73c41d64b5808837556c49917cc323ba jabberd14-1.6.1.1.ebuild 2655 +SHA256 9dfeacba3c7570db652b29f881dea92e061e42fa4a29ffc584bc11ffd84aeeef jabberd14-1.6.1.1.ebuild 2655 +MD5 8e3a35062353c5ccb7ae2c5b9d878807 files/digest-jabberd14-1.6.1.1 253 +RMD160 2fe6768e48ffa4580564a3e4ed3c1eba9c3c4a5f files/digest-jabberd14-1.6.1.1 253 +SHA256 e510dfa655a2be801d4537863761407cc28cb0b7b0698850119c37698bddca23 files/digest-jabberd14-1.6.1.1 253 diff --git a/net-im/jabberd14/files/1.6.1.1-makefile-destdir-fix.patch b/net-im/jabberd14/files/1.6.1.1-makefile-destdir-fix.patch new file mode 100644 index 00000000..12dddea5 --- /dev/null +++ b/net-im/jabberd14/files/1.6.1.1-makefile-destdir-fix.patch @@ -0,0 +1,11 @@ +--- jabberd14-1.6.0/po/Makefile.am 2006-12-24 01:12:16.000000000 +0100 ++++ Makefile.am 2007-05-05 14:28:35.000000000 +0200 +@@ -11,6 +11,6 @@ + + install-data-hook: + -for f in $(LANGS); do \ +- test -z "$(localedir)/$${f%.po}/LC_MESSAGES" || $(mkdir_p) "$(localedir)/$${f%.po}/LC_MESSAGES"; \ +- msgfmt -o "$(localedir)/$${f%.po}/LC_MESSAGES/jabberd14.mo" $$f; \ ++ test -z "$(DESTDIR)$(localedir)/$${f%.po}/LC_MESSAGES" || $(mkdir_p) "$(DESTDIR)$(localedir)/$${f%.po}/LC_MESSAGES"; \ ++ msgfmt -o "$(DESTDIR)$(localedir)/$${f%.po}/LC_MESSAGES/jabberd14.mo" $$f; \ + done diff --git a/net-im/jabberd14/files/digest-jabberd14-1.6.1.1 b/net-im/jabberd14/files/digest-jabberd14-1.6.1.1 new file mode 100644 index 00000000..506985bf --- /dev/null +++ b/net-im/jabberd14/files/digest-jabberd14-1.6.1.1 @@ -0,0 +1,3 @@ +MD5 597c7ee14518ba22b1cee883b4737d87 jabberd14-1.6.1.1.tar.gz 834112 +RMD160 0d3df653b6362f8e580c59ae1b4c9c6467b0bee5 jabberd14-1.6.1.1.tar.gz 834112 +SHA256 8bba7f8e8781a088679bdcf0e46348a29da45de3eec2421f73575c5a6b8ddc31 jabberd14-1.6.1.1.tar.gz 834112 diff --git a/net-im/jabberd14/files/jabberd14-1.6.1.init b/net-im/jabberd14/files/jabberd14-1.6.1.init new file mode 100644 index 00000000..a25ac84f --- /dev/null +++ b/net-im/jabberd14/files/jabberd14-1.6.1.init @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabberd-1.4.4.init,v 1.1 2006/09/27 22:31:36 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 $? + +} diff --git a/net-im/jabberd14/jabberd14-1.6.1.1.ebuild b/net-im/jabberd14/jabberd14-1.6.1.1.ebuild new file mode 100644 index 00000000..7edf469b --- /dev/null +++ b/net-im/jabberd14/jabberd14-1.6.1.1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="Open-source Jabber server" +HOMEPAGE="http://www.jabber.org" +SRC_URI="http://download.jabberd.org/jabberd14/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="debug ipv6 mysql postgres ssl" + +RDEPEND="!net-im/jabberd" + +DEPEND=">=net-im/jabber-base-0.01 + >=dev-libs/pth-1.4.0 + dev-libs/expat + net-dns/libidn + dev-util/pkgconfig + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + ssl? ( >=dev-libs/openssl-0.9.6i )" + +pkg_setup() { + + if use ipv6; then + ewarn "Without full ipv6 support, jabberd will show the error:" + ewarn ' "mio unable to listen"' + ewarn "To fix this, emerge jabberd without the ipv6 USE flag." + fi + +} + +src_unpack() { + unpack "${A}" +} + +src_compile() { + + unset LC_ALL LC_CTYPE + + # Broken configure script - can't use "use_enable" + local myconf= + use debug && myconf="${myconf} --enable-debug --enable-pool-debug" + use ipv6 && myconf="${myconf} --enable-ipv6" + use ssl && myconf="${myconf} --enable-ssl" + + econf \ + --sysconfdir=/etc/jabber \ + --datadir ${D}/usr/share \ + ${myconf} \ + $(use_with mysql) \ + $(use_with postgres postgresql) \ + || die "econf failed" + + # Broken parallel build + emake -j1 || die "emake failed" + +} + +src_install() { + + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/${P}.init jabber || die "newinitd failed" + + # net-im/jabber-base provides needed directories + rm -rf "${D}/var" + mv "${D}/etc/jabber/jabber.xml" "${D}/etc/jabber/jabberd.xml" + mv "${D}/etc/jabber/jabber.xml.dist" "${D}/etc/jabber/jabberd.xml.dist" + + sed -i \ + -e 's,/var/lib/spool/jabberd,/var/spool/jabber,g' \ + -e 's,/var/lib/log/jabberd,/var/log/jabber,g' \ + -e 's,/var/lib/run/jabberd,/var/run/jabber,g' \ + -e 's,jabber.pid,jabberd14.pid,g' \ + "${D}"/etc/jabber/jabberd.xml{,.dist} \ + || die "sed failed" + +} + +pkg_postinst() { + + echo + einfo 'The various IM transports for jabber are now separate packages,' + einfo 'which you will need to install separately if you want them:' + einfo ' net-im/jit - ICQ transport' + einfo ' net-im/pymsn-t - MSN transport' + einfo ' net-im/jud - Jabber User Directory' + einfo ' net-im/yahoo-transport - Yahoo IM system' + einfo ' net-im/mu-conference - Jabber multi user conference' + echo + ewarn 'If upgrading from an older version, please stop jabberd BEFORE' + ewarn 'updating the init.d script, or you will end with a "dead" server.' + echo + ewarn 'The configuration filename has changed:' + ewarn ' Configure your server in /etc/jabber/jabberd.xml' + echo + ebeep + +} |