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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Oct 20 15:24:12 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Version bump on 7.0 branch

(Portage version: 2.2.0_alpha141/cvs/Linux i686, signed Manifest commit with key 23E9E900)

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-7.0.4.ebuild,v 1.1 2012/07/12 21:36:20 jdhore Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic perl-module user
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-2.0.0:2
19 cracklib? ( sys-libs/cracklib )
20 ldap? ( net-nds/openldap )
21 nls? ( sys-devel/gettext )
22 perl? ( dev-lang/perl )
23 pcre? ( dev-libs/libpcre )
24 ssl? ( dev-libs/openssl )"
25 DEPEND="${RDEPEND}
26 virtual/pkgconfig"
27
28 pkg_setup() {
29 # the dependency calculation puts all of the .c files together and
30 # overwhelms cc1 with this flag :-(
31 filter-flags -combine
32
33 if use profile; then
34 # bug #371119
35 ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag."
36 ewarn "Disabling PIE. Please ignore any warning messages about -nopie being invalid."
37 append-flags -nopie
38 fi
39
40 enewgroup ${PN}
41 enewuser ${PN} -1 -1 /var/lib/atheme ${PN}
42 }
43
44 src_prepare() {
45 # fix docdir
46 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
47
48 # basic logging config directive fix
49 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
50
51 # QA against bundled libs
52 rm -rf libmowgli-2 || die
53 }
54
55 src_configure() {
56 # perl scriping module support is also broken in 7.0.0. Yay for QA failures.
57 econf \
58 atheme_cv_c_gcc_w_error_implicit_function_declaration=no \
59 --sysconfdir="${EPREFIX}"/etc/${PN} \
60 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
61 --localstatedir="${EPREFIX}"/var \
62 --enable-fhs-paths \
63 --disable-warnings \
64 --enable-contrib \
65 $(use_enable largenet large-net) \
66 $(use_with cracklib) \
67 $(use_with ldap) \
68 $(use_with nls) \
69 $(use_enable profile) \
70 $(use_with pcre) \
71 $(use_with perl) \
72 $(use_enable ssl)
73 }
74
75 src_compile() {
76 emake V=1
77 }
78
79 src_install() {
80 emake DESTDIR="${D}" install
81
82 insinto /etc/${PN}
83 for conf in dist/*.example; do
84 # The .cron file isn't meant to live in /etc/${PN}, so only
85 # install a .example version.
86 [[ ${conf} == *cron* ]] && continue
87
88 newins ${conf} $(basename ${conf} .example)
89 done
90
91 fowners -R 0:${PN} /etc/${PN}
92 keepdir /var/{lib,log}/atheme
93 fowners ${PN}:${PN} /var/{lib,log,run}/atheme
94 fperms -R go-w,o-rx /etc/${PN}
95 fperms 750 /etc/${PN} /var/{lib,log,run}/atheme
96
97 newinitd "${FILESDIR}"/${PN}.initd ${PN}
98 mv "${ED}"/usr/bin/{,atheme-}dbverify || die
99
100 # contributed scripts and such:
101 insinto /usr/share/doc/${PF}/contrib
102 doins contrib/*.{c,pl,php,py,rb}
103
104 if use perl; then
105 perlinfo
106 insinto "${VENDOR_LIB#${EPREFIX}}"
107 doins -r contrib/Atheme{,.pm}
108 fi
109 }

  ViewVC Help
Powered by ViewVC 1.1.20