diff options
author | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2006-08-29 22:54:17 +0000 |
---|---|---|
committer | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2006-08-29 22:54:17 +0000 |
commit | bcffa8d18b629f551009c8f17be4538c78810b4f (patch) | |
tree | 9fc74e0d3c9e3f5e4fe57303444375130c9b7b14 /net-irc/anope | |
parent | Remove PCRE support through external lib, it's broken (see http://bugs.php.ne... (diff) | |
download | gentoo-2-bcffa8d18b629f551009c8f17be4538c78810b4f.tar.gz gentoo-2-bcffa8d18b629f551009c8f17be4538c78810b4f.tar.bz2 gentoo-2-bcffa8d18b629f551009c8f17be4538c78810b4f.zip |
Initial import of Anope IRC Services
(Portage version: 2.1.1_rc1-r1)
Diffstat (limited to 'net-irc/anope')
-rw-r--r-- | net-irc/anope/ChangeLog | 9 | ||||
-rw-r--r-- | net-irc/anope/Manifest | 28 | ||||
-rw-r--r-- | net-irc/anope/anope-1.7.15.ebuild | 131 | ||||
-rw-r--r-- | net-irc/anope/files/anope.confd | 9 | ||||
-rw-r--r-- | net-irc/anope/files/anope.initd | 21 | ||||
-rw-r--r-- | net-irc/anope/files/digest-anope-1.7.15 | 3 | ||||
-rw-r--r-- | net-irc/anope/files/pid-patch.diff | 12 | ||||
-rw-r--r-- | net-irc/anope/metadata.xml | 10 |
8 files changed, 223 insertions, 0 deletions
diff --git a/net-irc/anope/ChangeLog b/net-irc/anope/ChangeLog new file mode 100644 index 000000000000..a38f0774bbc6 --- /dev/null +++ b/net-irc/anope/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-irc/anope +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/ChangeLog,v 1.1 2006/08/29 22:54:17 gurligebis Exp $ + +*anope-1.7.15 (29 Aug 2006) + + 29 Aug 2006; Bjarke Istrup Pedersen <gurligebis@gentoo.org> : + Initial import. Based on ebuild by Björn Stiddien <keeper@anope.org>. + diff --git a/net-irc/anope/Manifest b/net-irc/anope/Manifest new file mode 100644 index 000000000000..358b96f50799 --- /dev/null +++ b/net-irc/anope/Manifest @@ -0,0 +1,28 @@ +AUX anope.confd 222 RMD160 929eb97d53c9d0c7199905a2dd79a85def5cfd62 SHA1 6b62bf4fdbe0139b1ce301cad1b880e8858bebb2 SHA256 d5fc0ba541623811158384a34221deb2c8c6bf6bdcab408f15420affd57d3777 +MD5 74e1af42ceb5f1d3d1180f5fd8d781b9 files/anope.confd 222 +RMD160 929eb97d53c9d0c7199905a2dd79a85def5cfd62 files/anope.confd 222 +SHA256 d5fc0ba541623811158384a34221deb2c8c6bf6bdcab408f15420affd57d3777 files/anope.confd 222 +AUX anope.initd 478 RMD160 420a4b884eb8cf8eba0632be9aa25b46ef980e21 SHA1 6dc063e05cd0711494c3a7c2615afab9db72b09c SHA256 788601b3be4c446bfd4e6b81231006e9df44179fab0c6b0e226561f83cee5207 +MD5 086bea448940ae36a9d1b42380ffc5b2 files/anope.initd 478 +RMD160 420a4b884eb8cf8eba0632be9aa25b46ef980e21 files/anope.initd 478 +SHA256 788601b3be4c446bfd4e6b81231006e9df44179fab0c6b0e226561f83cee5207 files/anope.initd 478 +AUX pid-patch.diff 492 RMD160 071e05bc217b2d1a4831c5860ed39b7ca6ab7a49 SHA1 11fe8a79cf613901e8c0b68887865c1fd32f20b5 SHA256 690dc373594038b65de846e77364d377355a040ca543f332154eb90926111001 +MD5 816cd1c87c345e401fd160e09c3977d0 files/pid-patch.diff 492 +RMD160 071e05bc217b2d1a4831c5860ed39b7ca6ab7a49 files/pid-patch.diff 492 +SHA256 690dc373594038b65de846e77364d377355a040ca543f332154eb90926111001 files/pid-patch.diff 492 +DIST anope-1.7.15.tar.gz 1463100 RMD160 1a1e87abc272b0b891ab2bfc84d78e39d22b3c78 SHA1 2878e31a27e7d88b13c1d0644a3bba641d7a59ee SHA256 356ef9aaa719639c11a9395bc6e2379f26a1b05be55a2f31eb9df287526782b5 +EBUILD anope-1.7.15.ebuild 3369 RMD160 6789afc4d0e4056810ce29d4a9c092d768933285 SHA1 c6d5cb8f8b525e74e8c9c5f49a9ad93525144087 SHA256 ba89d1a35c7b8bee47420bc11893c70acffe2fade3f7331692f5cbdbf5a24e47 +MD5 1c231903dc553ebf1bd8dc38202cc50a anope-1.7.15.ebuild 3369 +RMD160 6789afc4d0e4056810ce29d4a9c092d768933285 anope-1.7.15.ebuild 3369 +SHA256 ba89d1a35c7b8bee47420bc11893c70acffe2fade3f7331692f5cbdbf5a24e47 anope-1.7.15.ebuild 3369 +MISC ChangeLog 282 RMD160 3dd1a7624d7ff21e7456b9dcc004e47b40da29fc SHA1 21e708c5335f5f0f301b9a84c9a53a876965d124 SHA256 6c69801727ccc4737d72a9bdf84ce0e0dd34bbc1863fff21b3804c370e0e13ee +MD5 566fdcc529b4589734295d2ac582941b ChangeLog 282 +RMD160 3dd1a7624d7ff21e7456b9dcc004e47b40da29fc ChangeLog 282 +SHA256 6c69801727ccc4737d72a9bdf84ce0e0dd34bbc1863fff21b3804c370e0e13ee ChangeLog 282 +MISC metadata.xml 322 RMD160 4ac585786fcb58a92771bd8ee9f71f4738e64798 SHA1 133d8c37c5ab6d5366948f3de3e18c5a7a230ed4 SHA256 4240b9effe8d7796234c47e4f4af9ef4250bcfcafa9ec09e4b6a4a503de10b71 +MD5 8a4fabb29aaec1667591f41ccf2703c2 metadata.xml 322 +RMD160 4ac585786fcb58a92771bd8ee9f71f4738e64798 metadata.xml 322 +SHA256 4240b9effe8d7796234c47e4f4af9ef4250bcfcafa9ec09e4b6a4a503de10b71 metadata.xml 322 +MD5 7f483c2ab49d5ac964b497c16a1da56c files/digest-anope-1.7.15 241 +RMD160 1578bfe013cf6a0438238002777e3b81632fd7b6 files/digest-anope-1.7.15 241 +SHA256 8a17067efdbc68b4a41dc2af1b0548375eb3fffd9055cf1bcc62f3cb07f215db files/digest-anope-1.7.15 241 diff --git a/net-irc/anope/anope-1.7.15.ebuild b/net-irc/anope/anope-1.7.15.ebuild new file mode 100644 index 000000000000..b3a0b6bf2403 --- /dev/null +++ b/net-irc/anope/anope-1.7.15.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.7.15.ebuild,v 1.1 2006/08/29 22:54:17 gurligebis Exp $ + +inherit eutils + +DESCRIPTION="Anope IRC Services" +HOMEPAGE="http://www.anope.org" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="mysql" + +DEPEND="mysql? ( dev-db/mysql )" + +INSTALL_DIR="/opt/anope" + +pkg_setup() { + enewgroup anope + enewuser anope -1 -1 ${INSTALL_DIR} anope +} + +src_compile() { + local myconf + if ! use mysql; then + myconf="${myconf} --without-mysql" + fi + #Threads cant be disabled currently + #if ! use threads; then + # myconf="${myconf} --without-threads" + #fi + + epatch ${FILESDIR}/pid-patch.diff + + econf \ + ${myconf} \ + --bindir ${INSTALL_DIR} \ + --with-bindir=${INSTALL_DIR} \ + --with-datadir=${INSTALL_DIR}/data \ + --with-modules=${INSTALL_DIR}/modules \ + --with-encryption \ + --with-rungroup=anope \ + --with-permissions=077 \ + || die "Configuration failed." + + sed -i -e "/^build:/s:$: language:g" "${S}"/Makefile || die "sed failed" + + emake || die "Make failed." +} + +src_install() { + dodir ${INSTALL_DIR} + dodir ${INSTALL_DIR}/data + dodir ${INSTALL_DIR}/data/logs + dodir ${INSTALL_DIR}/data/languages + dodir ${INSTALL_DIR}/data/modules + dodir ${INSTALL_DIR}/data/modules/runtime + dodir ${INSTALL_DIR}/modules + + dodir /var/run/anope + fowners anope:anope /var/run/anope + keepdir /var/run/anope + + fowners anope:anope ${INSTALL_DIR} + fowners anope:anope ${INSTALL_DIR}/data + fowners anope:anope ${INSTALL_DIR}/data/logs + fowners anope:anope ${INSTALL_DIR}/data/languages + fowners anope:anope ${INSTALL_DIR}/data/modules + fowners anope:anope ${INSTALL_DIR}/data/modules/runtime + fowners anope:anope ${INSTALL_DIR}/modules + + exeinto ${INSTALL_DIR} + doexe src/services + insinto ${INSTALL_DIR}/data + newins data/example.conf services.conf + + exeinto /etc/init.d + newexe ${FILESDIR}/anope.initd anope + insinto /etc/conf.d + newins ${FILESDIR}/anope.confd anope + + insinto ${INSTALL_DIR}/modules + doins src/modules/*.so + + keepdir ${INSTALL_DIR}/data/logs + + insinto ${INSTALL_DIR}/data/languages + doins lang/cat + doins lang/de + doins lang/en_us + doins lang/es + doins lang/fr + doins lang/gr + doins lang/hun + doins lang/it + doins lang/nl + doins lang/pl + doins lang/pt + doins lang/ru + doins lang/tr + + keepdir ${INSTALL_DIR}/data/modules/runtime + + insinto ${INSTALL_DIR}/data/modules + doins src/protocol/*.so + doins src/core/*.so + + fowners anope:anope ${INSTALL_DIR}/services + fowners anope:anope ${INSTALL_DIR}/data/services.conf + fowners anope:anope ${INSTALL_DIR}/data/languages/cat + fowners anope:anope ${INSTALL_DIR}/data/languages/de + fowners anope:anope ${INSTALL_DIR}/data/languages/en_us + fowners anope:anope ${INSTALL_DIR}/data/languages/fr + fowners anope:anope ${INSTALL_DIR}/data/languages/gr + fowners anope:anope ${INSTALL_DIR}/data/languages/hun + fowners anope:anope ${INSTALL_DIR}/data/languages/it + fowners anope:anope ${INSTALL_DIR}/data/languages/nl + fowners anope:anope ${INSTALL_DIR}/data/languages/pl + fowners anope:anope ${INSTALL_DIR}/data/languages/pt + fowners anope:anope ${INSTALL_DIR}/data/languages/ru + fowners anope:anope ${INSTALL_DIR}/data/languages/tr +} + +pkg_postinst() { + echo + ewarn "Anope won't run out of the box, you still have to configure it to match your IRCDs configuration." + ewarn "Edit ${INSTALL_DIR}/data/services.conf to configure Anope." + echo +} diff --git a/net-irc/anope/files/anope.confd b/net-irc/anope/files/anope.confd new file mode 100644 index 000000000000..6985da7a52b0 --- /dev/null +++ b/net-irc/anope/files/anope.confd @@ -0,0 +1,9 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/files/anope.confd,v 1.1 2006/08/29 22:54:17 gurligebis Exp $ + +# user to run ultimate-ircd as +ANOPE_USER="anope" + +# Additional commandline parameters +ANOPE_OPTS="" diff --git a/net-irc/anope/files/anope.initd b/net-irc/anope/files/anope.initd new file mode 100644 index 000000000000..69eadfe4cf4c --- /dev/null +++ b/net-irc/anope/files/anope.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/files/anope.initd,v 1.1 2006/08/29 22:54:17 gurligebis Exp $ + +depend() { + use net mysql +} + +start() { + ebegin "Starting Anope IRC Services" + start-stop-daemon --start --quiet --oknodo --exec /opt/anope/services \ + --chuid ${ANOPE_USER} -- ${ANOPE_OPTS} #&>/dev/null + eend $? +} + +stop() { + ebegin "Stopping Anope IRC Services" + start-stop-daemon --stop --pidfile /var/run/anope/services.pid + eend $? +} diff --git a/net-irc/anope/files/digest-anope-1.7.15 b/net-irc/anope/files/digest-anope-1.7.15 new file mode 100644 index 000000000000..e514bac90a36 --- /dev/null +++ b/net-irc/anope/files/digest-anope-1.7.15 @@ -0,0 +1,3 @@ +MD5 a41d5420a70b443201d42e4db9d0d07e anope-1.7.15.tar.gz 1463100 +RMD160 1a1e87abc272b0b891ab2bfc84d78e39d22b3c78 anope-1.7.15.tar.gz 1463100 +SHA256 356ef9aaa719639c11a9395bc6e2379f26a1b05be55a2f31eb9df287526782b5 anope-1.7.15.tar.gz 1463100 diff --git a/net-irc/anope/files/pid-patch.diff b/net-irc/anope/files/pid-patch.diff new file mode 100644 index 000000000000..3e859a10cf74 --- /dev/null +++ b/net-irc/anope/files/pid-patch.diff @@ -0,0 +1,12 @@ +diff -aurp data/example.conf data/example.conf +--- data/example.conf 2006-08-29 22:07:50.000000000 +0000 ++++ data/example.conf 2006-08-29 22:08:11.000000000 +0000 +@@ -255,7 +255,7 @@ HostServName "HostServ" "vHost Server" + # PIDFile <filename> [REQUIRED] + # Specifies the name of the file containing Services' process ID. + +-PIDFile services.pid ++PIDFile /var/run/anope/services.pid + + # MOTDFile <filename> [REQUIRED] + # Specifies the name of the Message of the Day file. diff --git a/net-irc/anope/metadata.xml b/net-irc/anope/metadata.xml new file mode 100644 index 000000000000..cb97448005b3 --- /dev/null +++ b/net-irc/anope/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>net-irc</herd> + <maintainer> + <email>gurligebis@gentoo.org</email> + <name>Bjarke Istrup Pedersen</name> + </maintainer> + <longdescription>Anope IRC Services</longdescription> +</pkgmetadata> |