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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 15 21:24:48 2011 UTC (2 years, 9 months ago) by binki
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop old atheme-services-7.0.0_alpha8.

(Portage version: 2.2.0_alpha78-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_alpha8.ebuild,v 1.1 2011/10/30 22:49:10 binki Exp $
4
5 EAPI=4
6
7 inherit 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 ~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 # fix docdir
49 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
50
51 # basic logging config directive fix
52 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
53
54 # QA against bundled libs
55 rm -rf libmowgli libmowgli-2 || die
56
57 # Get useful information into build.log
58 sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die
59 }
60
61 src_configure() {
62 econf \
63 atheme_cv_c_gcc_w_error_implicit_function_declaration=no \
64 --sysconfdir="${EPREFIX}"/etc/${PN} \
65 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
66 --localstatedir="${EPREFIX}"/var \
67 --enable-fhs-paths \
68 --disable-warnings \
69 --enable-contrib \
70 $(use_enable largenet large-net) \
71 $(use_with ldap) \
72 $(use_with nls) \
73 $(use_enable profile) \
74 $(use_with perl) \
75 $(use_with pcre) \
76 $(use_enable ssl)
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
99 # contributed scripts and such:
100 insinto /usr/share/doc/${PF}/contrib
101 doins contrib/*.{c,pl,php,py,rb}
102
103 if use perl; then
104 perlinfo
105 insinto "${VENDOR_LIB#${EPREFIX}}"
106 doins -r contrib/Atheme{,.pm}
107 fi
108 }

  ViewVC Help
Powered by ViewVC 1.1.20