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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Nov 8 02:05:35 2011 UTC (2 years, 5 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_alpha6.

(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_alpha6.ebuild,v 1.1 2011/07/27 15:11:36 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.50
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}-destdir-perl.patch
49
50 # fix docdir
51 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
52
53 # basic logging config directive fix
54 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
55
56 # QA against bundled libs
57 rm -rf libmowgli || die
58
59 # Get useful information into build.log
60 sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die
61 }
62
63 src_configure() {
64 econf \
65 --sysconfdir="${EPREFIX}"/etc/${PN} \
66 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
67 --localstatedir="${EPREFIX}"/var \
68 --enable-fhs-paths \
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