diff --git a/net-irc/anope/ChangeLog b/net-irc/anope/ChangeLog new file mode 100644 --- /dev/null +++ b/net-irc/anope/ChangeLog @@ -0,0 +1,70 @@ +# ChangeLog for net-irc/anope +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/ChangeLog,v 1.15 2009/06/27 11:04:34 patrick Exp $ + +*anope-1.8.0 (27 Jun 2009) + + 27 Jun 2009; Patrick Lauer +anope-1.8.0.ebuild: + Bump to 1.8.0 final. Fixes #274378 + + 04 Jan 2009; Bjarke Istrup Pedersen + anope-1.8.0_rc1.ebuild: + Add installation sql script + +*anope-1.8.0_rc1 (14 Dec 2008) + + 14 Dec 2008; Bjarke Istrup Pedersen + files/pid-patch.diff, -anope-1.7.21.ebuild, +anope-1.8.0_rc1.ebuild: + Bumping to 1.8.0_rc1 + + 29 Nov 2008; Thomas Anderson anope-1.7.21.ebuild: + keyworded ~arch for amd64, bug 248624 + +*anope-1.7.21 (24 Mar 2008) + + 24 Mar 2008; Raúl Porcel -anope-1.7.19.ebuild, + -anope-1.7.20.ebuild, +anope-1.7.21.ebuild: + Version bump + +*anope-1.7.20 (08 Jan 2008) + + 08 Jan 2008; Markus Ullmann +anope-1.7.20.ebuild: + Version bump + + 27 Dec 2007; Markus Ullmann anope-1.7.19.ebuild: + Install services.conf as services.conf.example to avoid overwriting + + 25 Oct 2007; Raúl Porcel -anope-1.7.18.ebuild: + old + +*anope-1.7.19 (06 Sep 2007) + + 06 Sep 2007; Markus Ullmann +anope-1.7.19.ebuild: + Version bump + + 21 Apr 2007; Bjarke Istrup Pedersen anope-1.7.18.ebuild: + replacing insinto with newconfd and newinitd functions + + 06 Mar 2007; Luca Barbato anope-1.7.18.ebuild: + do not wipe configuration + +*anope-1.7.18 (20 Feb 2007) + + 20 Feb 2007; Raúl Porcel -anope-1.7.15.ebuild, + -anope-1.7.17.ebuild, +anope-1.7.18.ebuild: + Version bump, drop old + + 23 Nov 2006; Francesco Riosa anope-1.7.15.ebuild, + anope-1.7.17.ebuild: + dev-db/mysql => virtual/mysql + +*anope-1.7.17 (26 Oct 2006) + + 26 Oct 2006; Markus Ullmann +anope-1.7.17.ebuild: + Security version bump + +*anope-1.7.15 (29 Aug 2006) + + 29 Aug 2006; Bjarke Istrup Pedersen : + Initial import. Based on ebuild by Björn Stiddien . + diff --git a/net-irc/anope/Manifest b/net-irc/anope/Manifest new file mode 100644 --- /dev/null +++ b/net-irc/anope/Manifest @@ -0,0 +1,9 @@ +AUX anope.confd 319 RMD160 0c5d646bfa55a17a32b9438c79abae6fce8a3edc SHA1 e19f46901bf4c79d79c8dc55cb84973c9d136730 SHA256 c2a9351942865763e6fdeaa9c37be28efb23f788dc9041439ca80b7d60d1c4f4 +AUX anope.initd 575 RMD160 59f2759c0b3918f4d510c4f5f738dc40e079a511 SHA1 4669ee3d2eec9251b763438e0627f7152b5afc5a SHA256 bf510cb3eb2c9839630f834bc2730c6b4d3da9a7d9a671b02eefefad5f39ed1d +AUX pid-patch.diff 450 RMD160 d18ab894895db105c91d0d1e24af2aff79f1bd13 SHA1 87be4165d15dbc6bfc972972d588e127ab492135 SHA256 cd3f266cd236e6a5bb7d15b502631e8992289455f7e308d94ac14e3b13314dc5 +DIST anope-1.8.0-rc1.tar.gz 1559311 RMD160 da43a7cc3e89a524f6d6aeb5c7725fcedc58cf77 SHA1 ead5a58c3d17345cf0647544f8f7d58720c51658 SHA256 c382504a3e967ec4cb1cac25478017e6edbc3fd801303e85b8f222f847a7601a +DIST anope-1.8.0.tar.gz 1559446 RMD160 fc54c552de5bcfc1d3b620c442e4f5a7081734a3 SHA1 0e7106fd65c7dec4187fae26ac1ca6375fe694f1 SHA256 e0c03d2590d3da273e4fb2bb5ec8056f85045979f86e6224bfe895f16a1fd41d +EBUILD anope-1.8.0.ebuild 4185 RMD160 1690dc67f9fbae6909642926f1224d7e87be2463 SHA1 acebb0a33a22eddd8940c318e38665ad1a29ee10 SHA256 06ee0673a80a69a13e1025f55159f40dcf5044944661dcac6dda00b596d0ab1d +EBUILD anope-1.8.0_rc1.ebuild 4192 RMD160 636b579e6421a13805947cb2f23a2dbecc076cfa SHA1 f52d50753350c01fab728c7065b2b93a72314459 SHA256 26b03a39fb25095274b4c4f74202fffbc52325791109debf24f6bbfc3f7b1df8 +MISC ChangeLog 2208 RMD160 43154cf1166541bceb8f777132d01d0677247406 SHA1 198346a95dc1861c741a2ac8d4fe7c66a3be331d SHA256 32a331de2fdc4246fa90953b38afbcf6ed0bd911b0bb8d4cdf0a9ab1a3735c97 +MISC metadata.xml 322 RMD160 4ac585786fcb58a92771bd8ee9f71f4738e64798 SHA1 133d8c37c5ab6d5366948f3de3e18c5a7a230ed4 SHA256 4240b9effe8d7796234c47e4f4af9ef4250bcfcafa9ec09e4b6a4a503de10b71 diff --git a/net-irc/anope/anope-1.8.0.ebuild b/net-irc/anope/anope-1.8.0.ebuild new file mode 100644 --- /dev/null +++ b/net-irc/anope/anope-1.8.0.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.8.0.ebuild,v 1.1 2009/06/27 11:04:34 patrick Exp $ + +inherit eutils versionator + +MY_PV=$(replace_version_separator 3 '-') +S="${WORKDIR}/${PN}-${MY_PV}" + +DESCRIPTION="Anope IRC Services" +HOMEPAGE="http://www.anope.org" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mysql" + +DEPEND="mysql? ( virtual/mysql )" + +INSTALL_DIR="/opt/anope" + +pkg_setup() { + enewgroup anope + enewuser anope -1 -1 "${INSTALL_DIR}" anope + if has_version net-irc/anope ; then + ewarn + ewarn "Make backups before updating as they will be overwritten" + ewarn + ebeep 10 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/pid-patch.diff +} + +src_compile() { + local myconf + if ! use mysql; then + myconf="${myconf} --without-mysql" + fi + + 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.example + + newinitd "${FILESDIR}"/anope.initd anope + newconfd "${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/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 + + dodoc Changes Changes.conf Changes.lang Changes.mysql docs/* + + use mysql && dodoc data/tables.sql +} + +pkg_preinst() { + if has_version net-irc/anope ; then + elog "Making a backup of your config to data/pre-update" + mkdir "${ROOT}"opt/anope/data/pre-update + cp "${ROOT}"opt/anope/data/* "${ROOT}"opt/anope/data/pre-update + fi +} + +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 + ewarn "!!! ATTENTION !!!" + ewarn "Be sure to read Changes.mysql to update your MySQL" + ewarn "tables or anope will break after restart" + ewarn "!!! ATTENTION !!!" + + if use mysql; then + einfo "The mysql script for updating the tables is located in the" + einfo "/usr/share/doc/${P} directory" + fi +} diff --git a/net-irc/anope/anope-1.8.0_rc1.ebuild b/net-irc/anope/anope-1.8.0_rc1.ebuild new file mode 100644 --- /dev/null +++ b/net-irc/anope/anope-1.8.0_rc1.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.8.0_rc1.ebuild,v 1.2 2009/01/04 21:23:25 gurligebis Exp $ + +inherit eutils versionator + +MY_PV=$(replace_version_separator 3 '-') +S="${WORKDIR}/${PN}-${MY_PV}" + +DESCRIPTION="Anope IRC Services" +HOMEPAGE="http://www.anope.org" +SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="mysql" + +DEPEND="mysql? ( virtual/mysql )" + +INSTALL_DIR="/opt/anope" + +pkg_setup() { + enewgroup anope + enewuser anope -1 -1 "${INSTALL_DIR}" anope + if has_version net-irc/anope ; then + ewarn + ewarn "Make backups before updating as they will be overwritten" + ewarn + ebeep 10 + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/pid-patch.diff +} + +src_compile() { + local myconf + if ! use mysql; then + myconf="${myconf} --without-mysql" + fi + + 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.example + + newinitd "${FILESDIR}"/anope.initd anope + newconfd "${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/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 + + dodoc Changes Changes.conf Changes.lang Changes.mysql docs/* + + use mysql && dodoc data/tables.sql +} + +pkg_preinst() { + if has_version net-irc/anope ; then + elog "Making a backup of your config to data/pre-update" + mkdir "${ROOT}"opt/anope/data/pre-update + cp "${ROOT}"opt/anope/data/* "${ROOT}"opt/anope/data/pre-update + fi +} + +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 + ewarn "!!! ATTENTION !!!" + ewarn "Be sure to read Changes.mysql to update your MySQL" + ewarn "tables or anope will break after restart" + ewarn "!!! ATTENTION !!!" + + if use mysql; then + einfo "The mysql script for updating the tables is located in the" + einfo "/usr/share/doc/${P} directory" + fi +} diff --git a/net-irc/anope/files/anope.confd b/net-irc/anope/files/anope.confd new file mode 100644 --- /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 --- /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/pid-patch.diff b/net-irc/anope/files/pid-patch.diff new file mode 100644 --- /dev/null +++ b/net-irc/anope/files/pid-patch.diff @@ -0,0 +1,11 @@ +--- data/example.conf.orig 2008-12-14 20:37:22.000000000 +0000 ++++ data/example.conf 2008-12-14 20:37:43.000000000 +0000 +@@ -285,7 +285,7 @@ HostServName "HostServ" "vHost Server" + # PIDFile [REQUIRED] + # Specifies the name of the file containing Services' process ID. + +-PIDFile services.pid ++PIDFile /var/run/anope/services.pid + + # MOTDFile [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 --- /dev/null +++ b/net-irc/anope/metadata.xml @@ -0,0 +1,10 @@ + + + + net-irc + + gurligebis@gentoo.org + Bjarke Istrup Pedersen + + Anope IRC Services +