summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-09-30 22:04:59 +0000
committerWilliam Hubbs <williamh@gentoo.org>2012-09-30 22:04:59 +0000
commitac2740925fcea7823b7a80ff5016e1d9417bd62a (patch)
tree564c7f2af9d5300fff2768982bf63fd8ab50fbdc /sys-fs
parentstable ppc ppc64, bug #434334 (diff)
downloadhistorical-ac2740925fcea7823b7a80ff5016e1d9417bd62a.tar.gz
historical-ac2740925fcea7823b7a80ff5016e1d9417bd62a.tar.bz2
historical-ac2740925fcea7823b7a80ff5016e1d9417bd62a.zip
version bump
Package-Manager: portage-2.2.0_alpha134/cvs/Linux i686
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev/ChangeLog7
-rw-r--r--sys-fs/udev/Manifest11
-rw-r--r--sys-fs/udev/udev-193.ebuild417
3 files changed, 430 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 91da74e1fee3..4a8e92957a20 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.724 2012/09/26 00:13:06 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.725 2012/09/30 22:04:59 williamh Exp $
+
+*udev-193 (30 Sep 2012)
+
+ 30 Sep 2012; William Hubbs <williamh@gentoo.org> +udev-193.ebuild:
+ version bump
*udev-192 (26 Sep 2012)
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index 6097d0309378..227160625fd9 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -6,6 +6,7 @@ DIST systemd-189.tar.xz 1371872 SHA256 fec0efd82c9f1bdff6cb9d9811c00830ed890dbe9
DIST systemd-190.tar.xz 1404812 SHA256 2fb2f894b8cd4aa87420517b55d938837111aa47b4a09ea8306f90be1f7277dc SHA512 e2ecca0c47a26a7a38368cea0fc7f835086fb2f73154185c6b5627cf72c75dfcfcbe3ccfb77fed5f2ce3da781be0d32d7b561f1d00a521bc3af42bb9d572159c WHIRLPOOL 710f08f10f8861bde548575604258abd3bae8b08822f99180e21089c61f3dff4e55bd61e9c1b8e2d24dc2955c20735d8b89b574ec9e0f69656b9ad2260653b5d
DIST systemd-191.tar.xz 1401640 SHA256 2fa0a2b4a1eb855f4e1d7f4f1a1883cd43d68dc3534d130a1095293d1bfa1d64 SHA512 9d0636df307d37f95a77368a7392d40e15a16354c838c9415af700fbd86f0da6474f5750fe2d93018984169107943be2cb87bff4b5f432afba6956ee1bd4a2bd WHIRLPOOL eea13b258cb8762a7c650333974011c6319cf3c1664363fc027c64d67199f83f597729b22a130b0c0058a6b31eafcb363baa2c66f864b3a8dc3a0175de043c26
DIST systemd-192.tar.xz 1405792 SHA256 55c449554ab68c7b237e86584a69b6e60538b4853ef7b6e5317d9d3e78f0c30f SHA512 d2c6179b250b4e1a3c019199fb46a4115f850cfb6d39c8b2232bc3ff0f87b1eb662d0aa4c13a5a554fd0103a8fe52c6e538150df4abac5815516f65ade130828 WHIRLPOOL db15a1458a2d02a548a5f1b5a0e10dab2913a807396e0b734f8e4834103f77c6d6e45379d4d10263cdf3154b0c3fe4562a7fe79236f8eff120198947bddeed42
+DIST systemd-193.tar.xz 1413652 SHA256 b9db6be1fa4a9c89c088ceec39f0d24de63ab76831b12916f147841262ac0ecd SHA512 6eefb9adb62b0190298b1f3de0c6e4e91e5d58780cc563924a5445b6482ed2cf53213167e01b28695c84f385bead571c50eb5e3097c901278520de4c37fd7f0a WHIRLPOOL 3376e7a94dd75cd59c02ee8a30a7ae61367948560289c4c3f4ece384f234fab0db814802db3c330f96066a0197671c5f23b6bb1988f7235316d8cdbdc283a2e6
DIST udev-141.tar.bz2 448373 SHA256 51e0128c3fc29971d978050839fd59f103fddae4a47c8fd2b36f2836cfb59d35 SHA512 d039792eb19c639636c221857f8901dd1fc24ead8da2927d10ce48e3acd22a883d55c48cf66f3a0ab396dd89e46bd7d96a8f345e6d1b9f6592711fd254ffad05 WHIRLPOOL 3806087eb04e54dfc51bca96621eaab56aee4244bf60d1bf4eec9731e4e648e1602ba98f67b7e2b9d34ee91cf33a554a545f9dfdb1df8f187b11cb100d9a3a5c
DIST udev-146-gentoo-patchset-v1.tar.bz2 8370 SHA256 d89845257847c34c9e617c5c64c686902833343dd617401d1ac196cd0589c95c SHA512 ff0573dc171a1c2073f866a6e7cd125d6796919e2c026a2aea869ebe4bbff8cd866980118a8b2ef28c4a1326ff2913ee245d75a852b76908d63d6444bb69251c WHIRLPOOL 175bb3440e5ffcef0b4d3fd2b703aaf3788d0b50c6769a27a72b26cfb4f094418ff884c819946e808d3f3b5a85bd3bf5c3be5a38ca3b4823963e7f772d6bf740
DIST udev-146.tar.bz2 531445 SHA256 6c20e1980d62638e139da04c0d591bf9a96ae279a755f9dd40fb0eea918a0fa5 SHA512 f6dd8a62211776af9f71052ef1eef19467f98830d011f641a593e15b9bfa16103aebf159bab2cee3cefe8c3d4b762e03ab6a6fa6a4c807f6728231a084909d4f WHIRLPOOL 7c22a09693c435bbd5d1a17409d02089cb6bc07fe40174d492c8fc5ab2fe148296e9860d566a26f8c7dceb494c40411c68142c35b2ae46c186556256223e78ec
@@ -22,6 +23,7 @@ DIST udev-189-patches-1.tar.bz2 1266 SHA256 1a3cfe84fb27d303a6844f2e56e6d114ffb3
DIST udev-190-patches-1.tar.bz2 1278 SHA256 20abeea1bb80548e4c666128ffcc31b7f88347fed79b7aca25b84d0ef6edec47 SHA512 be92dc99278063b185aca657147ff89eb278db754b0816aedb72d1f69b131a5eeda72fed926737936e97dc5fafd76e22d82b0a3db783018321e08c324779a2cc WHIRLPOOL 4c45651606b5c7d4b116cd0bf34b385bf31b89c24af7a6fd73f5ad114b7eb687c7fa4e2e46da5f88e12e5c40b438553134d88c93546fb3f0987119eac681c3b1
DIST udev-191-patches-1.tar.bz2 1269 SHA256 666f05e1721c15caaff16a2a91da67007b2fb4f8966a54a36c859e020a5d2913 SHA512 e3de33d64ff1b00c9646a1dd6cf33634137f76976f92c0ad66349874d7180c6b796f304d3f1010e999d5da599e5e22f12b8df4429b1658ef801d74f048a2850f WHIRLPOOL 6bf898dfecac3553fa7a23f2207f727e2d937bbe21716f2b3ec0ae85516106f1d27e64e87f8c59894fde2ae22377c15e69e40f07f0657968ffb6da74506a5742
DIST udev-192-patches-1.tar.bz2 1270 SHA256 69496df58cdcda11bd8826d3f4e19ff65baad8e4fa4f33366d71dd681b1942a2 SHA512 3ef4b50e2b59c5f71d87fa4074e5074d22c122da4a320a7984aac05e8313d25488643bb73784fdfea83763337e80fedace83f0f7ef883ec78d142d978a7cc088 WHIRLPOOL a2c822354f3c34f9ea77c0d71d1293a78583184fe183400a5620c8241f9e643e7b392d9f9385cb541ac7b4899ba34f01141b3e1c4fd53370adf4b44625dc634a
+DIST udev-193-patches-1.tar.bz2 1265 SHA256 03345f12afaa571ea40a234eeebbb89f065f979524852aca6079585f969e1c1b SHA512 ecfe652c2cfbe469ead463eac9f6dc21b9160d145c5411f34fb7e6dd074b9cbf95c8921ec9fd0cc5be3b49b6ca193ecb846a814c782622ed12c2f486a2d94bdf WHIRLPOOL 329ea183ffcc3027b51d8a12b4d3b33ebffdae315cb4d802810ef28725b503c61f493f7e70e652561bbfb700ca98d879d3764a797a2e4d981a84bd3264fa9497
DIST udev-gentoo-legacy-patchset-1.tar.bz2 14039 SHA256 0a82fd7a6ed4212dc26d7b562d91e9bb7174581717683d447902f308110b635a SHA512 4a64d972ab361c781ebde7f9360d7842f8be2c945fbcf526019a49194197af9f2575e5ba399d7494c84b12489fe09333bf225f697b786fb6ccef7b287e58c9cc WHIRLPOOL 70e84987aa3c5ef93d624014bd13156a95d456ade17389b2a89261f57dee32d1dd7f416dd2397c4e6e2bbc09d0fee7acde8325bdf203021f45c49adf7c6e72ba
DIST udev-gentoo-scripts-164-v2.tar.bz2 9504 SHA256 5fff00a00da6f6bfc47e375d2a8da6679a4e1de152d9f30f16b4bc8c6d79a5ef SHA512 ead3f34a906bd18a6895029f6d5f5a771fc237d437b621151d40142376ba6fa10e408a881c7dafcd308d5c5a66766ce9db8f612f0f78899362e8b30eda4aa0c5 WHIRLPOOL 4558a8d3073a7aa79d522e459f7c212b2a97f726f67a6f9665a3e9abd3dea6b2c888d52dd716de4b53628002af354fb5de41a83cdd71fdfc853e35978c6d5db6
DIST udev-gentoo-scripts-7.tar.bz2 16248 SHA256 cef8d47fe3b023c40dde621e0c91a9d38b7e7b83de5bae53e71a9027dfc65de7 SHA512 16d37cb5f2289b789b569a799e62ab282f0667b1c47e54a325a310133212592a051242e137a02db928946278417a7745c5b17bb95d84f25ae071d71d5a4afd3b WHIRLPOOL 5b14aaad1a1771d02e3e6a78e6ecbc5122fbc48ac542f5dfc26539d2b1f64136de5633a2b9bd5bfce414fbffec12799a09bf2b29c375e033a4ea986ffc3ef878
@@ -35,14 +37,15 @@ EBUILD udev-189.ebuild 11032 SHA256 49a18eeb31611fc22416bc81319d10e40d7554c7fae2
EBUILD udev-190.ebuild 11032 SHA256 ff0a13f6fb5cefd0d4b8c19ec8419a65859179d3d7408757b2332ef38655077c SHA512 02bd90a2e0be05a87fe213e3ef8144aab5de3ba70e436078d20d0c81bfd6c18a1e8a76bf5a807a77b62d3e49284a575f04963bc3de71b38c6486b24f5b0fd1ef WHIRLPOOL 55293d6e6fd220703b7619a73d871e499378860d9259c8dc6983cf8cb7e2740d462d507c9c2cac92493c3c3690d752288f7303abea8c727ed0e62a24e1cf2bdb
EBUILD udev-191.ebuild 11032 SHA256 f7a1e68b1d5d4b21e075e4f0475160e36abf478a91ee8ca2eb78412683919deb SHA512 02b7de416d535aa8fadd453482add6e4343e2113ea4a984e42acdc688b35e4fa76f85fa3c835d824003048a8df81e0280528605853c529182c94710f2cd3238b WHIRLPOOL 4f354a56827dda78ea90f5cebb433ffe12eb19b19783c723c961cf8f2ca3312f93d79638705ea75c46de7a32d9afc241dba4c6576cd8005d95edfc4078e6dcbe
EBUILD udev-192.ebuild 11032 SHA256 420ffcca68b32ca0ff066509e66937ad3d2f5336e8f2a144b0b4d91efad00594 SHA512 47f40f9e048fcb593787dbee3a3b1012acc4fa4f9fedd0df1e840c6a9a813f18e45bc6f482fcf6fc1113d1d14809b142ca31362cb28dc950a08d7eda4ab991bd WHIRLPOOL 64f46e9ff83e54c6225b73f8761554ee589eb0c2d23c889e1ff9ee2611a451450b467fa66f25abf9060d8b824594786f9d5cd643289e244a56ad874bd9461294
+EBUILD udev-193.ebuild 11032 SHA256 04d3911a71e1c1dabd5faeb0bce1879bb82c3dc46255f83779e356e3b6d11b48 SHA512 90a9fd9686ba124190c9fb0f42dd8e59c871d4db64a3a9e1b5e6404151396d690cedde887f4fb6917391f2ee46b68f0e56b8abe5e3093b902185acdd674dda79 WHIRLPOOL e4dea18bfa629f8dbbaff6e3e54444fbae17703de83fb6f7196749b693c1e271ea84d402f9cbea11e945f5397401340318ca72fb55d84512a11eb43aa65fb7ed
EBUILD udev-9999.ebuild 11034 SHA256 2850bf2325e62033c00f03db639921a47444470e11cef84a9f0c77eadd657435 SHA512 bf959b1dd944f76ffc7a67423163cf6284b7b8fa21ae06c19115bfa79d16dcbcc208f123ccc4535b9692a34d63013df4f99672ed0dcee1216b9e1c3ee003fe59 WHIRLPOOL 5ccfb335658470bfeec11875c70c8d4cec1ea25f7b5c9de23b4cf5e88b67a2cd9aab8a3bf421edd7b9e5f12a62ce564626e3c8d82c9a72d68bd9ae01b6471a80
-MISC ChangeLog 41197 SHA256 f86e094ad7ae5a7c2efc2dc99f500353fad2cea22fc5dad402219e9803f94e8a SHA512 c1269339c1210844601cd2fd73de2847d7d500fad1c1f29c5c629c8791e37c1ecf64767852087ecb6ad704c7a6c2bba09f8aea8afd23f7b9e0cc0eb2b859c634 WHIRLPOOL d472001e7dc919f6eb50bdff6f59ff4ca59cf224afe6d6317ac85c91c262626a676871b06b84254369e87316909114a78ac951dcebe13ad09b6e2914c0b4bc10
+MISC ChangeLog 41307 SHA256 1bf1a3ab312762a8f3ba47e44d3ac760ee0ebcbb901886dfc4cfa52c23472cba SHA512 c65434ddfa77975c9d9340a423f5ed01ad5bf78d245552bfa2a19d485b1a922b700f44d41ce73c1da1d33e6d5d89d6f619b7b0e2e023511931b80d0724123df7 WHIRLPOOL 5e35b258d1152e81705f7f79fe7e7361d651648abfa26a3f4360e8c314b81d8d325c58fdb575841620f7447b9a45401f3c8e8dd2b4d7b8aa1c0b2fe46ecf3c42
MISC ChangeLog-2009 105929 SHA256 7a8d7123b7395dc5bbde09a8c0cee1c5110d24faf87a68a8210b0c6bdf862c1c SHA512 3b577c97224e7f85ae5fb0a0ead538f8aa83c738e6014fadaf5247f34d3863df4bc10f9d15a5e117813d081a8af1913ea41a5e60d00ed521ea0c1e5b71a91a2b WHIRLPOOL c9f527ba19e787f9973a26ed535dbf7af760c3a519f4b062cf2a8069e134a803ebe669450deace804be70619995b389529febf03e8aeb7183c3ea984c0dfdaa5
MISC metadata.xml 1219 SHA256 0ae3dd9577e914a82f647c359681a278220520270fe4ae1a4dbd7ea0c0071945 SHA512 bab691cd1183391798ef4bb1997c995573a30213afdd2565fbf3f33c9dd7953a915e40a9a8a2963b47f8950e97707e0204f41847f891e99cac8ec0db067d7b57 WHIRLPOOL fb116da30e0c1fbd84ec8eda60d2677ed9972a2144138f4b3e6bddb11d2a38b117522417f3c7c445801bfe9461cb870560a4019df1c7fd36b646ee0ebf9a06a9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREIAAYFAlBiSLgACgkQblQW9DDEZTg65QCfU5UWFYtCBJcSq3fSb4gkFWft
-reYAn0nubF4pLUl0z98qMOtJYobIlFbO
-=G2rp
+iEYEAREIAAYFAlBowhcACgkQblQW9DDEZTh4dACfbstrTUKaTImZSzOo70b2HTte
+D4oAn3DpKPtvheufv9fJNKEfu7urGKiF
+=9cf9
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/udev-193.ebuild b/sys-fs/udev/udev-193.ebuild
new file mode 100644
index 000000000000..10cc1f5004b7
--- /dev/null
+++ b/sys-fs/udev/udev-193.ebuild
@@ -0,0 +1,417 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-193.ebuild,v 1.1 2012/09/30 22:04:59 williamh Exp $
+
+EAPI=4
+
+KV_min=2.6.39
+
+inherit autotools eutils linux-info
+
+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/~williamh/dist/${P}-patches-${patchset}.tar.bz2"
+ 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 gudev hwdb introspection keymap +openrc selinux static-libs"
+
+RESTRICT="test"
+
+COMMON_DEPEND="acl? ( sys-apps/acl )
+ gudev? ( dev-libs/glib:2 )
+ introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
+ selinux? ( sys-libs/libselinux )
+ >=sys-apps/kmod-5
+ >=sys-apps/util-linux-2.20
+ !<sys-libs/glibc-2.11"
+
+DEPEND="${COMMON_DEPEND}
+ dev-util/gperf
+ >=dev-util/intltool-0.40.0
+ virtual/pkgconfig
+ virtual/os-headers
+ !<sys-kernel/linux-headers-${KV_min}
+ doc? ( dev-util/gtk-doc )"
+
+if [[ ${PV} = 9999* ]]
+then
+ DEPEND="${DEPEND}
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt"
+fi
+
+RDEPEND="${COMMON_DEPEND}
+ hwdb? ( sys-apps/hwids )
+ openrc? ( >=sys-fs/udev-init-scripts-16
+ !<sys-apps/openrc-0.9.9 )
+ !sys-apps/coldplug
+ !=sys-apps/systemd-188
+ !<sys-fs/lvm2-2.02.45
+ !sys-fs/device-mapper
+ !<sys-fs/udev-init-scripts-16
+ !<sys-kernel/dracut-017-r1
+ !<sys-kernel/genkernel-3.4.25"
+
+S="${WORKDIR}/systemd-${PV}"
+
+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=18843fc4a8dd1d8074b98a583454cb9e
+ 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()
+{
+ # required kernel options
+ CONFIG_CHECK="~DEVTMPFS"
+ ERROR_DEVTMPFS="DEVTMPFS is not set in this kernel. Udev will not run."
+
+ 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()
+{
+ # backport some patches
+ if [[ -n "${patchset}" ]]
+ then
+ 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 \
+ || 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
+}
+
+src_configure()
+{
+ local econf_args
+
+ econf_args=(
+ ac_cv_search_cap_init=
+ ac_cv_header_sys_capability_h=yes
+ DBUS_CFLAGS=' '
+ DBUS_LIBS=' '
+ --docdir=/usr/share/doc/${PF}
+ --libdir=/usr/$(get_libdir)
+ --with-distro=gentoo
+ --with-firmware-path=/usr/lib/firmware/updates:/usr/lib/firmware:/lib/firmware/updates:/lib/firmware
+ --with-html-dir=/usr/share/doc/${PF}/html
+ --with-pci-ids-path=/usr/share/misc/pci.ids
+ --with-rootlibdir=/usr/$(get_libdir)
+ --with-rootprefix=/usr
+ --with-usb-ids-path=/usr/share/misc/usb.ids
+ --disable-audit
+ --disable-coredump
+ --disable-hostnamed
+ --disable-ima
+ --disable-libcryptsetup
+ --disable-localed
+ --disable-logind
+ --disable-nls
+ --disable-pam
+ --disable-quotacheck
+ --disable-readahead
+ --enable-split-usr
+ --disable-tcpwrap
+ --disable-timedated
+ --disable-xz
+ $(use_enable acl)
+ $(use_enable doc gtk-doc)
+ $(use_enable gudev)
+ $(use_enable introspection)
+ $(use_enable keymap)
+ $(use_enable selinux)
+ $(use_enable static-libs static)
+ )
+ econf "${econf_args[@]}"
+}
+
+src_compile()
+{
+ echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
+ emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
+ local targets=(
+ systemd-udevd
+ udevadm
+ libudev.la
+ 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_systemunitDATA
+ install-dist_udevconfDATA
+ install-dist_udevhomeSCRIPTS
+ install-dist_udevkeymapDATA
+ install-dist_udevkeymapforcerelDATA
+ install-dist_udevrulesDATA
+ install-girDATA
+ install-man7
+ install-man8
+ install-nodist_systemunitDATA
+ install-pkgconfiglibDATA
+ install-sharepkgconfigDATA
+ install-typelibsDATA
+ install-dist_docDATA
+ udev-confdirs
+ systemd-install-hook
+ )
+
+ 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"
+ dist_systemunit_DATA="units/systemd-udevd-control.socket \
+ units/systemd-udevd-kernel.socket"
+ nodist_systemunit_DATA="units/systemd-udevd.service \
+ units/systemd-udev-trigger.service \
+ units/systemd-udev-settle.service"
+ pkgconfiglib_DATA="${pkgconfiglib_DATA}"
+ )
+ emake 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}"/usr/lib/udev/rules.d/99-systemd.rules
+ rm -rf "${D}"/usr/share/doc/${PF}/LICENSE.*
+
+ # install gentoo-specific rules
+ insinto /usr/lib/udev/rules.d
+ doins "${FILESDIR}"/40-gentoo.rules
+
+ # install udevadm symlink
+ dosym ../usr/bin/udevadm /sbin/udevadm
+}
+
+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 /$(get_libdir)/libudev.so.0
+}
+
+# This function determines if a directory is a mount point.
+# It was lifted from dracut.
+ismounted()
+{
+ while read a m a; do
+ [[ $m = $1 ]] && return 0
+ done < "${ROOT}"/proc/mounts
+ return 1
+}
+
+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 now gets installed by sys-fs/device-mapper
+ # remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
+ if [[ -f ${ROOT}/etc/udev/rules.d/64-device-mapper.rules ]] &&
+ ! has_version sys-fs/device-mapper
+ then
+ rm -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules
+ einfo "Removed unneeded file 64-device-mapper.rules"
+ fi
+
+ ewarn
+ ewarn "If you build an initramfs including udev, please make sure the"
+ ewarn "/usr/bin/udevadm binary gets included, Also, change your scripts to"
+ ewarn "use it,as it replaces the old udevinfo and udevtrigger helpers."
+
+ ewarn
+ ewarn "mount options for /dev are no longer set in /etc/udev/udev.conf."
+ ewarn "Instead, /etc/fstab should be used. This matches other mount points."
+
+ ewarn
+ ewarn "Rules for /dev/hd* devices have been removed."
+ ewarn "Please migrate to libata."
+
+ ewarn
+ ewarn "action_modeswitch has been removed by upstream."
+ ewarn "Please use sys-apps/usb_modeswitch."
+
+ if ismounted /usr
+ then
+ ewarn
+ ewarn "Your system has /usr on a separate partition. This means"
+ ewarn "you will need to use an initramfs to pre-mount /usr before"
+ ewarn "udev runs."
+ ewarn "This must be set up before your next reboot, or you may"
+ ewarn "experience failures which are very difficult to troubleshoot."
+ ewarn "For a more detailed explanation, see the following URL:"
+ ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken"
+ ewarn
+ ewarn "For more information on setting up an initramfs, see the"
+ ewarn "following URL:"
+ ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml"
+ fi
+
+ if use acl; then
+ ewarn
+ ewarn "The udev-acl functionality has been moved."
+ ewarn "If you are not using systemd, this is handled by consolekit."
+ ewarn "Otherwise, you need to make sure that systemd is emerged with"
+ ewarn "the acl use flag active."
+ fi
+
+ if [[ -d ${ROOT}lib/udev ]]
+ then
+ ewarn
+ ewarn "This version of udev moves the files which were installed in"
+ ewarn "/lib/udev to /usr/lib/udev. We include a backward compatibility"
+ ewarn "patch for gentoo to allow the rules in /lib/udev/rules.d to be"
+ ewarn "read; however, bugs should be filed against packages which are"
+ ewarn "installing things in /lib/udev so they can be fixed."
+ fi
+
+ ewarn
+ ewarn "You need to restart udev as soon as possible to make the upgrade go"
+ ewarn "into affect."
+ ewarn "The method you use to do this depends on your init system."
+
+ ewarn
+ ewarn "Upstream has removed the persistent-net and persistent-cd rules"
+ ewarn "generator. If you need persistent names for these devices,"
+ ewarn "place udev rules for them in ${ROOT}etc/udev/rules.d."
+ ewarn "Be aware that you cannot directly swap device names, so persistent"
+ ewarn "rules for network devices should be like the ones at the following"
+ ewarn "URL:"
+ ewarn "http://bugs.gentoo.org/show_bug.cgi?id=433746#C1"
+
+ preserve_old_lib_notify /$(get_libdir)/libudev.so.0
+
+ 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"
+}