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-kernel/
Date: Tue, 03 Nov 2015 19:07:07
Message-Id: 1446577125.8ec0b45ef56280cd52987e2cf4c26f9a0187820b.bircoph@gentoo
1 commit: 8ec0b45ef56280cd52987e2cf4c26f9a0187820b
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 18:58:45 2015 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 18:58:45 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ec0b45e
7
8 net-fs/openafs-kernel: remove old
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
12
13 net-fs/openafs-kernel/Manifest | 4 -
14 .../openafs-kernel/openafs-kernel-1.6.11-r1.ebuild | 125 ---------------------
15 .../openafs-kernel-1.6.11.1-r1.ebuild | 125 ---------------------
16 3 files changed, 254 deletions(-)
17
18 diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest
19 index a3f9875..e1a8d0d 100644
20 --- a/net-fs/openafs-kernel/Manifest
21 +++ b/net-fs/openafs-kernel/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-kernel/openafs-kernel-1.6.11-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.11-r1.ebuild
32 deleted file mode 100644
33 index 889b910..0000000
34 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.11-r1.ebuild
35 +++ /dev/null
36 @@ -1,125 +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 linux-mod multilib toolchain-funcs versionator
44 -
45 -MY_PV=$(delete_version_separator '_')
46 -MY_PN="${PN/-kernel}"
47 -MY_P="${MY_PN}-${MY_PV}"
48 -PVER="20150813"
49 -
50 -DESCRIPTION="The OpenAFS distributed file system kernel module"
51 -HOMEPAGE="http://www.openafs.org/"
52 -# We always d/l the doc tarball as man pages are not USE=doc material
53 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
54 -SRC_URI="
55 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
56 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
57 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
58 -"
59 -
60 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
61 -SLOT="0"
62 -KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux"
63 -IUSE=""
64 -
65 -S=${WORKDIR}/${MY_P}
66 -
67 -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
68 -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
69 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
70 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
71 -
72 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
73 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
74 -
75 -pkg_pretend() {
76 - if use kernel_linux && kernel_is ge 4 ; then
77 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
78 - ewarn "which are limited to the kernel versions: <4.0"
79 - ewarn ""
80 - ewarn "You are free to utilize epatch_user to provide whatever"
81 - ewarn "support you feel is appropriate, but will not receive"
82 - ewarn "support as a result of those changes."
83 - ewarn ""
84 - ewarn "Please do not file a bug report about this."
85 - fi
86 -}
87 -
88 -pkg_setup() {
89 - if use kernel_linux; then
90 - linux-mod_pkg_setup
91 - fi
92 -}
93 -
94 -src_prepare() {
95 - # do not tamper with CFLAGS for the kernel module
96 - EPATCH_EXCLUDE="040_all_flags.patch" \
97 - EPATCH_SUFFIX="patch" \
98 - epatch "${WORKDIR}"/gentoo/patches
99 - epatch "${WORKDIR}"/gentoo/security-patches/CVE-2015-{3282..3287}.patch
100 - epatch_user
101 -
102 - # packaging is f-ed up, so we can't run eautoreconf
103 - # run autotools commands based on what is listed in regen.sh
104 - eaclocal -I src/cf
105 - eautoconf
106 - eautoconf -o configure-libafs configure-libafs.ac
107 - eautoheader
108 - einfo "Deleting autom4te.cache directory"
109 - rm -rf autom4te.cache
110 -}
111 -
112 -src_configure() {
113 - local myconf=""
114 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
115 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
116 - myconf="--enable-linux-d_splice_alias-extra-iput"
117 - fi
118 -
119 - local ARCH="$(tc-arch-kernel)"
120 - local MY_ARCH="$(tc-arch)"
121 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
122 -
123 - if use kernel_linux; then
124 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
125 - --with-linux-kernel-build="${KV_OUT_DIR}"
126 - )
127 - elif use kernel_FreeBSD; then
128 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
129 - fi
130 - econf "${myconf[@]}"
131 -}
132 -
133 -src_compile() {
134 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
135 -}
136 -
137 -src_install() {
138 - if use kernel_linux; then
139 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
140 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
141 -
142 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
143 -
144 - linux-mod_src_install
145 - elif use kernel_FreeBSD; then
146 - insinto /boot/modules
147 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
148 - fi
149 -}
150 -
151 -pkg_postinst() {
152 - # Update linker.hints file
153 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
154 - use kernel_linux && linux-mod_pkg_postinst
155 -}
156 -
157 -pkg_postrm() {
158 - # Update linker.hints file
159 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
160 - use kernel_linux && linux-mod_pkg_postrm
161 -}
162
163 diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.11.1-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.11.1-r1.ebuild
164 deleted file mode 100644
165 index 4e71778..0000000
166 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.11.1-r1.ebuild
167 +++ /dev/null
168 @@ -1,125 +0,0 @@
169 -# Copyright 1999-2015 Gentoo Foundation
170 -# Distributed under the terms of the GNU General Public License v2
171 -# $Id$
172 -
173 -EAPI="5"
174 -
175 -inherit autotools eutils linux-mod multilib toolchain-funcs versionator
176 -
177 -MY_PV=$(delete_version_separator '_')
178 -MY_PN="${PN/-kernel}"
179 -MY_P="${MY_PN}-${MY_PV}"
180 -PVER="20150813"
181 -
182 -DESCRIPTION="The OpenAFS distributed file system kernel module"
183 -HOMEPAGE="http://www.openafs.org/"
184 -# We always d/l the doc tarball as man pages are not USE=doc material
185 -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE=""
186 -SRC_URI="
187 - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2
188 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2
189 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz
190 -"
191 -
192 -LICENSE="IBM BSD openafs-krb5-a APSL-2"
193 -SLOT="0"
194 -KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux"
195 -IUSE=""
196 -
197 -S=${WORKDIR}/${MY_P}
198 -
199 -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS"
200 -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option"
201 -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!"
202 -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled"
203 -
204 -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko"
205 -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko"
206 -
207 -pkg_pretend() {
208 - if use kernel_linux && kernel_is ge 4 1 ; then
209 - ewarn "Gentoo supports kernels which are supported by OpenAFS"
210 - ewarn "which are limited to the kernel versions: <4.1"
211 - ewarn ""
212 - ewarn "You are free to utilize epatch_user to provide whatever"
213 - ewarn "support you feel is appropriate, but will not receive"
214 - ewarn "support as a result of those changes."
215 - ewarn ""
216 - ewarn "Please do not file a bug report about this."
217 - fi
218 -}
219 -
220 -pkg_setup() {
221 - if use kernel_linux; then
222 - linux-mod_pkg_setup
223 - fi
224 -}
225 -
226 -src_prepare() {
227 - # do not tamper with CFLAGS for the kernel module
228 - EPATCH_EXCLUDE="040_all_flags.patch" \
229 - EPATCH_SUFFIX="patch" \
230 - epatch "${WORKDIR}"/gentoo/patches
231 - epatch "${WORKDIR}"/gentoo/security-patches/CVE-2015-{3282..3287}.patch
232 - epatch_user
233 -
234 - # packaging is f-ed up, so we can't run eautoreconf
235 - # run autotools commands based on what is listed in regen.sh
236 - eaclocal -I src/cf
237 - eautoconf
238 - eautoconf -o configure-libafs configure-libafs.ac
239 - eautoheader
240 - einfo "Deleting autom4te.cache directory"
241 - rm -rf autom4te.cache
242 -}
243 -
244 -src_configure() {
245 - local myconf=""
246 - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option
247 - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then
248 - myconf="--enable-linux-d_splice_alias-extra-iput"
249 - fi
250 -
251 - local ARCH="$(tc-arch-kernel)"
252 - local MY_ARCH="$(tc-arch)"
253 - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC"
254 -
255 - if use kernel_linux; then
256 - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \
257 - --with-linux-kernel-build="${KV_OUT_DIR}"
258 - )
259 - elif use kernel_FreeBSD; then
260 - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" )
261 - fi
262 - econf "${myconf[@]}"
263 -}
264 -
265 -src_compile() {
266 - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs
267 -}
268 -
269 -src_install() {
270 - if use kernel_linux; then
271 - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*)
272 - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module"
273 -
274 - MODULE_NAMES="libafs(fs/openafs:${srcdir})"
275 -
276 - linux-mod_src_install
277 - elif use kernel_FreeBSD; then
278 - insinto /boot/modules
279 - doins "${S}"/src/libafs/MODLOAD/libafs.ko
280 - fi
281 -}
282 -
283 -pkg_postinst() {
284 - # Update linker.hints file
285 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
286 - use kernel_linux && linux-mod_pkg_postinst
287 -}
288 -
289 -pkg_postrm() {
290 - # Update linker.hints file
291 - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
292 - use kernel_linux && linux-mod_pkg_postrm
293 -}