summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev-init-scripts/ChangeLog10
-rw-r--r--sys-fs/udev-init-scripts/udev-init-scripts-17-r1.ebuild76
2 files changed, 85 insertions, 1 deletions
diff --git a/sys-fs/udev-init-scripts/ChangeLog b/sys-fs/udev-init-scripts/ChangeLog
index 1083bd64ffad..a400fabcf85e 100644
--- a/sys-fs/udev-init-scripts/ChangeLog
+++ b/sys-fs/udev-init-scripts/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-fs/udev-init-scripts
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog,v 1.20 2012/10/19 17:25:00 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog,v 1.21 2012/10/20 05:17:46 williamh Exp $
+
+*udev-init-scripts-17-r1 (20 Oct 2012)
+
+ 20 Oct 2012; William Hubbs <williamh@gentoo.org>
+ +udev-init-scripts-17-r1.ebuild:
+ Another part of the fix for #438932.
+ Now we require both udev-mount and udev to be added to the sysinit
+ runlevel.
*udev-init-scripts-17 (19 Oct 2012)
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-17-r1.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-17-r1.ebuild
new file mode 100644
index 000000000000..a89f5f6f7fd1
--- /dev/null
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-17-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-17-r1.ebuild,v 1.1 2012/10/20 05:17:46 williamh Exp $
+
+EAPI=4
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git"
+ inherit git-2
+fi
+
+DESCRIPTION="udev startup scripts for openrc"
+HOMEPAGE="http://www.gentoo.org"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+if [ "${PV}" != "9999" ]; then
+ SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND=">=sys-fs/udev-187
+ sys-apps/openrc
+ !<sys-fs/udev-186"
+
+pkg_postinst()
+{
+ # If we are building stages, add udev and udev-mount to the sysinit runlevel
+ # automatically.
+ if use build
+ then
+ if [[ -x "${ROOT}"/etc/init.d/udev \
+ && -d "${ROOT}"/etc/runlevels/sysinit ]]
+ then
+ ln -s /etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit/udev
+ fi
+ if [[ -x "${ROOT}"/etc/init.d/udev-mount \
+ && -d "${ROOT}"/etc/runlevels/sysinit ]]
+ then
+ ln -s /etc/init.d/udev-mount \
+ "${ROOT}"/etc/runlevels/sysinit/udev-mount
+ fi
+ fi
+
+ # Warn the user about adding the scripts to their sysinit runlevel
+ if [[ -e "${ROOT}"/etc/runlevels/sysinit ]]
+ then
+ if [[ ! -e "${ROOT}"/etc/runlevels/sysinit/udev ]]
+ then
+ ewarn
+ ewarn "You need to add udev to the sysinit runlevel."
+ ewarn "If you do not do this,"
+ ewarn "your system will not be able to boot!"
+ ewarn "Run this command:"
+ ewarn "\trc-update add udev sysinit"
+ fi
+ if [[ ! -e "${ROOT}"/etc/runlevels/sysinit/udev-mount ]]
+ then
+ ewarn
+ ewarn "You need to add udev-mount to the sysinit runlevel."
+ ewarn "If you do not do this,"
+ ewarn "your system will not be able to boot!"
+ ewarn "Run this command:"
+ ewarn "\trc-update add udev-mount sysinit"
+ fi
+ fi
+
+ ewarn "The udev-postmount service has been removed because the reasons for"
+ ewarn "its existance have been removed upstream."
+ ewarn "Please remove it from your runlevels."
+}