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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Nov 8 02:51:39 2011 UTC (2 years, 5 months ago) by binki
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Drop old atheme-services-7.0.0_alpha7.

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

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

  ViewVC Help
Powered by ViewVC 1.1.20