Portage is a package management system used by Gentoo Linux
# ChangeLog for net-irc/anope
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/ChangeLog,v 1.11 2008/03/24 17:10:18 armin76 Exp $
*anope-1.7.21 (24 Mar 2008)
24 Mar 2008; Raúl Porcel
-anope-1.7.20.ebuild, +anope-1.7.21.ebuild:
Version bump
*anope-1.7.20 (08 Jan 2008)
08 Jan 2008; Markus Ullmann
Version bump
27 Dec 2007; Markus Ullmann
Install services.conf as services.conf.example to avoid overwriting
25 Oct 2007; Raúl Porcel
old
*anope-1.7.19 (06 Sep 2007)
06 Sep 2007; Markus Ullmann
Version bump
21 Apr 2007; Bjarke Istrup Pedersen
replacing insinto with newconfd and newinitd functions
06 Mar 2007; Luca Barbato
do not wipe configuration
*anope-1.7.18 (20 Feb 2007)
20 Feb 2007; Raúl Porcel
-anope-1.7.17.ebuild, +anope-1.7.18.ebuild:
Version bump, drop old
23 Nov 2006; Francesco Riosa
anope-1.7.17.ebuild:
dev-db/mysql => virtual/mysql
*anope-1.7.17 (26 Oct 2006)
26 Oct 2006; Markus Ullmann
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
AUX anope.confd 319 RMD160 0c5d646bfa55a17a32b9438c79abae6fce8a3edc SHA1 e19f46901bf4c79d79c8dc55cb84973c9d136730 SHA256 c2a9351942865763e6fdeaa9c37be28efb23f788dc9041439ca80b7d60d1c4f4
AUX anope.initd 575 RMD160 59f2759c0b3918f4d510c4f5f738dc40e079a511 SHA1 4669ee3d2eec9251b763438e0627f7152b5afc5a SHA256 bf510cb3eb2c9839630f834bc2730c6b4d3da9a7d9a671b02eefefad5f39ed1d
AUX pid-patch.diff 492 RMD160 071e05bc217b2d1a4831c5860ed39b7ca6ab7a49 SHA1 11fe8a79cf613901e8c0b68887865c1fd32f20b5 SHA256 690dc373594038b65de846e77364d377355a040ca543f332154eb90926111001
DIST anope-1.7.21.tar.gz 1523615 RMD160 ac2b22d60e6be2e7ea02e933fc005c5b3b206180 SHA1 1a8c845fcfd6351a4225fc8e38bb6e90f5201a4b SHA256 70109f8474efbda908ce9ee3ce94252d407669c4da8082688b103310c736aec0
EBUILD anope-1.7.21.ebuild 3927 RMD160 5844a03309a9f1a284b8acd60f13a1b6f6e0fcef SHA1 b9403f50a55430b20848a785bb57bd0c060cc78b SHA256 2de910b075f69de8b797718f84a9b84c5444ba16ddaa3803baf7c1a09ce75cc3
MISC ChangeLog 1645 RMD160 9401221aaa8aeea1eef3236fdf75a6059a14baa9 SHA1 8b08803c1f651f6a8189667b22acad5e1142df3a SHA256 1307e9d449e377e14a0036bd088e577c1d2cb741b2f2f3cecc86648bc93b2fee
MISC metadata.xml 322 RMD160 4ac585786fcb58a92771bd8ee9f71f4738e64798 SHA1 133d8c37c5ab6d5366948f3de3e18c5a7a230ed4 SHA256 4240b9effe8d7796234c47e4f4af9ef4250bcfcafa9ec09e4b6a4a503de10b71
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.7.21.ebuild,v 1.1 2008/03/24 17:10:18 armin76 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? ( 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_compile() {
local myconf
if ! use mysql; then
myconf="${myconf} --without-mysql"
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.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/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
dodoc Changes Changes.conf Changes.lang Changes.mysql docs/*
}
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 !!!"
}