# ChangeLog for net-irc/srvx
-# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/srvx/ChangeLog,v 1.3 2004/12/21 00:29:22 swegener Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/srvx/ChangeLog,v 1.4 2005/01/07 08:26:03 swegener Exp $
+
+*srvx-1.3.0.2005_p2 (07 Jan 2005)
+
+ 07 Jan 2005; Sven Wegener <swegener@gentoo.org>
+ +srvx-1.3.0.2005_p2.ebuild:
+ Version bump, bug #76704.
21 Dec 2004; Sven Wegener <swegener@gentoo.org> srvx-1.3_p84.ebuild:
Added additional SRC_URI location.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 f2954f3e5549ab6291205090d71bebe5 srvx-1.3_p84.ebuild 2175
-MD5 2691e18ce2f5e4a5bb667e01d198b54d ChangeLog 665
+MD5 534e5bad8c4d5d002eeea9559490807c srvx-1.3.0.2005_p2.ebuild 2242
+MD5 86efd12908f8341f56207b41e0e2a9ec srvx-1.3_p84.ebuild 2175
+MD5 32158e505c58d186674423b23db94de4 ChangeLog 809
MD5 44c39c6ad372a8e5a5e7ee3311f703a7 metadata.xml 160
MD5 9e5ed894ae56b7b15fe1b8e98397fd07 files/srvx.init.d 551
MD5 2e3a0695e8e8e0b62236aa9e72866b94 files/digest-srvx-1.3_p84 65
+MD5 31bd5ff018e15409e2a79cfe15d0b2cc files/digest-srvx-1.3.0.2005_p2 71
MD5 87389b529c1211f35ea5953858755262 files/srvx.conf.d 282
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.10 (GNU/Linux)
-iD8DBQFBx25rI1lqEGTUzyQRAgdaAJsGtiryHA7IA5nsg3xac2xajsKh9gCfUWw4
-nAV+EtE3vJQ3wkaAKW160LQ=
-=ltFS
+iD8DBQFB3kehI1lqEGTUzyQRAgnqAJ9UJhRqzha5as9VQuHJyNE/LaCXsACgiEsL
+QzJ2IjPBp1AAgnOAlyxQdr4=
+=+s4x
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/srvx/srvx-1.3.0.2005_p2.ebuild,v 1.1 2005/01/07 08:26:03 swegener Exp $
+
+inherit eutils
+
+MY_P=${P/_/-}
+
+DESCRIPTION="A complete set of services for IRCu 2.10.10+ and bahamut based networks"
+HOMEPAGE="http://www.srvx.net/"
+SRC_URI="http://www.blackhole.plus.com/simon/srvx/${MY_P}.tar.bz2
+ http://www.macs.hw.ac.uk/~sa3/pub/srvx/${MY_P}.tar.bz2
+ http://srvx.arlott.org/arch/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="bahamut"
+
+DEPEND=">=sys-devel/automake-1.8
+ >=sys-devel/autoconf-2.59"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ local PROTOCOL="p10"
+ use bahamut && PROTOCOL="bahamut"
+
+ ./autogen.sh || die "autogen.sh failed"
+
+ econf \
+ --with-protocol=$PROTOCOL \
+ --enable-modules=helpserv,memoserv,sockcheck \
+ || die "econf failed"
+ emake all-recursive || die "emake failed"
+}
+
+src_install() {
+ dobin src/srvx || die "dobin failed"
+ dodir /var/lib/srvx || die "dodir failed"
+
+ insinto /etc/srvx
+ newins srvx.conf.example srvx.conf || die "newins failed"
+ newins sockcheck.conf.example sockcheck.conf || die "newins failed"
+ dosym ../../../etc/srvx/srvx.conf /var/lib/srvx/srvx.conf || die "dosym failed"
+ dosym ../../../etc/srvx/sockcheck.conf /var/lib/srvx/sockcheck.conf || die "dosym failed"
+
+ insinto /usr/share/srvx
+ for helpfile in \
+ chanserv.help global.help mod-helpserv.help mod-memoserv.help \
+ mod-sockcheck.help modcmd.help nickserv.help opserv.help \
+ saxdb.help sendmail.help
+ do
+ doins "src/${helpfile}" || die "doins failed"
+ dosym "../../../usr/share/srvx/${helpfile}" "/var/lib/srvx/${helpfile}" || die "dosym failed"
+ done
+
+ dodoc \
+ AUTHORS INSTALL NEWS README TODO srvx.conf.example sockcheck.conf.example \
+ docs/{access-levels,cookies,helpserv,ircd-modes}.txt || die "dodoc failed"
+
+ newinitd ${FILESDIR}/srvx.init.d srvx || die "newinitd failed"
+ newconfd ${FILESDIR}/srvx.conf.d srvx || die "newconfd failed"
+}
+
+pkg_setup() {
+ enewgroup srvx
+ enewuser srvx -1 /bin/false /var/lib/srvx srvx
+}
+
+pkg_postinst() {
+ chown -R srvx:srvx ${ROOT}/etc/srvx ${ROOT}/var/lib/srvx
+ chmod 0700 ${ROOT}/etc/srvx ${ROOT}/var/lib/srvx
+}