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