From dfc1f5cd77a0fee2c2deb5557c04dababaf1965b Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 15 Apr 2011 03:43:47 +0000 Subject: Fix conf.d/local -> local.d transition for bug #363637. (Portage version: 2.2.0_alpha29/cvs/Linux i686) --- sys-apps/openrc/openrc-9999.ebuild | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sys-apps/openrc/openrc-9999.ebuild') diff --git a/sys-apps/openrc/openrc-9999.ebuild b/sys-apps/openrc/openrc-9999.ebuild index 77599d6bf1a3..f4dd82d23d1a 100644 --- a/sys-apps/openrc/openrc-9999.ebuild +++ b/sys-apps/openrc/openrc-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.80 2011/04/15 03:27:29 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-9999.ebuild,v 1.81 2011/04/15 03:43:47 williamh Exp $ EAPI="1" @@ -345,11 +345,12 @@ migrate_from_baselayout_1() { fi # Handle the conf.d/local.{start,stop} -> local.d transition - if path_exists -o "${ROOT}"/etc/conf.d/local.{start,stop} ; then - elog "Moving your /etc/conf.d/local.{start,stop} files to /etc/local.d" - mv "${ROOT}"/etc/conf.d/local.start "${ROOT}"/local.d/baselayout1.start - mv "${ROOT}"/etc/conf.d/local.stop "${ROOT}"/local.d/baselayout1.stop - chmod +x "${ROOT}"/local.d/*{start,stop} + if path_exists -o "${ROOT}"etc/conf.d/local.{start,stop} ; then + elog "Moving your ${ROOT}etc/conf.d/local.{start,stop}" + elog "files to ${ROOT}etc/local.d" + mv "${ROOT}"etc/conf.d/local.start "${ROOT}"etc/local.d/baselayout1.start + mv "${ROOT}"etc/conf.d/local.stop "${ROOT}"etc/local.d/baselayout1.stop + chmod +x "${ROOT}"etc/local.d/*{start,stop} fi } -- cgit v1.2.3-65-gdbad