diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2014-03-12 19:19:05 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2014-03-12 19:19:05 +0000 |
commit | 64b0d845e1f8d828b8fd941cdf40b76b67f438ac (patch) | |
tree | 1f03e8af062e67525560691e74815c9ad62eede7 /sys-apps/kmod | |
parent | ppc64 stable wrt #500106 (diff) | |
download | historical-64b0d845e1f8d828b8fd941cdf40b76b67f438ac.tar.gz historical-64b0d845e1f8d828b8fd941cdf40b76b67f438ac.tar.bz2 historical-64b0d845e1f8d828b8fd941cdf40b76b67f438ac.zip |
old
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-apps/kmod')
-rw-r--r-- | sys-apps/kmod/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/kmod/Manifest | 22 | ||||
-rw-r--r-- | sys-apps/kmod/files/kmod-13-errno_syscall.patch | 31 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-13-r1.ebuild | 89 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-15-r1.ebuild | 128 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-15.ebuild | 129 |
6 files changed, 14 insertions, 392 deletions
diff --git a/sys-apps/kmod/ChangeLog b/sys-apps/kmod/ChangeLog index 73ebb1de11f3..69abdd70df15 100644 --- a/sys-apps/kmod/ChangeLog +++ b/sys-apps/kmod/ChangeLog @@ -1,6 +1,11 @@ # 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.136 2014/03/12 19:17:38 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.137 2014/03/12 19:19:01 ssuominen Exp $ + + 12 Mar 2014; Samuli Suominen <ssuominen@gentoo.org> + -files/kmod-13-errno_syscall.patch, -kmod-13-r1.ebuild, -kmod-15-r1.ebuild, + -kmod-15.ebuild: + old 12 Mar 2014; Samuli Suominen <ssuominen@gentoo.org> kmod-16.ebuild: ppc64 stable wrt #500106 diff --git a/sys-apps/kmod/Manifest b/sys-apps/kmod/Manifest index b5ad59ac2fb5..cd60196f08d9 100644 --- a/sys-apps/kmod/Manifest +++ b/sys-apps/kmod/Manifest @@ -1,27 +1,21 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -AUX kmod-13-errno_syscall.patch 795 SHA256 bc766470c0a0e53471395a8e6499f5bef7a4af5dfd52688cac17d30efb4b2605 SHA512 4bb3fcd824120d19bef2efaf19fcaab3a49089e0d7790899b322db480fe32533786d6b6a0ecd085ed00203bb87af4255c462a22997404a6b4fa431e2c4aeed58 WHIRLPOOL 5410867ec236e24d6075aeeadda8a81a43c9c3a4d02a3b330a0724bdecb3f837141eb6590331c43c5faf9e5cdb903aeaf35efe80f08c342bb14b12bcbbdfcffe AUX kmod-15-dynamic-kmod.patch 493 SHA256 36aa0232ec80a8f211c29d349ab5ef8c3f6dea1cb490e5d5c272125d30e3f04d SHA512 f26a75da8b0cfe861c60e6bdb66eec61be74038e1fa4ae45c4f8d19ea2b08e2b96683bc33e5b91945522c8dfc3af61bac094b31a1dda44965e378acf4ec4eb83 WHIRLPOOL 33e5bcb0658215005feb952dd0f42fb60242d1541d4e9ac5a76a34fba16b3638d48eeec17c1d9a98caff4d0f80e8fa9e37a2b0a2bbcfabbf9c25571460d8536d AUX kmod-static-nodes 584 SHA256 078b07581e63b5113cef9e85da7d5b53e1fbad91d793f7fa8b7188b364689b0e SHA512 cddd4e95ffd112adedfb01c90ea3cea268236983f2dd88f0a83855d62dfa8a63e1f1457a9517ebbc45970455b8f8c0dc7f4d56c138bcc3d453c7ba61d189ff85 WHIRLPOOL 920e19b8d99ff77a337b0edf2fda3461249bdd253d1c6d14c1e872d931ef643679185e8bac6b7d58490dae640f78cc1a8492f627893bfee46b48fa2c4efc947b -DIST kmod-13.tar.xz 1435864 SHA256 6c36d3abba2f98c84973ae275951c866f8bf304e7356c2fe60633800239d7956 SHA512 6182a043c32944c2dc336101e4d8a9be9ccd0106677f9f7a2e76b83a09ec2fc1333aed9b82773abe09f8adb1771e796690f1610c64b337e21bdabffe76fed434 WHIRLPOOL 95196f4c65fec778727a9b8d0209dcb08e64280b4b5d6e88b5343acb3a360b62c13a0dcf510d3c2080fad4ef1562c5e9fa11f84979d0acee03dab3fac8b3eaac -DIST kmod-15.tar.xz 1453996 SHA256 e8ef0ea7e1929b46aa681fe6ce58c5e62d0026289026ebfc63abae3b8fd5ca9e SHA512 67a03cabe9d81c14eb0bef20f3c8ff4614418cb2b2c3e1428d8a57399372ecdce6e403399a578d2f62a1ae4b61c83713edd1ad1e31533ea35503c5b11b92c223 WHIRLPOOL 53249d4b29c3added90c7a9e9c2349c3964809f5a8f274b15f06008151d90f4da8c77c02a0062bf6f2ed19d176d7f16b99c82d149a906c7983aeb9f27d391744 DIST kmod-16.tar.xz 1440880 SHA256 63412efab37c70459ccef167556965c93fd4f56af5986cd3750542a684c613c5 SHA512 326921bb184d53840837cc600f6301b948031ef7c2048e46ef16bc26ef7b967fa3c20cb133b1ebbddcf8a8537e9af8166fbca6a28d94f694f12ce1d89361a1bc WHIRLPOOL 625c277d7733a344040eaaeca26ce103d79c96ca1ba7759302e5fd573bba86285420c6f599a70411e7732e22145108afadbc29606d9f8fc62fe94479480f3a3f -EBUILD kmod-13-r1.ebuild 2214 SHA256 1c49c3d05418621483f8392448f8f5c2353c6bcee5f96a018f033142557b2db2 SHA512 3f61eb1cb9673da22eb4b0edf195d1cf3c18b4dfcac13f714947ba573821f4c38e4c5fc0854fa255055618b6cb8d750bfb6977347207f5d7bb1dd9906ff09537 WHIRLPOOL ce977f64d4eaa6e4d1440c43734d6c29117c74142c1b19b0163248dd3a26dc39130525ec90014653c173d1ae35a902f507e74223b9df2801ac699d75d8ca16ab -EBUILD kmod-15-r1.ebuild 3631 SHA256 3ac06ad8aa645b819700c78075fb50f31edbccb32c2c74f8e0513c3c15c5872c SHA512 34d30771d711b1bb108cf372c97d84c7998630cb339a59484f44f5bf19cdf9d243453a86658bd7ef25279e842317ac780c5a920cf6987f15ff5eaa11d7f1e172 WHIRLPOOL e78c167b3c27dccb45498f5481f3b3126535d5359f63bb3def5e42bfe352cd4f48c83314a3b415800c8dfe78e5a5d55d4551b1debeefa553ecca2ee20ba001ca -EBUILD kmod-15.ebuild 3608 SHA256 e0d266b7b7c2e87888691801d5145f280a3d63900774432ba09f506eb4c1bf57 SHA512 f961deb2b834222e2352a4f5728aca7eabc0ddadf45802eadc2a16e00c0d0c2152f0c8b5d790356792ea094dfb1602e964b477606ef6ceeebea940db92d6cbbc WHIRLPOOL 4b05c77d5807fa12680ef97c64521e01bbbda06cfd7990b905e5df3724884c31fc213f1688c000d2c9242f6bda067bbf9f24b74acf7a776f0bc87b7bc689cc00 EBUILD kmod-16.ebuild 3705 SHA256 b9194bffbdc9cb71036127d2d155d9612b9da9417f7a41584aa40038896883ad SHA512 158d38084186fbbba3ba2a528156c4106c433ae668a4b44cf095025e1aac574a086e620a7217d2adb04b0059a9722143b04a5c19bb880aabb3c6b3b91d33b8f6 WHIRLPOOL 09d1ea6a3a0727919b48aa38e3c55b0c7655fb796693f9ae04321024be9c1ec1b696039bd6101bbfafcdca2ff38e36a05e6b5e5d08a4c5e595721306e92fd4bc EBUILD kmod-9999.ebuild 3716 SHA256 59eb45aceb90d19c05b227d7729a58505aff76774d2f5dac9f21e9cb66fbff62 SHA512 79c2ad675c43d6cf8e8f73cb37a0c6bb83db9b1c5ebb1118d48da7ff2fd1cb0cc5ba6daa0ef08586fdb81abd5ab3a61679011c4b8b2636393c0219a41f2483d0 WHIRLPOOL 5a7bf9a65ea6063df152a7670c82488a38dee616ad7ae9b62b80071dfd5e6b4b4aea7b77fd07f3fafe965dbbbf9a959f0ba5da735d32cf276df0489e97e8921f -MISC ChangeLog 19329 SHA256 9b5ec41b72263f81e7b496e77f651daae670ddac08618d15328f849e0887b33e SHA512 5351135ff9e488a6c9933ec514939b5bca5017aeac91ea03e948f1a7e1249906925f7ce27ce8a14c49afa3280b3858e0df6b9a8c2ac3b38c6dd75b3e24ddf7ca WHIRLPOOL 3978aed7938766e19ee825996b1b90f8907ec3d3f6b1b4b092ac3169f2817578c2f52b3b6e162b4c8f719867edc7e4f463268d70a9699cf7cb0fe910960fe424 +MISC ChangeLog 19487 SHA256 feddb9c33268f4beae9de5b53e5840a74875b279669e931b760a016abcb7cc46 SHA512 8c0dca238767c6fd109b3f4ac6b54773dc6bd5c78775b1eab8ee68f5c6831543add8a29753981e15a0b468002b4e7e386a70819421df0b14cc90197587d3330e WHIRLPOOL 60b8e576016db5e6a14ec8ddef00812d51809f1e581a68fd6535e4e78fd91ebb32b981f3e93692bbf5e3653aff965f572982658c557f2441ffe55603b6858431 MISC metadata.xml 376 SHA256 5eb64ba82d456033efa6947dff12b009f73f4e5b4e883841c7fb4c8a368b3e0c SHA512 7dd59b5c777f37c5aa734a81562491ab90e0ed2854340f4d89fd9198d17c8e8d880e8d47ae99dba23b1fb16bc0b711788b7159f77ff53b08a2b2a3af01894f43 WHIRLPOOL d659931a7f525e0453e86a96f2dd6ca889bcf428496f1510bb612251961dac7afa5c36b87f90947371f4903c84b5cabf42d7647cfbbbf7af3e24396107a7197f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJTILHzAAoJEEdUh39IaPFNKEMH/iMs8VYqrmbMV4YTwxHI5l9G -J6r5IIY+m7DYW00smvM5DL9silinzORkpXyr+C9yDBfnWJy7mZDVaLOn1JmxPeh3 -FjEXSuE1fbqMapBWHINaNdL7W6wiQIelK4uAaRxfjBYk2aQx77RfpR97OWfqknjh -lFEu9txhh4Yj53ZEZq2s3aRWkDrNqXisHZkH+HoKizvc1NtG+YkenBfwiITmT1d+ -jjpIGiBza/YreoBv+95gkz3J6aNDy8aBQSwa3i8sSDDRZjTy6rW78M/nsAGnzlg4 -kdBCvccaSendcLiTkJ+wKJZqED8PSR+fB9g/sSks051CePlPRSkU+yFWs2MJzew= -=6mYW +iQEcBAEBCAAGBQJTILJFAAoJEEdUh39IaPFNc04H/27nzix//7BUlDlusVK2xPEQ +El9Zz8SApnSqY5nSrBuFblUQoRqVCZLzg5PI0cv42G3gJQeauSrwsrcmCpy40ENR +LybJR9n3iEy1xDuKGVJylMhAnVA8lZboVaM62xTJlaEl8FHhW6mgFUNRVhIKAtar +92iv0pLRcoGLh6267YEvB2T0P5AhN+SpGE/IATdmhp1wjgT0vnohygBgH9Zjml+D +9WuLuHkOuJh9hPsEO0xsLzZWIwGBe+/UKfrbZ3evdOokWgYwlFGGYE5gYWgOapNP +aMmCw1Op7MGYU2V5WX/kZ4JRXOXo1vMO0EPcbKnSi4jTFpCgWtSEfPPDjyxLAWg= +=vc6l -----END PGP SIGNATURE----- diff --git a/sys-apps/kmod/files/kmod-13-errno_syscall.patch b/sys-apps/kmod/files/kmod-13-errno_syscall.patch deleted file mode 100644 index 8909ef58c295..000000000000 --- a/sys-apps/kmod/files/kmod-13-errno_syscall.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 5eac795b8b067842caec32f96d55a7554c3c67f9 Mon Sep 17 00:00:00 2001 -From: Jan Luebbe <jlu@pengutronix.de> -Date: Thu, 02 May 2013 14:47:12 +0000 -Subject: libkmod: Avoid calling syscall() with -1 - -At least in qemu 1.4.1 for vexpress/arm-cortexa9, this resulted in an -illegal instruction error. Solve that by returning an error when -__NR_finit_module is -1. ---- -diff --git a/libkmod/missing.h b/libkmod/missing.h -index edb88b9..b45bbe2 100644 ---- a/libkmod/missing.h -+++ b/libkmod/missing.h -@@ -20,8 +20,15 @@ - #endif - - #ifndef HAVE_FINIT_MODULE -+#include <errno.h> -+ - static inline int finit_module(int fd, const char *uargs, int flags) - { -+ if (__NR_finit_module == -1) { -+ errno = ENOSYS; -+ return -1; -+ } -+ - return syscall(__NR_finit_module, fd, uargs, flags); - } - #endif --- -cgit v0.9.1 diff --git a/sys-apps/kmod/kmod-13-r1.ebuild b/sys-apps/kmod/kmod-13-r1.ebuild deleted file mode 100644 index a9456c793f7c..000000000000 --- a/sys-apps/kmod/kmod-13-r1.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-13-r1.ebuild,v 1.15 2013/08/24 10:59:48 ssuominen Exp $ - -EAPI=5 -inherit autotools eutils libtool multilib - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" - inherit git-2 -else - SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" - KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -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 ) - 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() { - epatch "${FILESDIR}"/${P}-errno_syscall.patch - - if [ ! -e configure ]; then - if use doc; then - gtkdocize --copy --docdir libkmod/docs || die - else - touch libkmod/docs/gtk-doc.make - fi - eautoreconf - else - elibtoolize - fi -} - -src_configure() { - econf \ - --bindir=/bin \ - --with-rootlibdir=/$(get_libdir) \ - $(use_enable static-libs static) \ - $(use_enable tools) \ - $(use_enable debug) \ - $(use_enable doc gtk-doc) \ - $(use_with lzma xz) \ - $(use_with zlib) -} - -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 -} diff --git a/sys-apps/kmod/kmod-15-r1.ebuild b/sys-apps/kmod/kmod-15-r1.ebuild deleted file mode 100644 index 66b35e0df277..000000000000 --- a/sys-apps/kmod/kmod-15-r1.ebuild +++ /dev/null @@ -1,128 +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-15-r1.ebuild,v 1.3 2014/01/18 04:33:50 vapier Exp $ - -EAPI=5 -inherit autotools eutils libtool multilib toolchain-funcs versionator - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" - inherit 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" -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 +openrc 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 ) - openrc? ( !<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 )" - -pkg_setup() { - [[ $(tc-getCPP) == *cpp ]] && ! version_is_at_least 4.6 $(gcc-version) && \ - die "You need at least GNU GCC 4.6.x to build this package." #481020 -} - -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=/bin \ - --with-rootlibdir=/$(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) -} - -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 - - use openrc && doinitd "${FILESDIR}"/kmod-static-nodes -} - -pkg_postinst() { - if use openrc; then - if [[ -L ${ROOT}etc/runlevels/boot/static-nodes ]]; then - ewarn "Removing old conflicting static-nodes init script from the boot runlevel" - rm -f "${ROOT}"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 [[ -x ${ROOT}etc/init.d/kmod-static-nodes && -d ${ROOT}etc/runlevels/sysinit ]]; then - ln -s /etc/init.d/kmod-static-nodes "${ROOT}"/etc/runlevels/sysinit/kmod-static-nodes - fi - fi - - if [[ -e ${ROOT}etc/runlevels/sysinit ]]; then - if [[ ! -e ${ROOT}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 - fi -} diff --git a/sys-apps/kmod/kmod-15.ebuild b/sys-apps/kmod/kmod-15.ebuild deleted file mode 100644 index e7bee17f4bf1..000000000000 --- a/sys-apps/kmod/kmod-15.ebuild +++ /dev/null @@ -1,129 +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-15.ebuild,v 1.11 2014/01/19 19:39:17 ago Exp $ - -EAPI=5 -inherit autotools eutils libtool multilib toolchain-funcs versionator - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" - inherit git-2 -else - SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" - KEYWORDS="alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" -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 +openrc 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 ) - openrc? ( !<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 )" - -pkg_setup() { - if [[ ${MERGE_TYPE} != binary ]]; then - [[ $(tc-getCPP) == *cpp ]] && ! version_is_at_least 4.6 $(gcc-version) && \ - die "You need at least GNU GCC 4.6.x to build this package." #481020 - fi -} - -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 - 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=/bin \ - --with-rootlibdir=/$(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) -} - -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 - - use openrc && doinitd "${FILESDIR}"/kmod-static-nodes -} - -pkg_postinst() { - if use openrc; then - if [[ -L ${ROOT}etc/runlevels/boot/static-nodes ]]; then - ewarn "Removing old conflicting static-nodes init script from the boot runlevel" - rm -f "${ROOT}"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 [[ -x ${ROOT}etc/init.d/kmod-static-nodes && -d ${ROOT}etc/runlevels/sysinit ]]; then - ln -s /etc/init.d/kmod-static-nodes "${ROOT}"/etc/runlevels/sysinit/kmod-static-nodes - fi - fi - - if [[ -e ${ROOT}etc/runlevels/sysinit ]]; then - if [[ ! -e ${ROOT}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 - fi -} |