summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2013-02-05 15:06:02 +0000
committerWilliam Hubbs <williamh@gentoo.org>2013-02-05 15:06:02 +0000
commitb97ed847832705a3256dc8e83614b8877bc42e01 (patch)
tree2c5fb716ed1aafc9b8abe3a689214d12100cdadd /sys-fs
parentinitial import (diff)
downloadhistorical-b97ed847832705a3256dc8e83614b8877bc42e01.tar.gz
historical-b97ed847832705a3256dc8e83614b8877bc42e01.tar.bz2
historical-b97ed847832705a3256dc8e83614b8877bc42e01.zip
version bump
Package-Manager: portage-2.2.0_alpha161/cvs/Linux i686 Manifest-Sign-Key: 0x30C46538
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev-init-scripts/ChangeLog8
-rw-r--r--sys-fs/udev-init-scripts/udev-init-scripts-23.ebuild85
2 files changed, 92 insertions, 1 deletions
diff --git a/sys-fs/udev-init-scripts/ChangeLog b/sys-fs/udev-init-scripts/ChangeLog
index 8b6c2b005d4c..75e43b80344c 100644
--- a/sys-fs/udev-init-scripts/ChangeLog
+++ b/sys-fs/udev-init-scripts/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-fs/udev-init-scripts
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog,v 1.41 2013/02/01 08:09:29 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog,v 1.42 2013/02/05 15:06:02 williamh Exp $
+
+*udev-init-scripts-23 (05 Feb 2013)
+
+ 05 Feb 2013; William Hubbs <williamh@gentoo.org>
+ +udev-init-scripts-23.ebuild:
+ version bump
01 Feb 2013; Samuli Suominen <ssuominen@gentoo.org>
-udev-init-scripts-19-r1.ebuild,
diff --git a/sys-fs/udev-init-scripts/udev-init-scripts-23.ebuild b/sys-fs/udev-init-scripts/udev-init-scripts-23.ebuild
new file mode 100644
index 000000000000..b6787ceb2b58
--- /dev/null
+++ b/sys-fs/udev-init-scripts/udev-init-scripts-23.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2013 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-23.ebuild,v 1.1 2013/02/05 15:06:02 williamh Exp $
+
+EAPI=4
+
+inherit eutils
+
+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="virtual/pkgconfig"
+RDEPEND=">=virtual/udev-180
+ sys-apps/openrc
+ !<sys-fs/udev-186"
+
+src_prepare()
+{
+ epatch_user
+}
+
+pkg_postinst()
+{
+ # Add udev and udev-mount to the sysinit runlevel automatically if this is
+ # the first install of this package.
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ if [[ -x "${ROOT}"etc/init.d/udev \
+ && -d "${ROOT}"etc/runlevels/sysinit ]]
+ then
+ ln -s "${ROOT}"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 "${ROOT}"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
+
+ if [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qs 'boot\|default\|sysinit'; then
+ 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."
+ fi
+}