summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-03-08 23:21:41 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-03-08 23:21:41 +0000
commit92ad640de0582193ae3b63068d9d82c1c51f9a38 (patch)
tree2f39cb83992f2863b2d9b0ca5f4a480437a465c5 /sys-fs
parentVersion bump. Ebuild is now identical with 9999 (diff)
downloadhistorical-92ad640de0582193ae3b63068d9d82c1c51f9a38.tar.gz
historical-92ad640de0582193ae3b63068d9d82c1c51f9a38.tar.bz2
historical-92ad640de0582193ae3b63068d9d82c1c51f9a38.zip
old
Package-Manager: portage-2.2.0_alpha163/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev/ChangeLog5
-rw-r--r--sys-fs/udev/Manifest17
-rw-r--r--sys-fs/udev/udev-197-r9.ebuild531
3 files changed, 12 insertions, 541 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index b1e07ab8e15d..f05acea7eb01 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.848 2013/03/08 23:19:55 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.849 2013/03/08 23:21:36 ssuominen Exp $
+
+ 08 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> -udev-197-r9.ebuild:
+ old
*udev-198 (08 Mar 2013)
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index 9af63e14ea95..52312518f113 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -12,20 +12,19 @@ DIST udev-gentoo-legacy-patchset-2.tar.bz2 14282 SHA256 bb2aefa50c3cc6df8cc88903
DIST udev-gentoo-scripts-7.1.tar.bz2 16257 SHA256 1923768a98b7f00ffdc9bdf5a2c9982c494b978903ec891184d6fa0d10090fb4 SHA512 663fdd750b3f1e52a4c7639d0692290cdda9d202d4408e8aba9bfd38aaccfaa0acb79e303e98872b721cf109c62ac46921785cb5a373cc6ad8b428d0f5192836 WHIRLPOOL 49b600b034f8a6ad5e0ae6ca769971f1bb517fa0b9e31a0a7d0430ae67cf21bf4ab1db981d3eaaf78819d1e75a24a1f101eeb737448763b2990e38da912636be
EBUILD udev-171-r10.ebuild 16093 SHA256 37ef3115e14d68f23cfb7cf620423b72b460dba04b36f20f6646607381e2fb40 SHA512 3b392d78a30e1a7cb6c085aae7b876c107a920b777194e475b6e10f9f09231dd3cd69b76b501d2354b7a032582ccefee861d4fbbe2bce5aa7a65fd3310b87d84 WHIRLPOOL f2a7b62bdf984121bd9cc8127ec3e912792a3affe1c097bc7c765a4822720a574412c4d18895e4c705b9bf6fbd8dcc3c554516bf2a8cae28018e39dad8601959
EBUILD udev-197-r8.ebuild 15057 SHA256 854d75fdb78b73399cb6f096c26cfbc640d8ca077fc62b1c63f5e9f6de62f36c SHA512 9e4da40b18bc6da38ccedc6675558672c1d7d73144fde6204fbaeea5f5080fd985429da0f54429613c98e8e9802505f9ce456874c143e5017e191a3df6875964 WHIRLPOOL 4485b8c1096f016f3bbcc96aa7ad119b3ca44604827afd9f1aa6c23172a66705f67522662539b9626b138a79833082d5979fa795777de25e128b7fd125e5e1e4
-EBUILD udev-197-r9.ebuild 15212 SHA256 1b9dc8d16bbdb52b2ca1325c0d3397ed639078c51e29d6c4cd58c02ab6caa688 SHA512 dd2c962b4ddc1a93f4e08bdd44d0d7f28bb7f70fac4b285960651bdd21cf4dc4557672d3c2ae117fe7cdc517bcdf3be160b85d0afa822a2ff5df2663e5b516eb WHIRLPOOL af82ee89a2d3822406858a0b499fadb5ec20bad1a40b6c2babeeae6bfa1b7a1b536131833884fe067590e19250953c74033db923d8cdf25d186ceae765f8b1b2
EBUILD udev-198.ebuild 13430 SHA256 b99f41bafc58f5d0a3dc0bac001b29277f303c7f61d7fb456d46dbace52c5809 SHA512 5d36a978d5ca5bd574137c6a5861ebbd5b197b3719ed249cb73b0900e3c41ddc469c4ade096941cc60c0335f290e43e31d83c920fe468709be41463778b3a133 WHIRLPOOL e955f6a99d1f2da26eed3b4931f54d9e531425ab139d564ac2d66d840b4b7f35dfe0ebf39d8e9c3a5357d1e51c25867313532fc296477fef1c5efc0fb87c6eea
EBUILD udev-9999.ebuild 13433 SHA256 b18174ab15c785a1f992eb60151238459292cb80ae8dab0d86a5ef44ecdfaa36 SHA512 470096a80d53123d237ab2abd2d538cc3f9c4bad2cc4d637faccee0091dfe907a91477c89c2bbd8719e1a684f9b01b4c8f561a151d19739d7c200d05252d30e1 WHIRLPOOL bbba5ec06af4c89a238b7c97778b959d94393c9a39aab79362cf4052b50a70df0d6fa12125c5a6237fc8d6e03c0c30ae16d82dcf5a94de63814f7061cfc77654
-MISC ChangeLog 60608 SHA256 18f273470cecd87ad876459332789d1cacd23e403ece0c9a0c0e1ab267053ab3 SHA512 d37546359ebafa06fec5f13ce7e467cf33684147b45f10dbf7412bc93a93c601da8c0b53ac435dea7dc041196065d8326f19dd75309d136db074548e1a5ef707 WHIRLPOOL 94ce646aea36cadec09b48052e3997bc7a292606bf2c5138481817656e2a8f17c7e2cca48993433151134f4a45868db03f641b39e575e6a4a9330fdde12fcc41
+MISC ChangeLog 60690 SHA256 27623c0f6fffe4ef042a7d776b0e4407ee93d7462eb68eaa9fa749ef35711d71 SHA512 1ee7e87421d4b95259f912142b46e117dce22869e74c3c42fccb385985b884891554ae795c51d475285ac82d1110392dfee7ced0fc131333dea81c141602e2f7 WHIRLPOOL bc2e8361ab586ead5a50f9eb2cf25c36b3c80faa30f35c2211c4a01268b64c37b66ac5fd7463f3327d159668473402b93e02030cc1daa262715634629f868d28
MISC ChangeLog-2009 105929 SHA256 7a8d7123b7395dc5bbde09a8c0cee1c5110d24faf87a68a8210b0c6bdf862c1c SHA512 3b577c97224e7f85ae5fb0a0ead538f8aa83c738e6014fadaf5247f34d3863df4bc10f9d15a5e117813d081a8af1913ea41a5e60d00ed521ea0c1e5b71a91a2b WHIRLPOOL c9f527ba19e787f9973a26ed535dbf7af760c3a519f4b062cf2a8069e134a803ebe669450deace804be70619995b389529febf03e8aeb7183c3ea984c0dfdaa5
MISC metadata.xml 1098 SHA256 69d8c28e0c2439c252068ae2e0141a9bad7b05e65b9dec27aa2dd3feb4f2393c SHA512 87354f467c3f2ed005a10652a2f80ffda010fbc0c6fb88436b906c92f4cf1543ed1a6cf4a49c93f15c6fea3ba0dcd108e1e120954f7b0860e7ac90072d2b3d67 WHIRLPOOL 9c01df67041d2093e5a2ee4a9ad65df613cdcb163bc366c8592e8e2be84b176da13198261a012687188918c906291d765856665806efe03b8dfb22a5b4eb6834
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJROnGnAAoJEEdUh39IaPFNipgH/2dt9EH3A4MQAtgXE1lUVQhv
-zVOYe8cjQTdZZk4dQ3bVJ3L/jWDcmg3pzVguDhVfhiqBVwbcZkcRcDWXNHjZfn7m
-4WcNTf1TtAmpfU130PE/Yq6YU3POWM65MPwpZnnTNCXiAf8FRumz3gGuu/iunBig
-3Q1oboE148TycSMAW2Of88fStCwkybscNcUypAkxukDcAPPEjLs31ZYVwokWwr7n
-4GMjq3U5Iu4SaV9gYz7aBDBeWuABKHm+e1Ykqj/nZIMcMJPwX+SOdsyOcaA02hsz
-PC8a1W0TOMCW5Fp/19Sv2OlvzDKWes3lpUyAqj2plRJ9DFYNvG3jxGFnMZDrKDk=
-=KM+7
+iQEcBAEBCAAGBQJROnIMAAoJEEdUh39IaPFNBkcH/0hmOLBx43oEITH3C4RqQslj
+37liCFqZaICbMKuiJ0R6M+/Xql1IbxgL1o8abGDkwJT4bhIkfF/h1Akfpuq9JBlE
+G4+bKNK5duw6iei0SHerL0VGtCZsfvgIDW8UCvupH6MrNzc8EWS6/1NoT9js3rQa
+1g8tPvlCwue/46T+6O+E0/yTHW+P26A0cvI13GZjgq6bnTscZN0TxfEUF0uhUrcM
+Cooh7Jd30s5M16EWGpritVFzpa89CKS0GKx4xxVNBGrusqyZWjIVzfyc9INQIL/Y
+7PwY43P9pjeFztJvVg3CQlg8SqCog45ayRsrKb7iafNPHXNGE7cH/iEnxLWKJ4Q=
+=Zgl+
-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/udev-197-r9.ebuild b/sys-fs/udev/udev-197-r9.ebuild
deleted file mode 100644
index f3afff3a0233..000000000000
--- a/sys-fs/udev/udev-197-r9.ebuild
+++ /dev/null
@@ -1,531 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-197-r9.ebuild,v 1.5 2013/03/02 01:20:33 ssuominen Exp $
-
-EAPI=4
-
-KV_min=2.6.32
-
-inherit autotools eutils linux-info multilib systemd toolchain-funcs versionator
-
-if [[ ${PV} = 9999* ]]
-then
- EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
- inherit git-2
-else
- patchset=5
- 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
- http://dev.gentoo.org/~ssuominen/${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 +kmod +openrc selinux static-libs"
-
-RESTRICT="test"
-
-COMMON_DEPEND=">=sys-apps/util-linux-2.20
- acl? ( sys-apps/acl )
- gudev? ( >=dev-libs/glib-2 )
- introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
- kmod? ( >=sys-apps/kmod-12 )
- selinux? ( >=sys-libs/libselinux-2.1.9 )
- !<sys-libs/glibc-2.11
- !<sys-apps/systemd-${PV}"
-
-DEPEND="${COMMON_DEPEND}
- virtual/os-headers
- virtual/pkgconfig
- !<sys-kernel/linux-headers-${KV_min}
- doc? ( >=dev-util/gtk-doc-1.18 )
- keymap? ( dev-util/gperf )"
-
-if [[ ${PV} = 9999* ]]
-then
- DEPEND="${DEPEND}
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt
- dev-util/gperf
- >=dev-util/intltool-0.50"
-fi
-
-RDEPEND="${COMMON_DEPEND}
- openrc? ( !<sys-apps/openrc-0.9.9 )
- !sys-apps/coldplug
- !<sys-fs/lvm2-2.02.97-r1
- !sys-fs/device-mapper
- !<sys-fs/udev-init-scripts-22
- !<sys-kernel/dracut-017-r1
- !<sys-kernel/genkernel-3.4.25
- !<sec-policy/selinux-base-2.20120725-r10"
-
-PDEPEND=">=virtual/udev-197-r1
- hwdb? ( >=sys-apps/hwids-20130114[udev] )
- openrc? ( >=sys-fs/udev-init-scripts-19-r1 )"
-
-S=${WORKDIR}/systemd-${PV}
-
-QA_MULTILIB_PATHS="lib/systemd/systemd-udevd"
-
-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=66bb698deeae64ab444b710baf54a412
- 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"
-
- 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
-
- # These are missing from upstream 50-udev-default.rules
- cat <<-EOF > "${T}"/40-gentoo.rules
- # Propably unrequired, check how it is with OSS/OSS4, then remove
- SUBSYSTEM=="snd", GROUP="audio"
- # Gentoo specific usb group
- SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb"
- # Keep this for Linux 2.6.32 support 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
- 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
-
- if [[ ${PV} = 9999* ]]; then
- # secure_getenv() disable for non-glibc systems wrt bug #443030
- if ! [[ $(grep -r secure_getenv * | wc -l) -eq 16 ]]; then
- eerror "The line count for secure_getenv() failed, see bug #443030"
- die
- fi
-
- # gperf disable if keymaps are not requested wrt bug #452760
- if ! [[ $(grep -i gperf Makefile.am | wc -l) -eq 24 ]]; then
- eerror "The line count for gperf references failed, see bug 452760"
- die
- fi
- fi
-
- 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
-}
-
-src_configure()
-{
- use keymap || export ac_cv_path_GPERF=true #452760
-
- local econf_args
-
- econf_args=(
- ac_cv_search_cap_init=
- ac_cv_header_sys_capability_h=yes
- DBUS_CFLAGS=' '
- DBUS_LIBS=' '
- --bindir=/bin
- --docdir=/usr/share/doc/${PF}
- --libdir=/usr/$(get_libdir)
- --with-html-dir=/usr/share/doc/${PF}/html
- --with-rootprefix=
- --with-rootlibdir=/$(get_libdir)
- --disable-audit
- --disable-coredump
- --disable-hostnamed
- --disable-ima
- --disable-libcryptsetup
- --disable-localed
- --disable-logind
- --disable-myhostname
- --disable-nls
- --disable-pam
- --disable-quotacheck
- --disable-readahead
- --enable-split-usr
- --disable-tcpwrap
- --disable-timedated
- --disable-xz
- --disable-silent-rules
- $(use_enable acl)
- $(use_enable doc gtk-doc)
- $(use_enable gudev)
- $(use_enable keymap)
- $(use_enable kmod)
- $(use_enable selinux)
- $(use_enable static-libs static)
- )
- if use introspection; then
- econf_args+=(
- --enable-introspection=$(usex introspection)
- )
- fi
- 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
- libsystemd-daemon.la
- ata_id
- cdrom_id
- collect
- scsi_id
- v4l_id
- accelerometer
- mtd_probe
- man/sd_is_fifo.3
- man/sd_notify.3
- man/sd_listen_fds.3
- man/sd-daemon.3
- 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="libsystemd-daemon.la libudev.la" \
- pkgconfiglib_DATA="src/libsystemd-daemon/libsystemd-daemon.pc 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-man3
- install-man7
- install-man8
- install-nodist_systemunitDATA
- install-pkgconfiglibDATA
- install-sharepkgconfigDATA
- install-typelibsDATA
- install-dist_docDATA
- udev-confdirs
- systemd-install-hook
- libudev-install-hook
- libsystemd-daemon-install-hook
- install-pkgincludeHEADERS
- )
-
- 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/sd-daemon.3 man/sd_notify.3 man/sd_listen_fds.3 \
- man/sd_is_fifo.3 man/sd_booted.3 man/udev.7 man/udevadm.8 \
- man/systemd-udevd.service.8"
- MANPAGES_ALIAS="man/sd_is_socket.3 man/sd_is_socket_unix.3 \
- man/sd_is_socket_inet.3 man/sd_is_mq.3 man/sd_notifyf.3 \
- man/SD_LISTEN_FDS_START.3 man/SD_EMERG.3 man/SD_ALERT.3 \
- man/SD_CRIT.3 man/SD_ERR.3 man/SD_WARNING.3 man/SD_NOTICE.3 \
- man/SD_INFO.3 man/SD_DEBUG.3 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}"
- systemunitdir="$(systemd_get_unitdir)"
- pkginclude_HEADERS="src/systemd/sd-daemon.h"
- )
- 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
- dodoc TODO
-
- prune_libtool_files --all
- rm -f "${D}"/lib/udev/rules.d/99-systemd.rules
- rm -rf "${D}"/usr/share/doc/${PF}/LICENSE.*
-
- # install gentoo-specific rules
- insinto /lib/udev/rules.d
- doins "${T}"/40-gentoo.rules
-
- # install udevadm symlink
- dosym ../bin/udevadm /sbin/udevadm
-
- # move udevd where it should be and remove unlogical /lib/systemd
- mv "${ED}"/lib/systemd/systemd-udevd "${ED}"/sbin/udevd || die
- rm -r "${ED}"/lib/systemd
-
- # install compability symlink for systemd and initramfs tools
- dosym /sbin/udevd "$(systemd_get_utildir)"/systemd-udevd
- find "${ED}/$(systemd_get_unitdir)" -name '*.service' -exec \
- sed -i -e "/ExecStart/s:/lib/systemd:$(systemd_get_utildir):" {} +
-
- docinto gentoo
- dodoc "${FILESDIR}"/80-net-name-slot.rules
- docompress -x /usr/share/doc/${PF}/gentoo/80-net-name-slot.rules
-}
-
-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$(get_libname 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
-
- net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
- copy_net_rules() {
- [[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
- }
-
- if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 197 ]]; then
- ewarn "Because this is a upgrade we disable the new predictable network interface"
- ewarn "name scheme by default."
- copy_net_rules
- fi
-
- if has_version sys-apps/biosdevname; then
- ewarn "Because sys-apps/biosdevname is installed we disable the new predictable"
- ewarn "network interface name scheme by default."
- copy_net_rules
- fi
-
- # "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
-
- if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 189 ]]; then
- ewarn
- ewarn "Upstream has removed the 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."
- fi
-
- 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
- ewarn "If this is not set up before your next reboot, udev may work;"
- ewarn "However, you also may experience failures which are very"
- ewarn "difficult to troubleshoot."
- ewarn
- 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 [ -n "${net_rules}" ]; then
- ewarn
- ewarn "udev-197 and newer introduces a new method of naming network"
- ewarn "interfaces. The new names are a very significant change, so"
- ewarn "they are disabled by default on live systems."
- ewarn "Please see the contents of ${net_rules} for more"
- ewarn "information on this feature."
- 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
-
- old_net_rules=${ROOT}etc/udev/rules.d/70-persistent-net.rules
- if [[ -f ${old_net_rules} ]]; then
- ewarn "You still have ${old_net_rules} in place from previous udev release."
- ewarn "Upstream has removed the possibility of renaming to existing"
- ewarn "network interfaces. For example, it's not possible to assign based"
- ewarn "on MAC address to existing interface eth0."
- ewarn "See http://bugs.gentoo.org/453494 for more information."
- ewarn "Rename your file to something else starting with 70- to silence"
- ewarn "this warning."
- 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."
- ewarn
-
- preserve_old_lib_notify /{,usr/}$(get_libdir)/libudev$(get_libname 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"
-
- use hwdb && udevadm hwdb --update --root="${ROOT%/}"
-}