Changeset - 9f1ad10c0dc0
[Not reviewed]
default
0 2 2
Nathan Brink (binki) - 14 years ago 2011-01-12 01:52:15
ohnobinki@ohnopublishing.net
net-irc/anope: Import anope-1.8.5 from gentoo-x86 for multilib fixing and enhancements.

(Portage version: 2.2.0_alpha11-r1/hg/Linux x86_64, signed Manifest commit with key 6BA81050)
4 files changed with 220 insertions and 2 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
 
# Copyright 1999-2011 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 $
 

	
 
  12 Jan 2011; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
 
  +anope-1.8.5.ebuild, +files/ldflags-fix.patch:
 
  Import anope-1.8.5 from gentoo-x86 for multilib fixing and enhancements.
 

	
 
  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.
net-irc/anope/Manifest
Show inline comments
 
-----BEGIN PGP SIGNED MESSAGE-----
 
Hash: SHA256
 

	
 
AUX anope.confd 319 RMD160 0c5d646bfa55a17a32b9438c79abae6fce8a3edc SHA1 e19f46901bf4c79d79c8dc55cb84973c9d136730 SHA256 c2a9351942865763e6fdeaa9c37be28efb23f788dc9041439ca80b7d60d1c4f4
 
AUX anope.initd 575 RMD160 59f2759c0b3918f4d510c4f5f738dc40e079a511 SHA1 4669ee3d2eec9251b763438e0627f7152b5afc5a SHA256 bf510cb3eb2c9839630f834bc2730c6b4d3da9a7d9a671b02eefefad5f39ed1d
 
AUX ldflags-fix.patch 1352 RMD160 018afc0a5841f69afd8e1d2ac0c041f97f63987a SHA1 254c53a5ac403284c98addca40d64a220f507cdb SHA256 acf219621a644ca3b0d71e6b642d515cd210c4693d602a0569835210588edb0a
 
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
 
DIST anope-1.8.5.tar.gz 1611464 RMD160 4a7b21f4cae233c4630938ebda3a6f437a2fd569 SHA1 3bca790acf50ce07bd53cf57d38fc353e945152f SHA256 a0bf5fc771910b7cc923f55ffe39f0a9cf2f6973675a8f2c021cb4c4ee1fe433
 
EBUILD anope-1.8.0.ebuild 4284 RMD160 b0caeea9896e3f3bbdb891e9df00874f641cba0e SHA1 b7015b938d8e5ac5e84fe888a518adfad936ef08 SHA256 497d6d53172a3dbdf313a06d70800a77522402073850b0a651af050cba56db15
 
MISC ChangeLog 2512 RMD160 6f84a8905a5305da72de177e6d363de1ac98fffa SHA1 b6f4dea8590aa0d243989af07aae654a85ca1929 SHA256 64fa7722550962462d3cd5f9374446cecbb4bb0cceeadb9a789542a181ed5363
 
EBUILD anope-1.8.5.ebuild 4117 RMD160 422d4bfd19a4f40245f047f350bae4c57e62f28a SHA1 eee26c7a4f5073276df6ea701eeef8e85d80064c SHA256 917214be90b4e08b5fcfd63d840699fb881ad76e09028f8278d94713f5ed6c0d
 
MISC ChangeLog 2712 RMD160 da7f9ac56c1e2076642467a893db7fb819f98d9f SHA1 086f370c3e2e7b476c2334b645cbb46d6084f93e SHA256 30222b769b985068d4ba0c436899d8580292a595cc22a41bdc62792b6babca2d
 
MISC metadata.xml 467 RMD160 4d1ba922dab10abae80273bc1113710cd5c03702 SHA1 789db76ef094d3a024a17274428e736e456ec598 SHA256 3264e2596d73f5b371b1442dfb31892b557ac5fb795d7712ddf2d335d94bbd3e
 
-----BEGIN PGP SIGNATURE-----
 
Version: GnuPG v2.0.14 (GNU/Linux)
 

	
 
iQIcBAEBCAAGBQJNLU+eAAoJEHQ6UuhrqBBQsm4QAIdNJdqHECwbXe6Gypo8Gkht
 
hPH+9diJVuXeVscMO7wtAeI0qmVBR2kq8UOpfzTk2Gt0rhuMeY3ruQwq7S2sWKlA
 
doBcV8FnAeaYNBQwHMpWnkf0UIRmIVDpwmI5pHgF9ynu+eVSdzv53JrQt023gvfV
 
