summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-08-24 16:21:22 +0000
committerWilliam Hubbs <williamh@gentoo.org>2012-08-24 16:21:22 +0000
commit248ba5c39812fb7c25fccef0c0d24081c6bdcf2d (patch)
tree61d2494b75d02e133d11bf66bd55203586742db4 /sys-fs/udev
parentVersion bump. (diff)
downloadhistorical-248ba5c39812fb7c25fccef0c0d24081c6bdcf2d.tar.gz
historical-248ba5c39812fb7c25fccef0c0d24081c6bdcf2d.tar.bz2
historical-248ba5c39812fb7c25fccef0c0d24081c6bdcf2d.zip
version bump
Package-Manager: portage-2.2.0_alpha122/cvs/Linux i686
Diffstat (limited to 'sys-fs/udev')
-rw-r--r--sys-fs/udev/ChangeLog7
-rw-r--r--sys-fs/udev/Manifest11
-rw-r--r--sys-fs/udev/udev-189.ebuild413
3 files changed, 426 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index eb457088cc86..f5945fa28ec6 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.716 2012/08/24 16:04:52 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.717 2012/08/24 16:21:22 williamh Exp $
+
+*udev-189 (24 Aug 2012)
+
+ 24 Aug 2012; William Hubbs <williamh@gentoo.org> +udev-189.ebuild:
+ version bump
24 Aug 2012; William Hubbs <williamh@gentoo.org> -udev-187-r1.ebuild,
-udev-187-r3.ebuild:
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index ebc4a7dc8270..611362ab9185 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -3,6 +3,7 @@ Hash: SHA256
AUX 40-gentoo.rules 349 SHA256 5d618b899475925ceccc330b6a738644aedd582d039f0cc404502637351347ea SHA512 b8d90037c08f30c9fb9e22a43c59a3627c218313b0421d4b70feba1731cda76ddc4ee6bdb99dca8df61e11f8d656a8769e172f0a584d7620213973dacfbbb4aa WHIRLPOOL a4086cd5f0e8849369389aa29ec42f5d906b00e3d650724d38ff8b4df4e36de7d3a37393b14f2f30a7102d6f2859b6847b5f4b7813be12d945ce1515494ce120
DIST systemd-188.tar.xz 1348144 SHA256 e839ed6061db57933b956f5d6952d9ad9b5ec1608363269d627cfd58c363215b SHA512 1dc7b7ec23ae0d841ddfa992ccc38cc0cf417cf48c90c84b67df5832fb77a1650f7010bcc8728a7b7f897855a879acf3c23834abfc8eff51de0712180ca3c9aa WHIRLPOOL 29e44f2b42cd9b1b0e44e25a1ee0fc97feda699572dadaa21fa2140ad823013b86b32e16a8ac6b5077058a7f769a75431211439fa4874291396e9de827dfb054
+DIST systemd-189.tar.xz 1371872 SHA256 fec0efd82c9f1bdff6cb9d9811c00830ed890dbe915e79c90ae306cdbd8c4529 SHA512 a275dc93ad68a95f6695cd4d5472d15c3a3a0439944ce54b5dc6bd14500755d769e708510877e5681b4906ef2b8eb0d67c3d77a161db717e6e9a43888c3b50af WHIRLPOOL cd3377da687f12e0a07cbf6fe74b362bbd4118905a7b2e3488170b9b0ca88238a0379df9b18e9cd506e6544311ae83cd26f493568d85b457a1a2469e06083713
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
@@ -16,6 +17,7 @@ DIST udev-171-gentoo-patchset-v1.tar.bz2 796 SHA256 9524e64068d67bb55ddad16dd36a
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-188-patches-1.tar.bz2 1278 SHA256 237498e737230b99db6b897a8dbfbf3dbf97255c6334605d58c0ab7cdd344519 SHA512 641676de1aceae7121434bb32057aba68871054ae1fe6ec826321dd53826ee0ea7ec846ecea572c9dc51972d636da5f1a767dd2e452d4dec5e4948e3356dd4d6 WHIRLPOOL d4966424c2430e64011c8ceb21cd670685986f94bc77e660045633e1b5113449453cddf1632399716a0a5b450c9b94f902b3239b58493c6d3d73209f8f8a1411
+DIST udev-189-patches-1.tar.bz2 1266 SHA256 1a3cfe84fb27d303a6844f2e56e6d114ffb331c34c18be4f7d3de3266c35ae41 SHA512 91556355df022ed3f5cb65ffa2a6c3367be033f7262c084a5f10b33ec9a1b75ff922f675714e9cf98f097ebcecde70d3bba074e0a4cbacb2bf5aedda1d7a5b50 WHIRLPOOL 285cf99f141568ee48a401d73688fc231d83ec8c2c7cb4e40f769d3505cb39c4e66efd95bf8010fc5294b11744bdd7805fd89403c32b0d7c82119718932f895b
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
@@ -26,14 +28,15 @@ EBUILD udev-151-r4.ebuild 16792 SHA256 b9821f05b54788b589b142c61149ce0e8529e58ad
EBUILD udev-164-r2.ebuild 15167 SHA256 67a6c8d34f108db1fa01219cb9085d997c3b5bed954f57dffc6b99fcb2ee1976 SHA512 a2e9eead578d25300e878e6c7d24f471be03541dc3efbde207a8cd12042283769b8786ccbd632d87456caf235670ee1d4504289a0ed032309347c4504d64b71f WHIRLPOOL 82c32c18a8ca7161fafc649bc6de48c3d76ee3e24dcb2e324adaf6377645930da473c6f22f0a4e081f2ee23c01431f07caa0d2b4f3ffb69d5de50e3dfc2403d5
EBUILD udev-171-r6.ebuild 15731 SHA256 f56cc93b03d4125ec219f6f624ae614135741deeee38400736d61e3a52d6d7a5 SHA512 66487fd52d54a10978e899680bceb8bec1612ed08f81755b53292ff374d8f7eb90ee81b47977e0cf0f24e0902f8bfe1d3f37ae8b78dfa3272dcc38e4d31ecceb WHIRLPOOL a6502c598dc89c5dcb91ebbd2af218460be85ed279b7c0bef60e39e7defda5100d36a82879063f2242ac88978214b405e6964087dd592720d3aae76f60f25fd0
EBUILD udev-188.ebuild 10745 SHA256 d980c0d3ebbbc4dff94da2752a76e6a2e36a8d86030c206bcbd9f51dd1fa0978 SHA512 406a06cc0ab6471994a10e55bfb34e63c9de8223c844211f81c2e6da2e9aef7bb03305b8608761b9576c70782a74dad07bc3639b9ae29bb84440b94177a6ec95 WHIRLPOOL 42675e5950f93b2766d7255dc62ce36fcc0a17f9dc964cf61397ccee9502dcaaa0ebf51767c0fa0532b6ddc320867fedf724f8b19014152b3092a0a08898faf0
+EBUILD udev-189.ebuild 10745 SHA256 dcedb5e559ca7b6052fc17b4664c1756a9a123be82866116594c1e6053f7f549 SHA512 38589e75576d618c1ee8820a762734920aeca10320d2ea8f3107a0c538b4d5eef77f53673dd22fd1feaf2480641580a575125c27a150b84d4dc320040adbb8bc WHIRLPOOL 05db0d0f35e3369b49ba560d9d7fe94457f3287e5b3c80bdb44f62f892902ae61cbbc340c84610b1f67b64e70471385a0a225d7c2e33b43fe9583ec61e15c782
EBUILD udev-9999.ebuild 10747 SHA256 f9927dc6e15a7619ff30390b7ccec3aeb9da800f6a2bf09f2b269288d8a0933c SHA512 efd190719e9c7b6ee0f8150ce03ed5b9e39687ab489480d77032bc0acc385cf48ace2b66899ff995f4acce22f1892beb22102144c6161b5ecacad843ea2be35c WHIRLPOOL 1fef2d747c2347540edad62e296460a7c6ad7628f2f26217ac0627032dbb5417001d26a18dbb025c62fb50342a6d9ef25e0a358f915a0210d32efdac22fb1d95
-MISC ChangeLog 39993 SHA256 f89fbfe77f481e4bf44a19d3fd18fb15a50b77f82283746378df01979c33931e SHA512 cdc63281046a8b923ac06c6b560d67dcec7a0bece88637013e114ed62bbb1d11e797289101b79a1d54bf4af4836807677bc4b1fcfb4618094ad898732c65b32c WHIRLPOOL baa65d9c9203d0dbca14f188b054e24b4a5c69c45c5bcdb0ae726c19285c6880ea804bbfc4890888af87d51fd641f06621feb795eb47ad345546ee1231a9e865
+MISC ChangeLog 40103 SHA256 c0bd2db956b1a7d903c48771561cefaad707af7390b244eb62f54c1d85882f4f SHA512 67b5aee2703c046f4661c7edf4166c7dd5911c96306d34af18a77e0e583df6be578b0b1d98581b9f3ed477f4ad26327228d2d2618b3dcee1fe3762631da1d719 WHIRLPOOL 13fff79213f969a0edfd1fd1f98992d188386d1207faa7030795b6d35688143cbc3c46d77ae94ca629f4e4a7c7db90a8219ebb949b78c016524eb4d3eede4848
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)
-iEYEAREIAAYFAlA3pjQACgkQblQW9DDEZThoJQCfQ4SNkF07EGB6qleq3QvkB4z9
-MZoAoJ1BVl6fZ/7GYkvhYm5W1zkFtqLl
-=YO5F
+iEYEAREIAAYFAlA3qg8ACgkQblQW9DDEZTjlLACeIWAgmCC0Nq2eQv7xOXHklioA
+UMwAnivVmRHI0749ja0Z0YmYLDUowAiM
+=I4nR
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/udev-189.ebuild b/sys-fs/udev/udev-189.ebuild
new file mode 100644
index 000000000000..6272075786c1
--- /dev/null
+++ b/sys-fs/udev/udev-189.ebuild
@@ -0,0 +1,413 @@
+# 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-189.ebuild,v 1.1 2012/08/24 16:21:22 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.12"
+
+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 /usr/$(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, then please"
+ ewarn "make sure the /usr/bin/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 "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
+
+ ewarn
+ ewarn "The udev-acl functionality has been removed from standalone udev."
+ ewarn "If you are using standalone udev, consolekit handles this"
+ ewarn "functionality."
+
+ if [[ -d ${ROOT}lib/udev ]]
+ then
+ ewarn
+ ewarn "This version of udev moves the files that were installed in"
+ ewarn "/lib/udev to /usr/lib/udev."
+ ewarn "We include a backward compatibility patch for gentoo to"
+ ewarn "allow the rules in /lib/udev/rules.d to be read. However,"
+ ewarn "bugs should be filed against packages that are installing"
+ ewarn "files 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."
+
+ preserve_old_lib_notify /usr/$(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"
+}