Changeset - 48c9e1946f95
[Not reviewed]
default
0 4 0
Nathan Brink (binki) - 15 years ago 2010-02-16 13:58:28
ohnobinki@ohnopublishing.net
Add support for installing atheme's anope database conversion module.
4 files changed with 22 insertions and 13 deletions:
0 comments (0 inline, 0 general)
net-irc/anope/ChangeLog
Show inline comments
 
# ChangeLog for net-irc/anope
 
# Copyright 1999-2010 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 $
 

	
 
  16 Feb 2010; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> anope-1.8.0.ebuild:
 
  Add support for installing atheme's anope database conversion module.
 

	
 
  16 Feb 2010; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> -anope-1.8.0_rc1.ebuild:
 
  Drop anope-1.8.0_rc1
 

	
 
*anope-1.8.0 (27 Jun 2009)
 

	
 
  27 Jun 2009; Patrick Lauer <patrick@gentoo.org> +anope-1.8.0.ebuild:
 
  Bump to 1.8.0 final. Fixes #274378
 

	
 
  04 Jan 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
 
  anope-1.8.0_rc1.ebuild:
 
  Add installation sql script
 

	
net-irc/anope/Manifest
Show inline comments
 
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.tar.gz 1559446 RMD160 fc54c552de5bcfc1d3b620c442e4f5a7081734a3 SHA1 0e7106fd65c7dec4187fae26ac1ca6375fe694f1 SHA256 e0c03d2590d3da273e4fb2bb5ec8056f85045979f86e6224bfe895f16a1fd41d
 
EBUILD anope-1.8.0.ebuild 4185 RMD160 1690dc67f9fbae6909642926f1224d7e87be2463 SHA1 acebb0a33a22eddd8940c318e38665ad1a29ee10 SHA256 06ee0673a80a69a13e1025f55159f40dcf5044944661dcac6dda00b596d0ab1d
 
MISC ChangeLog 2338 RMD160 7ed1e3a6a43b93f71836c21f000ac5fcf73027dd SHA1 f00b4e75c493e0a1c8166e7fb1ac3a3e4affe603 SHA256 807745c4ca0fbc51e8a47d8958078d06e6f4201b46ff9b0152a09d09735529d6
 
MISC metadata.xml 322 RMD160 4ac585786fcb58a92771bd8ee9f71f4738e64798 SHA1 133d8c37c5ab6d5366948f3de3e18c5a7a230ed4 SHA256 4240b9effe8d7796234c47e4f4af9ef4250bcfcafa9ec09e4b6a4a503de10b71
 
EBUILD anope-1.8.0.ebuild 4284 RMD160 b0caeea9896e3f3bbdb891e9df00874f641cba0e SHA1 b7015b938d8e5ac5e84fe888a518adfad936ef08 SHA256 497d6d53172a3dbdf313a06d70800a77522402073850b0a651af050cba56db15
 
MISC ChangeLog 2512 RMD160 6f84a8905a5305da72de177e6d363de1ac98fffa SHA1 b6f4dea8590aa0d243989af07aae654a85ca1929 SHA256 64fa7722550962462d3cd5f9374446cecbb4bb0cceeadb9a789542a181ed5363
 
MISC metadata.xml 467 RMD160 4d1ba922dab10abae80273bc1113710cd5c03702 SHA1 789db76ef094d3a024a17274428e736e456ec598 SHA256 3264e2596d73f5b371b1442dfb31892b557ac5fb795d7712ddf2d335d94bbd3e
net-irc/anope/anope-1.8.0.ebuild
Show inline comments
 
# Copyright 1999-2009 Gentoo Foundation
 
# Copyright 1999-2010 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 $
 

	
 
EAPI="2"
 

	
 
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"
 
IUSE="mysql atheme"
 

	
 
DEPEND="mysql? ( virtual/mysql )"
 
DEPEND="atheme? ( >=net-irc/atheme-5.0.1 )
 
	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}"
 
src_prepare() {
 
	epatch "${FILESDIR}"/pid-patch.diff
 

	
 
	epatch "${FILESDIR}"/pid-patch.diff
 
	if use atheme; then
 
		cp /usr/share/doc/atheme*/contrib/anope_convert.c src/modules/ || die
 
	fi
 
}
 

	
 
src_compile() {
 
src_configure() {
 
	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
net-irc/anope/metadata.xml
Show inline comments
 
<?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>
 
	<use>
 
	  <flag name='atheme'>Builds module to convert <pkg>net-irc/anope</pkg> database to an <pkg>net-irc/atheme</pkg> database</flag>
 
	</use>
 
</pkgmetadata>
0 comments (0 inline, 0 general)