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/makedev-3.23.1.ebuild
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/makedev-3.23.1.ebuild')
-rw-r--r--sys-apps/makedev/makedev-3.23.1.ebuild13
1 files changed, 10 insertions, 3 deletions
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
}