summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-08-14 21:38:26 +0000
committerSven Wegener <swegener@gentoo.org>2004-08-14 21:38:26 +0000
commita1b296cd8ffa109d17e9bb0b630d74f024348999 (patch)
tree6ae6c93aba89f23a0527d3edd0be66276295d8cb /net-irc
parentFix it properly this time 8) (diff)
downloadhistorical-a1b296cd8ffa109d17e9bb0b630d74f024348999.tar.gz
historical-a1b296cd8ffa109d17e9bb0b630d74f024348999.tar.bz2
historical-a1b296cd8ffa109d17e9bb0b630d74f024348999.zip
Initial import, ebuild written by me.
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/ircservices/ChangeLog11
-rw-r--r--net-irc/ircservices/Manifest16
-rw-r--r--net-irc/ircservices/files/5.0.37-fPIC.patch23
-rw-r--r--net-irc/ircservices/files/digest-ircservices-5.0.371
-rw-r--r--net-irc/ircservices/files/ircservices.init.d25
-rw-r--r--net-irc/ircservices/ircservices-5.0.37.ebuild85
-rw-r--r--net-irc/ircservices/metadata.xml5
7 files changed, 166 insertions, 0 deletions
diff --git a/net-irc/ircservices/ChangeLog b/net-irc/ircservices/ChangeLog
new file mode 100644
index 000000000000..bbcf9ad732b9
--- /dev/null
+++ b/net-irc/ircservices/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-irc/ircservices
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ChangeLog,v 1.1 2004/08/14 21:38:26 swegener Exp $
+
+*ircservices-5.0.37 (14 Aug 2004)
+
+ 14 Aug 2004; Sven Wegener <swegener@gentoo.org> +metadata.xml,
+ +files/5.0.37-fPIC.patch, +files/ircservices.init.d,
+ +ircservices-5.0.37.ebuild:
+ Initial import, ebuild written by me.
+
diff --git a/net-irc/ircservices/Manifest b/net-irc/ircservices/Manifest
new file mode 100644
index 000000000000..e10dc85cc5b7
--- /dev/null
+++ b/net-irc/ircservices/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 fa0bab16bd0af9f3003c611787c22219 ircservices-5.0.37.ebuild 2293
+MD5 44c39c6ad372a8e5a5e7ee3311f703a7 metadata.xml 160
+MD5 acc8ddcd32a1920462cbb4ee186a0b68 ChangeLog 439
+MD5 2d85b81045710c9c4ff5aa6a791bd793 files/ircservices.init.d 602
+MD5 96e095ebc3d215946583a75e1e3bef1c files/digest-ircservices-5.0.37 71
+MD5 0dc39b8e38a74a2fca213bf4e2f63d3e files/5.0.37-fPIC.patch 1172
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.4 (GNU/Linux)
+
+iD8DBQFBHoahI1lqEGTUzyQRAid4AKCQPrpy3025+E/CN+yAGUDKmGJIowCgrbC2
+tWtHKxV9Woj1BJ+UBJw0VCM=
+=I4dv
+-----END PGP SIGNATURE-----
diff --git a/net-irc/ircservices/files/5.0.37-fPIC.patch b/net-irc/ircservices/files/5.0.37-fPIC.patch
new file mode 100644
index 000000000000..9e201fce1105
--- /dev/null
+++ b/net-irc/ircservices/files/5.0.37-fPIC.patch
@@ -0,0 +1,23 @@
+--- ircservices-5.0.37/modules/Makerules 2004-08-14 22:59:07.290105488 +0200
++++ ircservices-5.0.37-fPIC/modules/Makerules 2004-08-14 22:59:30.496577568 +0200
+@@ -164,7 +164,7 @@
+ $(TARGET).o: .compiled-$(TARGET).o FRC
+ @echo >/dev/null
+ .compiled-$(TARGET).o: $(TARGET).c $(DEPS) $(INCLUDES2)
+- cd $(TOPDIR) && $(CC) $(CFLAGS) -I. -c modules/$(DIRNAME)/$< -o modules/$(DIRNAME)/$(TARGET).o
++ cd $(TOPDIR) && $(CC) $(CFLAGS) -fPIC -I. -c modules/$(DIRNAME)/$< -o modules/$(DIRNAME)/$(TARGET).o
+ @rm -f $@
+ @ln -s $(TARGET).o $@
+
+--- ircservices-5.0.37/modules/protocol/Makefile 2004-08-14 23:05:00.399424712 +0200
++++ ircservices-5.0.37-fPIC/modules/protocol/Makefile 2004-08-14 23:05:09.366061576 +0200
+@@ -72,7 +72,7 @@
+ ###########################################################################
+
+ sjoin-bahamut.o: sjoin.c $(DEPS) $(INCLUDES-sjoin.o)
+- $(CC) $(CFLAGS) -DBAHAMUT_HACK -I$(TOPDIR) -c sjoin.c -o $@
++ $(CC) $(CFLAGS) -fPIC -DBAHAMUT_HACK -I$(TOPDIR) -c sjoin.c -o $@
+
+ sjoin-unreal.o: sjoin.c $(DEPS) $(INCLUDES-sjoin.o)
+- $(CC) $(CFLAGS) -DUNREAL_HACK -I$(TOPDIR) -c sjoin.c -o $@
++ $(CC) $(CFLAGS) -fPIC -DUNREAL_HACK -I$(TOPDIR) -c sjoin.c -o $@
diff --git a/net-irc/ircservices/files/digest-ircservices-5.0.37 b/net-irc/ircservices/files/digest-ircservices-5.0.37
new file mode 100644
index 000000000000..d02ebaccb52d
--- /dev/null
+++ b/net-irc/ircservices/files/digest-ircservices-5.0.37
@@ -0,0 +1 @@
+MD5 a653dfb1b80e8cc71ced042686656983 ircservices-5.0.37.tar.gz 1090985
diff --git a/net-irc/ircservices/files/ircservices.init.d b/net-irc/ircservices/files/ircservices.init.d
new file mode 100644
index 000000000000..5e19f2a7f27f
--- /dev/null
+++ b/net-irc/ircservices/files/ircservices.init.d
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.1 2004/08/14 21:38:26 swegener Exp $
+
+depend() {
+ need net
+ use ircd
+}
+
+start() {
+ ebegin "Starting IRC Services"
+ /usr/bin/ircservices \
+ -dir=/var/lib/ircservices \
+ -log=/var/log/ircservices/ircservices.log \
+ &>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping IRC Services"
+ kill <$(/var/lib/ircservices/ircservices.pid)
+ eend $?
+ rm -f /var/lib/ircservices/ircservices.pid
+}
diff --git a/net-irc/ircservices/ircservices-5.0.37.ebuild b/net-irc/ircservices/ircservices-5.0.37.ebuild
new file mode 100644
index 000000000000..bdff3780b6cb
--- /dev/null
+++ b/net-irc/ircservices/ircservices-5.0.37.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/ircservices-5.0.37.ebuild,v 1.1 2004/08/14 21:38:26 swegener Exp $
+
+inherit eutils fixheadtails flag-o-matic
+
+DESCRIPTION="ChanServ, NickServ & MemoServ with support for several IRC daemons"
+HOMEPAGE="http://www.ircservices.za.net/"
+SRC_URI="ftp://ftp.esper.net/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+
+# configure fails with -O higher than 2
+replace-flags -O? -O2
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${PV}-fPIC.patch
+
+ ht_fix_file configure
+}
+
+src_compile() {
+ ./configure \
+ -cflags "${CFLAGS}" \
+ -bindest /usr/bin \
+ -datdest /var/lib/ircservices \
+ || die "./configure failed"
+ emake -j1 || die "make failed"
+}
+
+src_install() {
+ dodir \
+ /usr/bin \
+ /{etc,{usr,var}/lib,usr/share}/ircservices
+ keepdir /var/log/ircservices
+ fperms 700 /{etc,var/lib}/ircservices
+
+ make \
+ BINDEST=${D}/usr/bin \
+ DATDEST=${D}/var/lib/ircservices \
+ install \
+ || die "make install failed"
+
+ mv ${D}/var/lib/ircservices/convert-db \
+ ${D}/usr/bin/ircservices-convert-db
+
+ # Now we move some files around to make it FHS conform
+ mv ${D}/var/lib/ircservices/example-ircservices.conf \
+ ${D}/etc/ircservices/ircservices.conf
+ dosym /etc/ircservices/ircservices.conf \
+ /var/lib/ircservices/ircservices.conf
+
+ mv ${D}/var/lib/ircservices/example-modules.conf \
+ ${D}/etc/ircservices/modules.conf
+ dosym /etc/ircservices/modules.conf /var/lib/ircservices/modules.conf
+
+ mv ${D}/var/lib/ircservices/modules ${D}/usr/lib/ircservices
+ dosym /usr/lib/ircservices/modules /var/lib/ircservices/modules
+
+ mv ${D}/var/lib/ircservices/{helpfiles,languages}
+ ${D}/usr/share/ircservices
+ dosym /usr/share/ircservices/helpfiles /var/lib/ircservices/helpfiles
+ dosym /usr/share/ircservices/languages /var/lib/ircservices/languages
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/ircservices.init.d ircservices
+
+ doman docs/ircservices.8
+ newman docs/convert-db.8 ircservices-convert-db.8
+ dohtml docs/*.html
+ dodoc KnownBugs Changes README TODO WhatsNew
+}
+
+pkg_postinst() {
+ enewuser ircservices
+ chown ircservices ${ROOT}/var/lib/ircservices
+ chown -R ircservices ${ROOT}/etc/ircservices
+}
diff --git a/net-irc/ircservices/metadata.xml b/net-irc/ircservices/metadata.xml
new file mode 100644
index 000000000000..6ef15e900f17
--- /dev/null
+++ b/net-irc/ircservices/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>