From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 93D2C59CA9 for ; Sat, 26 Mar 2016 19:15:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3E7421C022; Sat, 26 Mar 2016 19:15:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2292921C006 for ; Sat, 26 Mar 2016 19:15:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B7B3A340B1F for ; Sat, 26 Mar 2016 19:15:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 344FB845 for ; Sat, 26 Mar 2016 19:15:29 +0000 (UTC) From: "Andrew Savchenko" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Savchenko" Message-ID: <1459019715.111a99e6a4c23625f5f4b5bf2c1d5a9056feb9f5.bircoph@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/openafs-kernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/openafs-kernel/Manifest net-fs/openafs-kernel/openafs-kernel-1.6.12-r1.ebuild net-fs/openafs-kernel/openafs-kernel-1.6.14.ebuild net-fs/openafs-kernel/openafs-kernel-1.6.16.ebuild X-VCS-Directories: net-fs/openafs-kernel/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: 111a99e6a4c23625f5f4b5bf2c1d5a9056feb9f5 X-VCS-Branch: master Date: Sat, 26 Mar 2016 19:15:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: af516b3f-9d8d-4fbd-b1ae-3ae8f87e884a X-Archives-Hash: 4855b78707f6a9ae8cea62762238a514 commit: 111a99e6a4c23625f5f4b5bf2c1d5a9056feb9f5 Author: Andrew Savchenko gentoo org> AuthorDate: Sat Mar 26 19:07:48 2016 +0000 Commit: Andrew Savchenko gentoo org> CommitDate: Sat Mar 26 19:15:15 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=111a99e6 net-fs/openafs-kernel: remove old and vulnerable versions Bug: 564388 Package-Manager: portage-2.2.28 Signed-off-by: Andrew Savchenko gentoo.org> net-fs/openafs-kernel/Manifest | 8 -- .../openafs-kernel/openafs-kernel-1.6.12-r1.ebuild | 125 --------------------- net-fs/openafs-kernel/openafs-kernel-1.6.14.ebuild | 124 -------------------- net-fs/openafs-kernel/openafs-kernel-1.6.16.ebuild | 121 -------------------- 4 files changed, 378 deletions(-) diff --git a/net-fs/openafs-kernel/Manifest b/net-fs/openafs-kernel/Manifest index d7385f3..05a06cb 100644 --- a/net-fs/openafs-kernel/Manifest +++ b/net-fs/openafs-kernel/Manifest @@ -1,10 +1,2 @@ -DIST openafs-1.6.12-doc.tar.bz2 3531628 SHA256 1b5726f77ee98ae45b4b6d0142a65724e8f08099eb1b2a4308ae8f0638199963 SHA512 b0389f5aecce913a50e827204c3d3f19964473d4b8b0e6e39d91d00971e4be57b4cfece0b4bc40fb3b6f5d7d60ee40b079883505625413f0748035452c3c2686 WHIRLPOOL a795b70caf84e17d5bea720a12e2c1aa159a34105f51dbcf60a464b2c8bf81a9624e8beede566c9c4b6ceeff424db7925bf588a7383f0860df8ec65828d32cc1 -DIST openafs-1.6.12-src.tar.bz2 14603726 SHA256 c47ffaa24bf2373264e330a624acafb5f509f4b00d63394b96e9bab131bf5802 SHA512 12c4b1ad12be7d44c56907f250b1d1ef94ca04f2b6e6d8c750da2a304cd0c60dd410516a3fa414442149e3a99c0cfd7aef283f09106889039035347793f01fc8 WHIRLPOOL f14e72aef41c47dd4e78b519b65fc01b67d709bd027a3004a501b621d71cc76f4d27ab5704421e39f05a611516ddcba9f1c2715fd4662cff13349be31b7a61a9 -DIST openafs-1.6.14-doc.tar.bz2 3530481 SHA256 544fb3370465881bd1aadb24cf9e40610ff23d8445759c659d5354ce1e9358c3 SHA512 35de279fd61c657f5cd1b5fa26113a667155c2f2733fffb9bafeec1ac6be548fa335e5039e783cd6031fbc0ab8d27dd576e4571d76dd3f403283d5b32f75ca50 WHIRLPOOL 0663663a365f20448641093b1fc086219d395a7603c1658b69c083657ae0a2fec3d16a44e48adc3a7669b4a89ea07f0ce8e91d80134c5a5a1a193f304ced4a0b -DIST openafs-1.6.14-src.tar.bz2 14605615 SHA256 3e62c798a7f982c4f88d85d32e46bee6a47848d207b1e318fe661ce44ae4e01f SHA512 957178b1c3f6262e831ec497b7dd76e208a48f2107942d44ce72b062081e2932b93cb800b786eb88b770a647daf3585f659fdd1e715d0e724ac56eae011f3601 WHIRLPOOL 43e58a9e34ed2340c732b88261ecf4043f7a6e7db18bac7113b74455b1a2f1ed864d345bf41bac42d6d437ae18778e7f37a794b738a882c0fb5e36257af7d960 -DIST openafs-1.6.16-src.tar.bz2 14612920 SHA256 3431702bdcbd1b27833060c50869e618a192495877ebb0a66e4610de0b48eb81 SHA512 775c6b51e4a916ab14c2a33b746ffc67ce7f8e4d4d75e17374341d81b8d8b424971ffd67ba191848be28560cefceecc51f1f608ccdc7d896bafafa68e1726cb9 WHIRLPOOL 0da43210ee7779e49b86bb337bef5f3b70fdf3876eca763025d45628533a7ce7104b193c0c9d98d2f4363314faa79c7bd367432c5272c9b12249623f9b342812 DIST openafs-1.6.17-src.tar.bz2 14607107 SHA256 96413a2dbffdc9170cc5dde6aa5ad0ae2383c6106994285ed8f186928813a398 SHA512 3ca61a7731c9bd9bae7da2f7b3900438fcc9f75c95b354574389c2203af2ec0a7b4dcaaf13a437743477fcad8a46c3bbb8c68255a976b9a9917b8f0a0cdf028f WHIRLPOOL 92de51878836a721e6fadbe2f6c7a8069ecf622a08fd05e3a01d8fef376bd2e18e9f3b4715d42a26e8d5f1d665f91924520ed6928ed1f460bac49b1bc906e129 -DIST openafs-patches-20150626.tar.xz 10588 SHA256 b221842e82e4807e6b8064454df3792b12f3d73104462d83aa88c79e3028fb4a SHA512 b77df9dc734965301585d5f66732fef119282e49cbd5c121f45aa9f0b64fc6c62e1cd93c8b7ff81702f6baece0df3cf9d99ab796e84f2c0c610dc2e2fd3cedf6 WHIRLPOOL 71778ab6f64a156f8f559d446e09cbb8278f2f0965225a21767a2a28883e228620c37241cd439426a3163ede8b04f676f2b4aea7c14394c82bdc47dc2643e6b2 -DIST openafs-patches-20150813.tar.xz 15520 SHA256 209766f5e97e924eab91d862875f360e0ed9821b317ee609789a77d7fbdeb8f0 SHA512 2703f65e7c3f1a724e9330d8f2aedf80f9d0b8ba4b03a5f466cd523eb8d0a1692542df722b24e06ce4ced476fb8615e2caca6159de7b18f151ecf7a14a5f0565 WHIRLPOOL c4055a7c0cf19847ecd8679316a0146b41589f157996b2f15b807d272270e65c1a6ee5f916d3127803cd26370c392b1e751d100d2ab383a57530b768e1682d60 -DIST openafs-patches-20160223.tar.xz 10536 SHA256 19c14ecd625ce96370fe3629faffd2841567954d687e1ee30c81a848702231a6 SHA512 83018a4ace8189182de7b878094c773996d824f9127f15167e1b5795e4b7af8f3cb3a86e054b95043343ff88c8b505376005cd97cc91b50e6bf05b2d5242ccbd WHIRLPOOL 8f58b30446fccf37df9460ff3ab87cbd2338346c545aca48bc328578951b92b3e34fe102ade2bcb822ddee5c826d9834d0c2ce257092aa9bdde4717afbbd756d DIST openafs-patches-20160321.tar.xz 10940 SHA256 b8919d4db7ac962922f797b5f6a855de27f019f43163d4362946ae9b80d73278 SHA512 581f2248cd9926e79d9b2d30d5e9e3349794e8751e0382fd47c59d5d131f7d814744ed9926f008525466afa9c783e59b2f10d3def5d37966aad98c04873cf4c5 WHIRLPOOL 6da7619158dccb5fcc86e73d9d2f0c83f16fdf2dee8bf51e860db307e96262f5e669e2f3d34b166f0b5cd83f9b5b36018efc4de8e45e1265964919b24ac85b1a diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.12-r1.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.12-r1.ebuild deleted file mode 100644 index 9f1d144..0000000 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.12-r1.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -inherit autotools eutils linux-mod multilib toolchain-funcs versionator - -MY_PV=$(delete_version_separator '_') -MY_PN="${PN/-kernel}" -MY_P="${MY_PN}-${MY_PV}" -PVER="20150813" - -DESCRIPTION="The OpenAFS distributed file system kernel module" -HOMEPAGE="http://www.openafs.org/" -# We always d/l the doc tarball as man pages are not USE=doc material -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE="" -SRC_URI=" - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz -" - -LICENSE="IBM BSD openafs-krb5-a APSL-2" -SLOT="0" -KEYWORDS="amd64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" -IUSE="" - -S=${WORKDIR}/${MY_P} - -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS" -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option" -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled" - -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko" -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko" - -pkg_pretend() { - if use kernel_linux && kernel_is ge 4 2 ; then - ewarn "Gentoo supports kernels which are supported by OpenAFS" - ewarn "which are limited to the kernel versions: <4.2" - ewarn "" - ewarn "You are free to utilize epatch_user to provide whatever" - ewarn "support you feel is appropriate, but will not receive" - ewarn "support as a result of those changes." - ewarn "" - ewarn "Please do not file a bug report about this." - fi -} - -pkg_setup() { - if use kernel_linux; then - linux-mod_pkg_setup - fi -} - -src_prepare() { - # do not tamper with CFLAGS for the kernel module - EPATCH_EXCLUDE="040_all_flags.patch" \ - EPATCH_SUFFIX="patch" \ - epatch "${WORKDIR}"/gentoo/patches - epatch "${WORKDIR}"/gentoo/security-patches/CVE-2015-{3282..3287}.patch - epatch_user - - # packaging is f-ed up, so we can't run eautoreconf - # run autotools commands based on what is listed in regen.sh - eaclocal -I src/cf - eautoconf - eautoconf -o configure-libafs configure-libafs.ac - eautoheader - einfo "Deleting autom4te.cache directory" - rm -rf autom4te.cache -} - -src_configure() { - local myconf="" - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then - myconf="--enable-linux-d_splice_alias-extra-iput" - fi - - local ARCH="$(tc-arch-kernel)" - local MY_ARCH="$(tc-arch)" - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC" - - if use kernel_linux; then - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \ - --with-linux-kernel-build="${KV_OUT_DIR}" - ) - elif use kernel_FreeBSD; then - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" ) - fi - econf "${myconf[@]}" -} - -src_compile() { - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs -} - -src_install() { - if use kernel_linux; then - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*) - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module" - - MODULE_NAMES="libafs(fs/openafs:${srcdir})" - - linux-mod_src_install - elif use kernel_FreeBSD; then - insinto /boot/modules - doins "${S}"/src/libafs/MODLOAD/libafs.ko - fi -} - -pkg_postinst() { - # Update linker.hints file - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" - use kernel_linux && linux-mod_pkg_postinst -} - -pkg_postrm() { - # Update linker.hints file - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" - use kernel_linux && linux-mod_pkg_postrm -} diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.14.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.14.ebuild deleted file mode 100644 index 30ad1f0..0000000 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.14.ebuild +++ /dev/null @@ -1,124 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -inherit autotools eutils linux-mod multilib toolchain-funcs versionator - -MY_PV=$(delete_version_separator '_') -MY_PN="${PN/-kernel}" -MY_P="${MY_PN}-${MY_PV}" -PVER="20150626" - -DESCRIPTION="The OpenAFS distributed file system kernel module" -HOMEPAGE="http://www.openafs.org/" -# We always d/l the doc tarball as man pages are not USE=doc material -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE="" -SRC_URI=" - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2 - http://openafs.org/dl/openafs/${MY_PV}/${MY_P}-doc.tar.bz2 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz -" - -LICENSE="IBM BSD openafs-krb5-a APSL-2" -SLOT="0" -KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux" -IUSE="" - -S=${WORKDIR}/${MY_P} - -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS" -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option" -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled" - -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko" -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko" - -pkg_pretend() { - if use kernel_linux && kernel_is ge 4 2 ; then - ewarn "Gentoo supports kernels which are supported by OpenAFS" - ewarn "which are limited to the kernel versions: <4.2" - ewarn "" - ewarn "You are free to utilize epatch_user to provide whatever" - ewarn "support you feel is appropriate, but will not receive" - ewarn "support as a result of those changes." - ewarn "" - ewarn "Please do not file a bug report about this." - fi -} - -pkg_setup() { - if use kernel_linux; then - linux-mod_pkg_setup - fi -} - -src_prepare() { - # do not tamper with CFLAGS for the kernel module - EPATCH_EXCLUDE="040_all_flags.patch" \ - EPATCH_SUFFIX="patch" \ - epatch "${WORKDIR}"/gentoo/patches - epatch_user - - # packaging is f-ed up, so we can't run eautoreconf - # run autotools commands based on what is listed in regen.sh - eaclocal -I src/cf - eautoconf - eautoconf -o configure-libafs configure-libafs.ac - eautoheader - einfo "Deleting autom4te.cache directory" - rm -rf autom4te.cache -} - -src_configure() { - local myconf="" - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then - myconf="--enable-linux-d_splice_alias-extra-iput" - fi - - local ARCH="$(tc-arch-kernel)" - local MY_ARCH="$(tc-arch)" - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC" - - if use kernel_linux; then - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \ - --with-linux-kernel-build="${KV_OUT_DIR}" - ) - elif use kernel_FreeBSD; then - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" ) - fi - econf "${myconf[@]}" -} - -src_compile() { - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs -} - -src_install() { - if use kernel_linux; then - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*) - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module" - - MODULE_NAMES="libafs(fs/openafs:${srcdir})" - - linux-mod_src_install - elif use kernel_FreeBSD; then - insinto /boot/modules - doins "${S}"/src/libafs/MODLOAD/libafs.ko - fi -} - -pkg_postinst() { - # Update linker.hints file - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" - use kernel_linux && linux-mod_pkg_postinst -} - -pkg_postrm() { - # Update linker.hints file - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" - use kernel_linux && linux-mod_pkg_postrm -} diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.16.ebuild b/net-fs/openafs-kernel/openafs-kernel-1.6.16.ebuild deleted file mode 100644 index 316d7c9..0000000 --- a/net-fs/openafs-kernel/openafs-kernel-1.6.16.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="6" - -inherit autotools linux-mod multilib toolchain-funcs versionator - -MY_PV=$(delete_version_separator '_') -MY_PN="${PN/-kernel}" -MY_P="${MY_PN}-${MY_PV}" -PVER="20160223" - -DESCRIPTION="The OpenAFS distributed file system kernel module" -HOMEPAGE="http://www.openafs.org/" -# We always d/l the doc tarball as man pages are not USE=doc material -[[ ${PV} == *_pre* ]] && MY_PRE="candidate/" || MY_PRE="" -SRC_URI=" - http://openafs.org/dl/openafs/${MY_PRE}${MY_PV}/${MY_P}-src.tar.bz2 - https://dev.gentoo.org/~bircoph/afs/${MY_PN}-patches-${PVER}.tar.xz -" - -LICENSE="IBM BSD openafs-krb5-a APSL-2" -SLOT="0" -KEYWORDS="~amd64 ~amd64-fbsd ~amd64-linux ~sparc ~x86 ~x86-fbsd ~x86-linux" -IUSE="" - -S=${WORKDIR}/${MY_P} - -CONFIG_CHECK="!DEBUG_RODATA ~!AFS_FS KEYS" -ERROR_DEBUG_RODATA="OpenAFS is incompatible with linux' CONFIG_DEBUG_RODATA option" -ERROR_AFS_FS="OpenAFS conflicts with the in-kernel AFS-support. Make sure not to load both at the same time!" -ERROR_KEYS="OpenAFS needs CONFIG_KEYS option enabled" - -QA_TEXTRELS_x86_fbsd="/boot/modules/libafs.ko" -QA_TEXTRELS_amd64_fbsd="/boot/modules/libafs.ko" - -PATCHES=( "${WORKDIR}/gentoo/patches" ) - -pkg_pretend() { - if use kernel_linux && kernel_is ge 4 3 ; then - ewarn "Gentoo supports kernels which are supported by OpenAFS" - ewarn "which are limited to the kernel versions: <4.3" - ewarn "" - ewarn "You are free to utilize epatch_user to provide whatever" - ewarn "support you feel is appropriate, but will not receive" - ewarn "support as a result of those changes." - ewarn "" - ewarn "Please do not file a bug report about this." - fi -} - -pkg_setup() { - if use kernel_linux; then - linux-mod_pkg_setup - fi -} - -src_prepare() { - default - - # packaging is f-ed up, so we can't run eautoreconf - # run autotools commands based on what is listed in regen.sh - eaclocal -I src/cf - eautoconf - eautoconf -o configure-libafs configure-libafs.ac - eautoheader - einfo "Deleting autom4te.cache directory" - rm -rf autom4te.cache -} - -src_configure() { - local myconf="" - # OpenAFS 1.6.11 has a bug with kernels 3.17-3.17.2 that requires a config option - if use kernel_linux && kernel_is -ge 3 17 && kernel_is -le 3 17 2; then - myconf="--enable-linux-d_splice_alias-extra-iput" - fi - - local ARCH="$(tc-arch-kernel)" - local MY_ARCH="$(tc-arch)" - local BSD_BUILD_DIR="/usr/src/sys/${MY_ARCH}/compile/GENERIC" - - if use kernel_linux; then - myconf+=( --with-linux-kernel-headers="${KV_DIR}" \ - --with-linux-kernel-build="${KV_OUT_DIR}" - ) - elif use kernel_FreeBSD; then - myconf+=( --with-bsd-kernel-build="${BSD_BUILD_DIR}" ) - fi - econf "${myconf[@]}" -} - -src_compile() { - ARCH="$(tc-arch-kernel)" AR="$(tc-getAR)" emake V=1 -j1 only_libafs -} - -src_install() { - if use kernel_linux; then - local srcdir=$(expr "${S}"/src/libafs/MODLOAD-*) - [[ -f ${srcdir}/libafs.${KV_OBJ} ]] || die "Couldn't find compiled kernel module" - - MODULE_NAMES="libafs(fs/openafs:${srcdir})" - - linux-mod_src_install - elif use kernel_FreeBSD; then - insinto /boot/modules - doins "${S}"/src/libafs/MODLOAD/libafs.ko - fi -} - -pkg_postinst() { - # Update linker.hints file - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" - use kernel_linux && linux-mod_pkg_postinst -} - -pkg_postrm() { - # Update linker.hints file - use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules" - use kernel_linux && linux-mod_pkg_postrm -}