/[gentoo-x86]/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild
Gentoo

Contents of /sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (show annotations) (download)
Tue Nov 25 21:16:16 2014 UTC (13 hours, 4 minutes ago) by williamh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.29: +13 -1 lines
Add message about adding udev-trigger to sysinit

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild,v 1.29 2014/08/18 19:02:25 williamh Exp $
4
5 EAPI=5
6
7 if [ "${PV}" = "9999" ]; then
8 EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git"
9 inherit git-r3
10 else
11 SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
13 fi
14
15 inherit eutils
16
17 DESCRIPTION="udev startup scripts for openrc"
18 HOMEPAGE="http://www.gentoo.org"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22 IUSE=""
23
24 RESTRICT="test"
25
26 RDEPEND=">=virtual/udev-180
27 !<sys-fs/udev-186
28 !<sys-apps/openrc-0.13"
29 DEPEND="${RDEPEND}"
30
31 src_prepare() {
32 epatch_user
33 }
34
35 pkg_postinst() {
36 # Add udev to the sysinit runlevel automatically if this is
37 # the first install of this package.
38 if [[ -z ${REPLACING_VERSIONS} ]]; then
39 if [[ ! -d ${ROOT%/}/etc/runlevels/sysinit ]]; then
40 mkdir -p "${ROOT%/}"/etc/runlevels/sysinit
41 fi
42 if [[ -x ${ROOT%/}/etc/init.d/udev ]]; then
43 ln -s /etc/init.d/udev "${ROOT%/}"/etc/runlevels/sysinit/udev
44 fi
45 if [[ -x ${ROOT%/}/etc/init.d/udev-trigger ]]; then
46 ln -s /etc/init.d/udev-trigger \
47 "${ROOT%/}"/etc/runlevels/sysinit/udev-trigger
48 fi
49 fi
50
51 # Warn the user about adding udev to their sysinit runlevel
52 if [[ -e ${ROOT%/}/etc/runlevels/sysinit ]]; then
53 if [[ ! -e ${ROOT%/}/etc/runlevels/sysinit/udev ]]; then
54 ewarn
55 ewarn "You need to add udev to the sysinit runlevel."
56 ewarn "If you do not do this,"
57 ewarn "your system will not be able to boot!"
58 ewarn "Run this command:"
59 ewarn "\trc-update add udev sysinit"
60 fi
61 if [[ ! -e ${ROOT%/}/etc/runlevels/sysinit/udev-trigger ]]; then
62 ewarn
63 ewarn "You need to add udev-trigger to the sysinit runlevel."
64 ewarn "If you do not do this,"
65 ewarn "your system will not be able to boot!"
66 ewarn "Run this command:"
67 ewarn "\trc-update add udev-trigger sysinit"
68 fi
69 fi
70
71 if ! has_version "sys-fs/eudev[rule-generator]" && \
72 [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qs 'boot\|default\|sysinit'; then
73 ewarn "The udev-postmount service has been removed because the reasons for"
74 ewarn "its existance have been removed upstream."
75 ewarn "Please remove it from your runlevels."
76 fi
77 }

  ViewVC Help
Powered by ViewVC 1.1.20