Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/openafs/
Date: Tue, 03 Nov 2015 19:07:12
Message-Id: 1446576926.2bece7f05a23c150c4c44daf1e463cf25767e27f.bircoph@gentoo
1 commit: 2bece7f05a23c150c4c44daf1e463cf25767e27f
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 18:55:26 2015 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 18:55:26 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bece7f0
7
8 net-fs/openafs: remove old versions
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
12
13 net-fs/openafs/Manifest | 4 -
14 net-fs/openafs/openafs-1.6.11-r1.ebuild | 176 ------------------------------
15 net-fs/openafs/openafs-1.6.11.1-r1.ebuild | 176 ------------------------------
16 3 files changed, 356 deletions(-)
17
18 diff --git a/net-fs/openafs/Manifest b/net-fs/openafs/Manifest
19 index a3f9875..e1a8d0d 100644
20 --- a/net-fs/openafs/Manifest
21 +++ b/net-fs/openafs/Manifest
22 @@ -1,7 +1,3 @@
23 -DIST openafs-1.6.11-doc.tar.bz2 3530829 SHA256 d5cfa17ec06812a9961960bfdf54c1a753f512826fbbb41e3fdbb2310b5b5a59 SHA512 9bd792eae719c6cfa3d250ae31fcc2cd47e40d0b78f5e3453a5b242255bc64d88b9943ac5a7ab2565509904499d6b11a94d27e9c9b48b515aa51bd8f0670ec67 WHIRLPOOL 1a6bdc5d0920eb046c6b975b4f17caca2e30295d0b26993edda17bec09adffa9254bfb5897979beb92ccafe4e1fbfc36d82ed715d46e967a6a0b1cb4bf4e05f8
24 -DIST openafs-1.6.11-src.tar.bz2 14605284 SHA256 cc42da08ef750a2363f7ea291e2264a9334c6ecf1400a75f5dabc170205bd01d SHA512 4e82553443009f899dfbd3eed0b9ed63c55aff5d5ce02f31657277385f0dfdef7e724b81a25fabb962d03b5a622d8d3fa9eca04879d1b84f4b253a52ea4ab90c WHIRLPOOL fbf188144643a71f7e505251033ed68c3d684dabd6647b4096c7a4010a76285db46c0cd586c5481635eb7da8406b5adee72c02528e59c4f89c6d923640cc93fb
25 -DIST openafs-1.6.11.1-doc.tar.bz2 3530413 SHA256 cb398583931e7f0edf17b2321a858afc62cffa3c48cf69021eccc198d3e764f9 SHA512 bcf48ae1e4f12a758adf3f64b60738cce6853501d66dce594df75d28687e939b2f369b485e27fbe116bd14816277c39ebe213f65f20c9ca6ab76946742ee18f8 WHIRLPOOL 6d8f5a2e602d4388dfca8634b7f5a8545bb39e5859b012700e0a361b4d7151eb8a6493e7a18f408a1ab54f083dfc4b0e8ca310c7772f5144dd0083af5b7488af
26 -DIST openafs-1.6.11.1-src.tar.bz2 14603197 SHA256 ae1a87faec8ee273f7d4baa69d1346f798415b38de72888decde011405423dc7 SHA512 43238d16d52498c62f6de944e030edeafdce9373074f961820d383bf82034511a484e79f1f655d5152f39abb38dfb744a9d02c47bb762c59e505de165bcc5579 WHIRLPOOL eb56015aaec4aa8c2a0d5aa901f4291a043e373d533bed5a48620e3b3a472226599dd083a4837ecc5a8763e7448ed1fb8c08aeec7ca53cf82db8be39d63dc522
27 DIST openafs-1.6.12-doc.tar.bz2 3531628 SHA256 1b5726f77ee98ae45b4b6d0142a65724e8f08099eb1b2a4308ae8f0638199963 SHA512 b0389f5aecce913a50e827204c3d3f19964473d4b8b0e6e39d91d00971e4be57b4cfece0b4bc40fb3b6f5d7d60ee40b079883505625413f0748035452c3c2686 WHIRLPOOL a795b70caf84e17d5bea720a12e2c1aa159a34105f51dbcf60a464b2c8bf81a9624e8beede566c9c4b6ceeff424db7925bf588a7383f0860df8ec65828d32cc1
28 DIST openafs-1.6.12-src.tar.bz2 14603726 SHA256 c47ffaa24bf2373264e330a624acafb5f509f4b00d63394b96e9bab131bf5802 SHA512 12c4b1ad12be7d44c56907f250b1d1ef94ca04f2b6e6d8c750da2a304cd0c60dd410516a3fa414442149e3a99c0cfd7aef283f09106889039035347793f01fc8 WHIRLPOOL f14e72aef41c47dd4e78b519b65fc01b67d709bd027a3004a501b621d71cc76f4d27ab5704421e39f05a611516ddcba9f1c2715fd4662cff13349be31b7a61a9
29 DIST openafs-1.6.14-doc.tar.bz2 3530481 SHA256 544fb3370465881bd1aadb24cf9e40610ff23d8445759c659d5354ce1e9358c3 SHA512 35de279fd61c657f5cd1b5fa26113a667155c2f2733fffb9bafeec1ac6be548fa335e5039e783cd6031fbc0ab8d27dd576e4571d76dd3f403283d5b32f75ca50 WHIRLPOOL 0663663a365f20448641093b1fc086219d395a7603c1658b69c083657ae0a2fec3d16a44e48adc3a7669b4a89ea07f0ce8e91d80134c5a5a1a193f304ced4a0b
30
31 diff --git a/net-fs/openafs/openafs-1.6.11-r1.ebuild b/net-fs/openafs/openafs-1.6.11-r1.ebuild
32 deleted file mode 100644
33 index f9b338c..0000000
34 --- a/net-fs/openafs/openafs-1.6.11-r1.ebuild
35 +++ /dev/null
36 @@ -1,176 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -# $Id$
40 -
41 -EAPI="5"
42 -
43 -inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
44 -
45 -MY_PV=$(delete_version_separator '_')
46 -MY_P="${PN}-${MY_PV}"
47 -PVER="20150813"
48 -
49 -DESCRIPTION="The OpenAFS distributed file system"
50 -HOMEPAGE="http://www.openafs.org/"
51 -# We always d/l the doc tarball as man pages are not USE=doc material
52 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
53 -SRC_URI="
54 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
55 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
56 - https://dev.gentoo.org/~bircoph/afs/${PN}-patches-${PVER}.tar.xz
57 -"
58 -
59 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
60 -SLOT="0"
61 -KEYWORDS="~amd64 ~amd64-linux ~sparc ~x86 ~x86-linux"
62 -
63 -IUSE="doc kerberos +modules pam"
64 -
65 -CDEPEND="
66 - sys-libs/ncurses
67 - pam? ( virtual/pam )
68 - kerberos? ( virtual/krb5 )"
69 -
70 -DEPEND="${CDEPEND}
71 - doc? (
72 - app-text/docbook-xsl-stylesheets
73 - dev-libs/libxslt
74 - )"
75 -
76 -RDEPEND="${CDEPEND}
77 - modules? ( ~net-fs/openafs-kernel-${PV} )"
78 -
79 -S="${WORKDIR}/${MY_P}"
80 -
81 -src_prepare() {
82 - EPATCH_EXCLUDE="050_all_job_server.patch" \
83 - EPATCH_SUFFIX="patch" \
84 - epatch "${WORKDIR}"/gentoo/patches
85 - epatch "${WORKDIR}"/gentoo/security-patches/CVE-2015-{3282..3287}.patch
86 - epatch_user
87 -
88 - # fixing 2-nd level makefiles to honor flags
89 - sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
90 - src/*/Makefile.in || die '*/Makefile.in sed failed'
91 -
92 - # packaging is f-ed up, so we can't run eautoreconf
93 - # run autotools commands based on what is listed in regen.sh
94 - eaclocal -I src/cf
95 - eautoconf
96 - eautoconf -o configure-libafs configure-libafs.ac
97 - eautoheader
98 - einfo "Deleting autom4te.cache directory"
99 - rm -rf autom4te.cache
100 -}
101 -
102 -src_configure() {
103 - AFS_SYSKVERS=26 \
104 - econf \
105 - --disable-kernel-module \
106 - --disable-strip-binaries \
107 - --enable-supergroups \
108 - $(use_enable pam) \
109 - $(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
110 - $(use_with kerberos krb5)
111 -}
112 -
113 -src_compile() {
114 - emake all_nolibafs
115 - local d
116 - if use doc; then
117 - for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
118 - emake -C "${d}" html;
119 - done
120 - fi
121 -}
122 -
123 -src_install() {
124 - local OPENRCDIR="${WORKDIR}/gentoo/openrc"
125 - local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
126 -
127 - emake DESTDIR="${ED}" install_nolibafs
128 -
129 - insinto /etc/openafs
130 - doins src/afsd/CellServDB
131 - echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
132 - echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
133 -
134 - # pam_afs and pam_afs.krb have been installed in irregular locations, fix
135 - if use pam ; then
136 - dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
137 - fi
138 - rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
139 -
140 - # remove kdump stuff provided by kexec-tools #222455
141 - rm -rf "${ED}"/usr/sbin/kdump*
142 -
143 - # avoid collision with mit_krb5's version of kpasswd
144 - mv "${ED}"/usr/bin/kpasswd{,_afs} || die
145 - mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
146 -
147 - # move lwp stuff around #200674 #330061
148 - mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
149 - mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
150 - # update paths to the relocated lwp headers
151 - sed -ri \
152 - -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
153 - "${ED}"/usr/include/*.h \
154 - "${ED}"/usr/include/*/*.h \
155 - || die
156 -
157 - # minimal documentation
158 - use pam && doman src/pam/pam_afs.5
159 - dodoc "${WORKDIR}/gentoo/README" src/afsd/CellServDB
160 -
161 - # documentation package
162 - if use doc ; then
163 - dodoc -r doc/{arch,examples,protocol,txt}
164 - dohtml -r doc/xml/*
165 - fi
166 -
167 - # Gentoo related scripts
168 - newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
169 - newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
170 - newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
171 - newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
172 - systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
173 - systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
174 - systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
175 -
176 - # used directories: client
177 - keepdir /etc/openafs
178 -
179 - # used directories: server
180 - keepdir /etc/openafs/server
181 - diropts -m0700
182 - keepdir /var/lib/openafs
183 - keepdir /var/lib/openafs/db
184 - diropts -m0755
185 - keepdir /var/lib/openafs/logs
186 -
187 - # link logfiles to /var/log
188 - dosym ../lib/openafs/logs /var/log/openafs
189 -}
190 -
191 -pkg_preinst() {
192 - ## Somewhat intelligently install default configuration files
193 - ## (when they are not present)
194 - local x
195 - for x in cacheinfo CellServDB ThisCell ; do
196 - if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
197 - cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
198 - fi
199 - done
200 -}
201 -
202 -pkg_postinst() {
203 - elog "This installation should work out of the box (at least the"
204 - elog "client part doing global afs-cell browsing, unless you had"
205 - elog "a previous and different configuration). If you want to"
206 - elog "set up your own cell or modify the standard config,"
207 - elog "please have a look at the Gentoo OpenAFS documentation"
208 - elog "(warning: it is not yet up to date wrt the new file locations)"
209 - elog
210 - elog "The documentation can be found at:"
211 - elog " https://wiki.gentoo.org/wiki/OpenAFS"
212 -}
213
214 diff --git a/net-fs/openafs/openafs-1.6.11.1-r1.ebuild b/net-fs/openafs/openafs-1.6.11.1-r1.ebuild
215 deleted file mode 100644
216 index f9b338c..0000000
217 --- a/net-fs/openafs/openafs-1.6.11.1-r1.ebuild
218 +++ /dev/null
219 @@ -1,176 +0,0 @@
220 -# Copyright 1999-2015 Gentoo Foundation
221 -# Distributed under the terms of the GNU General Public License v2
222 -# $Id$
223 -
224 -EAPI="5"
225 -
226 -inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
227 -
228 -MY_PV=$(delete_version_separator '_')
229 -MY_P="${PN}-${MY_PV}"
230 -PVER="20150813"
231 -
232 -DESCRIPTION="The OpenAFS distributed file system"
233 -HOMEPAGE="http://www.openafs.org/"
234 -# We always d/l the doc tarball as man pages are not USE=doc material
235 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
236 -SRC_URI="
237 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
238 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
239 - https://dev.gentoo.org/~bircoph/afs/${PN}-patches-${PVER}.tar.xz
240 -"
241 -
242 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
243 -SLOT="0"
244 -KEYWORDS="~amd64 ~amd64-linux ~sparc ~x86 ~x86-linux"
245 -
246 -IUSE="doc kerberos +modules pam"
247 -
248 -CDEPEND="
249 - sys-libs/ncurses
250 - pam? ( virtual/pam )
251 - kerberos? ( virtual/krb5 )"
252 -
253 -DEPEND="${CDEPEND}
254 - doc? (
255 - app-text/docbook-xsl-stylesheets
256 - dev-libs/libxslt
257 - )"
258 -
259 -RDEPEND="${CDEPEND}
260 - modules? ( ~net-fs/openafs-kernel-${PV} )"
261 -
262 -S="${WORKDIR}/${MY_P}"
263 -
264 -src_prepare() {
265 - EPATCH_EXCLUDE="050_all_job_server.patch" \
266 - EPATCH_SUFFIX="patch" \
267 - epatch "${WORKDIR}"/gentoo/patches
268 - epatch "${WORKDIR}"/gentoo/security-patches/CVE-2015-{3282..3287}.patch
269 - epatch_user
270 -
271 - # fixing 2-nd level makefiles to honor flags
272 - sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
273 - src/*/Makefile.in || die '*/Makefile.in sed failed'
274 -
275 - # packaging is f-ed up, so we can't run eautoreconf
276 - # run autotools commands based on what is listed in regen.sh
277 - eaclocal -I src/cf
278 - eautoconf
279 - eautoconf -o configure-libafs configure-libafs.ac
280 - eautoheader
281 - einfo "Deleting autom4te.cache directory"
282 - rm -rf autom4te.cache
283 -}
284 -
285 -src_configure() {
286 - AFS_SYSKVERS=26 \
287 - econf \
288 - --disable-kernel-module \
289 - --disable-strip-binaries \
290 - --enable-supergroups \
291 - $(use_enable pam) \
292 - $(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
293 - $(use_with kerberos krb5)
294 -}
295 -
296 -src_compile() {
297 - emake all_nolibafs
298 - local d
299 - if use doc; then
300 - for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
301 - emake -C "${d}" html;
302 - done
303 - fi
304 -}
305 -
306 -src_install() {
307 - local OPENRCDIR="${WORKDIR}/gentoo/openrc"
308 - local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
309 -
310 - emake DESTDIR="${ED}" install_nolibafs
311 -
312 - insinto /etc/openafs
313 - doins src/afsd/CellServDB
314 - echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
315 - echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
316 -
317 - # pam_afs and pam_afs.krb have been installed in irregular locations, fix
318 - if use pam ; then
319 - dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
320 - fi
321 - rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
322 -
323 - # remove kdump stuff provided by kexec-tools #222455
324 - rm -rf "${ED}"/usr/sbin/kdump*
325 -
326 - # avoid collision with mit_krb5's version of kpasswd
327 - mv "${ED}"/usr/bin/kpasswd{,_afs} || die
328 - mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
329 -
330 - # move lwp stuff around #200674 #330061
331 - mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
332 - mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
333 - # update paths to the relocated lwp headers
334 - sed -ri \
335 - -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
336 - "${ED}"/usr/include/*.h \
337 - "${ED}"/usr/include/*/*.h \
338 - || die
339 -
340 - # minimal documentation
341 - use pam && doman src/pam/pam_afs.5
342 - dodoc "${WORKDIR}/gentoo/README" src/afsd/CellServDB
343 -
344 - # documentation package
345 - if use doc ; then
346 - dodoc -r doc/{arch,examples,protocol,txt}
347 - dohtml -r doc/xml/*
348 - fi
349 -
350 - # Gentoo related scripts
351 - newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
352 - newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
353 - newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
354 - newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
355 - systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
356 - systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
357 - systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
358 -
359 - # used directories: client
360 - keepdir /etc/openafs
361 -
362 - # used directories: server
363 - keepdir /etc/openafs/server
364 - diropts -m0700
365 - keepdir /var/lib/openafs
366 - keepdir /var/lib/openafs/db
367 - diropts -m0755
368 - keepdir /var/lib/openafs/logs
369 -
370 - # link logfiles to /var/log
371 - dosym ../lib/openafs/logs /var/log/openafs
372 -}
373 -
374 -pkg_preinst() {
375 - ## Somewhat intelligently install default configuration files
376 - ## (when they are not present)
377 - local x
378 - for x in cacheinfo CellServDB ThisCell ; do
379 - if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
380 - cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
381 - fi
382 - done
383 -}
384 -
385 -pkg_postinst() {
386 - elog "This installation should work out of the box (at least the"
387 - elog "client part doing global afs-cell browsing, unless you had"
388 - elog "a previous and different configuration). If you want to"
389 - elog "set up your own cell or modify the standard config,"
390 - elog "please have a look at the Gentoo OpenAFS documentation"
391 - elog "(warning: it is not yet up to date wrt the new file locations)"
392 - elog
393 - elog "The documentation can be found at:"
394 - elog " https://wiki.gentoo.org/wiki/OpenAFS"
395 -}