summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-02-25 08:20:29 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-02-25 08:20:29 +0000
commit3245a07198a6972dc2eb7aaeb4eb835dbe4ee9a6 (patch)
tree8a72d461ef61ed4f19dbdbbd181b6a48633e7e59 /sys-fs/udev
parentBump (diff)
downloadhistorical-3245a07198a6972dc2eb7aaeb4eb835dbe4ee9a6.tar.gz
historical-3245a07198a6972dc2eb7aaeb4eb835dbe4ee9a6.tar.bz2
historical-3245a07198a6972dc2eb7aaeb4eb835dbe4ee9a6.zip
Version bump.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs/udev')
-rw-r--r--sys-fs/udev/ChangeLog7
-rw-r--r--sys-fs/udev/Manifest18
-rw-r--r--sys-fs/udev/udev-210.ebuild486
3 files changed, 502 insertions, 9 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 9b2302dcf5e7..087c3375f181 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.993 2014/02/24 08:40:57 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.994 2014/02/25 08:20:24 ssuominen Exp $
+
+*udev-210 (25 Feb 2014)
+
+ 25 Feb 2014; Samuli Suominen <ssuominen@gentoo.org> +udev-210.ebuild:
+ Version bump.
24 Feb 2014; Samuli Suominen <ssuominen@gentoo.org> udev-209.ebuild,
udev-9999.ebuild:
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index c21d599fb7a2..599defa40e04 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -3,11 +3,13 @@ Hash: SHA256
DIST systemd-208-r1.tar.xz 2382904 SHA256 aa64fa864466fd5727005c55d61c092828b94b4f857272c0b503695022146390 SHA512 c21989b747f5e73ba2311919e1ae558132e4ab2e0d8715c25f51e5e90069e147a52e04280c736ecca6b675af7d79def576171a9b08aaeda45fcd52bcdca011cb WHIRLPOOL e86fdbf96c75c4c94c9507900a5696ff811f5439e0cb45bdc765dc42c62a855c9d2e7d3414df7ec7e18013d937c9148e42c861d0e28e8b4c2fabebd234fbee03
DIST systemd-209.tar.xz 2607304 SHA256 4cadef26adcd846e3f2b90502e64f590430baf59aea87491d25aac2e50b23d18 SHA512 0d9a4f1f69b51da0621f15c2e0fde94540be767117b97298a66eab79ecb8bc0288fd7c568253be3a48a4c6d4881a822bf84434dc17028fc6f8a94fa1cc1b27cb WHIRLPOOL bebcb5fa76f91788c30ce6320e9c51325dd3b2f9ce81509e822f3f2a510b252c38aa3de19f429db6fbb2d7f0be9cfb6e7c6908041361fcd3f0350482a78e7d20
+DIST systemd-210.tar.xz 2620924 SHA256 e2b3ddf9bf82f05cc3079650e86ae05b558381fd034cf1b03a592bcadd1610c4 SHA512 4aa5da0585dc5439591b82f0f67b58e806a795011c4d19c84cb2bfa7c27b3c995957e33b4f24b4c6e9f012a55cb092d2445e6f3b27b020d1c789c757230fcbcc WHIRLPOOL 546aa684f3f56fd9cbb2c6b8332bd74314e1a39521b4e33ab9eccef7f87b885a9c96842ca440a0a4f0b4200de7bbc9475687dc2e295420679b1dfb906496f273
DIST udev-208-patches-1.tar.xz 964 SHA256 b2df84afd8631736aceee1317d332fd9bee347df503aa55cd78bcf1b375e8f75 SHA512 6e85daaf8639255bbaa76364cda02f8b034ec5f687730a7e3ea7427b53031b4cdcbe1b8758e1474104d52e04781605ee3c1e31bbec2df33c95e606cee8eb0f28 WHIRLPOOL 054d1e954c4eacd10fcdacf130bf6cf2dd165f3da10ba5629f4bd8e488a221e8e5d7db3ab821593af8dd92011dee98daadf09e5dd726a4c99861f4abaea6aca0
EBUILD udev-208.ebuild 15594 SHA256 d255ba9f5dd97a5c689687361592dca5438750e4a175a9a966b20d09b8195f19 SHA512 855ab8c83cde57239db0e812f64c72dd1b047671c36c5c50f1ee467735b9ecd98edc9d3742355aa111cc063276357911d3e40e474544f4866d33e24ecac327f4 WHIRLPOOL 51c5ea9c10efd85752b6c88dcf60dd938c34ed5d841d0dcab87d03b4a71764b9bcbc246d9e7bbca7791a87be4082290cf3ee8dc7ccf77d6715ef05a15246e092
EBUILD udev-209.ebuild 14860 SHA256 0ab51ceaafd1a8ea951163e1f0ef2b56a2764cbd8edc2ac9d3cede3be44cc692 SHA512 ec14c57b1a199f0859e68d10d26a84039258d6ba22670bbe0b2e9f67ffbdbe27ceae2328d15ae7cb22d4cd0021cf234392a80b04ae61e78037ea66a704ee2f13 WHIRLPOOL 790f45534fa64b3a475235de3571907bd7405c264db17909cb075e9a380fabe8db2394ba582faaef71f4b1f52b672bae912c11706e6e93d2e499ffe8388a0341
+EBUILD udev-210.ebuild 14746 SHA256 b22e3d7e6c0c393fa106e433dc99afbdd24147ba5095635b6b112bfb3404dc57 SHA512 18e983129eaf70d039cf05082f32d9bdd03328a2f7acd5d34c1ce26b6eaaa8ab99fe822518b5a887cb77e2f870ab0aec3a91130f4faa4ad576da4a1245cb7d22 WHIRLPOOL c83eecc993525c0c7d50f864ef116959c9723ce8b01d7f84548f831ae70c0dda497ae7ea08c2d6fb95308e3f35151e37de76578f74f098d000e52662939aa040
EBUILD udev-9999.ebuild 14704 SHA256 63a87d11de6713c59218eb301045801ddaa827586cba06d59cdee1337856d798 SHA512 39ae2a639fc0febfd3685a5301a46b236b3260d992db7f895ddd90a60bec419ff9c3d6041638ea3699a8e2f2cc2ca85bc50a16e844aad7f4d62ac823d6212b17 WHIRLPOOL ab6a57fbc301fe961ae74ee38390b9c34dea41d531bbb3767c9b825d28c5482b2f7523f3c5650545e4f244c330a4a07a21f454b57d8e9318f0c66d9b1dd9e060
-MISC ChangeLog 40187 SHA256 d13ec01a6d2314a059a4ef6a6634576b4b32d1f3a219b9fc7a2d5f52065149f0 SHA512 c74e5f88c9f7a5bd5b5844d1e80cd80888104964062be99236f4d30582c52fa858fa1ea039dddb128e73a160286812df02b64bd885ad873ac56ec882946b1da8 WHIRLPOOL 4b5899bf6c904988bee941e570baf9bc4afc957740e09bb681783f4d9367ad8e1a8c5438255781b4cb1005f8173a4d72ee4aed9f83016e5e64502b761f89f7cc
+MISC ChangeLog 40301 SHA256 4222299900d29caed6cc7c7e1ab3503eeb31dc60c4a48488ab59eabddbcd8965 SHA512 3c826d99259c7685aaf6acb5c6622b79cb3788db1b13357bfe6c648e51ef66fad2b7e53c91aebfd8c4b1b34e1c2a9d8c524d15e079868d509f1cd67b32d8cdb1 WHIRLPOOL 841504c32dfe7832da97ed3c15f63572a1c32787a3428aeb33d7cff89182d595f25789f6237b1177bf0e039990c206b955598a17d9f740353c1cd35d18e95649
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
@@ -16,11 +18,11 @@ MISC metadata.xml 671 SHA256 a08866f15d60a320bc7685fa43c319a48bfb1d68a439a08a773
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJTCwUNAAoJEEdUh39IaPFNKj0H/3yx+44hlDC1Mx3irg8sQM3a
-zm6F7uZWzDr2QD0+BqiWUvbiw5JsCp4t60sFXT1H2UEKI0yv3QDwYle1nfhneFEP
-n0qnLD2lej2OxdVa5jRkPclnB/58dtAc37k4PsZoAsCvlrdDTiFANCdA4o+CtX1H
-JdXKCEZoibp4QIUi36QrAZkJaqam30+LGzLzhzsnOzz9n751kPaTGwV/AQ6QK4Gx
-ef6qIpQUi0PSA+0I6y+UM93tG7vfkzQqbVBnxbzI0ishJlKPdhPjRhCfCxFeE5/v
-K/l7QK2V0frSWC3Qv3HnyVXusPz2Pt7Xhiyt2oz1tSPpaFW2+Gn53sUttisHtyE=
-=9k8p
+iQEcBAEBCAAGBQJTDFG3AAoJEEdUh39IaPFN1kQH/iNjZysb68buSbg8SgojrPRr
+yEQbR9k55d4KE8dhqMNz8MDEa/09F27uJjvLA83BmMNWjaoL3J4mmc/pQ8DYX9/L
+1nCtkvptBRJnt96mPyFYPUcXTTFWv195nBtDeKV9Rc+amPtbj7BzXmzt2b+7d0/P
+YdLbEc/U0wfOw5IlARl4wqw2IJrgBjfzzCloStx8WLr3Cxx6J/EJpmijgWgRPm61
+4kSwEMksoPfwO6+UQYbl1sIpkBdm9PWHHc9FJ8A7IR9xGrnAU8uDwvfyLNGl8m8o
+SdGw67yR8uhbTQtgIoiT9jH/56+IvPq9gzTHjXQi63Rt6jiMtWdpdWxzfxctpnc=
+=jtzg
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/udev-210.ebuild b/sys-fs/udev/udev-210.ebuild
new file mode 100644
index 000000000000..6d2ab9ee5565
--- /dev/null
+++ b/sys-fs/udev/udev-210.ebuild
@@ -0,0 +1,486 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-210.ebuild,v 1.1 2014/02/25 08:20:24 ssuominen Exp $
+
+EAPI=5
+
+inherit autotools bash-completion-r1 eutils linux-info multilib toolchain-funcs versionator multilib-minimal
+
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
+ inherit git-2
+else
+ patchset=
+ 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
+ #TODO: Release news item before keywording
+ #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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 introspection +kmod +openrc selinux static-libs"
+
+RESTRICT="test"
+
+COMMON_DEPEND=">=sys-apps/util-linux-2.20
+ acl? ( sys-apps/acl )
+ gudev? ( >=dev-libs/glib-2.22 )
+ introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
+ kmod? ( >=sys-apps/kmod-16 )
+ selinux? ( >=sys-libs/libselinux-2.1.9 )
+ !<sys-libs/glibc-2.11
+ !sys-apps/systemd
+ abi_x86_32? (
+ !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
+ )"
+DEPEND="${COMMON_DEPEND}
+ dev-util/gperf
+ virtual/os-headers
+ virtual/pkgconfig
+ !<sys-devel/make-3.82-r4
+ !<sys-kernel/linux-headers-2.6.32
+ doc? ( >=dev-util/gtk-doc-1.18 )"
+# Try with `emerge -C docbook-xml-dtd` to see the build failure without DTDs
+if [[ ${PV} = 9999* ]]; then
+ DEPEND="${DEPEND}
+ app-text/docbook-xml-dtd:4.2
+ app-text/docbook-xml-dtd:4.5
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ >=dev-util/intltool-0.50"
+fi
+RDEPEND="${COMMON_DEPEND}
+ !<sys-fs/lvm2-2.02.103
+ !<sec-policy/selinux-base-2.20120725-r10"
+PDEPEND=">=virtual/udev-208
+ >=sys-apps/hwids-20140101[udev]
+ openrc? ( >=sys-fs/udev-init-scripts-26 )"
+
+S=${WORKDIR}/systemd-${PV}
+
+# The multilib-build.eclass doesn't handle situation where the installed headers
+# are different in ABIs. In this case, we install libgudev headers in native
+# ABI but not for non-native ABI.
+multilib_check_headers() { :; }
+
+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=dcbc152236a7d009e6ce6f2369c509ea
+ 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 ~FHANDLE ~NET ~DMIID"
+ linux-info_pkg_setup
+
+ # Based on README from tarball:
+ local MINKV=3.0
+ # These arch's have the mandatory accept4() function support in Linux 2.6.32*, see:
+ # $ grep -r define.*accept4 linux-2.6.32*/*
+ if use amd64 || use ia64 || use mips || use sparc || use x86; then
+ MINKV=2.6.32
+ fi
+
+ if kernel_is -lt ${MINKV//./ }; then
+ eerror "Your running kernel is too old to run this version of ${P}"
+ eerror "You need to upgrade kernel at least to ${MINKV}"
+ 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 22 ]]; then
+ eerror "The line count for secure_getenv() failed, see bug #443030"
+ die
+ fi
+ fi
+
+ # backport some patches
+ if [[ -n "${patchset}" ]]; then
+ EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
+ fi
+
+ 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 incomplete devtmpfs support because
+ # accept4() function is supported for some arch's 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 -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
+
+ 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
+
+ # Restore possibility of running --enable-static wrt #472608
+ sed -i \
+ -e '/--enable-static is not supported by systemd/s:as_fn_error:echo:' \
+ configure || die
+
+ 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
+}
+
+multilib_src_configure() {
+ tc-export CC #463846
+
+ # Keep sorted by ./configure --help and only pass --disable flags
+ # when *required* to avoid external deps or unnecessary compile
+ local econf_args
+ econf_args=(
+ ac_cv_search_cap_init=
+ ac_cv_header_sys_capability_h=yes
+ --libdir=/usr/$(get_libdir)
+ --docdir=/usr/share/doc/${PF}
+ --disable-nls
+ --disable-python-devel
+ --disable-dbus
+ --disable-seccomp
+ --disable-xz
+ --disable-tcpwrap
+ --disable-pam
+ --disable-xattr
+ --disable-gcrypt
+ --disable-audit
+ --disable-libcryptsetup
+ --disable-qrencode
+ --disable-microhttpd
+ --disable-readahead
+ --disable-quotacheck
+ --disable-logind
+ --disable-polkit
+ --disable-myhostname
+ --enable-split-usr
+ --with-html-dir=/usr/share/doc/${PF}/html
+ --without-python
+ --with-bashcompletiondir="$(get_bashcompdir)"
+ --with-rootprefix=
+ )
+ # Use pregenerated copies when possible wrt #480924
+ if ! [[ ${PV} = 9999* ]]; then
+ econf_args+=(
+ --disable-manpages
+ )
+ fi
+ if multilib_build_binaries; then
+ econf_args+=(
+ $(use_enable static-libs static)
+ $(use_enable doc gtk-doc)
+ $(use_enable introspection)
+ $(use_enable acl)
+ $(use_enable kmod)
+ $(use_enable selinux)
+ $(use_enable gudev)
+ --with-rootlibdir=/$(get_libdir)
+ )
+ else
+ econf_args+=(
+ --disable-static
+ --disable-gtk-doc
+ --disable-introspection
+ --disable-acl
+ --disable-kmod
+ --disable-selinux
+ --disable-gudev
+ --disable-manpages
+ --with-rootlibdir=/usr/$(get_libdir)
+ )
+ fi
+ use firmware-loader && econf_args+=( --with-firmware-path="/lib/firmware/updates:/lib/firmware" )
+
+ ECONF_SOURCE=${S} econf "${econf_args[@]}"
+}
+
+multilib_src_compile() {
+ echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
+ emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
+
+ # Most of the parallel build problems were solved by >=sys-devel/make-3.82-r4,
+ # but not everything -- separate building of the binaries as a workaround,
+ # which will force internal libraries required for the helpers to be built
+ # early enough, like eg. libsystemd-shared.la
+ if multilib_build_binaries; then
+ local lib_targets=( libudev.la )
+ use gudev && lib_targets+=( libgudev-1.0.la )
+ emake "${lib_targets[@]}"
+
+ local exec_targets=(
+ systemd-udevd
+ udevadm
+ )
+ emake "${exec_targets[@]}"
+
+ local helper_targets=(
+ ata_id
+ cdrom_id
+ collect
+ scsi_id
+ v4l_id
+ accelerometer
+ mtd_probe
+ )
+ emake "${helper_targets[@]}"
+
+ if [[ ${PV} = 9999* ]]; then
+ local man_targets=(
+ man/udev.7
+ man/udevadm.8
+ man/systemd-udevd.service.8
+ )
+ emake "${man_targets[@]}"
+ fi
+
+ if use doc; then
+ emake -C docs/libudev
+ use gudev && emake -C docs/gudev
+ fi
+ else
+ local lib_targets=( libudev.la )
+ emake "${lib_targets[@]}"
+ fi
+}
+
+multilib_src_install() {
+ if multilib_build_binaries; then
+ local lib_LTLIBRARIES="libudev.la" \
+ pkgconfiglib_DATA="src/libudev/libudev.pc"
+
+ local targets=(
+ install-libLTLIBRARIES
+ install-includeHEADERS
+ install-libgudev_includeHEADERS
+ install-rootbinPROGRAMS
+ install-rootlibexecPROGRAMS
+ install-udevlibexecPROGRAMS
+ install-dist_udevconfDATA
+ install-dist_udevrulesDATA
+ install-girDATA
+ install-pkgconfiglibDATA
+ install-sharepkgconfigDATA
+ install-typelibsDATA
+ install-dist_docDATA
+ libudev-install-hook
+ install-directories-hook
+ install-dist_bashcompletionDATA
+ install-dist_networkDATA
+ )
+
+ 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
+ rootbin_PROGRAMS=udevadm
+ lib_LTLIBRARIES="${lib_LTLIBRARIES}"
+ pkgconfiglib_DATA="${pkgconfiglib_DATA}"
+ INSTALL_DIRS='$(sysconfdir)/udev/rules.d \
+ $(sysconfdir)/udev/hwdb.d \
+ $(sysconfdir)/systemd/network'
+ dist_bashcompletion_DATA="shell-completion/bash/udevadm"
+ dist_network_DATA="network/99-default.link"
+ )
+ 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
+
+ # install udevadm compatibility symlink
+ dosym {../bin,sbin}/udevadm
+
+ if [[ ${PV} = 9999* ]]; then
+ doman man/{udev.7,udevadm.8,systemd-udevd.service.8}
+ else
+ doman "${S}"/man/{udev.7,udevadm.8,systemd-udevd.service.8}
+ fi
+ else
+ local lib_LTLIBRARIES="libudev.la" \
+ pkgconfiglib_DATA="src/libudev/libudev.pc" \
+ include_HEADERS="src/libudev/libudev.h"
+
+ local targets=(
+ install-libLTLIBRARIES
+ install-includeHEADERS
+ install-pkgconfiglibDATA
+ )
+
+ targets+=(
+ lib_LTLIBRARIES="${lib_LTLIBRARIES}"
+ pkgconfiglib_DATA="${pkgconfiglib_DATA}"
+ include_HEADERS="${include_HEADERS}"
+ )
+ emake -j1 DESTDIR="${D}" "${targets[@]}"
+ fi
+}
+
+multilib_src_install_all() {
+ dodoc TODO
+
+ prune_libtool_files --all
+ rm -f \
+ "${D}"/lib/udev/rules.d/99-systemd.rules \
+ "${D}"/usr/share/doc/${PF}/{LICENSE.*,sd-shutdown.h}
+
+ # see src_prepare() for content of 40-gentoo.rules
+ insinto /lib/udev/rules.d
+ doins "${T}"/40-gentoo.rules
+
+ # maintainer note: by not letting the upstream build-sys create the .so
+ # link, you also avoid a parallel make problem
+ mv "${D}"/usr/share/man/man8/systemd-udevd{.service,}.8
+}
+
+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
+}
+
+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
+
+ 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_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
+
+ elog
+ elog "Starting from version >= 197 the new predictable network interface names are"
+ elog "used by default, see:"
+ elog "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
+ elog "http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c"
+ elog
+ elog "Example command to get the information for the new interface name before booting"
+ elog "(replace <ifname> with, for example, eth0):"
+ elog "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null"
+ elog
+ elog "You can use either kernel parameter \"net.ifnames=0\", create empty"
+ elog "file /etc/systemd/network/99-default.link, or symlink it to /dev/null"
+ elog "to disable the feature."
+
+ if has_version sys-apps/biosdevname; then
+ ewarn
+ ewarn "You can replace the functionality of sys-apps/biosdevname which has been"
+ ewarn "detected to be installed with the new predictable network interface names."
+ fi
+
+ 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."
+ if has_version 'sys-apps/openrc'; then
+ ewarn "For sys-apps/openrc users it is:"
+ ewarn "# /etc/init.d/udev --nodeps restart"
+ fi
+
+ 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"
+ elog "http://wiki.gentoo.org/wiki/Udev/upgrade"
+
+ # Update hwdb database in case the format is changed by udev version.
+ if has_version 'sys-apps/hwids[udev]'; then
+ udevadm hwdb --update --root="${ROOT%/}"
+ # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
+ if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
+ return 0
+ fi
+ udevadm control --reload
+ fi
+ fi
+}