summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-12-16 01:16:32 +0000
committerSven Wegener <swegener@gentoo.org>2004-12-16 01:16:32 +0000
commit97969a1248f06fac26f11f14fadf2be486ef0b7d (patch)
tree0ad541bd5c0f0ae1de81da6585c2c8e7a14a8f72 /net-irc
parentNew version, for gdesklets-core-0.32 (Manifest recommit) (diff)
downloadgentoo-2-97969a1248f06fac26f11f14fadf2be486ef0b7d.tar.gz
gentoo-2-97969a1248f06fac26f11f14fadf2be486ef0b7d.tar.bz2
gentoo-2-97969a1248f06fac26f11f14fadf2be486ef0b7d.zip
Initial import. Closes bug #18700.
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/srvx/ChangeLog10
-rw-r--r--net-irc/srvx/Manifest4
-rw-r--r--net-irc/srvx/files/digest-srvx-1.3_p811
-rw-r--r--net-irc/srvx/files/srvx.conf.d7
-rw-r--r--net-irc/srvx/files/srvx.init.d21
-rw-r--r--net-irc/srvx/metadata.xml5
-rw-r--r--net-irc/srvx/srvx-1.3_p81.ebuild70
7 files changed, 118 insertions, 0 deletions
diff --git a/net-irc/srvx/ChangeLog b/net-irc/srvx/ChangeLog
new file mode 100644
index 000000000000..0dc55af2793c
--- /dev/null
+++ b/net-irc/srvx/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2004/12/16 01:16:32 swegener Exp $
+
+*srvx-1.3_p81 (16 Dec 2004)
+
+ 16 Dec 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml,
+ +files/srvx.conf.d, +files/srvx.init.d, +srvx-1.3_p81.ebuild:
+ Initial import. Closes bug #18700.
+
diff --git a/net-irc/srvx/Manifest b/net-irc/srvx/Manifest
new file mode 100644
index 000000000000..6e98951767d0
--- /dev/null
+++ b/net-irc/srvx/Manifest
@@ -0,0 +1,4 @@
+MD5 7736e83c68b551c9d41b3e074b06061d srvx-1.3_p81.ebuild 1607
+MD5 0d582b44bab205a00d62c782262f4ae9 files/srvx.conf.d 258
+MD5 de211fe696c2a2dbecfb4da5a78d1868 files/srvx.init.d 463
+MD5 5f7549515b6dc034cf12895a20d7214f files/digest-srvx-1.3_p81 65
diff --git a/net-irc/srvx/files/digest-srvx-1.3_p81 b/net-irc/srvx/files/digest-srvx-1.3_p81
new file mode 100644
index 000000000000..f63e7fd82238
--- /dev/null
+++ b/net-irc/srvx/files/digest-srvx-1.3_p81
@@ -0,0 +1 @@
+MD5 083bfc302e16dd8d884c53f9388d35ee srvx-1.3-p81.tar.bz2 470913
diff --git a/net-irc/srvx/files/srvx.conf.d b/net-irc/srvx/files/srvx.conf.d
new file mode 100644
index 000000000000..86e4968b6634
--- /dev/null
+++ b/net-irc/srvx/files/srvx.conf.d
@@ -0,0 +1,7 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/srvx/files/srvx.conf.d,v 1.1 2004/12/16 01:16:32 swegener Exp $
+
+# user and group to run srvx as
+SRVX_USER="srvx"
+SRVX_GROUP="srvx"
diff --git a/net-irc/srvx/files/srvx.init.d b/net-irc/srvx/files/srvx.init.d
new file mode 100644
index 000000000000..d267536e3467
--- /dev/null
+++ b/net-irc/srvx/files/srvx.init.d
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/srvx/files/srvx.init.d,v 1.1 2004/12/16 01:16:32 swegener Exp $
+
+depend() {
+ use dns net
+}
+
+start() {
+ ebegin "Starting srvx"
+ start-stop-daemon --start --chdir /var/lib/srvx --quiet \
+ --exec /usr/bin/srvx --chuid ${SRVX_USER}:${SRVX_GROUP} &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Shutting down srvx"
+ start-stop-daemon --stop --quiet --pidfile /var/lib/srvx/srvx.pid
+ eend $?
+}
diff --git a/net-irc/srvx/metadata.xml b/net-irc/srvx/metadata.xml
new file mode 100644
index 000000000000..6ef15e900f17
--- /dev/null
+++ b/net-irc/srvx/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-irc</herd>
+</pkgmetadata>
diff --git a/net-irc/srvx/srvx-1.3_p81.ebuild b/net-irc/srvx/srvx-1.3_p81.ebuild
new file mode 100644
index 000000000000..9f0c7328b200
--- /dev/null
+++ b/net-irc/srvx/srvx-1.3_p81.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/srvx/srvx-1.3_p81.ebuild,v 1.1 2004/12/16 01:16:32 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://srvx.arlott.org/arch/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="bahamut"
+
+DEPEND="=sys-devel/automake-1.9*
+ =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 -j1 || 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 nickserv.help opserv.help \
+ modcmd.help saxdb.help sendmail.help mod-helpserv.help \
+ mod-memoserv.help mod-sockcheck.help
+ do
+ doins "${helpfile}" || die "doins failed"
+ dosym "../../../usr/share/srvx/${helpfile}" "/var/lib/srvx/${helpfile}" || die "dosym failed"
+ done
+
+ dodoc AUTHORS FAQ INSTALL NEWS README TODO || 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 /etc/srvx srvx
+}
+
+pkg_postinst() {
+ chown -R srvx:srvx ${ROOT}/etc/srvx ${ROOT}/var/lib/srvx
+}