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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Feb 21 02:00:14 2012 UTC (2 years, 6 months ago) by binki
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Drop old atheme-services-6.0.9 in favor of atheme-services-6.0.9-r1.

(Portage version: 2.2.0_alpha84-r1/cvs/Linux x86_64)

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.ebuild,v 1.5 2012/02/03 01:24:17 binki Exp $
4
5 EAPI=4
6
7 inherit 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 ~sparc x86 ~x86-fbsd ~amd64-linux"
16 IUSE="largenet ldap nls +pcre perl profile ssl"
17
18 RDEPEND="dev-libs/libmowgli:0
19 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
46 # fix docdir
47 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
48
49 # basic logging config directive fix
50 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
51
52 # QA against bundled libs
53 rm -rf libmowgli || die
54
55 # Get useful information into build.log
56 sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die
57 }
58
59 src_configure() {
60 econf \
61 --sysconfdir="${EPREFIX}"/etc/${PN} \
62 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
63 --localstatedir="${EPREFIX}"/var \
64 --enable-fhs-paths \
65 --enable-contrib \
66 $(use_enable largenet large-net) \
67 $(use_with ldap) \
68 $(use_with nls) \
69 $(use_enable profile) \
70 $(use_with pcre) \
71 $(use_enable ssl)
72 }
73
74 src_install() {
75 emake DESTDIR="${D}" install
76
77 insinto /etc/${PN}
78 for conf in dist/*.example; do
79 # The .cron file isn't meant to live in /etc/${PN}, so only
80 # install a .example version.
81 [[ ${conf} == *cron* ]] && continue
82
83 newins ${conf} $(basename ${conf} .example)
84 done
85
86 fowners -R 0:${PN} /etc/${PN}
87 keepdir /var/{lib,log}/atheme
88 fowners ${PN}:${PN} /var/{lib,log,run}/atheme
89 fperms -R go-w,o-rx /etc/${PN}
90 fperms 750 /etc/${PN} /var/{lib,log,run}/atheme
91
92 newinitd "${FILESDIR}"/${PN}.initd ${PN}
93
94 # contributed scripts and such:
95 insinto /usr/share/doc/${PF}/contrib
96 doins contrib/*.{c,pl,php,py,rb}
97
98 if use perl; then
99 perlinfo
100 insinto "${VENDOR_LIB#${EPREFIX}}"
101 doins -r contrib/Atheme{,.pm}
102 fi
103 }

  ViewVC Help
Powered by ViewVC 1.1.20