/[gentoo-x86]/net-irc/atheme-services/atheme-services-6.0.9-r1.ebuild
Gentoo

Contents of /net-irc/atheme-services/atheme-services-6.0.9-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Mar 21 09:24:12 2012 UTC (2 years, 4 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old, vulnerable version (see security bug 409103)

(Portage version: 2.2.0_alpha93/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/atheme-services-6.0.9-r1.ebuild,v 1.5 2012/03/18 15:22:19 armin76 Exp $
4
5 EAPI=4
6
7 inherit autotools eutils flag-o-matic perl-module prefix
8
9 DESCRIPTION="A portable and secure set of open-source and modular IRC services"
10 HOMEPAGE="http://atheme.net/"
11 SRC_URI="http://atheme.net/downloads/${P}.tar.bz2"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 x86 ~x86-fbsd ~amd64-linux"
16 IUSE="cracklib largenet ldap nls +pcre perl profile ssl"
17
18 RDEPEND="dev-libs/libmowgli:0
19 cracklib? ( sys-libs/cracklib )
20 ldap? ( net-nds/openldap )
21 nls? ( sys-devel/gettext )
22 pcre? ( dev-libs/libpcre )
23 ssl? ( dev-libs/openssl )"
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig"
26
27 pkg_setup() {
28 # the dependency calculation puts all of the .c files together and
29 # overwhelms cc1 with this flag :-(
30 filter-flags -combine
31
32 if use profile; then
33 # bug #371119
34 ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag."
35 ewarn "Disabling PIE. Please ignore any warning messages about -nopie being invalid."
36 append-flags -nopie
37 fi
38
39 enewgroup ${PN}
40 enewuser ${PN} -1 -1 /var/lib/atheme ${PN}
41 }
42
43 src_prepare() {
44 epatch "${FILESDIR}"/${PN}-6.0.8-configure-disable.patch
45 epatch "${FILESDIR}"/${P}-cracklib-automagic.patch
46 eautoconf
47
48 # fix docdir
49 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
50
51 # basic logging config directive fix
52 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
53
54 # QA against bundled libs
55 rm -rf libmowgli || die
56
57 # Get useful information into build.log
58 sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die
59 }
60
61 src_configure() {
62 econf \
63 --sysconfdir="${EPREFIX}"/etc/${PN} \
64 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
65 --localstatedir="${EPREFIX}"/var \
66 --enable-fhs-paths \
67 --enable-contrib \
68 $(use_enable largenet large-net) \
69 $(use_with cracklib) \
70 $(use_with ldap) \
71 $(use_with nls) \
72 $(use_enable profile) \
73 $(use_with pcre) \
74 $(use_enable ssl)
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install
79
80 insinto /etc/${PN}
81 for conf in dist/*.example; do
82 # The .cron file isn't meant to live in /etc/${PN}, so only
83 # install a .example version.
84 [[ ${conf} == *cron* ]] && continue
85
86 newins ${conf} $(basename ${conf} .example)
87 done
88
89 fowners -R 0:${PN} /etc/${PN}
90 keepdir /var/{lib,log}/atheme
91 fowners ${PN}:${PN} /var/{lib,log,run}/atheme
92 fperms -R go-w,o-rx /etc/${PN}
93 fperms 750 /etc/${PN} /var/{lib,log,run}/atheme
94
95 newinitd "${FILESDIR}"/${PN}.initd ${PN}
96
97 # contributed scripts and such:
98 insinto /usr/share/doc/${PF}/contrib
99 doins contrib/*.{c,pl,php,py,rb}
100
101 if use perl; then
102 perlinfo
103 insinto "${VENDOR_LIB#${EPREFIX}}"
104 doins -r contrib/Atheme{,.pm}
105 fi
106 }

  ViewVC Help
Powered by ViewVC 1.1.20