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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 15 08:31:15 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bumps on the 6.0 (LTS) and 7.0 branches.

(Portage version: 2.2.0_alpha105/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-7.0.0.ebuild,v 1.2 2012/05/03 06:27:14 jdhore Exp $
4
5 EAPI=4
6
7 inherit autotools eutils flag-o-matic perl-module
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 broken version detection
46 sed -i -e 's/2.0.0-alpha1/2.0.0/' configure.ac || die
47 eautoconf
48
49 # fix docdir
50 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
51
52 # basic logging config directive fix
53 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
54
55 # Fix a bug with compilation of the perl stuff.
56 epatch "$FILESDIR"/${P}-perl-build-fix.patch
57
58 # QA against bundled libs
59 rm -rf libmowgli-2 || die
60 }
61
62 src_configure() {
63 # perl scriping module support is also broken in 7.0.0. Yay for QA failures.
64 econf \
65 atheme_cv_c_gcc_w_error_implicit_function_declaration=no \
66 --sysconfdir="${EPREFIX}"/etc/${PN} \
67 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
68 --localstatedir="${EPREFIX}"/var \
69 --enable-fhs-paths \
70 --disable-warnings \
71 --enable-contrib \
72 $(use_enable largenet large-net) \
73 $(use_with cracklib) \
74 $(use_with ldap) \
75 $(use_with nls) \
76 $(use_enable profile) \
77 $(use_with pcre) \
78 $(use_with perl) \
79 $(use_enable ssl)
80 }
81
82 src_compile() {
83 emake V=1
84 }
85
86 src_install() {
87 emake DESTDIR="${D}" install
88
89 insinto /etc/${PN}
90 for conf in dist/*.example; do
91 # The .cron file isn't meant to live in /etc/${PN}, so only
92 # install a .example version.
93 [[ ${conf} == *cron* ]] && continue
94
95 newins ${conf} $(basename ${conf} .example)
96 done
97
98 fowners -R 0:${PN} /etc/${PN}
99 keepdir /var/{lib,log}/atheme
100 fowners ${PN}:${PN} /var/{lib,log,run}/atheme
101 fperms -R go-w,o-rx /etc/${PN}
102 fperms 750 /etc/${PN} /var/{lib,log,run}/atheme
103
104 newinitd "${FILESDIR}"/${PN}.initd ${PN}
105 mv "${ED}"/usr/bin/{,atheme-}dbverify || die
106
107 # contributed scripts and such:
108 insinto /usr/share/doc/${PF}/contrib
109 doins contrib/*.{c,pl,php,py,rb}
110
111 if use perl; then
112 perlinfo
113 insinto "${VENDOR_LIB#${EPREFIX}}"
114 doins -r contrib/Atheme{,.pm}
115 fi
116 }

  ViewVC Help
Powered by ViewVC 1.1.20