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