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

Contents of /net-irc/atheme-services/atheme-services-6.0.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 22 03:22:12 2011 UTC (3 years ago) by binki
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Use --pidfile and --user in the initscript, recommended by the_mgt/ich.

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

  ViewVC Help
Powered by ViewVC 1.1.20