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