/[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.38 - (show annotations) (download)
Mon Jun 1 16:47:35 2015 UTC (5 weeks ago) by williamh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.37: +4 -2 lines
Only add a  service to the sysinit runlevel if it is not already there and log when a service is added

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

1 # Copyright 1999-2015 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.37 2015/06/01 15:30:02 williamh Exp $
4
5 EAPI=5
6
7 if [ "${PV}" = "9999" ]; then
8 EGIT_REPO_URI="git://anongit.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 DEPEND=""
27 RDEPEND=">=virtual/udev-217
28 !<sys-apps/openrc-0.14"
29
30 src_prepare() {
31 epatch_user
32 }
33
34 pkg_postinst() {
35 # Add udev and udev-trigger to the sysinit runlevel automatically.
36 for f in udev udev-trigger; do
37 if [[ -x ${ROOT%/}/etc/init.d/${f} &&
38 -d ${ROOT%/}/etc/runlevels/sysinit &&
39 ! -L "${ROOT%/}/etc/runlevels/sysinit/${f}" ]]; then
40 ln -snf /etc/init.d/${f} "${ROOT%/}"/etc/runlevels/sysinit/${f}
41 ewarn "Adding ${f} to the sysinit runlevel"
42 fi
43 done
44
45 if ! has_version "sys-fs/eudev[rule-generator]" && \
46 [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qs 'boot\|default\|sysinit'; then
47 ewarn "The udev-postmount service has been removed because the reasons for"
48 ewarn "its existance have been removed upstream."
49 ewarn "Please remove it from your runlevels."
50 fi
51 }

  ViewVC Help
Powered by ViewVC 1.1.20