diff options
author | William Hubbs <williamh@gentoo.org> | 2012-09-22 15:21:42 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-09-22 15:21:42 +0000 |
commit | 5c797d183f6040420d5f10b9cc5d924a2c819f89 (patch) | |
tree | bd5a8f33c686ec1d3e1b9cba51677a652746e947 /sys-fs | |
parent | Fix upgrade warning when upgrading from 2.x to 3.x, bug 435816. (diff) | |
download | historical-5c797d183f6040420d5f10b9cc5d924a2c819f89.tar.gz historical-5c797d183f6040420d5f10b9cc5d924a2c819f89.tar.bz2 historical-5c797d183f6040420d5f10b9cc5d924a2c819f89.zip |
version bump
Package-Manager: portage-2.2.0_alpha131/cvs/Linux i686
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/udev/Manifest | 11 | ||||
-rw-r--r-- | sys-fs/udev/udev-191.ebuild | 417 |
3 files changed, 430 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index 46964af77501..6f0fbe8005b1 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.722 2012/09/21 20:34:55 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.723 2012/09/22 15:21:42 williamh Exp $ + +*udev-191 (22 Sep 2012) + + 22 Sep 2012; William Hubbs <williamh@gentoo.org> +udev-191.ebuild: + version bump *udev-190 (21 Sep 2012) diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index e33c885c98a1..eda70d53cfbd 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -4,6 +4,7 @@ Hash: SHA256 AUX 40-gentoo.rules 349 SHA256 5d618b899475925ceccc330b6a738644aedd582d039f0cc404502637351347ea SHA512 b8d90037c08f30c9fb9e22a43c59a3627c218313b0421d4b70feba1731cda76ddc4ee6bdb99dca8df61e11f8d656a8769e172f0a584d7620213973dacfbbb4aa WHIRLPOOL a4086cd5f0e8849369389aa29ec42f5d906b00e3d650724d38ff8b4df4e36de7d3a37393b14f2f30a7102d6f2859b6847b5f4b7813be12d945ce1515494ce120 DIST systemd-189.tar.xz 1371872 SHA256 fec0efd82c9f1bdff6cb9d9811c00830ed890dbe915e79c90ae306cdbd8c4529 SHA512 a275dc93ad68a95f6695cd4d5472d15c3a3a0439944ce54b5dc6bd14500755d769e708510877e5681b4906ef2b8eb0d67c3d77a161db717e6e9a43888c3b50af WHIRLPOOL cd3377da687f12e0a07cbf6fe74b362bbd4118905a7b2e3488170b9b0ca88238a0379df9b18e9cd506e6544311ae83cd26f493568d85b457a1a2469e06083713 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 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 @@ -18,6 +19,7 @@ DIST udev-171-testsys.tar.bz2 155001 SHA256 7383701b64701f58f16e0ddb19fe33b4eb53 DIST udev-171.tar.bz2 597937 SHA256 fed1e46074c1a16c828193ebd73b3940b7905cc7dcaeb0b3c720d4615210695e SHA512 dea189d79b195f8c10740507b11de2c2074442301ee52a0b2c62efa8663e1793c1a78b03b95510ba19bc93d4dcc497120fbf6bb5784878aa903973f76b92d42f WHIRLPOOL a93241b0f0645696e6a88ddb152c3ef8f2c73b5bf3591892384f180fc7abeb580c59642013480546eac00ad5028b1900ad35b88f6a27ad2d07792e9f34e59743 DIST udev-189-patches-1.tar.bz2 1266 SHA256 1a3cfe84fb27d303a6844f2e56e6d114ffb331c34c18be4f7d3de3266c35ae41 SHA512 91556355df022ed3f5cb65ffa2a6c3367be033f7262c084a5f10b33ec9a1b75ff922f675714e9cf98f097ebcecde70d3bba074e0a4cbacb2bf5aedda1d7a5b50 WHIRLPOOL 285cf99f141568ee48a401d73688fc231d83ec8c2c7cb4e40f769d3505cb39c4e66efd95bf8010fc5294b11744bdd7805fd89403c32b0d7c82119718932f895b 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-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 @@ -29,14 +31,15 @@ EBUILD udev-164-r2.ebuild 15166 SHA256 5b95ac84b12592a869cd25e4d20cec86befd68d9c EBUILD udev-171-r6.ebuild 15730 SHA256 546ac267598aef8f2270b181020483a80c0e4b06822f7d96e7f32c2a1bfe2eec SHA512 55bb65cf1ec7d14dddcd604591a0bb2112777f37d7d6e29dfc527c3f4c4f00e3e47ebb7c02e014a351ffc54c55bc5cccb78bdb9caff27936932e639e6277ca9c WHIRLPOOL c6a141614965a6f446429994320d9b4fafae877614cded1a3f71187c2f05b5b5721714e2c4b304303851cf0050b3c3ab60e45cffb8f2520ff8765effb24398a2 EBUILD udev-189.ebuild 11032 SHA256 49a18eeb31611fc22416bc81319d10e40d7554c7fae24f8cdf8cdf751334e12a SHA512 c066003c803468358a58be1e370f69396614d9ecc78f2275e86e3e47f6906eca16232fe8e5800d44d9c0295b314e37602da37a140639ed1b01df664a7a77b826 WHIRLPOOL 0867dae834d126f69bb206025a2b8adae7d7f1dc43c410361353ca47a709e87b4ff6e8ef4f9893cdf229cedf9bf79ded3e12cce484f429d2b9bfa991d2d180a9 EBUILD udev-190.ebuild 11032 SHA256 ff0a13f6fb5cefd0d4b8c19ec8419a65859179d3d7408757b2332ef38655077c SHA512 02bd90a2e0be05a87fe213e3ef8144aab5de3ba70e436078d20d0c81bfd6c18a1e8a76bf5a807a77b62d3e49284a575f04963bc3de71b38c6486b24f5b0fd1ef WHIRLPOOL 55293d6e6fd220703b7619a73d871e499378860d9259c8dc6983cf8cb7e2740d462d507c9c2cac92493c3c3690d752288f7303abea8c727ed0e62a24e1cf2bdb +EBUILD udev-191.ebuild 11032 SHA256 f7a1e68b1d5d4b21e075e4f0475160e36abf478a91ee8ca2eb78412683919deb SHA512 02b7de416d535aa8fadd453482add6e4343e2113ea4a984e42acdc688b35e4fa76f85fa3c835d824003048a8df81e0280528605853c529182c94710f2cd3238b WHIRLPOOL 4f354a56827dda78ea90f5cebb433ffe12eb19b19783c723c961cf8f2ca3312f93d79638705ea75c46de7a32d9afc241dba4c6576cd8005d95edfc4078e6dcbe EBUILD udev-9999.ebuild 11034 SHA256 2850bf2325e62033c00f03db639921a47444470e11cef84a9f0c77eadd657435 SHA512 bf959b1dd944f76ffc7a67423163cf6284b7b8fa21ae06c19115bfa79d16dcbcc208f123ccc4535b9692a34d63013df4f99672ed0dcee1216b9e1c3ee003fe59 WHIRLPOOL 5ccfb335658470bfeec11875c70c8d4cec1ea25f7b5c9de23b4cf5e88b67a2cd9aab8a3bf421edd7b9e5f12a62ce564626e3c8d82c9a72d68bd9ae01b6471a80 -MISC ChangeLog 40977 SHA256 2ad77f2600d9c9c061fea0f22f3e7a51b4cd0a2a8dae28e498e1e3303e1df3e4 SHA512 d6ea744eb99ea62bba347e70486fc48c52e4f74bba5c00d6fbae6a2c72d9bbc78259469bf1c916d26cd52aa557b800b1e0e6a5f95dc9d3760c70ad7c32a76e4b WHIRLPOOL d814e1ea49d16e881e461166df2123b2ec1d3c56a600638d03ed202c14514bfb63549f6cc29b438de59908979de9affb88a723280a233cc853bd83d4ce5a1127 +MISC ChangeLog 41087 SHA256 ce46b55e3358b10ba4242a74b3d03ef48448ba9e8c8605419b58465244bf28e3 SHA512 c0855f27fc55d80cc2fd0dff65f2ffd9c312a26f62248415b87a08e8b6afe86f43f4c7b0ce56f3df1829c3dbaed294fca80a5bc2b459a659dd3f98de7d65a3fa WHIRLPOOL d1ae3912772ac09f2782ab60801543c4b8bfa747bf2cd8959196c00c25c930648d0bde01dec79e48814bac05cbae72c6f340f5cddce5d8255efb2f9c32f835f5 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) -iEYEAREIAAYFAlBcz30ACgkQblQW9DDEZTijwwCfQC6EPHadYIfc8bAlX2CnPWTm -1twAn3mZH/LGfJzLURlJ0wKwEX/fIVO2 -=EAne +iEYEAREIAAYFAlBd15gACgkQblQW9DDEZTgTagCfT3u0G0GrBhZcbUushK3Zsfp2 ++5YAoIrOB44EIL9GDdiHSqYIy/WPgUaR +=lAkP -----END PGP SIGNATURE----- diff --git a/sys-fs/udev/udev-191.ebuild b/sys-fs/udev/udev-191.ebuild new file mode 100644 index 000000000000..9354d6374b06 --- /dev/null +++ b/sys-fs/udev/udev-191.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-191.ebuild,v 1.1 2012/09/22 15:21:42 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" +} |