summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-01-23 20:23:12 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-01-23 20:23:12 +0000
commit51ed1aa09672b492c1d1dd631bf2b0e27a654b83 (patch)
tree68b483cbae7e5f2042a66ded615085936f88baaa
parentFix date on mythplugins, and mask mythweb for testing. (diff)
downloadgentoo-2-51ed1aa09672b492c1d1dd631bf2b0e27a654b83.tar.gz
gentoo-2-51ed1aa09672b492c1d1dd631bf2b0e27a654b83.tar.bz2
gentoo-2-51ed1aa09672b492c1d1dd631bf2b0e27a654b83.zip
Don't use $FILESDIR in pkg_preinst() for binpkg support wrt #453726 by Fabio Erculiani
(Portage version: 2.2.0_alpha155/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
-rw-r--r--sys-fs/udev/ChangeLog7
-rw-r--r--sys-fs/udev/udev-197-r3.ebuild19
-rw-r--r--sys-fs/udev/udev-197-r4.ebuild8
-rw-r--r--sys-fs/udev/udev-9999.ebuild8
4 files changed, 24 insertions, 18 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 2373ed130b6f..e81375b3dc12 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,11 @@
# 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.797 2013/01/23 11:10:21 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.798 2013/01/23 20:23:12 ssuominen Exp $
+
+ 23 Jan 2013; Samuli Suominen <ssuominen@gentoo.org> udev-197-r3.ebuild,
+ udev-197-r4.ebuild, udev-9999.ebuild:
+ Don't use $FILESDIR in pkg_preinst() for binpkg support wrt #453726 by Fabio
+ Erculiani
23 Jan 2013; Samuli Suominen <ssuominen@gentoo.org> udev-197-r3.ebuild,
udev-197-r4.ebuild, udev-9999.ebuild:
diff --git a/sys-fs/udev/udev-197-r3.ebuild b/sys-fs/udev/udev-197-r3.ebuild
index 30cc120b7389..8f0bc10c413c 100644
--- a/sys-fs/udev/udev-197-r3.ebuild
+++ b/sys-fs/udev/udev-197-r3.ebuild
@@ -1,6 +1,6 @@
# 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-r3.ebuild,v 1.26 2013/01/23 11:14:36 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-197-r3.ebuild,v 1.27 2013/01/23 20:23:12 ssuominen Exp $
EAPI=4
@@ -140,17 +140,6 @@ src_prepare()
eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true
fi
- # This check is for maintainers only
- if [[ ${PV} = 9999* ]]; then
- # Support uClibc wrt bug #443030 with a safe kludge so we know when
- # to check for other uses than logs. See the echo for secure_getenv
- # at the end of src_prepare().
- if ! [[ $(grep -r secure_getenv * | wc -l) -eq 16 ]]; then
- eerror "The line count of secure_getenv failed, see bug #443030"
- die
- fi
- fi
-
# apply user patches
epatch_user
@@ -357,6 +346,10 @@ src_install()
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()
@@ -376,7 +369,7 @@ pkg_preinst()
preserve_old_lib /$(get_libdir)/libudev.so.0
net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
- [[ -f ${net_rules} ]] || cp "${FILESDIR}"/80-net-name-slot.rules "${net_rules}"
+ [[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
}
# This function determines if a directory is a mount point.
diff --git a/sys-fs/udev/udev-197-r4.ebuild b/sys-fs/udev/udev-197-r4.ebuild
index 298372fc5a25..239d3dcd8e49 100644
--- a/sys-fs/udev/udev-197-r4.ebuild
+++ b/sys-fs/udev/udev-197-r4.ebuild
@@ -1,6 +1,6 @@
# 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-r4.ebuild,v 1.15 2013/01/23 11:14:36 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-197-r4.ebuild,v 1.16 2013/01/23 20:23:12 ssuominen Exp $
EAPI=4
@@ -362,6 +362,10 @@ src_install()
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()
@@ -382,7 +386,7 @@ pkg_preinst()
if has_version '<sys-fs/udev-197'; then
net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
- [[ -f ${net_rules} ]] || cp "${FILESDIR}"/80-net-name-slot.rules "${net_rules}"
+ [[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
fi
}
diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild
index 664082c3475c..9c5850cafd80 100644
--- a/sys-fs/udev/udev-9999.ebuild
+++ b/sys-fs/udev/udev-9999.ebuild
@@ -1,6 +1,6 @@
# 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-9999.ebuild,v 1.157 2013/01/23 11:14:36 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.158 2013/01/23 20:23:12 ssuominen Exp $
EAPI=4
@@ -362,6 +362,10 @@ src_install()
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()
@@ -382,7 +386,7 @@ pkg_preinst()
if has_version '<sys-fs/udev-197'; then
net_rules="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules
- [[ -f ${net_rules} ]] || cp "${FILESDIR}"/80-net-name-slot.rules "${net_rules}"
+ [[ -f ${net_rules} ]] || cp "${ROOT}"usr/share/doc/${PF}/gentoo/80-net-name-slot.rules "${net_rules}"
fi
}