E6wlwAMi2YX8x1/lk3APDdD6cY5u97yQpvCHHN/ayMPFyUVag58U7+kzVNONzYlr
 
U+NSo4qDwjIt5ic89FgaAN+WW7zFBMPccfKtSA54nBpDxSO8SWmzBZ3eM21GAufV
 
Prhttlvk4Su69YrDRasWg2V67ZN7OkURineo4eeYbzDTXhycjNEuZew9brf7PsZp
 
qztplez4rwdGktHHVv+fwgSRWznZ0SYkrqiJyHT8X8IlVZcSmp8wbbn9QOf3L0i2
 
JEFd3Ib5NpS+cgTG/b/pXdv/ntgTqyz73J3FERlSY3FbQ4P7Qg6619d98cwYivQV
 
d3Xwpa229Fzrul3AzMZQvdYwGs5yedc++5FP1HQjlkKRP1L7k8L0fcp+JQlCk7F3
 
txAnagYcQaauH04yNAmB0w4Odc4eq85VlqSnUW0koFeaxGFtAdlsYmqVyaWrsHLd
 
Qbp75BM5TVD87Zx0iuXVpeXvfM6mZGonlgtpSHTbnpU3s3EUXAuhFSORJx+N1O2h
 
bbVEYqxeMDnsZHAcVcDe
 
=Q+qV
 
-----END PGP SIGNATURE-----
net-irc/anope/anope-1.8.5.ebuild
Show inline comments
 
new file 100644
 
# Copyright 1999-2011 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/net-irc/anope/anope-1.8.5.ebuild,v 1.1 2010/10/10 18:07:36 gurligebis 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"
 

	
 
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_prepare() {
 
	epatch "${FILESDIR}/pid-patch.diff"
 
	epatch "${FILESDIR}/ldflags-fix.patch"
 
}
 

	
 
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"
 
}
 

	
 
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 /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
 

	
 
	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}/data/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
 
}
net-irc/anope/files/ldflags-fix.patch
Show inline comments
 
new file 100644
 
diff -aurp a/src/core/Makefile b/src/core/Makefile
 
--- a/src/core/Makefile	2010-10-10 19:55:31.396999906 +0000
 
+++ b/src/core/Makefile	2010-10-10 19:53:54.877001245 +0000
 
@@ -24,7 +24,7 @@ distclean: spotless
 
 	$(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../${INCLUDEDIR} -c $<
 
 
 
 .o.s:
 
-	$(CC) ${SHARED} ../mod_version.o $< -o $*.so ${PROFILE}
 
+	$(CC) ${LDFLAGS} ${SHARED} ../mod_version.o $< -o $*.so ${PROFILE}
 
 	@$(TOUCH) $*.s
 
 
 
 subs:
 
diff -aurp a/src/modules/Makefile b/src/modules/Makefile
 
--- a/src/modules/Makefile	2010-10-10 19:55:32.486000023 +0000
 
+++ b/src/modules/Makefile	2010-10-10 19:54:07.240000026 +0000
 
@@ -27,7 +27,7 @@ distclean: spotless
 
 	$(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../${INCLUDEDIR} -c $<
 
 
 
 .o.s:
 
-	$(CC) ${SHARED} ../mod_version.o $< -o $*.so  ${PROFILE}
 
+	$(CC) ${LDFLAGS} ${SHARED} ../mod_version.o $< -o $*.so  ${PROFILE}
 
 	@$(TOUCH) $*.s
 
 
 
 subs:
 
diff -aurp a/src/protocol/Makefile b/src/protocol/Makefile
 
--- a/src/protocol/Makefile	2010-10-10 19:55:33.605002302 +0000
 
+++ b/src/protocol/Makefile	2010-10-10 19:54:19.271997806 +0000
 
@@ -24,7 +24,7 @@ distclean: clean spotless
 
 	$(CC) ${CFLAGS} ${CDEFS} ${MODULEFLAGS} -I../${INCLUDEDIR} -c $<
 
 
 
 .o.s:
 
-	$(CC) ${SHARED} ../mod_version.o  $< -o $*.so ${PROFILE}
 
+	$(CC) ${LDFLAGS} ${SHARED} ../mod_version.o  $< -o $*.so ${PROFILE}
 
 	@$(TOUCH) $*.s
 
 
 
 subs:
0 comments (0 inline, 0 general)