summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-09-21 20:34:55 +0000
committerWilliam Hubbs <williamh@gentoo.org>2012-09-21 20:34:55 +0000
commitffd1f956c214c286a414c3c7578b03f14891fa22 (patch)
treefafd6a929137b23585ae1b7398bebf137f11de8a /sys-fs
parentStable for amd64, wrt bug #435340 (diff)
downloadhistorical-ffd1f956c214c286a414c3c7578b03f14891fa22.tar.gz
historical-ffd1f956c214c286a414c3c7578b03f14891fa22.tar.bz2
historical-ffd1f956c214c286a414c3c7578b03f14891fa22.zip
version bump
Package-Manager: portage-2.2.0_alpha130/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-190.ebuild417
3 files changed, 430 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index b8bc7185f8d6..46964af77501 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.721 2012/09/11 16:24:47 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.722 2012/09/21 20:34:55 williamh Exp $
+
+*udev-190 (21 Sep 2012)
+
+ 21 Sep 2012; William Hubbs <williamh@gentoo.org> +udev-190.ebuild:
+ version bump
11 Sep 2012; William Hubbs <williamh@gentoo.org> udev-164-r2.ebuild,
udev-171-r6.ebuild, udev-189.ebuild, udev-9999.ebuild:
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index e8d02ba82860..e33c885c98a1 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-189.tar.xz 1371872 SHA256 fec0efd82c9f1bdff6cb9d9811c00830ed890dbe915e79c90ae306cdbd8c4529 SHA512 a275dc93ad68a95f6695cd4d5472d15c3a3a0439944ce54b5dc6bd14500755d769e708510877e5681b4906ef2b8eb0d67c3d77a161db717e6e9a43888c3b50af WHIRLPOOL cd3377da687f12e0a07cbf6fe74b362bbd4118905a7b2e3488170b9b0ca88238a0379df9b18e9cd506e6544311ae83cd26f493568d85b457a1a2469e06083713
+DIST systemd-190.tar.xz 1404812 SHA256 2fb2f894b8cd4aa87420517b55d938837111aa47b4a09ea8306f90be1f7277dc SHA512 e2ecca0c47a26a7a38368cea0fc7f835086fb2f73154185c6b5627cf72c75dfcfcbe3ccfb77fed5f2ce3da781be0d32d7b561f1d00a521bc3af42bb9d572159c WHIRLPOOL 710f08f10f8861bde548575604258abd3bae8b08822f99180e21089c61f3dff4e55bd61e9c1b8e2d24dc2955c20735d8b89b574ec9e0f69656b9ad2260653b5d
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-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-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 15166 SHA256 5b95ac84b12592a869cd25e4d20cec86befd68d9cf8ceec6e215e5ff3fb6c268 SHA512 1abe951175d7071e4c2736e50c43ded1fa2bc733e7b15e50ee2ab0acc0a35c4072b40bcd0971f4a42b5bb92e282df50eb5918ba37ffbcb72f4fdf9161fd800cc WHIRLPOOL 910a74ff36e7635830a6958651f629b9e69dbc7677f6a332cd6d0d5ce7278fa3040fdf70461eb5ff50740aa5cd58d49687001564ca810373bb211ebf6e4fa2b2
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-9999.ebuild 11034 SHA256 2850bf2325e62033c00f03db639921a47444470e11cef84a9f0c77eadd657435 SHA512 bf959b1dd944f76ffc7a67423163cf6284b7b8fa21ae06c19115bfa79d16dcbcc208f123ccc4535b9692a34d63013df4f99672ed0dcee1216b9e1c3ee003fe59 WHIRLPOOL 5ccfb335658470bfeec11875c70c8d4cec1ea25f7b5c9de23b4cf5e88b67a2cd9aab8a3bf421edd7b9e5f12a62ce564626e3c8d82c9a72d68bd9ae01b6471a80
-MISC ChangeLog 40867 SHA256 77da0c95d189971fe20aa093038fb9628df38d6cb862322118c47633c008c3a7 SHA512 53dfab629c293c23c974aae6442bac1b16969b8b40fa45c64b79be9608bfa9e7b06449ef8f1d635b27499d2955a1b231903c116066f1657a170f9b3b1032c286 WHIRLPOOL 52b245843e5b9590da449ea019034abc90bffc37375ca6b1a88a47727209f7c428ab134edcd1ae1a2091244673cded72a2c3bbc14136c3e125823207d885dff6
+MISC ChangeLog 40977 SHA256 2ad77f2600d9c9c061fea0f22f3e7a51b4cd0a2a8dae28e498e1e3303e1df3e4 SHA512 d6ea744eb99ea62bba347e70486fc48c52e4f74bba5c00d6fbae6a2c72d9bbc78259469bf1c916d26cd52aa557b800b1e0e6a5f95dc9d3760c70ad7c32a76e4b WHIRLPOOL d814e1ea49d16e881e461166df2123b2ec1d3c56a600638d03ed202c14514bfb63549f6cc29b438de59908979de9affb88a723280a233cc853bd83d4ce5a1127
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)
-iEYEAREIAAYFAlBPZfAACgkQblQW9DDEZTgjSwCffQpzOZ2CuTfrLIgyi2Uzfi7s
-Eo4AoICUe1+J8tkwMJadRN+GwBvNCKuI
-=iQhQ
+iEYEAREIAAYFAlBcz30ACgkQblQW9DDEZTijwwCfQC6EPHadYIfc8bAlX2CnPWTm
+1twAn3mZH/LGfJzLURlJ0wKwEX/fIVO2
+=EAne
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/udev-190.ebuild b/sys-fs/udev/udev-190.ebuild
new file mode 100644
index 000000000000..54abe35d614d
--- /dev/null
+++ b/sys-fs/udev/udev-190.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-190.ebuild,v 1.1 2012/09/21 20:34:55 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"
+}