Gentoo Archives: gentoo-commits

From: "Nathan Phillip Brink (binki)" <binki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/atheme-services: atheme-services-7.0.0_alpha6.ebuild ChangeLog
Date: Wed, 27 Jul 2011 15:11:46
Message-Id: 20110727151137.0198E2004B@flycatcher.gentoo.org
1 binki 11/07/27 15:11:36
2
3 Modified: ChangeLog
4 Added: atheme-services-7.0.0_alpha6.ebuild
5 Log:
6 Bump to atheme-7.0.0_alpha6 which has perl scripting support.
7
8 (Portage version: 2.2.0_alpha46-r1/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.10 net-irc/atheme-services/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 22 Jul 2011 03:22:12 -0000 1.9
24 +++ ChangeLog 27 Jul 2011 15:11:36 -0000 1.10
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-irc/atheme-services
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v 1.9 2011/07/22 03:22:12 binki Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/ChangeLog,v 1.10 2011/07/27 15:11:36 binki Exp $
30 +
31 +*atheme-services-7.0.0_alpha6 (27 Jul 2011)
32 +
33 + 27 Jul 2011; Nathan Phillip Brink <binki@g.o>
34 + +atheme-services-7.0.0_alpha6.ebuild,
35 + +files/atheme-services-7.0.0_alpha6-destdir-perl.patch:
36 + Bump to atheme-7.0.0_alpha6 which has perl scripting support.
37
38 *atheme-services-6.0.8-r2 (22 Jul 2011)
39
40
41
42
43 1.1 net-irc/atheme-services/atheme-services-7.0.0_alpha6.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/atheme-services-7.0.0_alpha6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/atheme-services/atheme-services-7.0.0_alpha6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: atheme-services-7.0.0_alpha6.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $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 $
53
54 EAPI=4
55
56 inherit eutils flag-o-matic perl-module prefix
57
58 MY_P=${P/_/-}
59
60 DESCRIPTION="A portable and secure set of open-source and modular IRC services"
61 HOMEPAGE="http://atheme.net/"
62 SRC_URI="http://atheme.net/downloads/${MY_P}.tar.bz2"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~amd64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
67 IUSE="largenet ldap nls +pcre perl profile ssl"
68
69 RDEPEND=">=dev-libs/libmowgli-0.9.50
70 ldap? ( net-nds/openldap )
71 nls? ( sys-devel/gettext )
72 perl? ( dev-lang/perl )
73 pcre? ( dev-libs/libpcre )
74 ssl? ( dev-libs/openssl )"
75 DEPEND="${RDEPEND}
76 dev-util/pkgconfig"
77
78 S=${WORKDIR}/${MY_P}
79
80 pkg_setup() {
81 # the dependency calculation puts all of the .c files together and
82 # overwhelms cc1 with this flag :-(
83 filter-flags -combine
84
85 if use profile; then
86 # bug #371119
87 ewarn "USE=\"profile\" is incompatible with the hardened profile's -pie flag."
88 ewarn "Disabling PIE. Please ignore any warning messages about -nopie being invalid."
89 append-flags -nopie
90 fi
91
92 enewgroup ${PN}
93 enewuser ${PN} -1 -1 /var/lib/atheme ${PN}
94 }
95
96 src_prepare() {
97 epatch "${FILESDIR}"/${P}-destdir-perl.patch
98
99 # fix docdir
100 sed -i -e 's/\(^DOCDIR.*=.\)@DOCDIR@/\1@docdir@/' extra.mk.in || die
101
102 # basic logging config directive fix
103 sed -i -e '/^logfile/s;var/\(.*\.log\);'"${EPREFIX}"'/var/log/atheme/\1;g' dist/* || die
104
105 # QA against bundled libs
106 rm -rf libmowgli || die
107
108 # Get useful information into build.log
109 sed -i -e '/^\.SILENT:$/d' buildsys.mk.in || die
110 }
111
112 src_configure() {
113 econf \
114 --sysconfdir="${EPREFIX}"/etc/${PN} \
115 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
116 --localstatedir="${EPREFIX}"/var \
117 --enable-fhs-paths \
118 --enable-contrib \
119 $(use_enable largenet large-net) \
120 $(use_with ldap) \
121 $(use_with nls) \
122 $(use_enable profile) \
123 $(use_with perl) \
124 $(use_with pcre) \
125 $(use_enable ssl)
126 }
127
128 src_install() {
129 emake DESTDIR="${D}" install
130
131 insinto /etc/${PN}
132 for conf in dist/*.example; do
133 # The .cron file isn't meant to live in /etc/${PN}, so only
134 # install a .example version.
135 [[ ${conf} == *cron* ]] && continue
136
137 newins ${conf} $(basename ${conf} .example)
138 done
139
140 fowners -R 0:${PN} /etc/${PN}
141 keepdir /var/{lib,log}/atheme
142 fowners ${PN}:${PN} /var/{lib,log,run}/atheme
143 fperms -R go-w,o-rx /etc/${PN}
144 fperms 750 /etc/${PN} /var/{lib,log,run}/atheme
145
146 newinitd "${FILESDIR}"/${PN}.initd ${PN}
147
148 # contributed scripts and such:
149 insinto /usr/share/doc/${PF}/contrib
150 doins contrib/*.{c,pl,php,py,rb}
151
152 if use perl; then
153 perlinfo
154 insinto "${VENDOR_LIB#${EPREFIX}}"
155 doins -r contrib/Atheme{,.pm}
156 fi
157 }