diff options
author | Sven Wegener <swegener@gentoo.org> | 2004-08-14 21:38:26 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2004-08-14 21:38:26 +0000 |
commit | aa89e58193d59ded20f475a15ed2d0d9f950c12c (patch) | |
tree | f0cd409ea1e49f12e9ed25e1b0703942232373eb /net-irc/ircservices | |
parent | Fix it properly this time 8) (Manifest recommit) (diff) | |
download | gentoo-2-aa89e58193d59ded20f475a15ed2d0d9f950c12c.tar.gz gentoo-2-aa89e58193d59ded20f475a15ed2d0d9f950c12c.tar.bz2 gentoo-2-aa89e58193d59ded20f475a15ed2d0d9f950c12c.zip |
Initial import, ebuild written by me.
Diffstat (limited to 'net-irc/ircservices')
-rw-r--r-- | net-irc/ircservices/ChangeLog | 11 | ||||
-rw-r--r-- | net-irc/ircservices/Manifest | 3 | ||||
-rw-r--r-- | net-irc/ircservices/files/5.0.37-fPIC.patch | 23 | ||||
-rw-r--r-- | net-irc/ircservices/files/digest-ircservices-5.0.37 | 1 | ||||
-rw-r--r-- | net-irc/ircservices/files/ircservices.init.d | 25 | ||||
-rw-r--r-- | net-irc/ircservices/ircservices-5.0.37.ebuild | 85 | ||||
-rw-r--r-- | net-irc/ircservices/metadata.xml | 5 |
7 files changed, 153 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..7c86c6ebe977 --- /dev/null +++ b/net-irc/ircservices/Manifest @@ -0,0 +1,3 @@ +MD5 0c3e4057d437c320f9270c42fbc4991c ircservices-5.0.37.ebuild 2280 +MD5 c891b332d6d323281a6b4ddca13577a1 files/ircservices.init.d 639 +MD5 96e095ebc3d215946583a75e1e3bef1c files/digest-ircservices-5.0.37 71 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> |