diff options
author | Jeff Horelick <jdhore@gentoo.org> | 2012-03-21 08:16:55 +0000 |
---|---|---|
committer | Jeff Horelick <jdhore@gentoo.org> | 2012-03-21 08:16:55 +0000 |
commit | c326bfe10e943f35193a722055ca752158b8976d (patch) | |
tree | a8426281570171143bf7c778b8f34a5e7c321777 /net-irc/atheme-services | |
parent | Make it easier to pass an explicit index for the interface. (diff) | |
download | gentoo-2-c326bfe10e943f35193a722055ca752158b8976d.tar.gz gentoo-2-c326bfe10e943f35193a722055ca752158b8976d.tar.bz2 gentoo-2-c326bfe10e943f35193a722055ca752158b8976d.zip |
Version bump, fixes ASA-2012-03-01
(Portage version: 2.2.0_alpha93/cvs/Linux i686)
Diffstat (limited to 'net-irc/atheme-services')
-rw-r--r-- | net-irc/atheme-services/ChangeLog | 7 | ||||
-rw-r--r-- | net-irc/atheme-services/atheme-services-6.0.10.ebuild | 105 |
2 files changed, 111 insertions, 1 deletions
diff --git a/net-irc/atheme-services/ChangeLog b/net-irc/atheme-services/ChangeLog index 2a8e2472db73..e465e2d3292c 100644 --- a/net-irc/atheme-services/ChangeLog +++ b/net-irc/atheme-services/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-irc/atheme-services # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v 1.35 2012/03/18 15:22:19 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v 1.36 2012/03/21 08:16:55 jdhore Exp $ + +*atheme-services-6.0.10 (21 Mar 2012) + + 21 Mar 2012; Jeff Horelick <jdhore@gentoo.org> +atheme-services-6.0.10.ebuild: + Version bump, fixes ASA-2012-03-01 18 Mar 2012; Raúl Porcel <armin76@gentoo.org> atheme-services-6.0.9-r1.ebuild, atheme-services-7.0.0_alpha9.ebuild, diff --git a/net-irc/atheme-services/atheme-services-6.0.10.ebuild b/net-irc/atheme-services/atheme-services-6.0.10.ebuild new file mode 100644 index 000000000000..698f9266ba4d --- /dev/null +++ b/net-irc/atheme-services/atheme-services-6.0.10.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/atheme-services-6.0.10.ebuild,v 1.1 2012/03/21 08:16:55 jdhore Exp $ + +EAPI=4 + +inherit autotools eutils flag-o-matic perl-module prefix + +DESCRIPTION="A portable and secure set of open-source and modular IRC services" +HOMEPAGE="http://atheme.net/" +SRC_URI="http://atheme.net/downloads/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux" +IUSE="cracklib largenet ldap nls +pcre perl profile ssl" + +RDEPEND="dev-libs/libmowgli:0 + cracklib? ( sys-libs/cracklib ) + ldap? ( net-nds/openldap ) + nls? ( sys-devel/gettext ) + pcre? ( dev-libs/libpcre ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +pkg_setup() { + # the dependency calculation puts all of the .c files together and + # overwhelms cc1 with this flag :-( + filter-flags -combine + + if use profile; then + # bug #371119 + ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag." + ewarn "Disabling PIE. Please ignore any warning messages about -nopie being invalid." + append-flags -nopie + fi + + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/atheme ${PN} +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-6.0.8-configure-disable.patch + eautoconf + + # fix docdir + sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die + + # basic logging config directive fix + sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die + + # QA against bundled libs + rm -rf libmowgli || die + + # Get useful information into build.log + sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die +} + +src_configure() { + econf \ + --sysconfdir="${EPREFIX}"/etc/${PN} \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --localstatedir="${EPREFIX}"/var \ + --enable-fhs-paths \ + --enable-contrib \ + $(use_enable largenet large-net) \ + $(use_with cracklib) \ + $(use_with ldap) \ + $(use_with nls) \ + $(use_enable profile) \ + $(use_with pcre) \ + $(use_enable ssl) +} + +src_install() { + emake DESTDIR="${D}" install + + insinto /etc/${PN} + for conf in dist/*.example; do + # The .cron file isn't meant to live in /etc/${PN}, so only + # install a .example version. + [[ ${conf} == *cron* ]] && continue + + newins ${conf} $(basename ${conf} .example) + done + + fowners -R 0:${PN} /etc/${PN} + keepdir /var/{lib,log}/atheme + fowners ${PN}:${PN} /var/{lib,log,run}/atheme + fperms -R go-w,o-rx /etc/${PN} + fperms 750 /etc/${PN} /var/{lib,log,run}/atheme + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + + # contributed scripts and such: + insinto /usr/share/doc/${PF}/contrib + doins contrib/*.{c,pl,php,py,rb} + + if use perl; then + perlinfo + insinto "${VENDOR_LIB#${EPREFIX}}" + doins -r contrib/Atheme{,.pm} + fi +} |