summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-04-24 19:39:44 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-04-24 19:39:44 +0000
commit2ffd0c052cbd53d5d5f14c3d85667aa5b0d75fdd (patch)
tree43d6a08e56c3e49397beb66d3a4671a69b6d7556 /sys-fs
parentold (diff)
downloadhistorical-2ffd0c052cbd53d5d5f14c3d85667aa5b0d75fdd.tar.gz
historical-2ffd0c052cbd53d5d5f14c3d85667aa5b0d75fdd.tar.bz2
historical-2ffd0c052cbd53d5d5f14c3d85667aa5b0d75fdd.zip
old
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev/ChangeLog6
-rw-r--r--sys-fs/udev/Manifest21
-rw-r--r--sys-fs/udev/udev-171-r10.ebuild593
-rw-r--r--sys-fs/udev/udev-201.ebuild463
4 files changed, 13 insertions, 1070 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 9294da1d1358..5f28f959960c 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.908 2013/04/22 11:52:16 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.909 2013/04/24 19:39:33 ssuominen Exp $
+
+ 24 Apr 2013; Samuli Suominen <ssuominen@gentoo.org> -udev-171-r10.ebuild,
+ -udev-201.ebuild:
+ old
22 Apr 2013; Jeroen Roovers <jer@gentoo.org> udev-200.ebuild:
Stable for HPPA (bug #463614).
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index bdf3eaf26089..450661dfb2d9 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -4,24 +4,15 @@ Hash: SHA256
AUX 80-net-name-slot.rules 1820 SHA256 f958d54247f84cdbac3e1b77261d6bcf7c630343ee6e70e4e59d0f3098d774f5 SHA512 13671a02b7504d77c5834f3835a1f8adef4faae04653f30ca177c6d3351fc7357b659cafe0392736ad76201e838c396364f42fa6ae3ee9f1ffb7babd50b613b3 WHIRLPOOL ad06ca6bc7d5f336cc3d3a2cac6bfed0b0f2fd389f3638115f402e7c840df442e3a249f6436034c158d42f0d64f0a6af88dae8afd44a80b1219f31700e37f899
DIST systemd-197.tar.xz 2054644 SHA256 e6857ea21ae24d7056e7b0f4c2aaaba73b8bf57025b8949c0a8af0c1bc9774b5 SHA512 df158f85dee4c38dc2ff305bc03eee3b71d77eb683ab2739549282f7d552af4d2a247f52241f68e1b7c88c668bce93531986a39937a99cac401791ec95916769 WHIRLPOOL 027fc6aa5972988173721b120b8c1f371bc02d3066e04ea0923d6cc70778a3381f600a865aa136b5789755fbd5358e97304da265f8937d789a28b33cc778df46
DIST systemd-200.tar.xz 2109864 SHA256 9a08baa8fa5c48f0aab683b2f771e4be75c3c852afc45e5cb4df06428ac8c217 SHA512 6ad440f91dfa5a739a29d07c4144a2faad627a523c4f893656693cdfbdf2a6048f84d96e06ebe805ec18d04e5a1760c9efdcec738654d006a348c0385a983833 WHIRLPOOL 7969f2410aad42c60ba5b979727f5e90be62a5826aabfeb3103b8284115120a5c8c944d0631eabff719dfb84a4096b6eebe8e6dc3718ee47a3672dc1089be371
-DIST systemd-201.tar.xz 2128876 SHA256 d6299f1a0bc2122002d731808d3825c6b566d1ffe899c03ed5ebec7e70c8cc10 SHA512 e181b0bd0d0169890f99733d5e61ca506115b50d702b24895add5240ef3929ed9add87b0d3fd34a3366c1830339f6e4b5aa50f763f6d7d75b80ce677d35c385d WHIRLPOOL 84465cc8b3a97c2fbf120c8515ced6a759c1dec2df525b92a552308e1060475bf889de92a05ad470a2d56b582e3190dcc37aa4d009c8a0714411894cfed99376
DIST systemd-202.tar.xz 2149860 SHA256 8c43073252a52eb9f9ab9bd698be0192bcb2175ba5daba6057250083dd64e059 SHA512 34a6a8a6c0ac6c0a2c9ea44a11a3f732fcf3e36e2433bf98997df11e6890b26b2c4e526edfa0a1893ef460ad75191b230c60bf761e5ae99d5339c8df55f139da WHIRLPOOL 0045a2365dbd2e7732d12cacfabf76744534916f7d5aef1fa6e88b48755acf9284e5df4c66eeb6d5c42477d80453a044989a916917fb2263f405439471fa97a8
-DIST udev-171-gentoo-patchset-v2.tar.bz2 2961 SHA256 9a4a11f8da06337a48291fad02e83b7787c3e5d0fea848f9ac8e67d9306587fd SHA512 2aea1c27596c61a0cfac573d74863783bd81e586ba56de01735856ac7c36738912e1d54663705a2af70fbbbb2043765933ea4e409ab913232913fe22369e78f6 WHIRLPOOL 8d4b54ff916ccf95b78577c5d5ca003460d4d8bdb4065053c03aee937ac28107ffba718cf9fc80bf3a50803ae09c161f72da0a6c57dce806afdcff2057bd17bc
-DIST udev-171-testsys.tar.bz2 155001 SHA256 7383701b64701f58f16e0ddb19fe33b4eb53fac6fc6068bdcbff7e6325b79dcc SHA512 f3f537d771e36b87c71004f5576f7672ffeb815d0b5337bb6bbb6e842c32a28d1d92b4eb0ee2edc60c0b8bd576fc2f36e8b0ed16ec9c0cff9c216e04fb1438ad WHIRLPOOL 0ee66df2f52496d592d0dd3de7c628f6deee7f41c2d21e745f22d74e61c276e01cc6ba584c65b05d36c8a4fb14bc54e3e1a89b975751929b19e91458e3550253
-DIST udev-171.tar.bz2 597937 SHA256 fed1e46074c1a16c828193ebd73b3940b7905cc7dcaeb0b3c720d4615210695e SHA512 dea189d79b195f8c10740507b11de2c2074442301ee52a0b2c62efa8663e1793c1a78b03b95510ba19bc93d4dcc497120fbf6bb5784878aa903973f76b92d42f WHIRLPOOL a93241b0f0645696e6a88ddb152c3ef8f2c73b5bf3591892384f180fc7abeb580c59642013480546eac00ad5028b1900ad35b88f6a27ad2d07792e9f34e59743
DIST udev-197-patches-5.tar.bz2 4009 SHA256 bc497ec33de05cceb40ad23f5c64965438c747cfce5d6d26dd59e0866764da9b SHA512 5f7529c49bea5f1779dfd6e12e792c53f22a20655257e92d23b142f051bacf01ebea07ad2fd9c7c4c33be65f3fccd91024864412dbd1c707710b661aed03debd WHIRLPOOL 0ff7acf7d10202d86576713d4050ce788fc01135e7cf69b71428009b817c1e39c8f097c744dc7ecf88f411b8705fbadf82bcdd9f109744032093ce4045f05f43
DIST udev-200-patches-1.tar.xz 1712 SHA256 8e1ca63b27a4db7a6d3d76cb700ff88a48404c471795b1994b791460d59b8c71 SHA512 3aadfe615d7dc48adfc2e43a03a2ce9e008da0672acb7c18f917d8b50e2c2e39b9a7c47c36f5474b0de22716541ac83532b1a8dd08d17af003d0d30ac811881e WHIRLPOOL d49f610aeba4b19f4a337e3533815e8648fb5324cd6926570949f67645d150acfb39833ae62af855ff1bfb5c1791f687b4e14328a9b7de1e65e5e09d0308c4f4
-DIST udev-201-patches-1.tar.xz 1284 SHA256 96a028e2039d1ead42dd7949625a2f39a851bc26cc62a3fc944382b25d95e21f SHA512 c6f6f2af6c1899d8e39286cc5e9cc81f6add197ccee5f079be0bb3c20c51eea72d7534a1e9c8686d1325aebfce7f95aace81d0624179961fc97ccd2205db6a4b WHIRLPOOL 844a4a5286d579e0a9de73be676d5a73d49ed3e17725457fe52952152f6390bec491f5ec9e0523507ee17438d6c95b77986048864bef0264f7d06569542a77cf
DIST udev-202-patches-1.tar.xz 1284 SHA256 96a028e2039d1ead42dd7949625a2f39a851bc26cc62a3fc944382b25d95e21f SHA512 c6f6f2af6c1899d8e39286cc5e9cc81f6add197ccee5f079be0bb3c20c51eea72d7534a1e9c8686d1325aebfce7f95aace81d0624179961fc97ccd2205db6a4b WHIRLPOOL 844a4a5286d579e0a9de73be676d5a73d49ed3e17725457fe52952152f6390bec491f5ec9e0523507ee17438d6c95b77986048864bef0264f7d06569542a77cf
-DIST udev-gentoo-legacy-patchset-2.tar.bz2 14282 SHA256 bb2aefa50c3cc6df8cc88903b0e05a8cc9f44a612a8038abd05f37b342f7e235 SHA512 b18ccdbb4373021ee9f32b4e10dc1b846b64a1222d4a556370ee78efac530d7a868c8924d449a2d503ee12667e603c50514e3f3c4fc08b608a9676574587f073 WHIRLPOOL 765c6f411a793bcdd9d452c7f36719b1d0dd741b3d6da0446fa459d2a0207220d609a0a3ef500411faf7e308ddf315f27a19e179cb7f54bee52ef3f033773a3a
-DIST udev-gentoo-scripts-7.1.tar.bz2 16257 SHA256 1923768a98b7f00ffdc9bdf5a2c9982c494b978903ec891184d6fa0d10090fb4 SHA512 663fdd750b3f1e52a4c7639d0692290cdda9d202d4408e8aba9bfd38aaccfaa0acb79e303e98872b721cf109c62ac46921785cb5a373cc6ad8b428d0f5192836 WHIRLPOOL 49b600b034f8a6ad5e0ae6ca769971f1bb517fa0b9e31a0a7d0430ae67cf21bf4ab1db981d3eaaf78819d1e75a24a1f101eeb737448763b2990e38da912636be
-EBUILD udev-171-r10.ebuild 16093 SHA256 37ef3115e14d68f23cfb7cf620423b72b460dba04b36f20f6646607381e2fb40 SHA512 3b392d78a30e1a7cb6c085aae7b876c107a920b777194e475b6e10f9f09231dd3cd69b76b501d2354b7a032582ccefee861d4fbbe2bce5aa7a65fd3310b87d84 WHIRLPOOL f2a7b62bdf984121bd9cc8127ec3e912792a3affe1c097bc7c765a4822720a574412c4d18895e4c705b9bf6fbd8dcc3c554516bf2a8cae28018e39dad8601959
EBUILD udev-197-r8.ebuild 15057 SHA256 854d75fdb78b73399cb6f096c26cfbc640d8ca077fc62b1c63f5e9f6de62f36c SHA512 9e4da40b18bc6da38ccedc6675558672c1d7d73144fde6204fbaeea5f5080fd985429da0f54429613c98e8e9802505f9ce456874c143e5017e191a3df6875964 WHIRLPOOL 4485b8c1096f016f3bbcc96aa7ad119b3ca44604827afd9f1aa6c23172a66705f67522662539b9626b138a79833082d5979fa795777de25e128b7fd125e5e1e4
EBUILD udev-200.ebuild 13516 SHA256 721725afc10d29af3112ce89d7402056392845c7228706cef14c0b76c2cb986b SHA512 e09a32c748f71cdc293a3fa63c7c03a2c912d4a8abe11b48cfd6f11b5726b522063b2568ea88b7674323941179c5b557ea287c0b40ad19eb7321bbf655db53e4 WHIRLPOOL ee98415a599f68fa21971eeef1e1d0d4e90db7a6237b20d8dea9f494dddfc27c3fb7141783359326cdb7d6794b400c4223d6f191fb58c630ac996a07fa17a235
-EBUILD udev-201.ebuild 13465 SHA256 99ece177e42d6645f67e9c2ce799230b66bb39643986b8174a77af9682d3b80e SHA512 c715be982a340c08c8f081c194ca1c32358922b700a9c51789369001e76ec059dc6631858b5319704c81de54bb39c77a3eb0cd38ae74561be8a1d23ffcbf82e0 WHIRLPOOL 9c76c6c2b16e53201b5e462026c8bed421c1be8c9ed53406d28cc47256ad07b169ad013ce08fbd36947e692312fb19ec2f9ce2813061dae0064d5d914f43c481
EBUILD udev-202.ebuild 13471 SHA256 30827070d7f73194550ee68a5dce8a162d179e2c51d421c0a99fe8e18a0927c0 SHA512 336fcda60b7d4208b7d8bb03b8a5e2f3b39625b14ae65e522373f1a5b239cc9914b112b3a032bc186d461f2564b4b654e71bae0c94d058e4336ed09393c6c8aa WHIRLPOOL 14aa62b110d0085175669d7cf7e0854919e2d09764fff567f128585e454070788f9d09cfdc2779e5753e0a18d3f6306ce7d33547ddbb6489328cde46d1b1408f
EBUILD udev-9999.ebuild 13473 SHA256 07fdbae56df6788254df967002c26f22c594ade406251904a7de1c0d54799abe SHA512 c9580721bef86cda6497cc6f1e2492bc6678458af6c0f29bada7eb6836ec740b3d8f3ba054529e7437671f967586ceb046fe299b7764dbf69348f0ce07038df6 WHIRLPOOL a75f10194ef84ce68f32e35b7a3dc129fa08296565728e009ef02ae736a8bba8575502b3a40f48e32ae1f7502f1e932473be46cd41139678b5cbc1458524d200
-MISC ChangeLog 25826 SHA256 c682f9cdabfd66ffa99fa958adaf362d235c530aeef855eb2c5fbb0888656b0f SHA512 066f1ba9c25d09cefcf9bb972044736b77d72d456c0f94ee247b49bacb6781ffeb7000d4f7684354fd8ea6f2582be571d3bf7067c381ee94dbb14e8c6abb1897 WHIRLPOOL cc0d2263d8a03b29eea4e19ed2ad72d1ee8abffa46affa33028435936160b1f5e005d592f90fffd38525d106a083d29657912a2401c0e31abd4cd64bb79e7157
+MISC ChangeLog 25935 SHA256 1d60f2bb5453599fd3f2803dcff5f3b52d179e4b2e77c0edf40aa3d004f41adb SHA512 87005221cdd126b4996c8903b3fa4bc7fb942f1e0cc8f87406831bbc8d314deb447e8aef0bab97df36d09d028fb7c6e7993cb57183946fff75d28fc905b7ebdf WHIRLPOOL e63bf78ae4fc66712166deb7e89ed23d7d230adfb411b78b54605330a718cff3a9ffaa0b96f8bf50a116aae27a4086db9681172e5427a12f066cc5b28b7245ec
MISC ChangeLog-2009 105929 SHA256 94137298457e8d6361cf25e664279d2f9b424f6758814e7ba90e9e2cbf1ea7e5 SHA512 f110e1aa70b11c28263ec5e88973c99426717bce62400c8e9ad860b9e7b67d4aadc053596a9e54faa9435a774c1e8aa0954ae8541760cf061beef26867871548 WHIRLPOOL 215252c0a5c249241813d1bb208da62e68c858e07d1df327cf9175ac739f214813a33c09a64afb4821445e93394dd6d6d500b33e35ed912c1eeccff3365cb7fb
MISC ChangeLog-2010 10729 SHA256 44fe328d57b1ba342b328c7a256632e7960976a12e8e9c9791a5fc8ce52c67ca SHA512 a8c371aafe757923e24c023cbf55f3ad084f15f0f038eceaee0dffe58919a17b17bc16cb4b7b1d3f65a19c82b20330a854ec2c801f6d7c7799723ab92d255b49 WHIRLPOOL 3d34e758def921d3d2ed7369392ba5f833fc3a899181c2895fd3da6c9846cf41c9eddbf56de60a52fadd76ffd4c66d92b660b0bc6ca4dddbb2fa49fe0f93cb0b
MISC ChangeLog-2011 11721 SHA256 363429a267f251b1ac1c34479e7afa5d7ea13811aa1ba46d7c5489860e542276 SHA512 be7bbaa68602c30ba9cb3e5037ee91ff94c35a0c2ff0b96c5eee14c0e81f8e52232bae44f1d01ff23acedabdb03fdc78f3d11a40cfed2cfef1c45fe2492f7bf4 WHIRLPOOL 3e85eb967f26a8224fd0ed5824009c62271fa5269a6a207da8c8abd7b09cc4308ff847021afcae5a86cedd723a5aeca1ce2f6712a187dfbd36118e097d74510f
@@ -30,7 +21,11 @@ MISC metadata.xml 1401 SHA256 815b72b43c692168e9f22804504b01260004c14787265a45ce
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlF1JHEACgkQVWmRsqeSphPdGACfbB5uieOr1niOcfhS5WXWLbsn
-1UAAn3vmvuXchXEH3Do2reaA+0kF/CDD
-=4dun
+iQEcBAEBCAAGBQJReDSpAAoJEEdUh39IaPFNONwH+gONNnTZ/QTJSvb3br7hO8Dx
+SNkzzjVc9S87h638T5ZKx9kKHvvlXxjcUtnnD4twJKyr7Rv/cT8bd3zKLr+SoAr4
+9p7YsJQQfNmsERlwbx3h9Z4B4alU4deTDILBozMoFmDdSU4Pe6taBSm/ucv5XHvJ
+g+qyUoWidujijKSpukod1H0s37mVOnMJ5BzU8mKKtwRJaiR0k5fReWtNtHaWOtr/
+IgseGebkZpG0RZfUfmRkC2ICn0a+NPl33w7IswAhjEoKCCtd5IV5/8FzAaUJvOJD
+YXt7SImIm09dAq2V+Gs/QsjMmBWOL83zCYyDEl8+GuWLyuV0LAkDC2A3hjGx25k=
+=Bu8d
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/udev-171-r10.ebuild b/sys-fs/udev/udev-171-r10.ebuild
deleted file mode 100644
index 4c2265dc8454..000000000000
--- a/sys-fs/udev/udev-171-r10.ebuild
+++ /dev/null
@@ -1,593 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-171-r10.ebuild,v 1.4 2013/02/02 16:16:22 grobian Exp $
-
-EAPI=4
-
-KV_min=2.6.31
-KV_reliable=2.6.31
-PATCHSET=${P}-gentoo-patchset-v2
-scriptversion=7.1
-scriptname=udev-gentoo-scripts
-[[ -n "${scriptversion}" ]] && scriptname="${scriptname}-${scriptversion}"
-
-if [[ ${PV} == "9999" ]]
-then
- EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/hotplug/udev.git"
- EGIT_BRANCH="master"
- inherit autotools git-2
-fi
-
-inherit eutils flag-o-matic multilib toolchain-funcs linux-info systemd libtool
-
-if [[ ${PV} != "9999" ]]
-then
- KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
- SRC_URI="mirror://gentoo/${P}.tar.bz2
- test? ( mirror://gentoo/${PN}-171-testsys.tar.bz2 )
- mirror://gentoo/${PN}-gentoo-legacy-patchset-2.tar.bz2"
- if [[ -n "${PATCHSET}" ]]
- then
- SRC_URI="${SRC_URI} mirror://gentoo/${PATCHSET}.tar.bz2"
- fi
-fi
-SRC_URI="${SRC_URI} mirror://gentoo/${scriptname}.tar.bz2"
-
-DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
-HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="build selinux test debug +rule_generator hwdb gudev introspection
- keymap floppy edd action_modeswitch extras"
-
-COMMON_DEPEND="selinux? ( sys-libs/libselinux )
- extras? ( dev-libs/glib:2
- dev-libs/gobject-introspection
- virtual/libusb:0 )
- gudev? ( dev-libs/glib:2 )
- introspection? ( dev-libs/gobject-introspection )
- action_modeswitch? ( virtual/libusb:0 )
- >=sys-apps/util-linux-2.16
- !<sys-libs/glibc-2.11"
-
-DEPEND="${COMMON_DEPEND}
- keymap? ( dev-util/gperf )
- extras? ( dev-util/gperf )
- virtual/pkgconfig
- virtual/os-headers
- !<sys-kernel/linux-headers-2.6.34
- test? ( app-text/tree )"
-
-RDEPEND="${COMMON_DEPEND}
- hwdb?
- (
- >=sys-apps/usbutils-0.82
- || (
- ( sys-apps/hwids >=sys-apps/pciutils-3.1.9-r2 )
- >=sys-apps/pciutils-3.1.9-r1[-compress-db]
- <sys-apps/pciutils-3.1.9-r1[-zlib]
- )
- )
- extras?
- (
- >=sys-apps/usbutils-0.82
- sys-apps/pciutils
- )
- !sys-apps/coldplug
- !<sys-fs/lvm2-2.02.45
- !sys-fs/device-mapper
- >=sys-apps/baselayout-2"
-
-if [[ ${PV} == "9999" ]]
-then
- # for documentation processing with xsltproc
- DEPEND="${DEPEND}
- app-text/docbook-xsl-stylesheets
- app-text/docbook-xml-dtd
- dev-util/gtk-doc"
-fi
-
-# required kernel options
-CONFIG_CHECK="~INOTIFY_USER ~SIGNALFD ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
- ~!IDE ~BLK_DEV_BSG"
-
-# Return values:
-# 2 - reliable
-# 1 - unreliable
-# 0 - too old
-udev_check_KV() {
- local ok=0
- if kernel_is -ge ${KV_reliable//./ }
- then
- ok=2
- elif kernel_is -ge ${KV_min//./ }
- then
- ok=1
- fi
- return $ok
-}
-
-pkg_setup() {
- linux-info_pkg_setup
-
- # always print kernel version requirements
- ewarn
- ewarn "${P} does not support Linux kernel before version ${KV_min}!"
- if [[ ${KV_min} != ${KV_reliable} ]]
- then
- ewarn "For a reliable udev, use at least kernel ${KV_reliable}"
- fi
-
- udev_check_KV
- case "$?" in
- 2) einfo "Your kernel version (${KV_FULL}) is new enough to run ${P} reliably." ;;
- 1) ewarn "Your kernel version (${KV_FULL}) is new enough to run ${P},"
- ewarn "but it may be unreliable in some cases."
- ;;
- 0) eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
- ;;
- esac
-
- KV_FULL_SRC=${KV_FULL}
- get_running_version
- udev_check_KV
- if [[ "$?" = "0" ]]
- then
- eerror
- eerror "udev cannot be restarted after emerging,"
- eerror "as your running kernel version (${KV_FULL}) is too old."
- eerror "You really need to use a newer kernel after a reboot!"
- NO_RESTART=1
- fi
-}
-
-src_unpack() {
- unpack ${A}
- if [[ ${PV} == "9999" ]]
- then
- git-2_src_unpack
- fi
-}
-
-src_prepare() {
- if use test && [[ -d "${WORKDIR}"/test/sys ]]
- then
- mv "${WORKDIR}"/test/sys "${S}"/test/
- fi
-
- # patches go here...
- epatch "${WORKDIR}"/${P}-path_id-skip-ATA-transport.patch #437418
-
- # backport some patches
- if [[ -n "${PATCHSET}" ]]
- then
- EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" \
- EPATCH_FORCE="yes" epatch
- fi
-
- # change rules back to group uucp instead of dialout for now
- sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
- -i rules/{rules.d,arch}/*.rules \
- || die "failed to change group dialout to uucp"
-
- if [[ ${PV} != 9999 ]]
- then
- # Make sure there is no sudden changes to upstream rules file
- # (more for my own needs than anything else ...)
- MD5=$(md5sum < "${S}/rules/rules.d/50-udev-default.rules")
- MD5=${MD5/ -/}
- if [[ ${MD5} != a9954d57e97aa0ad2e0ed53899d9559a ]]
- then
- eerror "50-udev-default.rules has been updated, please validate!"
- eerror "md5sum: ${MD5}"
- die "50-udev-default.rules has been updated, please validate!"
- fi
- fi
-
- if [[ ${PV} == 9999 ]]
- then
- gtkdocize --copy || die "gtkdocize failed"
- eautoreconf
- else
- elibtoolize
- fi
-}
-
-use_extras() { use extras && echo "--enable-${2:-$1}" || use_enable "$@" ; }
-src_configure() {
- econf \
- --prefix="${EPREFIX}/usr" \
- --sysconfdir="${EPREFIX}/etc" \
- --sbindir="${EPREFIX}/sbin" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --with-rootlibdir="${EPREFIX}/$(get_libdir)" \
- --libexecdir="${EPREFIX}/lib/udev" \
- --enable-logging \
- --enable-static \
- $(use_with selinux) \
- $(use_enable debug) \
- $(use_extras rule_generator) \
- $(use_extras hwdb) \
- --with-pci-ids-path="${EPREFIX}/usr/share/misc/pci.ids" \
- --with-usb-ids-path="${EPREFIX}/usr/share/misc/usb.ids" \
- --disable-udev_acl \
- $(use_extras gudev) \
- $(use_extras introspection) \
- $(use_extras keymap) \
- $(use_extras floppy) \
- $(use_extras edd) \
- $(use_extras action_modeswitch) \
- $(systemd_with_unitdir)
-}
-
-src_compile() {
- filter-flags -fprefetch-loop-arrays
-
- emake
-}
-
-src_install() {
- into /
- emake DESTDIR="${D}" install
-
- exeinto /lib/udev
- keepdir /lib/udev/state
- keepdir /lib/udev/devices
-
- # create symlinks for these utilities to /sbin
- # where multipath-tools expect them to be (Bug #168588)
- dosym "../lib/udev/scsi_id" /sbin/scsi_id
-
- # Add gentoo stuff to udev.conf
- echo "# If you need to change mount-options, do it in /etc/fstab" \
- >> "${ED}"/etc/udev/udev.conf
-
- # let the dir exist at least
- keepdir /etc/udev/rules.d
-
- # Now installing rules
- cd "${S}"/rules
- insinto /lib/udev/rules.d/
-
- # support older kernels
- doins misc/30-kernel-compat.rules
-
- # Adding arch specific rules
- if [[ -f arch/40-${ARCH}.rules ]]
- then
- doins "arch/40-${ARCH}.rules"
- fi
- cd "${S}"
-
- insinto /etc/modprobe.d
- newins "${WORKDIR}"/blacklist-146 blacklist.conf
- newins "${WORKDIR}"/pnp-aliases pnp-aliases.conf
-
- # documentation
- dodoc ChangeLog README TODO
-
- # keep doc in just one directory, Bug #281137
- rm -rf "${ED}/usr/share/doc/${PN}"
- if use keymap
- then
- dodoc extras/keymap/README.keymap.txt
- fi
-
- cd "${WORKDIR}/${scriptname}"
- sed -i -e 's/2.6.34/2.6.31/' init.d/udev
- doconfd conf.d/*
- exeinto /lib/udev
- doexe helpers/*
- doexe "${WORKDIR}"/shell-compat-KV.sh
- doinitd init.d/*
- insinto /etc/modprobe.d
- doins modprobe.d/*
- insinto /lib/udev/rules.d
- doins rules.d/*
-}
-
-src_test() {
- local emake_cmd="${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE}"
-
- cd "${S}"
- einfo ">>> Test phase [udev:check]: ${CATEGORY}/${PF}"
- has userpriv $FEATURES && einfo "Disable FEATURES userpriv to run the udev tests"
- if ! $emake_cmd -j1 check
- then
- has test $FEATURES && die "udev: Make test failed. See above for details."
- has test $FEATURES || eerror "udev: Make test failed. See above for details."
- fi
-}
-
-pkg_preinst() {
- # moving old files to support newer modprobe, 12 May 2009
- local f dir=${EROOT}/etc/modprobe.d/
- for f in pnp-aliases blacklist; do
- if [[ -f $dir/$f && ! -f $dir/$f.conf ]]
- then
- elog "Moving $dir/$f to $f.conf"
- mv -f "$dir/$f" "$dir/$f.conf"
- fi
- done
-
- if [[ -d ${EROOT}/lib/udev-state ]]
- then
- mv -f "${EROOT}"/lib/udev-state/* "${ED}"/lib/udev/state/
- rm -r "${EROOT}"/lib/udev-state
- fi
-
- if [[ -f ${EROOT}/etc/udev/udev.config &&
- ! -f ${EROOT}/etc/udev/udev.rules ]]
- then
- mv -f "${EROOT}"/etc/udev/udev.config "${EROOT}"/etc/udev/udev.rules
- fi
-
- # delete the old udev.hotplug symlink if it is present
- if [[ -h ${EROOT}/etc/hotplug.d/default/udev.hotplug ]]
- then
- rm -f "${EROOT}"/etc/hotplug.d/default/udev.hotplug
- fi
-
- # delete the old wait_for_sysfs.hotplug symlink if it is present
- if [[ -h ${EROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug ]]
- then
- rm -f "${EROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug
- fi
-
- # delete the old wait_for_sysfs.hotplug symlink if it is present
- if [[ -h ${EROOT}/etc/hotplug.d/default/10-udev.hotplug ]]
- then
- rm -f "${EROOT}"/etc/hotplug.d/default/10-udev.hotplug
- fi
-
- has_version "=${CATEGORY}/${PN}-103-r3"
- previous_equal_to_103_r3=$?
-
- has_version "<${CATEGORY}/${PN}-104-r5"
- previous_less_than_104_r5=$?
-
- has_version "<${CATEGORY}/${PN}-106-r5"
- previous_less_than_106_r5=$?
-
- has_version "<${CATEGORY}/${PN}-113"
- previous_less_than_113=$?
-}
-
-# 19 Nov 2008
-fix_old_persistent_net_rules() {
- local rules=${EROOT}/etc/udev/rules.d/70-persistent-net.rules
- [[ -f ${rules} ]] || return
-
- elog
- elog "Updating persistent-net rules file"
-
- # Change ATTRS to ATTR matches, Bug #246927
- sed -i -e 's/ATTRS{/ATTR{/g' "${rules}"
-
- # Add KERNEL matches if missing, Bug #246849
- sed -ri \
- -e '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \
- "${rules}"
-}
-
-# See Bug #129204 for a discussion about restarting udevd
-restart_udevd() {
- if [[ ${NO_RESTART} = "1" ]]
- then
- ewarn "Not restarting udevd, as your kernel is too old!"
- return
- fi
-
- # need to merge to our system
- [[ ${EROOT} = / ]] || return
-
- # check if root of init-process is identical to ours (not in chroot)
- [[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]] || return
-
- # abort if there is no udevd running
- [[ -n $(pidof udevd) ]] || return
-
- # abort if no /dev/.udev exists
- [[ -e /dev/.udev ]] || return
-
- elog
- elog "restarting udevd now."
-
- killall -15 udevd &>/dev/null
- sleep 1
- killall -9 udevd &>/dev/null
-
- /sbin/udevd --daemon
- sleep 3
- if [[ ! -n $(pidof udevd) ]]
- then
- eerror "FATAL: udev died, please check your kernel is"
- eerror "new enough and configured correctly for ${P}."
- eerror
- eerror "Please have a look at this before rebooting."
- eerror "If in doubt, please downgrade udev back to your old version"
- fi
-}
-
-postinst_init_scripts() {
- local enable_postmount=false
-
- # FIXME: inconsistent handling of init-scripts here
- # * udev is added to sysinit in openrc-ebuild
- # * we add udev-postmount to default in here
- #
-
- # If we are building stages, add udev and udev-mount to the sysinit runlevel
- # automatically.
- if use build
- then
- if [[ -x "${EROOT}"/etc/init.d/udev \
- && -d "${EROOT}"/etc/runlevels/sysinit ]]
- then
- ln -s "${EPREFIX}"/etc/init.d/udev "${EROOT}"/etc/runlevels/sysinit/udev
- fi
- if [[ -x "${ROOT}"/etc/init.d/udev-mount \
- && -d "${ROOT}"/etc/runlevels/sysinit ]]
- then
- ln -s /etc/init.d/udev-mount \
- "${ROOT}"/etc/runlevels/sysinit/udev-mount
- fi
- enable_postmount=true
- fi
-
- # Warn the user about adding the scripts to their sysinit runlevel
- if [[ -e "${EROOT}"/etc/runlevels/sysinit ]]
- then
- if [[ ! -e "${EROOT}"/etc/runlevels/sysinit/udev ]]
- then
- ewarn
- ewarn "You need to add udev to the sysinit runlevel."
- ewarn "If you do not do this,"
- ewarn "your system will not be able to boot!"
- ewarn "Run this command:"
- ewarn "\trc-update add udev sysinit"
- fi
- if [[ ! -e "${EROOT}"/etc/runlevels/sysinit/udev-mount ]]
- then
- ewarn
- ewarn "You need to add udev-mount to the sysinit runlevel."
- ewarn "If you do not do this,"
- ewarn "your system will not be able to boot!"
- ewarn "Run this command:"
- ewarn "\trc-update add udev-mount sysinit"
- fi
- fi
-
- # add udev-postmount to default runlevel instead of that ugly injecting
- # like a hotplug event, 2009/10/15
-
- # already enabled?
- [[ -e "${EROOT}"/etc/runlevels/default/udev-postmount ]] && return
-
- [[ -e "${EROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true
- [[ "${EROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true
-
- if $enable_postmount
- then
- local initd=udev-postmount
-
- if [[ -e ${EROOT}/etc/init.d/${initd} ]] && \
- [[ ! -e ${EROOT}/etc/runlevels/default/${initd} ]]
- then
- ln -snf "${EPREFIX}"/etc/init.d/${initd} "${EROOT}"/etc/runlevels/default/${initd}
- elog "Auto-adding '${initd}' service to your default runlevel"
- fi
- else
- elog "You should add the udev-postmount service to default runlevel."
- elog "Run this to add it:"
- elog "\trc-update add udev-postmount default"
- fi
-}
-
-pkg_postinst() {
- fix_old_persistent_net_rules
-
- # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
- # So try to remove it here (will only work if empty).
- rmdir "${EROOT}"/dev/loop 2>/dev/null
- if [[ -d "${EROOT}"/dev/loop ]]
- then
- ewarn "Please make sure your remove /dev/loop,"
- ewarn "else losetup may be confused when looking for unused devices."
- fi
-
- restart_udevd
-
- postinst_init_scripts
-
- # people want reminders, I'll give them reminders. Odds are they will
- # just ignore them anyway...
-
- # delete 40-scsi-hotplug.rules, it is integrated in 50-udev.rules, 19 Jan 2007
- if [[ $previous_equal_to_103_r3 = 0 ]] &&
- [[ -e ${EROOT}/etc/udev/rules.d/40-scsi-hotplug.rules ]]
- then
- ewarn "Deleting stray 40-scsi-hotplug.rules"
- ewarn "installed by sys-fs/udev-103-r3"
- rm -f "${EROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules
- fi
-
- # Removing some device-nodes we thought we need some time ago, 25 Jan 2007
- if [[ -d ${EROOT}/lib/udev/devices ]]
- then
- rm -f "${EROOT}"/lib/udev/devices/{null,zero,console,urandom}
- fi
-
- # Removing some old file, 29 Jan 2007
- if [[ $previous_less_than_104_r5 = 0 ]]
- then
- rm -f "${EROOT}"/etc/dev.d/net/hotplug.dev
- rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/net 2>/dev/null
- fi
-
- # 19 Mar 2007
- if [[ $previous_less_than_106_r5 = 0 ]] &&
- [[ -e ${EROOT}/etc/udev/rules.d/95-net.rules ]]
- then
- rm -f "${EROOT}"/etc/udev/rules.d/95-net.rules
- fi
-
- # Try to remove /etc/dev.d as that is obsolete, 23 Apr 2007
- if [[ -d ${EROOT}/etc/dev.d ]]
- then
- rmdir --ignore-fail-on-non-empty "${EROOT}"/etc/dev.d/default "${EROOT}"/etc/dev.d 2>/dev/null
- if [[ -d ${EROOT}/etc/dev.d ]]
- then
- ewarn "You still have the directory /etc/dev.d on your system."
- ewarn "This is no longer used by udev and can be removed."
- fi
- fi
-
- # 64-device-mapper.rules now gets installed by sys-fs/device-mapper
- # remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
- if [[ $previous_less_than_113 = 0 ]] &&
- [[ -f ${EROOT}/etc/udev/rules.d/64-device-mapper.rules ]] &&
- ! has_version sys-fs/device-mapper
- then
- rm -f "${EROOT}"/etc/udev/rules.d/64-device-mapper.rules
- einfo "Removed unneeded file 64-device-mapper.rules"
- fi
-
- # requested in Bug #225033:
- elog
- elog "persistent-net does assigning fixed names to network devices."
- elog "If you have problems with the persistent-net rules,"
- elog "just delete the rules file"
- elog "\trm ${EROOT}etc/udev/rules.d/70-persistent-net.rules"
- elog "and then reboot."
- elog
- elog "This may however number your devices in a different way than they are now."
-
- ewarn
- ewarn "If you build an initramfs including udev, then please"
- ewarn "make sure that the /sbin/udevadm binary gets included,"
- ewarn "and your scripts changed to use it,as it replaces the"
- ewarn "old helper apps udevinfo, udevtrigger, ..."
-
- ewarn
- ewarn "mount options for directory /dev are no longer"
- ewarn "set in /etc/udev/udev.conf, but in /etc/fstab"
- ewarn "as for other directories."
-
- ewarn
- ewarn "If you use /dev/md/*, /dev/loop/* or /dev/rd/*,"
- ewarn "then please migrate over to using the device names"
- ewarn "/dev/md*, /dev/loop* and /dev/ram*."
- ewarn "The devfs-compat rules have been removed."
- ewarn "For reference see Bug #269359."
-
- ewarn
- ewarn "Rules for /dev/hd* devices have been removed"
- ewarn "Please migrate to libata."
-
- elog
- elog "For more information on udev on Gentoo, writing udev rules, and"
- elog " fixing known issues visit:"
- elog " http://www.gentoo.org/doc/en/udev-guide.xml"
-}
diff --git a/sys-fs/udev/udev-201.ebuild b/sys-fs/udev/udev-201.ebuild
deleted file mode 100644
index 25b053da0d44..000000000000
--- a/sys-fs/udev/udev-201.ebuild
+++ /dev/null
@@ -1,463 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-201.ebuild,v 1.2 2013/04/10 07:15:33 ssuominen Exp $
-
-EAPI=5
-
-# accept4() patch is only in non-live version
-if [[ ${PV} = 9999* ]]; then
- KV_min=2.6.39
-else
- KV_min=2.6.32
-fi
-
-inherit autotools eutils linux-info multilib toolchain-funcs versionator
-
-if [[ ${PV} = 9999* ]]; then
- EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
- inherit git-2
-else
- patchset=1
- SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz"
- if [[ -n "${patchset}" ]]; then
- SRC_URI="${SRC_URI}
- http://dev.gentoo.org/~ssuominen/${P}-patches-${patchset}.tar.xz
- http://dev.gentoo.org/~williamh/dist/${P}-patches-${patchset}.tar.xz"
- fi
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-fi
-
-DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
-HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
-
-LICENSE="LGPL-2.1 MIT GPL-2"
-SLOT="0"
-IUSE="acl doc +firmware-loader gudev hwdb introspection keymap +kmod +openrc selinux static-libs"
-
-RESTRICT="test"
-
-COMMON_DEPEND=">=sys-apps/util-linux-2.20
- acl? ( sys-apps/acl )
- gudev? ( >=dev-libs/glib-2 )
- introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
- kmod? ( >=sys-apps/kmod-13 )
- selinux? ( >=sys-libs/libselinux-2.1.9 )
- !<sys-libs/glibc-2.11
- !sys-apps/systemd"
-
-DEPEND="${COMMON_DEPEND}
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt
- >=sys-devel/make-3.82-r4
- virtual/os-headers
- virtual/pkgconfig
- !<sys-kernel/linux-headers-${KV_min}
- doc? ( >=dev-util/gtk-doc-1.18 )
- keymap? ( dev-util/gperf )"
-
-if [[ ${PV} = 9999* ]]; then
- DEPEND="${DEPEND}
- dev-util/gperf
- >=dev-util/intltool-0.50"
-fi
-
-RDEPEND="${COMMON_DEPEND}
- openrc? ( !<sys-apps/openrc-0.9.9 )
- !sys-apps/coldplug
- !<sys-fs/lvm2-2.02.97-r1
- !sys-fs/device-mapper
- !<sys-fs/udev-init-scripts-22
- !<sys-kernel/dracut-017-r1
- !<sys-kernel/genkernel-3.4.25
- !<sec-policy/selinux-base-2.20120725-r10"
-
-PDEPEND=">=virtual/udev-197-r1
- hwdb? ( >=sys-apps/hwids-20130326.1[udev] )
- openrc? ( >=sys-fs/udev-init-scripts-25 )"
-
-S=${WORKDIR}/systemd-${PV}
-
-#QA_MULTILIB_PATHS="lib/systemd/systemd-udevd"
-
-udev_check_KV() {
- if kernel_is lt ${KV_min//./ }; then
- return 1
- fi
- return 0
-}
-
-check_default_rules() {
- # Make sure there are no sudden changes to upstream rules file
- # (more for my own needs than anything else ...)
- local udev_rules_md5=3708dcb06e69ef2d3597cad0c98625e1
- MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
- MD5=${MD5/ -/}
- if [[ ${MD5} != ${udev_rules_md5} ]]; then
- eerror "50-udev-default.rules has been updated, please validate!"
- eerror "md5sum: ${MD5}"
- die "50-udev-default.rules has been updated, please validate!"
- fi
-}
-
-pkg_setup() {
- CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL"
-
- linux-info_pkg_setup
-
- if ! udev_check_KV; then
- eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
- eerror "It must be at least ${KV_min}!"
- fi
-
- KV_FULL_SRC=${KV_FULL}
- get_running_version
- if ! udev_check_KV; then
- eerror
- eerror "Your running kernel version (${KV_FULL}) is too old"
- eerror "for this version of udev."
- eerror "You must upgrade your kernel or downgrade udev."
- fi
-}
-
-src_prepare() {
- if ! [[ ${PV} = 9999* ]]; then
- # secure_getenv() disable for non-glibc systems wrt bug #443030
- if ! [[ $(grep -r secure_getenv * | wc -l) -eq 16 ]]; then
- eerror "The line count for secure_getenv() failed, see bug #443030"
- die
- fi
-
- # gperf disable if keymaps are not requested wrt bug #452760
- if ! [[ $(grep -i gperf Makefile.am | wc -l) -eq 27 ]]; then
- eerror "The line count for gperf references failed, see bug 452760"
- die
- fi
- fi
-
- # backport some patches
- if [[ -n "${patchset}" ]]; then
- EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
- fi
-
- # These are missing from upstream 50-udev-default.rules
- cat <<-EOF > "${T}"/40-gentoo.rules
- # Gentoo specific usb group
- SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"
- # Keep this for Linux 2.6.32 kernels with accept4() support like .60 wrt #457868
- SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"
- EOF
-
- # Remove requirements for gettext and intltool wrt bug #443028
- if ! has_version dev-util/intltool && ! [[ ${PV} = 9999* ]]; then
- sed -i \
- -e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \
- -e '/XML::Parser perl module is required for intltool/s|^|:|' \
- configure || die
- eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true
- eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true
- fi
-
- # apply user patches
- epatch_user
-
- # compile with older versions of gcc #451110
- version_is_at_least 4.6 $(gcc-version) || \
- sed -i 's:static_assert:alsdjflkasjdfa:' src/shared/macro.h
-
- # change rules back to group uucp instead of dialout for now wrt #454556
- sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
- -i rules/*.rules \
- || die "failed to change group dialout to uucp"
-
- if [[ ! -e configure ]]; then
- if use doc; then
- gtkdocize --docdir docs || die "gtkdocize failed"
- else
- echo 'EXTRA_DIST =' > docs/gtk-doc.make
- fi
- eautoreconf
- else
- check_default_rules
- elibtoolize
- fi
-
- if ! use elibc_glibc; then #443030
- echo '#define secure_getenv(x) NULL' >> config.h.in
- sed -i -e '/error.*secure_getenv/s:.*:#define secure_getenv(x) NULL:' src/shared/missing.h || die
- fi
-
- # link udevd(8) to systemd-udevd.service(8) manpage
- echo '.so systemd-udevd.service.8' > "${T}"/udevd.8
-}
-
-src_configure() {
- tc-export CC #463846
- use keymap || export ac_cv_path_GPERF=true #452760
-
- local econf_args
-
- econf_args=(
- ac_cv_search_cap_init=
- ac_cv_header_sys_capability_h=yes
- DBUS_CFLAGS=' '
- DBUS_LIBS=' '
- --bindir=/bin
- --docdir=/usr/share/doc/${PF}
- --libdir=/usr/$(get_libdir)
- --with-html-dir=/usr/share/doc/${PF}/html
- --with-rootprefix=
- --with-rootlibdir=/$(get_libdir)
- --with-bashcompletiondir=/usr/share/bash-completion
- --without-python
- --disable-audit
- --disable-coredump
- --disable-hostnamed
- --disable-ima
- --disable-libcryptsetup
- --disable-localed
- --disable-logind
- --disable-myhostname
- --disable-nls
- --disable-pam
- --disable-quotacheck
- --disable-readahead
- --enable-split-usr
- --disable-tcpwrap
- --disable-timedated
- --disable-xz
- --disable-polkit
- $(use_enable acl)
- $(use_enable doc gtk-doc)
- $(use_enable gudev)
- $(use_enable keymap)
- $(use_enable kmod)
- $(use_enable selinux)
- $(use_enable static-libs static)
- )
- if use introspection; then
- econf_args+=(
- --enable-introspection=$(usex introspection)
- )
- fi
- if use firmware-loader; then
- econf_args+=(
- --with-firmware-path="/lib/firmware/updates:/lib/firmware"
- )
- fi
- econf "${econf_args[@]}"
-}
-
-src_compile() {
- echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
- emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
- local targets=(
- libudev.la
- systemd-udevd
- udevadm
- ata_id
- cdrom_id
- collect
- scsi_id
- v4l_id
- accelerometer
- mtd_probe
- man/udev.7
- man/udevadm.8
- man/systemd-udevd.8
- man/systemd-udevd.service.8
- )
- use keymap && targets+=( keymap )
- use gudev && targets+=( libgudev-1.0.la )
-
- emake "${targets[@]}"
- if use doc; then
- emake -C docs/libudev
- use gudev && emake -C docs/gudev
- fi
-}
-
-src_install() {
- local lib_LTLIBRARIES="libudev.la" \
- pkgconfiglib_DATA="src/libudev/libudev.pc"
-
- local targets=(
- install-libLTLIBRARIES
- install-includeHEADERS
- install-libgudev_includeHEADERS
- install-binPROGRAMS
- install-rootlibexecPROGRAMS
- install-udevlibexecPROGRAMS
- install-dist_udevconfDATA
- install-dist_udevhomeSCRIPTS
- install-dist_udevkeymapDATA
- install-dist_udevkeymapforcerelDATA
- install-dist_udevrulesDATA
- install-girDATA
- install-man7
- install-man8
- install-pkgconfiglibDATA
- install-sharepkgconfigDATA
- install-typelibsDATA
- install-dist_docDATA
- libudev-install-hook
- install-directories-hook
- install-dist_bashcompletionDATA
- )
-
- if use gudev; then
- lib_LTLIBRARIES+=" libgudev-1.0.la"
- pkgconfiglib_DATA+=" src/gudev/gudev-1.0.pc"
- fi
-
- # add final values of variables:
- targets+=(
- rootlibexec_PROGRAMS=systemd-udevd
- bin_PROGRAMS=udevadm
- lib_LTLIBRARIES="${lib_LTLIBRARIES}"
- MANPAGES="man/udev.7 man/udevadm.8 \
- man/systemd-udevd.service.8"
- MANPAGES_ALIAS="man/systemd-udevd.8"
- pkgconfiglib_DATA="${pkgconfiglib_DATA}"
- INSTALL_DIRS='$(sysconfdir)/udev/rules.d \
- $(sysconfdir)/udev/hwdb.d'
- dist_bashcompletion_DATA="shell-completion/bash/udevadm"
- )
- emake -j1 DESTDIR="${D}" "${targets[@]}"
- if use doc; then
- emake -C docs/libudev DESTDIR="${D}" install
- use gudev && emake -C docs/gudev DESTDIR="${D}" install
- fi
- dodoc TODO
-
- prune_libtool_files --all
- rm -f \
- "${D}"/lib/udev/rules.d/99-systemd.rules \
- "${D}"/usr/share/doc/${PF}/LICENSE.*
-
- # see src_prepare() for content of these files
- insinto /lib/udev/rules.d
- doins "${T}"/40-gentoo.rules
- doman "${T}"/udevd.8
-
- # install udevadm compatibility symlink
- dosym {../bin,sbin}/udevadm
-
- # install udevd to /sbin and remove empty and redudant directory
- # /lib/systemd because systemd is installed to /usr wrt #462750
- mv "${D}"/{lib/systemd/systemd-,sbin/}udevd || die
- rm -r "${D}"/lib/systemd
-}
-
-pkg_preinst() {
- local htmldir
- for htmldir in gudev libudev; do
- if [[ -d ${ROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
- rm -rf "${ROOT}"usr/share/gtk-doc/html/${htmldir}
- fi
- if [[ -d ${D}/usr/share/doc/${PF}/html/${htmldir} ]]; then
- dosym ../../doc/${PF}/html/${htmldir} \
- /usr/share/gtk-doc/html/${htmldir}
- fi
- done
- preserve_old_lib /{,usr/}$(get_libdir)/libudev$(get_libname 0)
-}
-
-pkg_postinst() {
- mkdir -p "${ROOT}"run
-
- # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
- # So try to remove it here (will only work if empty).
- rmdir "${ROOT}"dev/loop 2>/dev/null
- if [[ -d ${ROOT}dev/loop ]]; then
- ewarn "Please make sure your remove /dev/loop,"
- ewarn "else losetup may be confused when looking for unused devices."
- fi
-
- # people want reminders, I'll give them reminders. Odds are they will
- # just ignore them anyway...
-
- # 64-device-mapper.rules is related to sys-fs/device-mapper which we block
- # in favor of sys-fs/lvm2
- old_dm_rules=${ROOT}etc/udev/rules.d/64-device-mapper.rules
- if [[ -f ${old_dm_rules} ]]; then
- rm -f "${old_dm_rules}"
- einfo "Removed unneeded file ${old_dm_rules}"
- fi
-
- local fstab="${ROOT}"etc/fstab dev path fstype rest
- while read -r dev path fstype rest; do
- if [[ ${path} == /dev && ${fstype} != devtmpfs ]]; then
- ewarn "You need to edit your /dev line in ${fstab} to have devtmpfs"
- ewarn "filesystem. Otherwise udev won't be able to boot."
- ewarn "See, http://bugs.gentoo.org/453186"
- fi
- done < "${fstab}"
-
- if [[ -d ${ROOT}usr/lib/udev ]]; then
- ewarn
- ewarn "Please re-emerge all packages on your system which install"
- ewarn "rules and helpers in /usr/lib/udev. They should now be in"
- ewarn "/lib/udev."
- ewarn
- ewarn "One way to do this is to run the following command:"
- ewarn "emerge -av1 \$(qfile -q -S -C /usr/lib/udev)"
- ewarn "Note that qfile can be found in app-portage/portage-utils"
- fi
-
- local old_net_name="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
- if [[ -f ${old_net_name} ]]; then
- local old_net_sum=bebf4bd1b6b668e9ff34a3999aa6ff32
- MD5=$(md5sum < "${old_net_name}")
- MD5=${MD5/ -/}
- if [[ ${MD5} == ${old_net_sum} ]]; then
- ewarn "Removing unmodified file ${old_net_name} from old udev installation to enable"
- ewarn "the new predictable network interface naming."
- rm -f "${old_net_name}"
- fi
- fi
-
- local old_cd_rules="${ROOT}"etc/udev/rules.d/70-persistent-cd.rules
- local old_net_rules="${ROOT}"etc/udev/rules.d/70-persistent-net.rules
- for old_rules in "${old_cd_rules}" "${old_net_rules}"; do
- if [[ -f ${old_rules} ]]; then
- ewarn
- ewarn "File ${old_rules} is from old udev installation but if you still use it,"
- ewarn "rename it to something else starting with 70- to silence this deprecation"
- ewarn "warning."
- fi
- done
-
- if has_version sys-apps/biosdevname; then
- ewarn
- ewarn "You have sys-apps/biosdevname installed which has been deprecated"
- ewarn "in favor of the predictable network interface names."
- fi
-
- ewarn
- ewarn "The new predictable network interface names are used by default, see:"
- ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
- ewarn
- ewarn "Example command to get the information for the new interface name before booting"
- ewarn "(replace <ifname> with, for example, eth0):"
- ewarn "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null"
- ewarn
- ewarn "You can use kernel commandline net.ifnames=0 to disable this feature."
-
- ewarn
- ewarn "You need to restart udev as soon as possible to make the upgrade go"
- ewarn "into effect."
- ewarn "The method you use to do this depends on your init system."
-
- preserve_old_lib_notify /{,usr/}$(get_libdir)/libudev$(get_libname 0)
-
- elog
- elog "For more information on udev on Gentoo, upgrading, writing udev rules, and"
- elog " fixing known issues visit:"
- elog " http://wiki.gentoo.org/wiki/Udev/upgrade"
- elog " http://www.gentoo.org/doc/en/udev-guide.xml"
-
- # Update hwdb database in case the format is changed by udev version.
- if use hwdb && has_version 'sys-apps/hwids[udev]'; then
- udevadm hwdb --update --root="${ROOT%/}"
- fi
-}