1 |
williamh 12/02/03 19:14:55 |
2 |
|
3 |
Added: udev-init-scripts-9999.ebuild metadata.xml |
4 |
ChangeLog udev-init-scripts-8.ebuild |
5 |
Log: |
6 |
initial commit of udev-init-scripts package. This package contains the openrc init scripts and helpers for udev. |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: udev-init-scripts-9999.ebuild |
17 |
=================================================================== |
18 |
# Copyright 1999-2012 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-9999.ebuild,v 1.1 2012/02/03 19:14:55 williamh Exp $ |
21 |
|
22 |
EAPI=4 |
23 |
|
24 |
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git" |
25 |
|
26 |
[ "${PV}" = "9999" ] && vcs=git-2 |
27 |
inherit $vcs |
28 |
unset vcs |
29 |
|
30 |
DESCRIPTION="udev startup scripts for openrc" |
31 |
HOMEPAGE="http://www.gentoo.org" |
32 |
|
33 |
LICENSE="GPL-2" |
34 |
SLOT="0" |
35 |
IUSE="" |
36 |
|
37 |
if [ "${PV}" != "9999" ]; then |
38 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
39 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
40 |
fi |
41 |
|
42 |
DEPEND="" |
43 |
RDEPEND=">=sys-fs/udev-180" |
44 |
|
45 |
src_compile() |
46 |
{ |
47 |
return 0 |
48 |
} |
49 |
|
50 |
pkg_postinst() |
51 |
{ |
52 |
local enable_postmount=false |
53 |
|
54 |
# FIXME: inconsistent handling of init-scripts here |
55 |
# * udev is added to sysinit in openrc-ebuild |
56 |
# * we add udev-postmount to default in here |
57 |
# |
58 |
|
59 |
# If we are building stages, add udev to the sysinit runlevel automatically. |
60 |
if use build |
61 |
then |
62 |
if [[ -x "${ROOT}"/etc/init.d/udev \ |
63 |
&& -d "${ROOT}"/etc/runlevels/sysinit ]] |
64 |
then |
65 |
ln -s /etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit/udev |
66 |
fi |
67 |
enable_postmount=true |
68 |
fi |
69 |
|
70 |
# migration to >=openrc-0.4 |
71 |
if [[ -e "${ROOT}"/etc/runlevels/sysinit && ! -e "${ROOT}"/etc/runlevels/sysinit/udev ]] |
72 |
then |
73 |
ewarn |
74 |
ewarn "You need to add the udev init script to the runlevel sysinit," |
75 |
ewarn "else your system will not be able to boot" |
76 |
ewarn "after updating to >=openrc-0.4.0" |
77 |
ewarn "Run this to enable udev for >=openrc-0.4.0:" |
78 |
ewarn "\trc-update add udev sysinit" |
79 |
ewarn |
80 |
fi |
81 |
|
82 |
# add udev-postmount to default runlevel instead of that ugly injecting |
83 |
# like a hotplug event, 2009/10/15 |
84 |
|
85 |
# already enabled? |
86 |
[[ -e "${ROOT}"/etc/runlevels/default/udev-postmount ]] && return |
87 |
|
88 |
[[ -e "${ROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true |
89 |
[[ "${ROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true |
90 |
|
91 |
if $enable_postmount |
92 |
then |
93 |
local initd=udev-postmount |
94 |
|
95 |
if [[ -e ${ROOT}/etc/init.d/${initd} ]] && \ |
96 |
[[ ! -e ${ROOT}/etc/runlevels/default/${initd} ]] |
97 |
then |
98 |
ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/default/${initd} |
99 |
elog "Auto-adding '${initd}' service to your default runlevel" |
100 |
fi |
101 |
else |
102 |
elog "You should add the udev-postmount service to default runlevel." |
103 |
elog "Run this to add it:" |
104 |
elog "\trc-update add udev-postmount default" |
105 |
fi |
106 |
} |
107 |
|
108 |
|
109 |
|
110 |
1.1 sys-fs/udev-init-scripts/metadata.xml |
111 |
|
112 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/metadata.xml?rev=1.1&view=markup |
113 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/metadata.xml?rev=1.1&content-type=text/plain |
114 |
|
115 |
Index: metadata.xml |
116 |
=================================================================== |
117 |
<?xml version="1.0" encoding="UTF-8"?> |
118 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
119 |
<pkgmetadata> |
120 |
<maintainer> |
121 |
<email>udev-bugs@g.o</email> |
122 |
</maintainer> |
123 |
</pkgmetadata> |
124 |
|
125 |
|
126 |
|
127 |
1.1 sys-fs/udev-init-scripts/ChangeLog |
128 |
|
129 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog?rev=1.1&view=markup |
130 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog?rev=1.1&content-type=text/plain |
131 |
|
132 |
Index: ChangeLog |
133 |
=================================================================== |
134 |
# ChangeLog for sys-fs/udev-init-scripts |
135 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
136 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/ChangeLog,v 1.1 2012/02/03 19:14:55 williamh Exp $ |
137 |
|
138 |
*udev-init-scripts-9999 (02 Feb 2012) |
139 |
*udev-init-scripts-8 (02 Feb 2012) |
140 |
|
141 |
02 Feb 2012; William Hubbs <williamh@g.o> +udev-init-scripts-8.ebuild, |
142 |
+udev-init-scripts-9999.ebuild, +metadata.xml: |
143 |
Initial commit of udev-init-scripts. This package contains the openrc init |
144 |
scripts and helpers for udev. |
145 |
|
146 |
|
147 |
|
148 |
|
149 |
1.1 sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild |
150 |
|
151 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild?rev=1.1&view=markup |
152 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild?rev=1.1&content-type=text/plain |
153 |
|
154 |
Index: udev-init-scripts-8.ebuild |
155 |
=================================================================== |
156 |
# Copyright 1999-2012 Gentoo Foundation |
157 |
# Distributed under the terms of the GNU General Public License v2 |
158 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev-init-scripts/udev-init-scripts-8.ebuild,v 1.1 2012/02/03 19:14:55 williamh Exp $ |
159 |
|
160 |
EAPI=4 |
161 |
|
162 |
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/udev-gentoo-scripts.git" |
163 |
|
164 |
[ "${PV}" = "9999" ] && vcs=git-2 |
165 |
inherit $vcs |
166 |
unset vcs |
167 |
|
168 |
DESCRIPTION="udev startup scripts for openrc" |
169 |
HOMEPAGE="http://www.gentoo.org" |
170 |
|
171 |
LICENSE="GPL-2" |
172 |
SLOT="0" |
173 |
IUSE="" |
174 |
|
175 |
if [ "${PV}" != "9999" ]; then |
176 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
177 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
178 |
fi |
179 |
|
180 |
DEPEND="" |
181 |
RDEPEND=">=sys-fs/udev-180" |
182 |
|
183 |
src_compile() |
184 |
{ |
185 |
return 0 |
186 |
} |
187 |
|
188 |
pkg_postinst() |
189 |
{ |
190 |
local enable_postmount=false |
191 |
|
192 |
# FIXME: inconsistent handling of init-scripts here |
193 |
# * udev is added to sysinit in openrc-ebuild |
194 |
# * we add udev-postmount to default in here |
195 |
# |
196 |
|
197 |
# If we are building stages, add udev to the sysinit runlevel automatically. |
198 |
if use build |
199 |
then |
200 |
if [[ -x "${ROOT}"/etc/init.d/udev \ |
201 |
&& -d "${ROOT}"/etc/runlevels/sysinit ]] |
202 |
then |
203 |
ln -s /etc/init.d/udev "${ROOT}"/etc/runlevels/sysinit/udev |
204 |
fi |
205 |
enable_postmount=true |
206 |
fi |
207 |
|
208 |
# migration to >=openrc-0.4 |
209 |
if [[ -e "${ROOT}"/etc/runlevels/sysinit && ! -e "${ROOT}"/etc/runlevels/sysinit/udev ]] |
210 |
then |
211 |
ewarn |
212 |
ewarn "You need to add the udev init script to the runlevel sysinit," |
213 |
ewarn "else your system will not be able to boot" |
214 |
ewarn "after updating to >=openrc-0.4.0" |
215 |
ewarn "Run this to enable udev for >=openrc-0.4.0:" |
216 |
ewarn "\trc-update add udev sysinit" |
217 |
ewarn |
218 |
fi |
219 |
|
220 |
# add udev-postmount to default runlevel instead of that ugly injecting |
221 |
# like a hotplug event, 2009/10/15 |
222 |
|
223 |
# already enabled? |
224 |
[[ -e "${ROOT}"/etc/runlevels/default/udev-postmount ]] && return |
225 |
|
226 |
[[ -e "${ROOT}"/etc/runlevels/sysinit/udev ]] && enable_postmount=true |
227 |
[[ "${ROOT}" = "/" && -d /dev/.udev/ ]] && enable_postmount=true |
228 |
|
229 |
if $enable_postmount |
230 |
then |
231 |
local initd=udev-postmount |
232 |
|
233 |
if [[ -e ${ROOT}/etc/init.d/${initd} ]] && \ |
234 |
[[ ! -e ${ROOT}/etc/runlevels/default/${initd} ]] |
235 |
then |
236 |
ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/default/${initd} |
237 |
elog "Auto-adding '${initd}' service to your default runlevel" |
238 |
fi |
239 |
else |
240 |
elog "You should add the udev-postmount service to default runlevel." |
241 |
elog "Run this to add it:" |
242 |
elog "\trc-update add udev-postmount default" |
243 |
fi |
244 |
} |