Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/openafs: openafs-1.6.2-r1.ebuild openafs-1.6.5-r1.ebuild ChangeLog openafs-1.6.5.ebuild openafs-1.6.2.ebuild
Date: Fri, 30 Aug 2013 14:52:25
Message-Id: 20130830145217.513F22004C@flycatcher.gentoo.org
1 axs 13/08/30 14:52:17
2
3 Modified: ChangeLog
4 Added: openafs-1.6.2-r1.ebuild openafs-1.6.5-r1.ebuild
5 Removed: openafs-1.6.5.ebuild openafs-1.6.2.ebuild
6 Log:
7 restored autotools (in direct calling form, the same as openafs-kernel) to ensure patches to build system are applied (reverting regression from Aug.27th) ; bumping to be sure all users get the proper updates on-disk
8
9 (Portage version: 2.1.12.2/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 2B6559ED)
10
11 Revision Changes Path
12 1.195 net-fs/openafs/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.195&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?rev=1.195&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/ChangeLog?r1=1.194&r2=1.195
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v
21 retrieving revision 1.194
22 retrieving revision 1.195
23 diff -u -r1.194 -r1.195
24 --- ChangeLog 27 Aug 2013 08:15:30 -0000 1.194
25 +++ ChangeLog 30 Aug 2013 14:52:17 -0000 1.195
26 @@ -1,6 +1,15 @@
27 # ChangeLog for net-fs/openafs
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.194 2013/08/27 08:15:30 tomwij Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.195 2013/08/30 14:52:17 axs Exp $
31 +
32 +*openafs-1.6.2-r1 (30 Aug 2013)
33 +*openafs-1.6.5-r1 (30 Aug 2013)
34 +
35 + 30 Aug 2013; Ian Stakenvicius <axs@g.o> +openafs-1.6.2-r1.ebuild,
36 + +openafs-1.6.5-r1.ebuild, -openafs-1.6.2.ebuild, -openafs-1.6.5.ebuild:
37 + restored autotools (in direct calling form, the same as openafs-kernel) to
38 + ensure patches to build system are applied (reverting regression from
39 + Aug.27th) ; bumping to be sure all users get the proper updates on-disk
40
41 *openafs-1.6.5 (27 Aug 2013)
42
43
44
45
46 1.1 net-fs/openafs/openafs-1.6.2-r1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.6.2-r1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.6.2-r1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: openafs-1.6.2-r1.ebuild
52 ===================================================================
53 # Copyright 1999-2013 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.6.2-r1.ebuild,v 1.1 2013/08/30 14:52:17 axs Exp $
56
57 EAPI="4"
58
59 inherit flag-o-matic eutils autotools multilib toolchain-funcs versionator pam
60
61 MY_PV=$(delete_version_separator '_')
62 MY_P="${PN}-${MY_PV}"
63 PVER="1"
64 DESCRIPTION="The OpenAFS distributed file system"
65 HOMEPAGE="http://www.openafs.org/"
66 # We always d/l the doc tarball as man pages are not USE=doc material
67 SRC_URI="http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-src.tar.bz2
68 http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
69 mirror://gentoo/${P}-patches-${PVER}.tar.bz2"
70
71 LICENSE="IBM BSD openafs-krb5-a APSL-2"
72 SLOT="0"
73 KEYWORDS="amd64 sparc x86 ~amd64-linux ~x86-linux"
74 IUSE="doc kerberos pam"
75
76 RDEPEND="~net-fs/openafs-kernel-${PV}
77 sys-libs/ncurses
78 pam? ( sys-libs/pam )
79 kerberos? ( virtual/krb5 )"
80
81 S="${WORKDIR}/${MY_P}"
82
83 src_prepare() {
84 EPATCH_SUFFIX="patch" \
85 epatch "${WORKDIR}"/gentoo/patches
86
87 # packaging is f-ed up, so we can't run eautoreconf
88 # run autotools commands based on what is listed in regen.sh
89 eaclocal -I src/cf
90 eautoconf
91 eautoconf -o configure-libafs configure-libafs.ac
92 eautoheader
93 einfo "Deleting autom4te.cache directory"
94 rm -rf autom4te.cache
95 }
96
97 src_configure() {
98 # cannot use "use_with" macro, as --without-krb5-config crashes the econf
99 local myconf=""
100 if use kerberos; then
101 myconf="--with-krb5-conf=$(type -p krb5-config)"
102 fi
103
104 AFS_SYSKVERS=26 \
105 XCFLAGS="${CFLAGS}" \
106 econf \
107 $(use_enable pam) \
108 --enable-supergroups \
109 --disable-kernel-module \
110 --disable-strip-binaries \
111 ${myconf}
112 }
113
114 src_compile() {
115 emake all_nolibafs
116 }
117
118 src_install() {
119 local CONFDIR=${WORKDIR}/gentoo/configs
120 local SCRIPTDIR=${WORKDIR}/gentoo/scripts
121
122 emake DESTDIR="${ED}" install_nolibafs
123
124 insinto /etc/openafs
125 doins src/afsd/CellServDB
126 echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
127 echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
128
129 # pam_afs and pam_afs.krb have been installed in irregular locations, fix
130 if use pam ; then
131 dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
132 fi
133 rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
134
135 # remove kdump stuff provided by kexec-tools #222455
136 rm -rf "${ED}"/usr/sbin/kdump*
137
138 # avoid collision with mit_krb5's version of kpasswd
139 mv "${ED}"/usr/bin/kpasswd{,_afs} || die
140 mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
141
142 # move lwp stuff around #200674 #330061
143 mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
144 mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
145 # update paths to the relocated lwp headers
146 sed -ri \
147 -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
148 "${ED}"/usr/include/*.h \
149 "${ED}"/usr/include/*/*.h \
150 || die
151
152 # minimal documentation
153 use pam && doman src/pam/pam_afs.5
154 dodoc "${CONFDIR}"/README src/afsd/CellServDB
155
156 # documentation package
157 if use doc ; then
158 find doc/{arch,examples,pdf,protocol,txt}/ -type f -exec dodoc {} +
159 dohtml -A xml -r doc/{html,xml}/*
160 fi
161
162 # Gentoo related scripts
163 newinitd "${SCRIPTDIR}"/openafs-client openafs-client || die
164 newconfd "${CONFDIR}"/openafs-client openafs-client || die
165 newinitd "${SCRIPTDIR}"/openafs-server openafs-server || die
166 newconfd "${CONFDIR}"/openafs-server openafs-server || die
167
168 # used directories: client
169 keepdir /etc/openafs
170 keepdir /var/cache/openafs
171
172 # used directories: server
173 keepdir /etc/openafs/server
174 diropts -m0700
175 keepdir /var/lib/openafs
176 keepdir /var/lib/openafs/db
177 diropts -m0755
178 keepdir /var/lib/openafs/logs
179
180 # link logfiles to /var/log
181 dosym ../lib/openafs/logs /var/log/openafs
182 }
183
184 pkg_preinst() {
185 ## Somewhat intelligently install default configuration files
186 ## (when they are not present)
187 local x
188 for x in cacheinfo CellServDB ThisCell ; do
189 if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
190 cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
191 fi
192 done
193 }
194
195 pkg_postinst() {
196 elog "This installation should work out of the box (at least the"
197 elog "client part doing global afs-cell browsing, unless you had"
198 elog "a previous and different configuration). If you want to"
199 elog "set up your own cell or modify the standard config,"
200 elog "please have a look at the Gentoo OpenAFS documentation"
201 elog "(warning: it is not yet up to date wrt the new file locations)"
202 elog
203 elog "The documentation can be found at:"
204 elog " http://www.gentoo.org/doc/en/openafs.xml"
205 }
206
207
208
209 1.1 net-fs/openafs/openafs-1.6.5-r1.ebuild
210
211 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.6.5-r1.ebuild?rev=1.1&view=markup
212 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/openafs/openafs-1.6.5-r1.ebuild?rev=1.1&content-type=text/plain
213
214 Index: openafs-1.6.5-r1.ebuild
215 ===================================================================
216 # Copyright 1999-2013 Gentoo Foundation
217 # Distributed under the terms of the GNU General Public License v2
218 # $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.6.5-r1.ebuild,v 1.1 2013/08/30 14:52:17 axs Exp $
219
220 EAPI="4"
221
222 inherit flag-o-matic eutils autotools multilib toolchain-funcs versionator pam
223
224 MY_PV=$(delete_version_separator '_')
225 MY_P="${PN}-${MY_PV}"
226 PVER="1"
227 DESCRIPTION="The OpenAFS distributed file system"
228 HOMEPAGE="http://www.openafs.org/"
229 # We always d/l the doc tarball as man pages are not USE=doc material
230 SRC_URI="http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-src.tar.bz2
231 http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
232 mirror://gentoo/${P}-patches-${PVER}.tar.bz2"
233
234 LICENSE="IBM BSD openafs-krb5-a APSL-2"
235 SLOT="0"
236 KEYWORDS="~amd64 ~sparc ~x86 ~amd64-linux ~x86-linux"
237 IUSE="doc kerberos pam"
238
239 RDEPEND="~net-fs/openafs-kernel-${PV}
240 sys-libs/ncurses
241 pam? ( sys-libs/pam )
242 kerberos? ( virtual/krb5 )"
243
244 S="${WORKDIR}/${MY_P}"
245
246 src_prepare() {
247 EPATCH_SUFFIX="patch" \
248 epatch "${WORKDIR}"/gentoo/patches
249
250 # packaging is f-ed up, so we can't run eautoreconf
251 # run autotools commands based on what is listed in regen.sh
252 eaclocal -I src/cf
253 eautoconf
254 eautoconf -o configure-libafs configure-libafs.ac
255 eautoheader
256 einfo "Deleting autom4te.cache directory"
257 rm -rf autom4te.cache
258 }
259
260 src_configure() {
261 # cannot use "use_with" macro, as --without-krb5-config crashes the econf
262 local myconf=""
263 if use kerberos; then
264 myconf="--with-krb5-conf=$(type -p krb5-config)"
265 fi
266
267 AFS_SYSKVERS=26 \
268 XCFLAGS="${CFLAGS}" \
269 econf \
270 $(use_enable pam) \
271 --enable-supergroups \
272 --disable-kernel-module \
273 --disable-strip-binaries \
274 ${myconf}
275 }
276
277 src_compile() {
278 emake all_nolibafs
279 }
280
281 src_install() {
282 local CONFDIR=${WORKDIR}/gentoo/configs
283 local SCRIPTDIR=${WORKDIR}/gentoo/scripts
284
285 emake DESTDIR="${ED}" install_nolibafs
286
287 insinto /etc/openafs
288 doins src/afsd/CellServDB
289 echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
290 echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
291
292 # pam_afs and pam_afs.krb have been installed in irregular locations, fix
293 if use pam ; then
294 dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
295 fi
296 rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
297
298 # remove kdump stuff provided by kexec-tools #222455
299 rm -rf "${ED}"/usr/sbin/kdump*
300
301 # avoid collision with mit_krb5's version of kpasswd
302 mv "${ED}"/usr/bin/kpasswd{,_afs} || die
303 mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
304
305 # move lwp stuff around #200674 #330061
306 mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
307 mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
308 # update paths to the relocated lwp headers
309 sed -ri \
310 -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
311 "${ED}"/usr/include/*.h \
312 "${ED}"/usr/include/*/*.h \
313 || die
314
315 # minimal documentation
316 use pam && doman src/pam/pam_afs.5
317 dodoc "${CONFDIR}"/README src/afsd/CellServDB
318
319 # documentation package
320 if use doc ; then
321 find doc/{arch,examples,pdf,protocol,txt}/ -type f -exec dodoc {} +
322 dohtml -A xml -r doc/{html,xml}/*
323 fi
324
325 # Gentoo related scripts
326 newinitd "${SCRIPTDIR}"/openafs-client openafs-client || die
327 newconfd "${CONFDIR}"/openafs-client openafs-client || die
328 newinitd "${SCRIPTDIR}"/openafs-server openafs-server || die
329 newconfd "${CONFDIR}"/openafs-server openafs-server || die
330
331 # used directories: client
332 keepdir /etc/openafs
333 keepdir /var/cache/openafs
334
335 # used directories: server
336 keepdir /etc/openafs/server
337 diropts -m0700
338 keepdir /var/lib/openafs
339 keepdir /var/lib/openafs/db
340 diropts -m0755
341 keepdir /var/lib/openafs/logs
342
343 # link logfiles to /var/log
344 dosym ../lib/openafs/logs /var/log/openafs
345 }
346
347 pkg_preinst() {
348 ## Somewhat intelligently install default configuration files
349 ## (when they are not present)
350 local x
351 for x in cacheinfo CellServDB ThisCell ; do
352 if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
353 cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
354 fi
355 done
356 }
357
358 pkg_postinst() {
359 elog "This installation should work out of the box (at least the"
360 elog "client part doing global afs-cell browsing, unless you had"
361 elog "a previous and different configuration). If you want to"
362 elog "set up your own cell or modify the standard config,"
363 elog "please have a look at the Gentoo OpenAFS documentation"
364 elog "(warning: it is not yet up to date wrt the new file locations)"
365 elog
366 elog "The documentation can be found at:"
367 elog " http://www.gentoo.org/doc/en/openafs.xml"
368 }