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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Apr 20 02:36:07 2012 UTC (2 years, 8 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove obsolete versions and obsolete patches.

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

  ViewVC Help
Powered by ViewVC 1.1.20