summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2010-03-14 21:49:33 +0000
committerNed Ludd <solar@gentoo.org>2010-03-14 21:49:33 +0000
commit11e10a4870fa318cb04b43ee9b175437e4190e16 (patch)
treee3f288f83e546939d79f317aec037644839b4bdd /sys-apps/busybox
parentadd svg mimetypes (bug #298437) (diff)
downloadgentoo-2-11e10a4870fa318cb04b43ee9b175437e4190e16.tar.gz
gentoo-2-11e10a4870fa318cb04b43ee9b175437e4190e16.tar.bz2
gentoo-2-11e10a4870fa318cb04b43ee9b175437e4190e16.zip
also install mdev.conf when USE=mdev is enabled (+default)
(Portage version: 2.1.8.2/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/busybox')
-rw-r--r--sys-apps/busybox/ChangeLog5
-rw-r--r--sys-apps/busybox/busybox-1.16.0.ebuild10
-rw-r--r--sys-apps/busybox/metadata.xml5
3 files changed, 14 insertions, 6 deletions
diff --git a/sys-apps/busybox/ChangeLog b/sys-apps/busybox/ChangeLog
index ebf0a7c480c8..62c8a41a16e1 100644
--- a/sys-apps/busybox/ChangeLog
+++ b/sys-apps/busybox/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-apps/busybox
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.242 2010/03/14 19:55:15 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.243 2010/03/14 21:49:33 solar Exp $
+
+ 14 Mar 2010; <solar@gentoo.org> metadata.xml, busybox-1.16.0.ebuild:
+ - also install mdev.conf when USE=mdev is enabled (default)
*busybox-1.16.0 (14 Mar 2010)
diff --git a/sys-apps/busybox/busybox-1.16.0.ebuild b/sys-apps/busybox/busybox-1.16.0.ebuild
index 95c553eea80b..7b2a03185011 100644
--- a/sys-apps/busybox/busybox-1.16.0.ebuild
+++ b/sys-apps/busybox/busybox-1.16.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.16.0.ebuild,v 1.1 2010/03/14 19:55:15 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.16.0.ebuild,v 1.2 2010/03/14 21:49:33 solar Exp $
EAPI=2
inherit eutils flag-o-matic savedconfig toolchain-funcs
@@ -58,7 +58,7 @@ fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="debug make-symlinks ipv6 -pam selinux static"
+IUSE="debug ipv6 make-symlinks +mdev -pam selinux static"
RESTRICT="test"
DEPEND="selinux? ( sys-libs/libselinux )
@@ -199,8 +199,10 @@ src_install() {
else
dobin bb || die
fi
- dosym /bin/bb /sbin/mdev
-
+ if use mdev; then
+ use make-symlinks || dosym /bin/bb /sbin/mdev
+ cp "${S}"/examples/mdev_fat.conf "${D}"/etc/mdev.conf
+ fi
insinto /$(get_libdir)/rcscripts/addons
doins "${FILESDIR}"/mdev-start.sh || die
diff --git a/sys-apps/busybox/metadata.xml b/sys-apps/busybox/metadata.xml
index ba1722f5da73..53c8e5b1cd10 100644
--- a/sys-apps/busybox/metadata.xml
+++ b/sys-apps/busybox/metadata.xml
@@ -2,5 +2,8 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>embedded</herd>
-<use><flag name="make-symlinks">Create all the appropriate symlinks in /bin and /sbin.</flag></use>
+<use>
+<flag name="make-symlinks">Create all the appropriate symlinks in /bin and /sbin.</flag>
+<flag name="mdev">Create the appropriate symlink in /sbin and install mdev.conf</flag>
+</use>
</pkgmetadata>