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