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:08
Message-Id: 1446576417.87d78a03bf33fa27139a039667c6b70ec3d0420c.bircoph@gentoo
1 commit: 87d78a03bf33fa27139a039667c6b70ec3d0420c
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 18:46:57 2015 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 18:46:57 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d78a03
7
8 net-fs/openafs: remove vulnerable versions
9
10 See bug 556354.
11
12 Package-Manager: portage-2.2.23
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 net-fs/openafs/Manifest | 2 -
16 net-fs/openafs/openafs-1.6.11.1.ebuild | 176 ---------------------------------
17 net-fs/openafs/openafs-1.6.11.ebuild | 175 --------------------------------
18 net-fs/openafs/openafs-1.6.12.ebuild | 175 --------------------------------
19 4 files changed, 528 deletions(-)
20
21 diff --git a/net-fs/openafs/Manifest b/net-fs/openafs/Manifest
22 index beb151c..a3f9875 100644
23 --- a/net-fs/openafs/Manifest
24 +++ b/net-fs/openafs/Manifest
25 @@ -1,5 +1,4 @@
26 DIST openafs-1.6.11-doc.tar.bz2 3530829 SHA256 d5cfa17ec06812a9961960bfdf54c1a753f512826fbbb41e3fdbb2310b5b5a59 SHA512 9bd792eae719c6cfa3d250ae31fcc2cd47e40d0b78f5e3453a5b242255bc64d88b9943ac5a7ab2565509904499d6b11a94d27e9c9b48b515aa51bd8f0670ec67 WHIRLPOOL 1a6bdc5d0920eb046c6b975b4f17caca2e30295d0b26993edda17bec09adffa9254bfb5897979beb92ccafe4e1fbfc36d82ed715d46e967a6a0b1cb4bf4e05f8
27 -DIST openafs-1.6.11-patches.tar.xz 9628 SHA256 16fdf63d81bd986aea4112f43f4005912dd62175aeb355e7b729b309842c970c SHA512 8227cb156f7498afa70e3086f4bfd26672576229a8f847d24a85b495942270e4964aa715536d43c2e63bbd3f4ced7cd19971c76007cb8e2e5aef17fe0ceb9d1d WHIRLPOOL 9ae675c36ec5fe07b7d095705dc6ee02f4a4ac227d9396e29299d94cde10f18e217c06e3c62f73d3d2b07a43410b35e464e7b328e25710e6c497d093381ce158
28 DIST openafs-1.6.11-src.tar.bz2 14605284 SHA256 cc42da08ef750a2363f7ea291e2264a9334c6ecf1400a75f5dabc170205bd01d SHA512 4e82553443009f899dfbd3eed0b9ed63c55aff5d5ce02f31657277385f0dfdef7e724b81a25fabb962d03b5a622d8d3fa9eca04879d1b84f4b253a52ea4ab90c WHIRLPOOL fbf188144643a71f7e505251033ed68c3d684dabd6647b4096c7a4010a76285db46c0cd586c5481635eb7da8406b5adee72c02528e59c4f89c6d923640cc93fb
29 DIST openafs-1.6.11.1-doc.tar.bz2 3530413 SHA256 cb398583931e7f0edf17b2321a858afc62cffa3c48cf69021eccc198d3e764f9 SHA512 bcf48ae1e4f12a758adf3f64b60738cce6853501d66dce594df75d28687e939b2f369b485e27fbe116bd14816277c39ebe213f65f20c9ca6ab76946742ee18f8 WHIRLPOOL 6d8f5a2e602d4388dfca8634b7f5a8545bb39e5859b012700e0a361b4d7151eb8a6493e7a18f408a1ab54f083dfc4b0e8ca310c7772f5144dd0083af5b7488af
30 DIST openafs-1.6.11.1-src.tar.bz2 14603197 SHA256 ae1a87faec8ee273f7d4baa69d1346f798415b38de72888decde011405423dc7 SHA512 43238d16d52498c62f6de944e030edeafdce9373074f961820d383bf82034511a484e79f1f655d5152f39abb38dfb744a9d02c47bb762c59e505de165bcc5579 WHIRLPOOL eb56015aaec4aa8c2a0d5aa901f4291a043e373d533bed5a48620e3b3a472226599dd083a4837ecc5a8763e7448ed1fb8c08aeec7ca53cf82db8be39d63dc522
31 @@ -7,6 +6,5 @@ DIST openafs-1.6.12-doc.tar.bz2 3531628 SHA256 1b5726f77ee98ae45b4b6d0142a65724e
32 DIST openafs-1.6.12-src.tar.bz2 14603726 SHA256 c47ffaa24bf2373264e330a624acafb5f509f4b00d63394b96e9bab131bf5802 SHA512 12c4b1ad12be7d44c56907f250b1d1ef94ca04f2b6e6d8c750da2a304cd0c60dd410516a3fa414442149e3a99c0cfd7aef283f09106889039035347793f01fc8 WHIRLPOOL f14e72aef41c47dd4e78b519b65fc01b67d709bd027a3004a501b621d71cc76f4d27ab5704421e39f05a611516ddcba9f1c2715fd4662cff13349be31b7a61a9
33 DIST openafs-1.6.14-doc.tar.bz2 3530481 SHA256 544fb3370465881bd1aadb24cf9e40610ff23d8445759c659d5354ce1e9358c3 SHA512 35de279fd61c657f5cd1b5fa26113a667155c2f2733fffb9bafeec1ac6be548fa335e5039e783cd6031fbc0ab8d27dd576e4571d76dd3f403283d5b32f75ca50 WHIRLPOOL 0663663a365f20448641093b1fc086219d395a7603c1658b69c083657ae0a2fec3d16a44e48adc3a7669b4a89ea07f0ce8e91d80134c5a5a1a193f304ced4a0b
34 DIST openafs-1.6.14-src.tar.bz2 14605615 SHA256 3e62c798a7f982c4f88d85d32e46bee6a47848d207b1e318fe661ce44ae4e01f SHA512 957178b1c3f6262e831ec497b7dd76e208a48f2107942d44ce72b062081e2932b93cb800b786eb88b770a647daf3585f659fdd1e715d0e724ac56eae011f3601 WHIRLPOOL 43e58a9e34ed2340c732b88261ecf4043f7a6e7db18bac7113b74455b1a2f1ed864d345bf41bac42d6d437ae18778e7f37a794b738a882c0fb5e36257af7d960
35 -DIST openafs-patches-20150503.tar.xz 9736 SHA256 066f61fe795e2cb3235a0a991abe8c5e876758bae7ea9bec61e98a3f601c9d7d SHA512 c687be78c7a6442b81c1362cab6ba215301911bdefcf39d2758ffeddecfa3efaa67990ea8277bbc1dedc14ad70a33213a37dbc45c43cd53871eec089759596c6 WHIRLPOOL 0935946c9a535f8e9ce6dd292801c671aef1c40f2a3f51aa4a85e5f4181fb46c3b2df55be56eec56c7fcab0eaf27d97cc6cef98c1b70178ba8cd7258174036cf
36 DIST openafs-patches-20150626.tar.xz 10588 SHA256 b221842e82e4807e6b8064454df3792b12f3d73104462d83aa88c79e3028fb4a SHA512 b77df9dc734965301585d5f66732fef119282e49cbd5c121f45aa9f0b64fc6c62e1cd93c8b7ff81702f6baece0df3cf9d99ab796e84f2c0c610dc2e2fd3cedf6 WHIRLPOOL 71778ab6f64a156f8f559d446e09cbb8278f2f0965225a21767a2a28883e228620c37241cd439426a3163ede8b04f676f2b4aea7c14394c82bdc47dc2643e6b2
37 DIST openafs-patches-20150813.tar.xz 15520 SHA256 209766f5e97e924eab91d862875f360e0ed9821b317ee609789a77d7fbdeb8f0 SHA512 2703f65e7c3f1a724e9330d8f2aedf80f9d0b8ba4b03a5f466cd523eb8d0a1692542df722b24e06ce4ced476fb8615e2caca6159de7b18f151ecf7a14a5f0565 WHIRLPOOL c4055a7c0cf19847ecd8679316a0146b41589f157996b2f15b807d272270e65c1a6ee5f916d3127803cd26370c392b1e751d100d2ab383a57530b768e1682d60
38
39 diff --git a/net-fs/openafs/openafs-1.6.11.1.ebuild b/net-fs/openafs/openafs-1.6.11.1.ebuild
40 deleted file mode 100644
41 index af95c84..0000000
42 --- a/net-fs/openafs/openafs-1.6.11.1.ebuild
43 +++ /dev/null
44 @@ -1,176 +0,0 @@
45 -# Copyright 1999-2015 Gentoo Foundation
46 -# Distributed under the terms of the GNU General Public License v2
47 -# $Id$
48 -
49 -EAPI="5"
50 -
51 -inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
52 -
53 -MY_PV=$(delete_version_separator '_')
54 -MY_P="${PN}-${MY_PV}"
55 -PVER="20150503"
56 -
57 -DESCRIPTION="The OpenAFS distributed file system"
58 -HOMEPAGE="http://www.openafs.org/"
59 -# We always d/l the doc tarball as man pages are not USE=doc material
60 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
61 -SRC_URI="
62 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
63 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
64 - https://dev.gentoo.org/~bircoph/patches/${PN}-patches-${PVER}.tar.xz
65 -"
66 -
67 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
68 -SLOT="0"
69 -KEYWORDS="~amd64 ~amd64-linux ~sparc ~x86 ~x86-linux"
70 -
71 -IUSE="doc kerberos +modules pam"
72 -
73 -CDEPEND="
74 - sys-libs/ncurses
75 - pam? ( sys-libs/pam )
76 - kerberos? ( virtual/krb5 )"
77 -
78 -DEPEND="${CDEPEND}
79 - doc? (
80 - app-text/docbook-xsl-stylesheets
81 - dev-libs/libxslt
82 - )"
83 -
84 -RDEPEND="${CDEPEND}
85 - modules? ( ~net-fs/openafs-kernel-${PV} )"
86 -
87 -S="${WORKDIR}/${MY_P}"
88 -
89 -src_prepare() {
90 - EPATCH_EXCLUDE="050_all_job_server.patch" \
91 - EPATCH_SUFFIX="patch" \
92 - epatch "${WORKDIR}"/gentoo/patches
93 - epatch_user
94 -
95 - # fixing 2-nd level makefiles to honor flags
96 - sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
97 - src/*/Makefile.in || die '*/Makefile.in sed failed'
98 -
99 - # packaging is f-ed up, so we can't run eautoreconf
100 - # run autotools commands based on what is listed in regen.sh
101 - eaclocal -I src/cf
102 - eautoconf
103 - eautoconf -o configure-libafs configure-libafs.ac
104 - eautoheader
105 - einfo "Deleting autom4te.cache directory"
106 - rm -rf autom4te.cache
107 -}
108 -
109 -src_configure() {
110 - AFS_SYSKVERS=26 \
111 - econf \
112 - --disable-kernel-module \
113 - --disable-strip-binaries \
114 - --enable-supergroups \
115 - $(use_enable pam) \
116 - $(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
117 - $(use_with kerberos krb5)
118 -}
119 -
120 -src_compile() {
121 - emake all_nolibafs
122 - local d
123 - if use doc; then
124 - for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
125 - emake -C "${d}" html;
126 - done
127 - fi
128 -}
129 -
130 -src_install() {
131 - local OPENRCDIR="${WORKDIR}/gentoo/openrc"
132 - local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
133 -
134 - emake DESTDIR="${ED}" install_nolibafs
135 -
136 - insinto /etc/openafs
137 - doins src/afsd/CellServDB
138 - echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
139 - echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
140 -
141 - # pam_afs and pam_afs.krb have been installed in irregular locations, fix
142 - if use pam ; then
143 - dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
144 - fi
145 - rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
146 -
147 - # remove kdump stuff provided by kexec-tools #222455
148 - rm -rf "${ED}"/usr/sbin/kdump*
149 -
150 - # avoid collision with mit_krb5's version of kpasswd
151 - mv "${ED}"/usr/bin/kpasswd{,_afs} || die
152 - mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
153 -
154 - # move lwp stuff around #200674 #330061
155 - mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
156 - mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
157 - # update paths to the relocated lwp headers
158 - sed -ri \
159 - -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
160 - "${ED}"/usr/include/*.h \
161 - "${ED}"/usr/include/*/*.h \
162 - || die
163 -
164 - # minimal documentation
165 - use pam && doman src/pam/pam_afs.5
166 - dodoc "${WORKDIR}/gentoo/README" src/afsd/CellServDB
167 -
168 - # documentation package
169 - if use doc ; then
170 - dodoc -r doc/{arch,examples,protocol,txt}
171 - dohtml -r doc/xml/*
172 - fi
173 -
174 - # Gentoo related scripts
175 - newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
176 - newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
177 - newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
178 - newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
179 - systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
180 - systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
181 - systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
182 -
183 - # used directories: client
184 - keepdir /etc/openafs
185 - keepdir /var/cache/openafs
186 -
187 - # used directories: server
188 - keepdir /etc/openafs/server
189 - diropts -m0700
190 - keepdir /var/lib/openafs
191 - keepdir /var/lib/openafs/db
192 - diropts -m0755
193 - keepdir /var/lib/openafs/logs
194 -
195 - # link logfiles to /var/log
196 - dosym ../lib/openafs/logs /var/log/openafs
197 -}
198 -
199 -pkg_preinst() {
200 - ## Somewhat intelligently install default configuration files
201 - ## (when they are not present)
202 - local x
203 - for x in cacheinfo CellServDB ThisCell ; do
204 - if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
205 - cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
206 - fi
207 - done
208 -}
209 -
210 -pkg_postinst() {
211 - elog "This installation should work out of the box (at least the"
212 - elog "client part doing global afs-cell browsing, unless you had"
213 - elog "a previous and different configuration). If you want to"
214 - elog "set up your own cell or modify the standard config,"
215 - elog "please have a look at the Gentoo OpenAFS documentation"
216 - elog "(warning: it is not yet up to date wrt the new file locations)"
217 - elog
218 - elog "The documentation can be found at:"
219 - elog " https://wiki.gentoo.org/wiki/OpenAFS"
220 -}
221
222 diff --git a/net-fs/openafs/openafs-1.6.11.ebuild b/net-fs/openafs/openafs-1.6.11.ebuild
223 deleted file mode 100644
224 index 5a2ea59..0000000
225 --- a/net-fs/openafs/openafs-1.6.11.ebuild
226 +++ /dev/null
227 @@ -1,175 +0,0 @@
228 -# Copyright 1999-2015 Gentoo Foundation
229 -# Distributed under the terms of the GNU General Public License v2
230 -# $Id$
231 -
232 -EAPI="5"
233 -
234 -inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
235 -
236 -MY_PV=$(delete_version_separator '_')
237 -MY_P="${PN}-${MY_PV}"
238 -
239 -DESCRIPTION="The OpenAFS distributed file system"
240 -HOMEPAGE="http://www.openafs.org/"
241 -# We always d/l the doc tarball as man pages are not USE=doc material
242 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
243 -SRC_URI="
244 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
245 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
246 - https://dev.gentoo.org/~bircoph/patches/${P}-patches.tar.xz
247 -"
248 -
249 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
250 -SLOT="0"
251 -KEYWORDS="amd64 sparc x86 ~amd64-linux ~x86-linux"
252 -
253 -IUSE="doc kerberos +modules pam"
254 -
255 -CDEPEND="
256 - sys-libs/ncurses
257 - pam? ( sys-libs/pam )
258 - kerberos? ( virtual/krb5 )"
259 -
260 -DEPEND="${CDEPEND}
261 - doc? (
262 - app-text/docbook-xsl-stylesheets
263 - dev-libs/libxslt
264 - )"
265 -
266 -RDEPEND="${CDEPEND}
267 - modules? ( ~net-fs/openafs-kernel-${PV} )"
268 -
269 -S="${WORKDIR}/${MY_P}"
270 -
271 -src_prepare() {
272 - EPATCH_EXCLUDE="050_all_job_server.patch" \
273 - EPATCH_SUFFIX="patch" \
274 - epatch "${WORKDIR}"/gentoo/patches
275 - epatch_user
276 -
277 - # fixing 2-nd level makefiles to honor flags
278 - sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
279 - src/*/Makefile.in || die '*/Makefile.in sed failed'
280 -
281 - # packaging is f-ed up, so we can't run eautoreconf
282 - # run autotools commands based on what is listed in regen.sh
283 - eaclocal -I src/cf
284 - eautoconf
285 - eautoconf -o configure-libafs configure-libafs.ac
286 - eautoheader
287 - einfo "Deleting autom4te.cache directory"
288 - rm -rf autom4te.cache
289 -}
290 -
291 -src_configure() {
292 - AFS_SYSKVERS=26 \
293 - econf \
294 - --disable-kernel-module \
295 - --disable-strip-binaries \
296 - --enable-supergroups \
297 - $(use_enable pam) \
298 - $(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
299 - $(use_with kerberos krb5)
300 -}
301 -
302 -src_compile() {
303 - emake all_nolibafs
304 - local d
305 - if use doc; then
306 - for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
307 - emake -C "${d}" html;
308 - done
309 - fi
310 -}
311 -
312 -src_install() {
313 - local OPENRCDIR="${WORKDIR}/gentoo/openrc"
314 - local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
315 -
316 - emake DESTDIR="${ED}" install_nolibafs
317 -
318 - insinto /etc/openafs
319 - doins src/afsd/CellServDB
320 - echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
321 - echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
322 -
323 - # pam_afs and pam_afs.krb have been installed in irregular locations, fix
324 - if use pam ; then
325 - dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
326 - fi
327 - rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
328 -
329 - # remove kdump stuff provided by kexec-tools #222455
330 - rm -rf "${ED}"/usr/sbin/kdump*
331 -
332 - # avoid collision with mit_krb5's version of kpasswd
333 - mv "${ED}"/usr/bin/kpasswd{,_afs} || die
334 - mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
335 -
336 - # move lwp stuff around #200674 #330061
337 - mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
338 - mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
339 - # update paths to the relocated lwp headers
340 - sed -ri \
341 - -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
342 - "${ED}"/usr/include/*.h \
343 - "${ED}"/usr/include/*/*.h \
344 - || die
345 -
346 - # minimal documentation
347 - use pam && doman src/pam/pam_afs.5
348 - dodoc "${WORKDIR}/gentoo/README" src/afsd/CellServDB
349 -
350 - # documentation package
351 - if use doc ; then
352 - dodoc -r doc/{arch,examples,protocol,txt}
353 - dohtml -r doc/xml/*
354 - fi
355 -
356 - # Gentoo related scripts
357 - newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
358 - newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
359 - newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
360 - newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
361 - systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
362 - systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
363 - systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
364 -
365 - # used directories: client
366 - keepdir /etc/openafs
367 - keepdir /var/cache/openafs
368 -
369 - # used directories: server
370 - keepdir /etc/openafs/server
371 - diropts -m0700
372 - keepdir /var/lib/openafs
373 - keepdir /var/lib/openafs/db
374 - diropts -m0755
375 - keepdir /var/lib/openafs/logs
376 -
377 - # link logfiles to /var/log
378 - dosym ../lib/openafs/logs /var/log/openafs
379 -}
380 -
381 -pkg_preinst() {
382 - ## Somewhat intelligently install default configuration files
383 - ## (when they are not present)
384 - local x
385 - for x in cacheinfo CellServDB ThisCell ; do
386 - if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
387 - cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
388 - fi
389 - done
390 -}
391 -
392 -pkg_postinst() {
393 - elog "This installation should work out of the box (at least the"
394 - elog "client part doing global afs-cell browsing, unless you had"
395 - elog "a previous and different configuration). If you want to"
396 - elog "set up your own cell or modify the standard config,"
397 - elog "please have a look at the Gentoo OpenAFS documentation"
398 - elog "(warning: it is not yet up to date wrt the new file locations)"
399 - elog
400 - elog "The documentation can be found at:"
401 - elog " https://wiki.gentoo.org/wiki/OpenAFS"
402 -}
403
404 diff --git a/net-fs/openafs/openafs-1.6.12.ebuild b/net-fs/openafs/openafs-1.6.12.ebuild
405 deleted file mode 100644
406 index fd3ec91..0000000
407 --- a/net-fs/openafs/openafs-1.6.12.ebuild
408 +++ /dev/null
409 @@ -1,175 +0,0 @@
410 -# Copyright 1999-2015 Gentoo Foundation
411 -# Distributed under the terms of the GNU General Public License v2
412 -# $Id$
413 -
414 -EAPI="5"
415 -
416 -inherit autotools eutils flag-o-matic multilib pam systemd toolchain-funcs versionator
417 -
418 -MY_PV=$(delete_version_separator '_')
419 -MY_P="${PN}-${MY_PV}"
420 -PVER="20150626"
421 -
422 -DESCRIPTION="The OpenAFS distributed file system"
423 -HOMEPAGE="http://www.openafs.org/"
424 -# We always d/l the doc tarball as man pages are not USE=doc material
425 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
426 -SRC_URI="
427 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
428 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
429 - https://dev.gentoo.org/~bircoph/afs/${PN}-patches-${PVER}.tar.xz
430 -"
431 -
432 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
433 -SLOT="0"
434 -KEYWORDS="~amd64 ~amd64-linux ~sparc ~x86 ~x86-linux"
435 -
436 -IUSE="doc kerberos +modules pam"
437 -
438 -CDEPEND="
439 - sys-libs/ncurses
440 - pam? ( virtual/pam )
441 - kerberos? ( virtual/krb5 )"
442 -
443 -DEPEND="${CDEPEND}
444 - doc? (
445 - app-text/docbook-xsl-stylesheets
446 - dev-libs/libxslt
447 - )"
448 -
449 -RDEPEND="${CDEPEND}
450 - modules? ( ~net-fs/openafs-kernel-${PV} )"
451 -
452 -S="${WORKDIR}/${MY_P}"
453 -
454 -src_prepare() {
455 - EPATCH_EXCLUDE="050_all_job_server.patch" \
456 - EPATCH_SUFFIX="patch" \
457 - epatch "${WORKDIR}"/gentoo/patches
458 - epatch_user
459 -
460 - # fixing 2-nd level makefiles to honor flags
461 - sed -i -r 's/\<CFLAGS[[:space:]]*=/CFLAGS+=/; s/\<LDFLAGS[[:space:]]*=/LDFLAGS+=/' \
462 - src/*/Makefile.in || die '*/Makefile.in sed failed'
463 -
464 - # packaging is f-ed up, so we can't run eautoreconf
465 - # run autotools commands based on what is listed in regen.sh
466 - eaclocal -I src/cf
467 - eautoconf
468 - eautoconf -o configure-libafs configure-libafs.ac
469 - eautoheader
470 - einfo "Deleting autom4te.cache directory"
471 - rm -rf autom4te.cache
472 -}
473 -
474 -src_configure() {
475 - AFS_SYSKVERS=26 \
476 - econf \
477 - --disable-kernel-module \
478 - --disable-strip-binaries \
479 - --enable-supergroups \
480 - $(use_enable pam) \
481 - $(use_with doc html-xsl /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl) \
482 - $(use_with kerberos krb5)
483 -}
484 -
485 -src_compile() {
486 - emake all_nolibafs
487 - local d
488 - if use doc; then
489 - for d in doc/xml/{AdminGuide,QuickStartUnix,UserGuide}; do
490 - emake -C "${d}" html;
491 - done
492 - fi
493 -}
494 -
495 -src_install() {
496 - local OPENRCDIR="${WORKDIR}/gentoo/openrc"
497 - local SYSTEMDDIR="${WORKDIR}/gentoo/systemd"
498 -
499 - emake DESTDIR="${ED}" install_nolibafs
500 -
501 - insinto /etc/openafs
502 - doins src/afsd/CellServDB
503 - echo "/afs:/var/cache/openafs:200000" > "${ED}"/etc/openafs/cacheinfo
504 - echo "openafs.org" > "${ED}"/etc/openafs/ThisCell
505 -
506 - # pam_afs and pam_afs.krb have been installed in irregular locations, fix
507 - if use pam ; then
508 - dopammod "${ED}"/usr/$(get_libdir)/pam_afs*
509 - fi
510 - rm -f "${ED}"/usr/$(get_libdir)/pam_afs* || die
511 -
512 - # remove kdump stuff provided by kexec-tools #222455
513 - rm -rf "${ED}"/usr/sbin/kdump*
514 -
515 - # avoid collision with mit_krb5's version of kpasswd
516 - mv "${ED}"/usr/bin/kpasswd{,_afs} || die
517 - mv "${ED}"/usr/share/man/man1/kpasswd{,_afs}.1 || die
518 -
519 - # move lwp stuff around #200674 #330061
520 - mv "${ED}"/usr/include/{lwp,lock,timer}.h "${ED}"/usr/include/afs/ || die
521 - mv "${ED}"/usr/$(get_libdir)/liblwp* "${ED}"/usr/$(get_libdir)/afs/ || die
522 - # update paths to the relocated lwp headers
523 - sed -ri \
524 - -e '/^#include <(lwp|lock|timer).h>/s:<([^>]*)>:<afs/\1>:' \
525 - "${ED}"/usr/include/*.h \
526 - "${ED}"/usr/include/*/*.h \
527 - || die
528 -
529 - # minimal documentation
530 - use pam && doman src/pam/pam_afs.5
531 - dodoc "${WORKDIR}/gentoo/README" src/afsd/CellServDB
532 -
533 - # documentation package
534 - if use doc ; then
535 - dodoc -r doc/{arch,examples,protocol,txt}
536 - dohtml -r doc/xml/*
537 - fi
538 -
539 - # Gentoo related scripts
540 - newinitd "${OPENRCDIR}"/openafs-client.initd openafs-client
541 - newconfd "${OPENRCDIR}"/openafs-client.confd openafs-client
542 - newinitd "${OPENRCDIR}"/openafs-server.initd openafs-server
543 - newconfd "${OPENRCDIR}"/openafs-server.confd openafs-server
544 - systemd_dotmpfilesd "${SYSTEMDDIR}"/tmpfiles.d/openafs-client.conf
545 - systemd_dounit "${SYSTEMDDIR}"/openafs-client.service
546 - systemd_dounit "${SYSTEMDDIR}"/openafs-server.service
547 -
548 - # used directories: client
549 - keepdir /etc/openafs
550 -
551 - # used directories: server
552 - keepdir /etc/openafs/server
553 - diropts -m0700
554 - keepdir /var/lib/openafs
555 - keepdir /var/lib/openafs/db
556 - diropts -m0755
557 - keepdir /var/lib/openafs/logs
558 -
559 - # link logfiles to /var/log
560 - dosym ../lib/openafs/logs /var/log/openafs
561 -}
562 -
563 -pkg_preinst() {
564 - ## Somewhat intelligently install default configuration files
565 - ## (when they are not present)
566 - local x
567 - for x in cacheinfo CellServDB ThisCell ; do
568 - if [ -e "${EROOT}"/etc/openafs/${x} ] ; then
569 - cp "${EROOT}"/etc/openafs/${x} "${ED}"/etc/openafs/
570 - fi
571 - done
572 -}
573 -
574 -pkg_postinst() {
575 - elog "This installation should work out of the box (at least the"
576 - elog "client part doing global afs-cell browsing, unless you had"
577 - elog "a previous and different configuration). If you want to"
578 - elog "set up your own cell or modify the standard config,"
579 - elog "please have a look at the Gentoo OpenAFS documentation"
580 - elog "(warning: it is not yet up to date wrt the new file locations)"
581 - elog
582 - elog "The documentation can be found at:"
583 - elog " https://wiki.gentoo.org/wiki/OpenAFS"
584 -}