1 |
williamh 11/11/25 21:54:59 |
2 |
|
3 |
Modified: ChangeLog openrc-9999.ebuild |
4 |
Added: openrc-0.9.6.ebuild |
5 |
Log: |
6 |
version bump, bug #387433 tracks changes since openrc-0.9.4. |
7 |
|
8 |
(Portage version: 2.2.0_alpha77/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.179 sys-apps/openrc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/ChangeLog?rev=1.179&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/ChangeLog?rev=1.179&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/ChangeLog?r1=1.178&r2=1.179 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v |
20 |
retrieving revision 1.178 |
21 |
retrieving revision 1.179 |
22 |
diff -u -r1.178 -r1.179 |
23 |
--- ChangeLog 22 Nov 2011 19:46:53 -0000 1.178 |
24 |
+++ ChangeLog 25 Nov 2011 21:54:59 -0000 1.179 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-apps/openrc |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.178 2011/11/22 19:46:53 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.179 2011/11/25 21:54:59 williamh Exp $ |
30 |
+ |
31 |
+*openrc-0.9.6 (25 Nov 2011) |
32 |
+ |
33 |
+ 25 Nov 2011; William Hubbs <williamh@g.o> +openrc-0.9.6.ebuild, |
34 |
+ openrc-9999.ebuild: |
35 |
+ version bump, bug #387433 tracks changes since openrc-0.9.4. |
36 |
|
37 |
22 Nov 2011; Jeroen Roovers <jer@g.o> openrc-0.9.4.ebuild: |
38 |
Stable for HPPA (bug #391271). |
39 |
|
40 |
|
41 |
|
42 |
1.93 sys-apps/openrc/openrc-9999.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.93&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?rev=1.93&content-type=text/plain |
46 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild?r1=1.92&r2=1.93 |
47 |
|
48 |
Index: openrc-9999.ebuild |
49 |
=================================================================== |
50 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v |
51 |
retrieving revision 1.92 |
52 |
retrieving revision 1.93 |
53 |
diff -u -r1.92 -r1.93 |
54 |
--- openrc-9999.ebuild 21 Nov 2011 22:37:21 -0000 1.92 |
55 |
+++ openrc-9999.ebuild 25 Nov 2011 21:54:59 -0000 1.93 |
56 |
@@ -1,6 +1,6 @@ |
57 |
# Copyright 1999-2011 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.92 2011/11/21 22:37:21 vapier Exp $ |
60 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.93 2011/11/25 21:54:59 williamh Exp $ |
61 |
|
62 |
EAPI=4 |
63 |
|
64 |
@@ -233,6 +233,9 @@ |
65 |
# termencoding was added in 0.2.1 and needed in boot |
66 |
has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding |
67 |
|
68 |
+ # migrate-run was added in 0.9.5 and is needed in boot |
69 |
+ use kernel_linux && add_boot_init migrate-run |
70 |
+ |
71 |
# set default interactive shell to sulogin if it exists |
72 |
set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin |
73 |
|
74 |
|
75 |
|
76 |
|
77 |
1.1 sys-apps/openrc/openrc-0.9.6.ebuild |
78 |
|
79 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-0.9.6.ebuild?rev=1.1&view=markup |
80 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/openrc/openrc-0.9.6.ebuild?rev=1.1&content-type=text/plain |
81 |
|
82 |
Index: openrc-0.9.6.ebuild |
83 |
=================================================================== |
84 |
# Copyright 1999-2011 Gentoo Foundation |
85 |
# Distributed under the terms of the GNU General Public License v2 |
86 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.9.6.ebuild,v 1.1 2011/11/25 21:54:59 williamh Exp $ |
87 |
|
88 |
EAPI=4 |
89 |
|
90 |
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git" |
91 |
[[ ${PV} == "9999" ]] && SCM_ECLASS="git-2" |
92 |
inherit eutils flag-o-matic multilib pam toolchain-funcs ${SCM_ECLASS} |
93 |
unset SCM_ECLASS |
94 |
|
95 |
DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" |
96 |
HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/" |
97 |
if [[ ${PV} != "9999" ]] ; then |
98 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
99 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
100 |
fi |
101 |
|
102 |
LICENSE="BSD-2" |
103 |
SLOT="0" |
104 |
IUSE="debug elibc_glibc ncurses pam selinux unicode kernel_linux kernel_FreeBSD |
105 |
static-libs" |
106 |
|
107 |
RDEPEND="virtual/init |
108 |
kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) ) |
109 |
elibc_glibc? ( >=sys-libs/glibc-2.5 ) |
110 |
ncurses? ( sys-libs/ncurses ) |
111 |
pam? ( virtual/pam ) |
112 |
>=sys-apps/baselayout-2.0.0 |
113 |
kernel_linux? ( !<sys-apps/module-init-tools-3.2.2-r2 ) |
114 |
!<sys-fs/udev-133 |
115 |
!<sys-apps/sysvinit-2.86-r11" |
116 |
DEPEND="${RDEPEND} |
117 |
virtual/os-headers" |
118 |
|
119 |
make_args() { |
120 |
unset LIBDIR #266688 |
121 |
|
122 |
MAKE_ARGS="${MAKE_ARGS} LIBNAME=$(get_libdir) LIBEXECDIR=/$(get_libdir)/rc" |
123 |
|
124 |
local brand="Unknown" |
125 |
if use kernel_linux ; then |
126 |
MAKE_ARGS="${MAKE_ARGS} OS=Linux" |
127 |
brand="Linux" |
128 |
elif use kernel_FreeBSD ; then |
129 |
MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD" |
130 |
brand="FreeBSD" |
131 |
fi |
132 |
if use selinux; then |
133 |
MAKE_ARGS="${MAKE_ARGS} MKSELINUX=yes" |
134 |
fi |
135 |
export BRANDING="Gentoo ${brand}" |
136 |
if ! use static-libs; then |
137 |
MAKE_ARGS="${MAKE_ARGS} MKSTATICLIBS=no" |
138 |
fi |
139 |
} |
140 |
|
141 |
pkg_setup() { |
142 |
export DEBUG=$(usev debug) |
143 |
export MKPAM=$(usev pam) |
144 |
export MKTERMCAP=$(usev ncurses) |
145 |
} |
146 |
|
147 |
src_prepare() { |
148 |
sed -i 's:0444:0644:' mk/sys.mk || die |
149 |
sed -i "/^DIR/s:/openrc:/${PF}:" doc/Makefile || die #241342 |
150 |
|
151 |
if [[ ${PV} == "9999" ]] ; then |
152 |
local ver="git-${EGIT_VERSION:0:6}" |
153 |
sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die |
154 |
fi |
155 |
|
156 |
# Allow user patches to be applied without modifying the ebuild |
157 |
epatch_user |
158 |
} |
159 |
|
160 |
src_compile() { |
161 |
make_args |
162 |
|
163 |
tc-export CC AR RANLIB |
164 |
emake ${MAKE_ARGS} |
165 |
} |
166 |
|
167 |
# set_config <file> <option name> <yes value> <no value> test |
168 |
# a value of "#" will just comment out the option |
169 |
set_config() { |
170 |
local file="${D}/$1" var=$2 val com |
171 |
eval "${@:5}" && val=$3 || val=$4 |
172 |
[[ ${val} == "#" ]] && com="#" && val='\2' |
173 |
sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}" |
174 |
} |
175 |
|
176 |
set_config_yes_no() { |
177 |
set_config "$1" "$2" YES NO "${@:3}" |
178 |
} |
179 |
|
180 |
src_install() { |
181 |
make_args |
182 |
emake ${MAKE_ARGS} DESTDIR="${D}" install |
183 |
|
184 |
# move the shared libs back to /usr so ldscript can install |
185 |
# more of a minimal set of files |
186 |
# disabled for now due to #270646 |
187 |
#mv "${D}"/$(get_libdir)/lib{einfo,rc}* "${D}"/usr/$(get_libdir)/ || die |
188 |
#gen_usr_ldscript -a einfo rc |
189 |
gen_usr_ldscript libeinfo.so |
190 |
gen_usr_ldscript librc.so |
191 |
|
192 |
keepdir /$(get_libdir)/rc/{init.d,tmp} |
193 |
|
194 |
# Backup our default runlevels |
195 |
dodir /usr/share/"${PN}" |
196 |
cp -PR "${D}"/etc/runlevels "${D}"/usr/share/${PN} || die |
197 |
rm -rf "${D}"/etc/runlevels |
198 |
|
199 |
# Install the default net configuration |
200 |
doconfd conf.d/net |
201 |
|
202 |
# Setup unicode defaults for silly unicode users |
203 |
set_config_yes_no /etc/rc.conf unicode use unicode |
204 |
|
205 |
# Cater to the norm |
206 |
set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')' |
207 |
|
208 |
# On HPPA, do not run consolefont by default (bug #222889) |
209 |
if use hppa; then |
210 |
rm -f "${D}"/usr/share/openrc/runlevels/boot/consolefont |
211 |
fi |
212 |
|
213 |
# Support for logfile rotation |
214 |
insinto /etc/logrotate.d |
215 |
newins "${FILESDIR}"/openrc.logrotate openrc |
216 |
|
217 |
# install the gentoo pam.d file |
218 |
newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon |
219 |
} |
220 |
|
221 |
add_boot_init() { |
222 |
local initd=$1 |
223 |
local runlevel=${2:-boot} |
224 |
# if the initscript is not going to be installed and is not |
225 |
# currently installed, return |
226 |
[[ -e ${D}/etc/init.d/${initd} || -e ${ROOT}/etc/init.d/${initd} ]] \ |
227 |
|| return |
228 |
[[ -e ${ROOT}/etc/runlevels/${runlevel}/${initd} ]] && return |
229 |
|
230 |
# if runlevels dont exist just yet, then create it but still flag |
231 |
# to pkg_postinst that it needs real setup #277323 |
232 |
if [[ ! -d ${ROOT}/etc/runlevels/${runlevel} ]] ; then |
233 |
mkdir -p "${ROOT}"/etc/runlevels/${runlevel} |
234 |
touch "${ROOT}"/etc/runlevels/.add_boot_init.created |
235 |
fi |
236 |
|
237 |
elog "Auto-adding '${initd}' service to your ${runlevel} runlevel" |
238 |
ln -snf /etc/init.d/${initd} "${ROOT}"/etc/runlevels/${runlevel}/${initd} |
239 |
} |
240 |
add_boot_init_mit_config() { |
241 |
local config=$1 initd=$2 |
242 |
if [[ -e ${ROOT}${config} ]] ; then |
243 |
if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${ROOT}"/${config}) ]] ; then |
244 |
add_boot_init ${initd} |
245 |
fi |
246 |
fi |
247 |
} |
248 |
|
249 |
pkg_preinst() { |
250 |
local f LIBDIR=$(get_libdir) |
251 |
|
252 |
# default net script is just comments, so no point in biting people |
253 |
# in the ass by accident. we save in preinst so that the package |
254 |
# manager doesnt go throwing etc-update crap at us -- postinst is |
255 |
# too late to prevent that. this behavior also lets us keep the |
256 |
# file in the CONTENTS for binary packages. |
257 |
[[ -e ${ROOT}/etc/conf.d/net ]] && cp "${ROOT}"/etc/conf.d/net "${D}"/etc/conf.d/ |
258 |
|
259 |
# avoid default thrashing in conf.d files when possible #295406 |
260 |
if [[ -e ${ROOT}/etc/conf.d/hostname ]] ; then |
261 |
( |
262 |
unset hostname HOSTNAME |
263 |
source "${ROOT}"/etc/conf.d/hostname |
264 |
: ${hostname:=${HOSTNAME}} |
265 |
[[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}" |
266 |
) |
267 |
fi |
268 |
|
269 |
# upgrade timezone file ... do it before moving clock |
270 |
if [[ -e ${ROOT}/etc/conf.d/clock && ! -e ${ROOT}/etc/timezone ]] ; then |
271 |
( |
272 |
unset TIMEZONE |
273 |
source "${ROOT}"/etc/conf.d/clock |
274 |
[[ -n ${TIMEZONE} ]] && echo "${TIMEZONE}" > "${ROOT}"/etc/timezone |
275 |
) |
276 |
fi |
277 |
|
278 |
# /etc/conf.d/clock moved to /etc/conf.d/hwclock |
279 |
local clock |
280 |
use kernel_FreeBSD && clock="adjkerntz" || clock="hwclock" |
281 |
if [[ -e ${ROOT}/etc/conf.d/clock ]] ; then |
282 |
mv "${ROOT}"/etc/conf.d/clock "${ROOT}"/etc/conf.d/${clock} |
283 |
fi |
284 |
if [[ -e ${ROOT}/etc/init.d/clock ]] ; then |
285 |
rm -f "${ROOT}"/etc/init.d/clock |
286 |
fi |
287 |
if [[ -L ${ROOT}/etc/runlevels/boot/clock ]] ; then |
288 |
rm -f "${ROOT}"/etc/runlevels/boot/clock |
289 |
ln -snf /etc/init.d/${clock} "${ROOT}"/etc/runlevels/boot/${clock} |
290 |
fi |
291 |
if [[ -L ${ROOT}${LIBDIR}/rc/init.d/started/clock ]] ; then |
292 |
rm -f "${ROOT}${LIBDIR}"/rc/init.d/started/clock |
293 |
ln -snf /etc/init.d/${clock} "${ROOT}${LIBDIR}"/rc/init.d/started/${clock} |
294 |
fi |
295 |
|
296 |
# /etc/conf.d/rc is no longer used for configuration |
297 |
if [[ -e ${ROOT}/etc/conf.d/rc ]] ; then |
298 |
elog "/etc/conf.d/rc is no longer used for configuration." |
299 |
elog "Please migrate your settings to /etc/rc.conf as applicable" |
300 |
elog "and delete /etc/conf.d/rc" |
301 |
fi |
302 |
|
303 |
# force net init.d scripts into symlinks |
304 |
for f in "${ROOT}"/etc/init.d/net.* ; do |
305 |
[[ -e ${f} ]] || continue # catch net.* not matching anything |
306 |
[[ ${f} == */net.lo ]] && continue # real file now |
307 |
[[ ${f} == *.openrc.bak ]] && continue |
308 |
if [[ ! -L ${f} ]] ; then |
309 |
elog "Moved net service '${f##*/}' to '${f##*/}.openrc.bak' to force a symlink." |
310 |
elog "You should delete '${f##*/}.openrc.bak' if you don't need it." |
311 |
mv "${f}" "${f}.openrc.bak" |
312 |
ln -snf net.lo "${f}" |
313 |
fi |
314 |
done |
315 |
|
316 |
# termencoding was added in 0.2.1 and needed in boot |
317 |
has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding |
318 |
|
319 |
# migrate-run was added in 0.9.5 and is needed in boot |
320 |
use kernel_linux && add_boot_init migrate-run |
321 |
|
322 |
# set default interactive shell to sulogin if it exists |
323 |
set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin |
324 |
|
325 |
has_version sys-apps/openrc || migrate_from_baselayout_1 |
326 |
has_version ">=sys-apps/openrc-0.4.0" || migrate_udev_init_script |
327 |
} |
328 |
|
329 |
# >=openrc-0.4.0 no longer loads the udev addon |
330 |
migrate_udev_init_script() { |
331 |
# make sure udev is in sysinit if it was enabled before |
332 |
local enable_udev=false |
333 |
local rc_devices=$( |
334 |
[[ -f /etc/rc.conf ]] && source /etc/rc.conf |
335 |
[[ -f /etc/conf.d/rc ]] && source /etc/conf.d/rc |
336 |
echo "${rc_devices:-${RC_DEVICES:-auto}}" |
337 |
) |
338 |
case ${rc_devices} in |
339 |
udev|auto) |
340 |
enable_udev=true |
341 |
;; |
342 |
esac |
343 |
|
344 |
if $enable_udev; then |
345 |
add_boot_init udev sysinit |
346 |
add_boot_init udev-postmount default |
347 |
fi |
348 |
} |
349 |
|
350 |
migrate_from_baselayout_1() { |
351 |
# baselayout boot init scripts have been split out |
352 |
for f in $(cd "${D}"/usr/share/${PN}/runlevels/boot || exit; echo *) ; do |
353 |
# baselayout-1 is always "old" net, so ignore "new" net |
354 |
[[ ${f} == "network" ]] && continue |
355 |
|
356 |
add_boot_init ${f} |
357 |
done |
358 |
|
359 |
# Try to auto-add some addons when possible |
360 |
add_boot_init_mit_config /etc/conf.d/cryptfs dmcrypt |
361 |
add_boot_init_mit_config /etc/conf.d/dmcrypt dmcrypt |
362 |
add_boot_init_mit_config /etc/mdadm.conf mdraid |
363 |
add_boot_init_mit_config /etc/evms.conf evms |
364 |
[[ -e ${ROOT}/sbin/dmsetup ]] && add_boot_init device-mapper |
365 |
[[ -e ${ROOT}/sbin/vgscan ]] && add_boot_init lvm |
366 |
elog "Add on services (such as RAID/dmcrypt/LVM/etc...) are now stand alone" |
367 |
elog "init.d scripts. If you use such a thing, make sure you have the" |
368 |
elog "required init.d scripts added to your boot runlevel." |
369 |
|
370 |
# Upgrade our state for baselayout-1 users |
371 |
if [[ ! -e ${ROOT}${LIBDIR}/rc/init.d/started ]] ; then |
372 |
( |
373 |
[[ -e ${ROOT}/etc/conf.d/rc ]] && source "${ROOT}"/etc/conf.d/rc |
374 |
svcdir=${svcdir:-/var/lib/init.d} |
375 |
if [[ ! -d ${ROOT}${svcdir}/started ]] ; then |
376 |
ewarn "No state found, and no state exists" |
377 |
elog "You should reboot this host" |
378 |
else |
379 |
mkdir -p "${ROOT}${LIBDIR}/rc/init.d" |
380 |
einfo "Moving state from ${ROOT}${svcdir} to ${ROOT}${LIBDIR}/rc/init.d" |
381 |
mv "${ROOT}${svcdir}"/* "${ROOT}${LIBDIR}"/rc/init.d |
382 |
rm -rf "${ROOT}${LIBDIR}"/rc/init.d/daemons \ |
383 |
"${ROOT}${LIBDIR}"/rc/init.d/console |
384 |
umount "${ROOT}${svcdir}" 2>/dev/null |
385 |
rm -rf "${ROOT}${svcdir}" |
386 |
fi |
387 |
) |
388 |
fi |
389 |
|
390 |
# Handle the /etc/modules.autoload.d -> /etc/conf.d/modules transition |
391 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
392 |
elog "Converting your /etc/modules.autoload.d/ files to /etc/conf.d/modules" |
393 |
rm -f "${ROOT}"/etc/modules.autoload.d/.keep* |
394 |
rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null |
395 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
396 |
local f v |
397 |
for f in "${ROOT}"/etc/modules.autoload.d/* ; do |
398 |
v=${f##*/} |
399 |
v=${v#kernel-} |
400 |
v=${v//[^[:alnum:]]/_} |
401 |
gawk -v v="${v}" -v f="${f##*/}" ' |
402 |
BEGIN { print "\n### START: Auto-converted from " f "\n" } |
403 |
{ |
404 |
if ($0 ~ /^[^#]/) { |
405 |
print "modules_" v "=\"${modules_" v "} " $1 "\"" |
406 |
gsub(/[^[:alnum:]]/, "_", $1) |
407 |
printf "module_" $1 "_args_" v "=\"" |
408 |
for (i = 2; i <= NF; ++i) { |
409 |
if (i > 2) |
410 |
printf " " |
411 |
printf $i |
412 |
} |
413 |
print "\"\n" |
414 |
} else |
415 |
print |
416 |
} |
417 |
END { print "\n### END: Auto-converted from " f "\n" } |
418 |
' "${f}" >> "${D}"/etc/conf.d/modules |
419 |
done |
420 |
rm -f "${f}" |
421 |
rmdir "${ROOT}"/etc/modules.autoload.d 2>/dev/null |
422 |
fi |
423 |
fi |
424 |
} |
425 |
|
426 |
pkg_postinst() { |
427 |
local LIBDIR=$(get_libdir) |
428 |
|
429 |
# Remove old baselayout links |
430 |
rm -f "${ROOT}"/etc/runlevels/boot/{check{fs,root},rmnologin} |
431 |
rm -f "${ROOT}"/etc/init.d/{depscan,runscript}.sh |
432 |
|
433 |
# Make our runlevels if they don't exist |
434 |
if [[ ! -e ${ROOT}/etc/runlevels ]] || [[ -e ${ROOT}/etc/runlevels/.add_boot_init.created ]] ; then |
435 |
einfo "Copying across default runlevels" |
436 |
cp -RPp "${ROOT}"/usr/share/${PN}/runlevels "${ROOT}"/etc |
437 |
rm -f "${ROOT}"/etc/runlevels/.add_boot_init.created |
438 |
else |
439 |
if [[ ! -e ${ROOT}/etc/runlevels/sysinit/devfs ]] ; then |
440 |
mkdir -p "${ROOT}"/etc/runlevels/sysinit |
441 |
cp -RPp "${ROOT}"/usr/share/${PN}/runlevels/sysinit/* \ |
442 |
"${ROOT}"/etc/runlevels/sysinit |
443 |
fi |
444 |
if [[ ! -e ${ROOT}/etc/runlevels/shutdown/mount-ro ]] ; then |
445 |
mkdir -p "${ROOT}"/etc/runlevels/shutdown |
446 |
cp -RPp "${ROOT}"/usr/share/${PN}/runlevels/shutdown/* \ |
447 |
"${ROOT}"/etc/runlevels/shutdown |
448 |
fi |
449 |
fi |
450 |
|
451 |
# /etc/conf.d/net.example is no longer valid |
452 |
local NET_EXAMPLE="${ROOT}/etc/conf.d/net.example" |
453 |
local NET_MD5='8ebebfa07441d39eb54feae0ee4c8210' |
454 |
if [[ -e "${NET_EXAMPLE}" ]] ; then |
455 |
if [[ $(md5sum "${NET_EXAMPLE}") == ${NET_MD5}* ]]; then |
456 |
rm -f "${NET_EXAMPLE}" |
457 |
elog "${NET_EXAMPLE} has been removed." |
458 |
else |
459 |
sed -i '1i# This file is obsolete.\n' "${NET_EXAMPLE}" |
460 |
elog "${NET_EXAMPLE} should be removed." |
461 |
fi |
462 |
elog "The new file is ${ROOT}/usr/share/doc/${PF}/net.example" |
463 |
fi |
464 |
|
465 |
# /etc/conf.d/wireless.example is no longer valid |
466 |
local WIRELESS_EXAMPLE="${ROOT}/etc/conf.d/wireless.example" |
467 |
local WIRELESS_MD5='d1fad7da940bf263c76af4d2082124a3' |
468 |
if [[ -e "${WIRELESS_EXAMPLE}" ]] ; then |
469 |
if [[ $(md5sum "${WIRELESS_EXAMPLE}") == ${WIRELESS_MD5}* ]]; then |
470 |
rm -f "${WIRELESS_EXAMPLE}" |
471 |
elog "${WIRELESS_EXAMPLE} is deprecated and has been removed." |
472 |
else |
473 |
sed -i '1i# This file is obsolete.\n' "${WIRELESS_EXAMPLE}" |
474 |
elog "${WIRELESS_EXAMPLE} is deprecated and should be removed." |
475 |
fi |
476 |
elog "If you are using the old style network scripts," |
477 |
elog "Configure wireless settings in ${ROOT}/etc/conf.d/net" |
478 |
elog "after reviewing ${ROOT}/usr/share/doc/${PF}/net.example" |
479 |
fi |
480 |
|
481 |
if [[ -d ${ROOT}/etc/modules.autoload.d ]] ; then |
482 |
ewarn "/etc/modules.autoload.d is no longer used. Please convert" |
483 |
ewarn "your files to /etc/conf.d/modules and delete the directory." |
484 |
fi |
485 |
|
486 |
if use hppa; then |
487 |
elog "Setting the console font does not work on all HPPA consoles." |
488 |
elog "You can still enable it by running:" |
489 |
elog "# rc-update add consolefont boot" |
490 |
fi |
491 |
|
492 |
# Handle the conf.d/local.{start,stop} -> local.d transition |
493 |
if path_exists -o "${ROOT}"etc/conf.d/local.{start,stop} ; then |
494 |
elog "Moving your ${ROOT}etc/conf.d/local.{start,stop}" |
495 |
elog "files to ${ROOT}etc/local.d" |
496 |
mv "${ROOT}"etc/conf.d/local.start "${ROOT}"etc/local.d/baselayout1.start |
497 |
mv "${ROOT}"etc/conf.d/local.stop "${ROOT}"etc/local.d/baselayout1.stop |
498 |
chmod +x "${ROOT}"etc/local.d/*{start,stop} |
499 |
fi |
500 |
|
501 |
# update the dependency tree after touching all files #224171 |
502 |
[[ "${ROOT}" = "/" ]] && "${ROOT}/${LIBDIR}"/rc/bin/rc-depend -u |
503 |
|
504 |
elog "You should now update all files in /etc, using etc-update" |
505 |
elog "or equivalent before restarting any services or this host." |
506 |
elog |
507 |
elog "Please read the migration guide available at:" |
508 |
elog "http://www.gentoo.org/doc/en/openrc-migration.xml" |
509 |
} |