summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-09-21 11:00:03 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-09-21 11:00:03 +0000
commiteb1e87a355e14ac58d27ca041e151cb7024c908e (patch)
treea6fc5d8f8b7a70de86d90c10a46b5dbf1f26c23e /sys-apps/kmod
parentold (diff)
downloadhistorical-eb1e87a355e14ac58d27ca041e151cb7024c908e.tar.gz
historical-eb1e87a355e14ac58d27ca041e151cb7024c908e.tar.bz2
historical-eb1e87a355e14ac58d27ca041e151cb7024c908e.zip
old
Package-Manager: portage-2.2.13/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-apps/kmod')
-rw-r--r--sys-apps/kmod/ChangeLog6
-rw-r--r--sys-apps/kmod/Manifest28
-rw-r--r--sys-apps/kmod/files/kmod-static-nodes18
-rw-r--r--sys-apps/kmod/kmod-16.ebuild136
-rw-r--r--sys-apps/kmod/kmod-17.ebuild195
-rw-r--r--sys-apps/kmod/kmod-18.ebuild195
6 files changed, 13 insertions, 565 deletions
diff --git a/sys-apps/kmod/ChangeLog b/sys-apps/kmod/ChangeLog
index 186adce7b271..4b6a51ccd829 100644
--- a/sys-apps/kmod/ChangeLog
+++ b/sys-apps/kmod/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/kmod
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.169 2014/09/21 10:28:29 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.170 2014/09/21 10:59:57 ssuominen Exp $
+
+ 21 Sep 2014; Samuli Suominen <ssuominen@gentoo.org> -files/kmod-static-nodes,
+ -kmod-16.ebuild, -kmod-17.ebuild, -kmod-18.ebuild:
+ old
21 Sep 2014; Agostino Sarubbo <ago@gentoo.org> kmod-18-r1.ebuild:
Stable for sparc, wrt bug #517106
diff --git a/sys-apps/kmod/Manifest b/sys-apps/kmod/Manifest
index 67d83a2bc7b1..0fe4b679b13f 100644
--- a/sys-apps/kmod/Manifest
+++ b/sys-apps/kmod/Manifest
@@ -2,32 +2,20 @@
Hash: SHA256
AUX kmod-15-dynamic-kmod.patch 493 SHA256 36aa0232ec80a8f211c29d349ab5ef8c3f6dea1cb490e5d5c272125d30e3f04d SHA512 f26a75da8b0cfe861c60e6bdb66eec61be74038e1fa4ae45c4f8d19ea2b08e2b96683bc33e5b91945522c8dfc3af61bac094b31a1dda44965e378acf4ec4eb83 WHIRLPOOL 33e5bcb0658215005feb952dd0f42fb60242d1541d4e9ac5a76a34fba16b3638d48eeec17c1d9a98caff4d0f80e8fa9e37a2b0a2bbcfabbf9c25571460d8536d
-AUX kmod-static-nodes 584 SHA256 078b07581e63b5113cef9e85da7d5b53e1fbad91d793f7fa8b7188b364689b0e SHA512 cddd4e95ffd112adedfb01c90ea3cea268236983f2dd88f0a83855d62dfa8a63e1f1457a9517ebbc45970455b8f8c0dc7f4d56c138bcc3d453c7ba61d189ff85 WHIRLPOOL 920e19b8d99ff77a337b0edf2fda3461249bdd253d1c6d14c1e872d931ef643679185e8bac6b7d58490dae640f78cc1a8492f627893bfee46b48fa2c4efc947b
AUX kmod-static-nodes-r1 601 SHA256 21995879ee2ac6727ca5784a309eff5dd41b93030efc854f123b8a4d8ef3294b SHA512 d95b63174b7e28cc8d72b28a1a436fb108164528d5643ce9f65012f233151604f6b26c20c64fbe2f657fbbd6863c08ae9094c5bdc2dfc68d417448e268a7bc11 WHIRLPOOL f0342f23912535134e5cbc88cd13fdd9a6681ba5502a15cb5b0d5aafe2d6db4a2bba806293be29b9e14f11ad28456cc1104f6d031b88d1142ab313407df73163
-DIST kmod-16.tar.xz 1440880 SHA256 63412efab37c70459ccef167556965c93fd4f56af5986cd3750542a684c613c5 SHA512 326921bb184d53840837cc600f6301b948031ef7c2048e46ef16bc26ef7b967fa3c20cb133b1ebbddcf8a8537e9af8166fbca6a28d94f694f12ce1d89361a1bc WHIRLPOOL 625c277d7733a344040eaaeca26ce103d79c96ca1ba7759302e5fd573bba86285420c6f599a70411e7732e22145108afadbc29606d9f8fc62fe94479480f3a3f
-DIST kmod-17.tar.xz 1484336 SHA256 3ba7470041de04ca88308f501901b574169cb517d3192397074611b3921a2dfa SHA512 2b237a96b8bcfe03bde30d4f8b6886f8ec33817cc6f0fe810f6f382310bd71814236b299b9051304ca5a9b29c205d8e1ba5a15bf6ee98648644ac268dc368294 WHIRLPOOL 421f95e48da7baf40617c9222d4cc26868d26dbf51f77aa2613cfe5cf7a84b5489eca4611fe86108135c164890eeab32916836776561ab8f2541aa10456d1095
DIST kmod-18.tar.xz 1473904 SHA256 e16e57272b54acb219c465b334715cfdddb5d97ff5d8948d4830ca1a372a868e SHA512 6704f52f1b69837f06516237fb61d3f29551b06e59f270561993e0318c104bdc0140a32d3fc9bda859d0918412ea2c40effa0ceeccbda5e1cb79a204d7219847 WHIRLPOOL d8e022cdbf19cef8dac46f70d49dcb0b9812e6b263bf40628a082de3696793fe591cc402b12773b43a86b3514910c292aebb7b8fc8954c796ac9679e65f43b98
-EBUILD kmod-16.ebuild 3735 SHA256 5325d9ba4144421271f908974a3b50fe74763b1c77a5e6dd4181d0b84592325c SHA512 f1ce4bfddd2ca97d3049909ec27cea3285b911a31aa848bff3af2673ff4bbce2e0f5ba1b039402d1d622e1b1055e5443cad9d2278ffd10dfb852880df6a3eedc WHIRLPOOL 8a506524926f894a7558c49318f252ba39beaa5d6265b006a1c2e37cfaf24ffc2899f4772f4f4aee209c75b64f233905a35e7e1992e7236a0d0f1d40ced97aba
-EBUILD kmod-17.ebuild 5109 SHA256 c3aa8b863fb346699d905ac810b627ae36a4732cfd343e705eea334e22fa924e SHA512 59debd9744beba70841ee697cf1e1e5fecfdddc5f3f7fa7bf5a2883710b3db35b0bea34484c18254a42b76fba6f8febfb4631fca5b65878164e03f1f91f03c89 WHIRLPOOL c1df809d63d98d50e626adcc8bf8caaffe29d124c2afed10c5d20dc279bcb39f5ebcab2476f426a7aea07d9fe5e461418edb14208febc41c9f5123455cb16735
EBUILD kmod-18-r1.ebuild 5132 SHA256 f04627c9c6b5c2d7bd5957e7dd59b327e5168c9b22c9d47aa1b3ff29eb640512 SHA512 fa38a302199f0885978be09d30f3d3c0dc618d761a817a407d9543d013aae916ca772ae21af583ed30d5b4c8ce93192a935ce2fda325de68bad2d7519fadc99c WHIRLPOOL 74480ff2eb3b6181d51df442301efb7b3caefe963140ee60c5799a9838bd86bfbfa6fd77d7b08b681b160629b00c3d74659f5ea7078aa5255650a88fa126dbe8
-EBUILD kmod-18.ebuild 5117 SHA256 66b0a1d588d157a2ffaabc536949fdc1be4da6e7aeb5b252fcf1e90210a2ad1d SHA512 bbd400ab3541c39076d7b73f24f8e53cf7478f2e00eb923a85789fdd3f4082c226f20e8383749b718bc24468f627fb26c8f92b4c727a40f4be4110c79bb6f08a WHIRLPOOL 611021d8fde81651af28e3d01419b68ae2587b613f9b3b7db73c73cf1933d29385421ff4bf547254fcb20bf86e51d7f0fd1ab655fd64e708e6e5cfa91e0b4aa1
EBUILD kmod-9999.ebuild 5142 SHA256 2972d595df05e2f4c8389a8b40f1444442bcbda244a3895f120dd2bee0d8ad07 SHA512 5039cdfd61ee9a70108ef03bb9ab732a88573ac34551ffd8df5dab913684fd13037a40b8109d79ef4958912569d62a047080bf104d4e7cb9b2abc3dee839fe05 WHIRLPOOL 606fb19a19dfe88b4cc8154ef64ee14ee2a957a351c2feab5e1915f3b35317479a80adde5e059acb3b238d1cd57352775cf7f77c32720477c794b5bcd6eb0ead
-MISC ChangeLog 24113 SHA256 43bdabf4dd8372a412078f861dff6605d610f7810aa837e9bbee956a349caaa9 SHA512 aa7186b1d528b4ff9e5925f97d3ddae85c40e6f8e3f59d31b4bddf7f9a4d3097a5b11fdfe7342a9ef2c11a41f157f64723a87c52a5295423b3402933cc69a104 WHIRLPOOL 1843b8ab91b58e78aa4dadd23e73a6cffc2c62f08e839af8321f02b035205f8c071967fcfdd8d47aab859bee5d639ce0b51c47bc0f10a0d49206e51f3b698b1d
+MISC ChangeLog 24259 SHA256 6f057dae0d647af6a13ca65100c0c5383589be278c3cc50eddd9f502a331bab1 SHA512 c2408ee829d182064610df4c48d5873798c88663c2a87ae534e307efa06a22fd74047c3d1f795e25c72eac8b8034b6fa61e8ac4341b3f2871c0f1fbe2c73cfc8 WHIRLPOOL c13c156d887b8455c4ebe31d7ac91cc00ff014556069feafc061e8c63831725d11e6a94fe492217a59eb7231dad2d8995d1b634e8eb6cd9b83eaf1b29bc2a307
MISC metadata.xml 315 SHA256 615f47d63e08942e7a0c3cd3246f70d2f49b276aec75c84a9ec5e1188a91a18e SHA512 0f8bb9e3ba70ec5084d3c8a3fe8fba508dec2a33cb77cc13f3aba35c70b53d9011674a862033de6ba83aefb1b351b4d1fac7112d2e61070444620191f8ed8742 WHIRLPOOL 928f3536c928ba3457a2f94eb6de26e3c13f5a34748d554219edd8aa5841c24ebbc5930fcb147550c0cd9d8f5eae8f4a1cd04f3267ddbe066450178e38d7cb37
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJUHqhOAAoJELp701BxlEWfWIYP+wXZQb1Lb/cDTWPLVK5K+bvZ
-Km/JaYk7jKhmFNUreqKEgFZTbSrl47+2Cd6PHAO8/ws2jKoabUBSrKROYHbBWMDS
-7FCncFimVZuLiLO4li/lpFbWiY2C1ZGtYQKB4+JZ89vByCsxVkp3ubNUYKCqh4oD
-BkyCdtrlL9t/XAAcFhneYhDEAC827qGq0Q5HyoMeC83jR2ckiQ7tZwweDUEzhH26
-PHz7+CtjrWluhtKrv09b2ysM5J8/gsHL+74zssVG+pbTjPiw/+Ltm1KT8lLeUWXs
-o59jFa+9R9FqzwAFTkdneXCchEj8JlQXFsi9ymvWkb5748E+mOvvQ58gwx/3cOHS
-UE+ta6KeeYT0YkHzWg6fxNpa2FDS5XgtzhlWz/+U2HzK2Hgxg0tOoTbEoggylxRq
-l7oOQEBNJ3UEnaInHjph4vjs8vcSjy6mdViJ+jJUNlA5krL1lqF1rk63ko6uoMo7
-LmX0XjjMHSKfygJTBn3qz5jYIMkPue6yE04xUsbYe64ubkHWwUKHtXIKy8nVPERU
-TOpybQlePcrY5eEVj8lAGXB6/p65h4t2qe67ykMCTilMrseoqT+8smQH1202/6K6
-cEKTBwH8ToVVIMuoofmLrlT3ezqUUGBYnRn09XXjyZR7KmPDaVHVQjhLPXhsAZMJ
-/Gc78Qov2P1dqYwgpq/I
-=FPL8
+iQEcBAEBCAAGBQJUHq+gAAoJEEdUh39IaPFN2kYH/045aHhdLOp2PyEWNf14RfDG
+PUKr8pGXwIiz2uAyIENcDcYmLp72f95q+7Fw+al6EiWtHOrMdTpQgp4kvpJeZBDD
+gq3Y8V7dX9M9zibad6JoBN99usYy64KZuOQb4ytpiRb2nl4kKzp6oLMMQTJp6+wZ
+O95EUU3yOQt6rzjiY/uUO3n/VAhVqb+eCZUfgxgx8N7LcKgtTw0bff58bdGkhE5i
+mQtoI7uUbSJkBVSz9/e6/+my0TySMsWGJc0uWgsD1cQaUq66Z2W4QavM5l7vPgfH
+EEK/5WcQnbECStBiaH7alrxXJrPJzMM6/nOHOpbq6tXsK6Ein+lWW/QXhnVQmCc=
+=O7bg
-----END PGP SIGNATURE-----
diff --git a/sys-apps/kmod/files/kmod-static-nodes b/sys-apps/kmod/files/kmod-static-nodes
deleted file mode 100644
index 43d843111314..000000000000
--- a/sys-apps/kmod/files/kmod-static-nodes
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/files/kmod-static-nodes,v 1.1 2013/08/09 19:08:18 ssuominen Exp $
-
-description="Create list of required static device nodes for the current kernel"
-
-depend() {
- after dev-mount
- before tmpfiles.dev dev
-}
-
-start() {
- ebegin "Creating list of required static device nodes for the current kernel"
- checkpath -q -d /run/tmpfiles.d
- kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
- eend $?
-}
diff --git a/sys-apps/kmod/kmod-16.ebuild b/sys-apps/kmod/kmod-16.ebuild
deleted file mode 100644
index 448ab377fc0b..000000000000
--- a/sys-apps/kmod/kmod-16.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-16.ebuild,v 1.17 2014/09/02 03:24:55 ryao Exp $
-
-EAPI=5
-inherit bash-completion-r1 eutils multilib
-
-if [[ ${PV} == 9999* ]]; then
- EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
- inherit autotools git-2
-else
- SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
- inherit libtool
-fi
-
-DESCRIPTION="library and tools for managing linux kernel modules"
-HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
-
-LICENSE="LGPL-2"
-SLOT="0"
-IUSE="debug doc lzma static-libs +tools zlib"
-
-# Upstream does not support running the test suite with custom configure flags.
-# I was also told that the test suite is intended for kmod developers.
-# So we have to restrict it.
-# See bug #408915.
-RESTRICT="test"
-
-RDEPEND="!sys-apps/module-init-tools
- !sys-apps/modutils
- lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
- !<sys-apps/openrc-0.12
- zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
-DEPEND="${RDEPEND}
- dev-libs/libxslt
- doc? ( dev-util/gtk-doc )
- lzma? ( virtual/pkgconfig )
- zlib? ( virtual/pkgconfig )"
-
-src_prepare() {
- if [ ! -e configure ]; then
- if use doc; then
- gtkdocize --copy --docdir libkmod/docs || die
- else
- touch libkmod/docs/gtk-doc.make
- fi
- eautoreconf
- else
- epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630
- elibtoolize
- fi
-
- # Restore possibility of running --enable-static wrt #472608
- sed -i \
- -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
- configure || die
-}
-
-src_configure() {
- econf \
- --bindir="${EPREFIX}/bin" \
- --with-rootlibdir="${EPREFIX}/$(get_libdir)" \
- --enable-shared \
- $(use_enable static-libs static) \
- $(use_enable tools) \
- $(use_enable debug) \
- $(use_enable doc gtk-doc) \
- $(use_with lzma xz) \
- $(use_with zlib) \
- --with-bashcompletiondir="$(get_bashcompdir)"
-}
-
-src_compile() {
- if [[ ${PV} == 9999* ]]; then
- default
- else
- # Force -j1 because of -15-dynamic-kmod.patch, likely caused by lack of eautoreconf
- # wrt #494806
- emake -j1
- fi
-}
-
-src_install() {
- default
- prune_libtool_files
-
- if use tools; then
- local bincmd sbincmd
- for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do
- dosym /bin/kmod /sbin/${sbincmd}
- done
-
- # These are also usable as normal user
- for bincmd in lsmod modinfo; do
- dosym kmod /bin/${bincmd}
- done
- fi
-
- cat <<-EOF > "${T}"/usb-load-ehci-first.conf
- softdep uhci_hcd pre: ehci_hcd
- softdep ohci_hcd pre: ehci_hcd
- EOF
-
- insinto /lib/modprobe.d
- doins "${T}"/usb-load-ehci-first.conf #260139
-
- doinitd "${FILESDIR}"/kmod-static-nodes
-}
-
-pkg_postinst() {
- if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then
- ewarn "Removing old conflicting static-nodes init script from the boot runlevel"
- rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes
- fi
-
- # Add kmod to the runlevel automatically if this is the first install of this package.
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then
- mkdir -p "${EROOT%/}"/etc/runlevels/sysinit
- fi
- if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then
- ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes
- fi
- fi
-
- if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then
- if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
- ewarn
- ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
- ewarn "kernel modules to have required static nodes!"
- ewarn "Run this command:"
- ewarn "\trc-update add kmod-static-nodes sysinit"
- fi
- fi
-}
diff --git a/sys-apps/kmod/kmod-17.ebuild b/sys-apps/kmod/kmod-17.ebuild
deleted file mode 100644
index a8b2debf78d8..000000000000
--- a/sys-apps/kmod/kmod-17.ebuild
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-17.ebuild,v 1.13 2014/09/02 03:24:55 ryao Exp $
-
-EAPI=5
-
-PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
-
-inherit bash-completion-r1 eutils multilib python-r1
-
-if [[ ${PV} == 9999* ]]; then
- EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
- inherit autotools git-2
-else
- SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
- KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ~ppc ~ppc64 s390 sh ~sparc x86"
- inherit libtool
-fi
-
-DESCRIPTION="library and tools for managing linux kernel modules"
-HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
-
-LICENSE="LGPL-2"
-SLOT="0"
-IUSE="debug doc lzma python static-libs +tools zlib"
-
-# Upstream does not support running the test suite with custom configure flags.
-# I was also told that the test suite is intended for kmod developers.
-# So we have to restrict it.
-# See bug #408915.
-RESTRICT="test"
-
-RDEPEND="!sys-apps/module-init-tools
- !sys-apps/modutils
- !<sys-apps/openrc-0.12
- lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
- python? ( ${PYTHON_DEPS} )
- zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
-DEPEND="${RDEPEND}
- doc? ( dev-util/gtk-doc )
- lzma? ( virtual/pkgconfig )
- python? (
- dev-python/cython[${PYTHON_USEDEP}]
- virtual/pkgconfig
- )
- zlib? ( virtual/pkgconfig )"
-if [[ ${PV} == 9999* ]]; then
- DEPEND="${DEPEND}
- dev-libs/libxslt"
-fi
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-DOCS="NEWS README TODO"
-
-src_prepare() {
- if [ ! -e configure ]; then
- if use doc; then
- gtkdocize --copy --docdir libkmod/docs || die
- else
- touch libkmod/docs/gtk-doc.make
- fi
- eautoreconf
- else
- epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630
- elibtoolize
- fi
-
- # Restore possibility of running --enable-static wrt #472608
- sed -i \
- -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
- configure || die
-}
-
-src_configure() {
- local myeconfargs=(
- --bindir="${EPREFIX}/bin"
- --with-rootlibdir="${EPREFIX}/$(get_libdir)"
- --enable-shared
- $(use_enable static-libs static)
- $(use_enable tools)
- $(use_enable debug)
- $(use_enable doc gtk-doc)
- $(use_with lzma xz)
- $(use_with zlib)
- --with-bashcompletiondir="$(get_bashcompdir)"
- )
-
- local ECONF_SOURCE="${S}"
-
- kmod_configure() {
- mkdir -p "${BUILD_DIR}" || die
- run_in_build_dir econf "${myeconfargs[@]}" "$@"
- }
-
- BUILD_DIR="${WORKDIR}/build"
- kmod_configure --disable-python
-
- if use python; then
- python_parallel_foreach_impl kmod_configure --enable-python
- fi
-}
-
-src_compile() {
- if [[ ${PV} != 9999* ]]; then
- # Force -j1 because of -15-dynamic-kmod.patch, likely caused by lack of eautoreconf
- # wrt #494806
- local MAKEOPTS="${MAKEOPTS} -j1"
- fi
-
- emake -C "${BUILD_DIR}"
-
- if use python; then
- local native_builddir=${BUILD_DIR}
-
- python_compile() {
- emake -C "${BUILD_DIR}" -f Makefile -f - python \
- VPATH="${native_builddir}:${S}" \
- native_builddir="${native_builddir}" \
- libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \
- <<< 'python: $(pkgpyexec_LTLIBRARIES)'
- }
-
- python_foreach_impl python_compile
- fi
-}
-
-src_install() {
- emake -C "${BUILD_DIR}" DESTDIR="${D}" install
- einstalldocs
-
- if use python; then
- local native_builddir=${BUILD_DIR}
-
- python_install() {
- emake -C "${BUILD_DIR}" DESTDIR="${D}" \
- VPATH="${native_builddir}:${S}" \
- install-pkgpyexecLTLIBRARIES \
- install-dist_pkgpyexecPYTHON
- }
-
- python_foreach_impl python_install
- fi
-
- prune_libtool_files --modules
-
- if use tools; then
- local bincmd sbincmd
- for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do
- dosym /bin/kmod /sbin/${sbincmd}
- done
-
- # These are also usable as normal user
- for bincmd in lsmod modinfo; do
- dosym kmod /bin/${bincmd}
- done
- fi
-
- cat <<-EOF > "${T}"/usb-load-ehci-first.conf
- softdep uhci_hcd pre: ehci_hcd
- softdep ohci_hcd pre: ehci_hcd
- EOF
-
- insinto /lib/modprobe.d
- doins "${T}"/usb-load-ehci-first.conf #260139
-
- doinitd "${FILESDIR}"/kmod-static-nodes
-}
-
-pkg_postinst() {
- if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then
- ewarn "Removing old conflicting static-nodes init script from the boot runlevel"
- rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes
- fi
-
- # Add kmod to the runlevel automatically if this is the first install of this package.
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then
- mkdir -p "${EROOT%/}"/etc/runlevels/sysinit
- fi
- if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then
- ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes
- fi
- fi
-
- if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then
- if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
- ewarn
- ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
- ewarn "kernel modules to have required static nodes!"
- ewarn "Run this command:"
- ewarn "\trc-update add kmod-static-nodes sysinit"
- fi
- fi
-}
diff --git a/sys-apps/kmod/kmod-18.ebuild b/sys-apps/kmod/kmod-18.ebuild
deleted file mode 100644
index f698d6ec3030..000000000000
--- a/sys-apps/kmod/kmod-18.ebuild
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-18.ebuild,v 1.3 2014/09/02 03:24:55 ryao Exp $
-
-EAPI=5
-
-PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
-
-inherit bash-completion-r1 eutils multilib python-r1
-
-if [[ ${PV} == 9999* ]]; then
- EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
- inherit autotools git-2
-else
- SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
- inherit libtool
-fi
-
-DESCRIPTION="library and tools for managing linux kernel modules"
-HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
-
-LICENSE="LGPL-2"
-SLOT="0"
-IUSE="debug doc lzma python static-libs +tools zlib"
-
-# Upstream does not support running the test suite with custom configure flags.
-# I was also told that the test suite is intended for kmod developers.
-# So we have to restrict it.
-# See bug #408915.
-RESTRICT="test"
-
-RDEPEND="!sys-apps/module-init-tools
- !sys-apps/modutils
- !<sys-apps/openrc-0.12
- lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
- python? ( ${PYTHON_DEPS} )
- zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
-DEPEND="${RDEPEND}
- doc? ( dev-util/gtk-doc )
- lzma? ( virtual/pkgconfig )
- python? (
- dev-python/cython[${PYTHON_USEDEP}]
- virtual/pkgconfig
- )
- zlib? ( virtual/pkgconfig )"
-if [[ ${PV} == 9999* ]]; then
- DEPEND="${DEPEND}
- dev-libs/libxslt"
-fi
-
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-DOCS="NEWS README TODO"
-
-src_prepare() {
- if [ ! -e configure ]; then
- if use doc; then
- gtkdocize --copy --docdir libkmod/docs || die
- else
- touch libkmod/docs/gtk-doc.make
- fi
- eautoreconf
- else
- epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630
- elibtoolize
- fi
-
- # Restore possibility of running --enable-static wrt #472608
- sed -i \
- -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
- configure || die
-}
-
-src_configure() {
- local myeconfargs=(
- --bindir="${EPREFIX}/bin"
- --with-rootlibdir="${EPREFIX}/$(get_libdir)"
- --enable-shared
- $(use_enable static-libs static)
- $(use_enable tools)
- $(use_enable debug)
- $(use_enable doc gtk-doc)
- $(use_with lzma xz)
- $(use_with zlib)
- --with-bashcompletiondir="$(get_bashcompdir)"
- )
-
- local ECONF_SOURCE="${S}"
-
- kmod_configure() {
- mkdir -p "${BUILD_DIR}" || die
- run_in_build_dir econf "${myeconfargs[@]}" "$@"
- }
-
- BUILD_DIR="${WORKDIR}/build"
- kmod_configure --disable-python
-
- if use python; then
- python_parallel_foreach_impl kmod_configure --enable-python
- fi
-}
-
-src_compile() {
- if [[ ${PV} != 9999* ]]; then
- # Force -j1 because of -15-dynamic-kmod.patch, likely caused by lack of eautoreconf
- # wrt #494806
- local MAKEOPTS="${MAKEOPTS} -j1"
- fi
-
- emake -C "${BUILD_DIR}"
-
- if use python; then
- local native_builddir=${BUILD_DIR}
-
- python_compile() {
- emake -C "${BUILD_DIR}" -f Makefile -f - python \
- VPATH="${native_builddir}:${S}" \
- native_builddir="${native_builddir}" \
- libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \
- <<< 'python: $(pkgpyexec_LTLIBRARIES)'
- }
-
- python_foreach_impl python_compile
- fi
-}
-
-src_install() {
- emake -C "${BUILD_DIR}" DESTDIR="${D}" install
- einstalldocs
-
- if use python; then
- local native_builddir=${BUILD_DIR}
-
- python_install() {
- emake -C "${BUILD_DIR}" DESTDIR="${D}" \
- VPATH="${native_builddir}:${S}" \
- install-pkgpyexecLTLIBRARIES \
- install-dist_pkgpyexecPYTHON
- }
-
- python_foreach_impl python_install
- fi
-
- prune_libtool_files --modules
-
- if use tools; then
- local bincmd sbincmd
- for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do
- dosym /bin/kmod /sbin/${sbincmd}
- done
-
- # These are also usable as normal user
- for bincmd in lsmod modinfo; do
- dosym kmod /bin/${bincmd}
- done
- fi
-
- cat <<-EOF > "${T}"/usb-load-ehci-first.conf
- softdep uhci_hcd pre: ehci_hcd
- softdep ohci_hcd pre: ehci_hcd
- EOF
-
- insinto /lib/modprobe.d
- doins "${T}"/usb-load-ehci-first.conf #260139
-
- doinitd "${FILESDIR}"/kmod-static-nodes
-}
-
-pkg_postinst() {
- if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then
- ewarn "Removing old conflicting static-nodes init script from the boot runlevel"
- rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes
- fi
-
- # Add kmod to the runlevel automatically if this is the first install of this package.
- if [[ -z ${REPLACING_VERSIONS} ]]; then
- if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then
- mkdir -p "${EROOT%/}"/etc/runlevels/sysinit
- fi
- if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then
- ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes
- fi
- fi
-
- if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then
- if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
- ewarn
- ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
- ewarn "kernel modules to have required static nodes!"
- ewarn "Run this command:"
- ewarn "\trc-update add kmod-static-nodes sysinit"
- fi
- fi
-}