summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2005-04-28 21:29:12 +0000
committerWolfram Schlich <wschlich@gentoo.org>2005-04-28 21:29:12 +0000
commitfb3c031947e3dba114df39ad983646891b6b690a (patch)
tree384dbeaa8619fab5ce816a900fcdbfbb93a6334f /net-im/jabberd
parentStable on sparc (diff)
downloadgentoo-2-fb3c031947e3dba114df39ad983646891b6b690a.tar.gz
gentoo-2-fb3c031947e3dba114df39ad983646891b6b690a.tar.bz2
gentoo-2-fb3c031947e3dba114df39ad983646891b6b690a.zip
add jabberd2 specific self-cert.sh
(Portage version: 2.0.51-r14)
Diffstat (limited to 'net-im/jabberd')
-rw-r--r--net-im/jabberd/ChangeLog13
-rw-r--r--net-im/jabberd/Manifest27
-rw-r--r--net-im/jabberd/files/digest-jabberd-2.0.81
-rwxr-xr-xnet-im/jabberd/files/self-cert.jabberd-2.sh25
-rw-r--r--net-im/jabberd/jabberd-2.0.8.ebuild118
5 files changed, 171 insertions, 13 deletions
diff --git a/net-im/jabberd/ChangeLog b/net-im/jabberd/ChangeLog
index 61b8ba3fa01f..c455ad565ac4 100644
--- a/net-im/jabberd/ChangeLog
+++ b/net-im/jabberd/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for net-im/jabberd
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.50 2005/04/02 18:07:06 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.51 2005/04/28 21:29:12 wschlich Exp $
+
+*jabberd-2.0.8 (28 Apr 2005)
+
+ 28 Apr 2005; Wolfram Schlich <wschlich@gentoo.org>
+ +files/self-cert.jabberd-2.sh, +jabberd-2.0.8.ebuild:
+ add jabberd2 specific self-cert.sh
+
+*jabberd-2.0.8 (28 Apr 2005)
+
+ 28 Apr 2005; Wolfram Schlich <wschlich@gentoo.org> +jabberd-2.0.8.ebuild:
+ initial import
02 Apr 2005; Jason Wever <weeve@gentoo.org> jabberd-1.4.3-r4.ebuild:
Stable on SPARC.
diff --git a/net-im/jabberd/Manifest b/net-im/jabberd/Manifest
index c669c7b125d0..ff031c6b791c 100644
--- a/net-im/jabberd/Manifest
+++ b/net-im/jabberd/Manifest
@@ -1,22 +1,25 @@
-MD5 862d7a9d257ce81b66c0c3643ce39846 ChangeLog 8023
+MD5 1de04ab5d7e18332a5d73790aadf336f jabberd-1.4.3-r4.ebuild 5813
+MD5 0ed94433bdf7d5430f69536761fd73d5 jabberd-2.0.8.ebuild 3452
MD5 f81b4c2b73367e5bed25722aa45e2533 jabberd-2.0-r2.ebuild 4965
MD5 073710b6dd1869d3930f8f2e857341e8 metadata.xml 411
-MD5 1de04ab5d7e18332a5d73790aadf336f jabberd-1.4.3-r4.ebuild 5813
+MD5 227022eb557cbb5aae1c667b7d4e80ae ChangeLog 8324
MD5 786349de4f04c6c1a5a16f2cae544e3b jabberd-2.0_p20050119.ebuild 3525
-MD5 1a325b6068e591bc222376a7d70f6e17 files/README.Gentoo 984
+MD5 3a5219d7870e60f5b16d6aefb1c63a0e files/jabber-conf.d 525
MD5 0d59ca6b46e061b4b1d1673fce93487f files/digest-jabberd-2.0-r2 65
-MD5 264b9719c0773f480ee42d8a61c34d0a files/digest-jabberd-1.4.3-r4 201
-MD5 8d4ca5fb6338d837674ab33c8f969273 files/jabber.rc6-r5 874
-MD5 6912454f1d1d480cbb711f715292e3cc files/jabber.rc6-r6 953
-MD5 5aeafd17644a405b363de0ea1eb22d8b files/multiple-xml-patch-00 5934
-MD5 73c38af347fdcf7d7cb6dd3490344bfa files/multiple.xml 15387
MD5 6ec1c588cf732d89e8bc7b5864842ab9 files/self-cert.sh 494
+MD5 1d08c47f5fe30ced5227f28bac65f6fd files/self-cert.jabberd-2.sh 688
+MD5 5aeafd17644a405b363de0ea1eb22d8b files/multiple-xml-patch-00 5934
MD5 92ba69168d2fb8c1384e8e13e03dcbc2 files/xdb-ldap.xml 985
-MD5 3a5219d7870e60f5b16d6aefb1c63a0e files/jabber-conf.d 525
+MD5 241fdbe6af83f9f39f14becf5e051ba2 files/digest-jabberd-2.0_p20050119 74
+MD5 8d4ca5fb6338d837674ab33c8f969273 files/jabber.rc6-r5 874
+MD5 73c38af347fdcf7d7cb6dd3490344bfa files/multiple.xml 15387
+MD5 1a325b6068e591bc222376a7d70f6e17 files/README.Gentoo 984
+MD5 3d8c2953acd251416c2fdb9a721b9e52 files/jabber.init.bundled 626
MD5 4ea516e4527dd2de19281709704238ee files/jabber.rc6-r7 1842
+MD5 264b9719c0773f480ee42d8a61c34d0a files/digest-jabberd-1.4.3-r4 201
MD5 0067018951674e703063f0f4337c5a2c files/multiple-xml-patch-01 303
-MD5 a8408aaabc3453cfd3cbe3df1a65f67e files/xml-stream-patch-00 726
MD5 40ed7d521eda61aa9f67390099e5b693 files/patch-c2s-buffers 12112
-MD5 241fdbe6af83f9f39f14becf5e051ba2 files/digest-jabberd-2.0_p20050119 74
-MD5 3d8c2953acd251416c2fdb9a721b9e52 files/jabber.init.bundled 626
+MD5 a8408aaabc3453cfd3cbe3df1a65f67e files/xml-stream-patch-00 726
+MD5 d8d135b77fd2ec99c355191b584e600a files/digest-jabberd-2.0.8 65
MD5 1813a30dabb60fa0a15ee3ed3aaad28d files/jabber.init.gentoo 2118
+MD5 6912454f1d1d480cbb711f715292e3cc files/jabber.rc6-r6 953
diff --git a/net-im/jabberd/files/digest-jabberd-2.0.8 b/net-im/jabberd/files/digest-jabberd-2.0.8
new file mode 100644
index 000000000000..f3bef4a18c1c
--- /dev/null
+++ b/net-im/jabberd/files/digest-jabberd-2.0.8
@@ -0,0 +1 @@
+MD5 96753c5e74676ace0841a4cee9f13fdb jabberd-2.0s8.tar.gz 757149
diff --git a/net-im/jabberd/files/self-cert.jabberd-2.sh b/net-im/jabberd/files/self-cert.jabberd-2.sh
new file mode 100755
index 000000000000..1183eeb85c45
--- /dev/null
+++ b/net-im/jabberd/files/self-cert.jabberd-2.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+######
+#
+# Generate a certificate and key with no passphrase.
+#
+######
+
+OPENSSL=/usr/bin/openssl
+
+## Remove existing temporary private key
+test -f /tmp/privkey.pem && rm -f /tmp/privkey.pem
+## Remove existing private key
+test -f /etc/jabberd/gentoo.pem && rm -f /etc/jabberd/gentoo.pem
+## This generates the cert and key
+$OPENSSL req -new -x509 -newkey rsa:2048 -keyout /tmp/privkey.pem -out /etc/jabberd/gentoo.pem
+## This will remove the passphrase
+$OPENSSL rsa -in /tmp/privkey.pem -out /tmp/privkey.pem
+## Put it all together
+cat /tmp/privkey.pem >> /etc/jabberd/gentoo.pem
+## Cleanup
+rm -f /tmp/privkey.pem
+echo ""
+echo "Your new key is /etc/jabberd/gentoo.pem"
+echo ""
diff --git a/net-im/jabberd/jabberd-2.0.8.ebuild b/net-im/jabberd/jabberd-2.0.8.ebuild
new file mode 100644
index 000000000000..5bf73ea7965c
--- /dev/null
+++ b/net-im/jabberd/jabberd-2.0.8.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/jabberd-2.0.8.ebuild,v 1.1 2005/04/28 21:29:12 wschlich Exp $
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Open Source Jabber Server"
+HOMEPAGE="http://jabberd.jabberstudio.org/2/"
+MY_P="${PN}-2.0s8"
+SRC_URI="http://files.jabberstudio.org/jabberd2/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+SLOT="1"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE="debug ldap ipv6 mysql postgres pam berkdb ssl"
+
+DEPEND="!net-im/jabber-server
+ >=dev-libs/openssl-0.9.6i
+ >=net-dns/libidn-0.3.5
+ ldap? ( >=net-nds/openldap-2.1 )
+ berkdb? ( >=sys-libs/db-4.1.25 )
+ mysql? ( dev-db/mysql )
+ postgres? ( dev-db/postgresql )"
+
+pkg_setup() {
+ if ! use postgres && ! use mysql && ! use berkdb; then
+ eerror
+ eerror "For this version of jabberd you must have"
+ eerror "at least one of 'mysql', 'postgres' and/or 'berkdb'"
+ eerror "in the USE variable in /etc/make.conf."
+ eerror
+ die "Look at the error message above."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+}
+
+src_compile() {
+ local myopts="--enable-fs"
+ use berkdb >&/dev/null && myopts="${myopts} --enable-db"
+ use mysql >&/dev/null && myopts="${myopts} --enable-mysql" || myopts="${myopts} --disable-mysql"
+ use postgres >&/dev/null && myopts="${myopts} --enable-pgsql"
+ use pam >&/dev/null && myopts="${myopts} --enable-pam"
+ use ldap >&/dev/null && myopts="${myopts} --enable-ldap"
+ use ipv6 >&/dev/null && myopts="${myopts} --enable-ipv6"
+
+ use debug && {
+ append-flags -O -ggdb -DDEBUG
+ RESTRICT="${RESTRICT} nostrip"
+ myopts="${myopts} --enable-debug"
+ }
+
+ econf ${myopts} || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+# DON'T USE EINSTALL HERE! it breaks the Makefile's sysconfdir!
+# einstall || die "make install failed"
+ make DESTDIR=${D} install || die "make install failed"
+
+ ## add user and group
+ enewgroup jabber
+ enewuser jabber -1 /bin/false /var/jabberd jabber
+
+ ## set binary permissions
+ fowners :jabber /usr/bin/{jabberd,router,resolver,sm,c2s,s2s}
+ fperms o= /usr/bin/{jabberd,router,resolver,sm,c2s,s2s}
+
+ ## jabberd working directory
+ dodir /var/jabberd{,/{db,log,pid}}
+ fowners jabber:jabber /var/jabberd{,/{db,log,pid}}
+ for i in router resolver sm c2s s2s; do
+ for j in log pid; do
+ touch ${D}/var/jabberd/${j}/${i}.${j}
+ fowners jabber:jabber /var/jabberd/${j}/${i}.${j}
+ done
+ done
+
+ #ä jabberd config & init script
+ exeinto /etc/init.d; newexe ${FILESDIR}/jabber.init.bundled jabber
+# exeinto /etc/init.d; newexe ${FILESDIR}/jabber.init.gentoo jabber
+ exeinto /etc/jabberd; newexe ${FILESDIR}/self-cert.jabberd-2.sh self-cert.sh
+ # directories
+ fowners jabber:jabber /etc/jabberd{,/templates}
+ fperms 770 /etc/jabberd{,/templates}
+ # ssl script
+ fowners jabber:jabber /etc/jabberd/self-cert.sh
+ fperms 770 /etc/jabberd/self-cert.sh
+ # config files
+ for i in jabberd.cfg {router,router-users,resolver,sm,c2s,s2s,templates/roster}.xml; do
+ fowners jabber:jabber /etc/jabberd/${i}{,.dist}
+ fperms 660 /etc/jabberd/${i}{,.dist}
+ done
+
+ ## documentation
+ dodoc AUTHORS PROTOCOL README
+ docinto tools
+ for i in db-setup.{mysql,pgsql} migrate.pl pipe-auth.pl; do
+ dodoc tools/${i}
+ done
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Change 'localhost' to your server's domainname in the"
+ einfo "/etc/jabberd/*.xml configs first"
+ einfo "Server admins should be added to the "jabber" group"
+ if use ssl; then
+ einfo
+ einfo "To enable SSL connections, execute /etc/jabberd/self-cert.sh"
+ fi
+ einfo
+}