summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-29 18:14:26 +0000
committerMike Frysinger <vapier@gentoo.org>2011-05-29 18:14:26 +0000
commit22b79f510107287f17d908fb4ef57fc692cc629b (patch)
tree5d0cfbf3acd2d669e3fb79c2728b615ad98a9b78 /sys-apps/makedev
parentMarked ~x64-macos, bug #368561 (diff)
downloadgentoo-2-22b79f510107287f17d908fb4ef57fc692cc629b.tar.gz
gentoo-2-22b79f510107287f17d908fb4ef57fc692cc629b.tar.bz2
gentoo-2-22b79f510107287f17d908fb4ef57fc692cc629b.zip
Trim useless/legacy nodes to leave a smaller useful set #368597 by Claude Juif.
(Portage version: 2.2.0_alpha33/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/makedev')
-rw-r--r--sys-apps/makedev/ChangeLog6
-rw-r--r--sys-apps/makedev/makedev-3.23.1.ebuild13
2 files changed, 15 insertions, 4 deletions
diff --git a/sys-apps/makedev/ChangeLog b/sys-apps/makedev/ChangeLog
index 1a9bca31ce0e..00f613da2360 100644
--- a/sys-apps/makedev/ChangeLog
+++ b/sys-apps/makedev/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/makedev
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/makedev/ChangeLog,v 1.4 2011/05/28 20:42:26 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/makedev/ChangeLog,v 1.5 2011/05/29 18:14:26 vapier Exp $
+
+ 29 May 2011; Mike Frysinger <vapier@gentoo.org> makedev-3.23.1.ebuild:
+ Trim useless/legacy nodes to leave a smaller useful set #368597 by Claude
+ Juif.
28 May 2011; Kacper Kowalik <xarthisius@gentoo.org> makedev-3.23.1.ebuild:
ppc/ppc64 stable wrt #369085
diff --git a/sys-apps/makedev/makedev-3.23.1.ebuild b/sys-apps/makedev/makedev-3.23.1.ebuild
index ef25035aa9da..6e56e5b4d5ce 100644
--- a/sys-apps/makedev/makedev-3.23.1.ebuild
+++ b/sys-apps/makedev/makedev-3.23.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/makedev/makedev-3.23.1.ebuild,v 1.6 2011/05/28 20:42:26 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/makedev/makedev-3.23.1.ebuild,v 1.7 2011/05/29 18:14:26 vapier Exp $
EAPI="2"
@@ -30,7 +30,7 @@ src_prepare() {
src_compile() {
use selinux && export SELINUX=1
- emake CC=$(tc-getCC) OPTFLAGS="${CFLAGS}" || die
+ emake CC="$(tc-getCC)" OPTFLAGS="${CFLAGS}" || die
}
src_install() {
@@ -41,5 +41,12 @@ src_install() {
}
pkg_postinst() {
- use build && MAKEDEV -d "${ROOT}"/dev generic
+ if use build ; then
+ # set up a base set of nodes to make recovery easier #368597
+ MAKEDEV -d "${ROOT}"/dev hda input std sd tty
+ # trim useless nodes
+ rm -f "${ROOT}"/dev/fd[0-9]* # floppy
+ rm -f "${ROOT}"/dev/sd[a-d][a-z]* "${ROOT}"/dev/sd[e-z]* # excess sata
+ rm -f "${ROOT}"/dev/tty[a-z]* # excess tty
+ fi
}