diff options
author | William Hubbs <williamh@gentoo.org> | 2011-09-04 18:08:05 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-09-04 18:08:05 +0000 |
commit | db9d224a9b4ab1f34aadb8cd0679571be7880ce5 (patch) | |
tree | e201d3248f09523c4576eeb2b376f8f139e89f23 /sys-apps/baselayout | |
parent | Version bump (diff) | |
download | historical-db9d224a9b4ab1f34aadb8cd0679571be7880ce5.tar.gz historical-db9d224a9b4ab1f34aadb8cd0679571be7880ce5.tar.bz2 historical-db9d224a9b4ab1f34aadb8cd0679571be7880ce5.zip |
remove baselayout-1 from the tree
Package-Manager: portage-2.2.0_alpha53/cvs/Linux i686
Diffstat (limited to 'sys-apps/baselayout')
-rw-r--r-- | sys-apps/baselayout/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/baselayout/Manifest | 11 | ||||
-rw-r--r-- | sys-apps/baselayout/baselayout-1.12.14-r1.ebuild | 601 | ||||
-rw-r--r-- | sys-apps/baselayout/files/baselayout-1.12.14-iproute.patch | 18 |
4 files changed, 9 insertions, 627 deletions
diff --git a/sys-apps/baselayout/ChangeLog b/sys-apps/baselayout/ChangeLog index dc7457b3b4e8..95494dcaa871 100644 --- a/sys-apps/baselayout/ChangeLog +++ b/sys-apps/baselayout/ChangeLog @@ -1,11 +1,15 @@ # ChangeLog for sys-apps/baselayout # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.510 2011/09/04 15:47:56 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.511 2011/09/04 18:08:04 williamh Exp $ # See the rc-scripts ChangeLog in subversion for release info: # http://sources.gentoo.org/viewcvs.py/*checkout*/baselayout/trunk/ChangeLog 04 Sep 2011; William Hubbs <williamh@gentoo.org> + -baselayout-1.12.14-r1.ebuild, -files/baselayout-1.12.14-iproute.patch: + Remove baselayout-1 from the tree + + 04 Sep 2011; William Hubbs <williamh@gentoo.org> -files/baselayout-2.0.1-proc_touch.patch: remove old patch diff --git a/sys-apps/baselayout/Manifest b/sys-apps/baselayout/Manifest index 767dac0240b3..882f360e5671 100644 --- a/sys-apps/baselayout/Manifest +++ b/sys-apps/baselayout/Manifest @@ -1,17 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX baselayout-1.12.14-iproute.patch 633 RMD160 50419eb79bfac3e44bdfa1c0558e267cf5772578 SHA1 0b4d58f7736024b2dbbbe1e79fdbf4fb254db478 SHA256 d30480e75024953ac64a51cf7a3d54f4f975470219da2cec9ad0832b5ff6eff9 -DIST baselayout-1.12.14.tar.bz2 270679 RMD160 403731fb5d7acb6da26d660ae79661506114a387 SHA1 c425706243a38b321d6f786923a973f15ebe7f0e SHA256 81890e1a17666cc1ae490e4bb963ddc8b9aba8891ba3175a1869444200267ebc DIST baselayout-2.0.3.tar.bz2 39969 RMD160 ca4ae235382780cd386c89f0147fbe17bb599414 SHA1 c5dbcc2d131254b2bb14b782101e2318d1dfcd2d SHA256 879308781d845f467eb2b45b9ff006aa799e943f45ddba518f43acae1ec84bdd -EBUILD baselayout-1.12.14-r1.ebuild 19239 RMD160 793bf5292ab0bc4b97c790a22defbb959b3ac69b SHA1 94371e97745e0082a2b28d0c1db1c457b8c36a17 SHA256 e8325d9871c0e972cf64f83866e73debd166226fd0bc81c4f4d5b5a2ba6c490f EBUILD baselayout-2.0.3.ebuild 7366 RMD160 579ac15844268e72cd9e1f593501e9a5806f4043 SHA1 3dcb7064e613d063fbe2428f7e3f57d92a2d9219 SHA256 e72e760fbc2452212fee89e5f4c00437b11d7973b5c27933c58481e9a656f5a4 -MISC ChangeLog 107170 RMD160 be1d101f847a6a070c23e299ca7e3df0b809b85a SHA1 74f047ebee3bb1cc7507cd1aa4f76a7b302ee7e9 SHA256 58a8b2d4b9c213308c32bc5ec2af728805baa3968008d9f5d12b7263879ab70c +MISC ChangeLog 107332 RMD160 145138107380f64743786e6e3d9b8bc105999f1a SHA1 e6b53bfea19743f517991a86dc81b562f1245722 SHA256 c338cefe80534681a823122d023e52e78effee756798f63260bf13f30050e3df MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk5jnTMACgkQblQW9DDEZThFSACgnye0FprlB2VHtfF1GwJL8z8I -DZMAnA8Xw1SKnHZRQpMyM6oEl0HXVuPA -=eLD5 +iEYEARECAAYFAk5jvgYACgkQblQW9DDEZTgscACfTFj6ypb53w3qh4Hckre7TstX +pzwAnjDaeEtarJvzfxiB49kkZc+U0nzZ +=Pkpn -----END PGP SIGNATURE----- diff --git a/sys-apps/baselayout/baselayout-1.12.14-r1.ebuild b/sys-apps/baselayout/baselayout-1.12.14-r1.ebuild deleted file mode 100644 index f3e74bf52ff7..000000000000 --- a/sys-apps/baselayout/baselayout-1.12.14-r1.ebuild +++ /dev/null @@ -1,601 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-1.12.14-r1.ebuild,v 1.8 2011/07/08 10:11:58 ssuominen Exp $ - -inherit flag-o-matic eutils toolchain-funcs multilib - -DESCRIPTION="Filesystem baselayout and init scripts" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="mirror://gentoo/${P}.tar.bz2 - http://dev.gentoo.org/~uberlord/baselayout/${P}.tar.bz2 - http://dev.gentoo.org/~azarah/baselayout/${P}.tar.bz2 - http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -IUSE="bootstrap build static unicode" - -# This version of baselayout needs gawk in /bin, but as we do not have -# a c++ compiler during bootstrap, we cannot depend on it if "bootstrap" -# or "build" are in USE. -# We need to block old dhcpcd versions as they are no longer in system -# but may not be in users world file either. See bug #143885 -RDEPEND="virtual/init - !build? ( !bootstrap? ( - || ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp ) - >=sys-libs/readline-5.0-r1 - >=app-shells/bash-3.1_p7 - >=sys-apps/coreutils-5.2.1 - >=sys-apps/findutils-4.2.18 - ) ) - !<net-misc/dhcpcd-4" -DEPEND="virtual/os-headers - >=sys-apps/portage-2.0.51" -PDEPEND="!build? ( !bootstrap? ( >=sys-apps/module-init-tools-3.2.2-r3 ) )" - -src_unpack() { - unpack ${A} - cd "${S}" - - # Setup unicode defaults for silly unicode users - if use unicode ; then - sed -i -e '/^UNICODE=/s:no:yes:' etc/rc.conf - fi - - # Tweak arch-specific details - cd "${S}" - - epatch "${FILESDIR}"/${P}-iproute.patch #339013 - - case $(tc-arch) in - sparc) - # Disable interactive boot on sparc due to stty calls, #104067 - sed -i -e '/^RC_INTERACTIVE=/s:yes:no:' etc/conf.d/rc || die - ;; - esac - - # Use correct path to filefuncs.so on multilib systems - sed -i -e "s:/lib/rcscripts:/$(get_libdir)/rcscripts:" \ - src/awk/cachedepends.awk sbin/functions.sh || die -} - -src_compile() { - local libdir="lib" - - use static && append-ldflags -static - - [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") - - make -C "${S}"/src \ - CC="$(tc-getCC)" \ - LD="$(tc-getCC) ${LDFLAGS}" \ - CFLAGS="${CFLAGS}" \ - LIBDIR="${libdir}" || die -} - -# ${PATH} should include where to get MAKEDEV when calling this -# function -create_dev_nodes() { - case $(tc-arch) in - # amd64 must use generic-i386 because amd64/x86_64 does not have - # a generic option at this time, and the default 'generic' ends - # up erroring out, because MAKEDEV internally doesn't know what - # to use - arm*) suffix=-arm ;; - alpha) suffix=-alpha ;; - amd64) suffix=-i386 ;; - hppa) suffix=-hppa ;; - ia64) suffix=-ia64 ;; - m68k) suffix=-m68k ;; - mips*) suffix=-mips ;; - ppc*) suffix=-powerpc ;; - s390*) suffix=-s390 ;; - sh*) suffix=-sh ;; - sparc*) suffix=-sparc ;; - x86) suffix=-i386 ;; - esac - - einfo "Using generic${suffix} to make $(tc-arch) device nodes..." - MAKEDEV generic${suffix} - MAKEDEV sg scd rtc hde hdf hdg hdh input audio video -} - -# This is a temporary workaround until bug 9849 is completely solved -# in portage. We need to create the directories so they're available -# during src_install, but when src_install is finished, call unkdir -# to remove any empty directories instead of leaving them around. -kdir() { - typeset -a args - typeset d - - # Create the directories for the remainder of src_install, and - # remember how to create the directories later. - for d in "$@"; do - if [[ $d == /* ]]; then - install -d "${args[@]}" "${D}/${d}" - cat >> "${D}/usr/share/baselayout/mkdirs.sh" <<EOF -if [ ! -d "\${ROOT}/${d}" ] ; then \\ - install -d ${args[@]} "\${ROOT}/${d}" 2>/dev/null \\ - || ewarn " can't create ${d}" - touch "\${ROOT}/${d}/.keep" 2>/dev/null \\ - || ewarn " can't create ${d}/.keep" -fi -EOF - else - args=("${args[@]}" "${d}") - fi - done -} - -# Continued from kdir above... This function removes any empty -# directories as a temporary workaround for bug 9849. The directories -# (and .keep files) are re-created in pkg_postinst, which means they -# aren't listed in CONTENTS, unfortunately. -unkdir() { - einfo "Running unkdir to workaround bug 9849" - find "${D}" -depth -type d -exec rmdir {} \; 2>/dev/null - if [[ $? == 127 ]]; then - ewarn "Problem running unkdir: find command not found" - fi -} - -# Same as kdir above, but for symlinks #103618 -ksym() { - echo "[[ ! -e ${ROOT}/$2 ]] && { ln -s '$1' '${ROOT}/$2' &> /dev/null || ewarn ' unable to symlink $2 to $1' ; }" \ - >> "${D}"/usr/share/baselayout/mklinks.sh -} - -src_install() { - local dir libdirs libdirs_env rcscripts_dir - - # This directory is to stash away things that will be used in - # pkg_postinst; it's needed first for kdir to function - dodir /usr/share/baselayout - - # Jeremy Huddleston <eradicator@gentoo.org> - # For multilib, we want to make sure that all our multilibdirs exist - # and make lib even if it's not listed as one (like on amd64/ppc64 - # which sometimes has lib32/lib64 instead of lib/lib64). - # lib should NOT be a symlink to one of the other libdirs. - # Old systems with symlinks won't be affected by this change, as the - # symlinks already exist and won't get removed, but new systems will - # be setup properly. - # - # I'll be making a script to convert existing systems from symlink to - # nosymlink and putting it in /usr/portage/scripts. - libdirs=$(get_all_libdirs) - : ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... - - # This should be /lib/rcscripts, but we have to support old profiles too. - if [[ ${SYMLINK_LIB} == "yes" ]]; then - rcscripts_dir="/$(get_abi_LIBDIR ${DEFAULT_ABI})/rcscripts" - else - rcscripts_dir="/lib/rcscripts" - fi - - einfo "Creating directories..." - kdir /usr - kdir /usr/local - kdir /boot - kdir /dev - kdir /dev/pts - kdir /dev/shm - kdir /etc/conf.d - kdir /etc/cron.daily - kdir /etc/cron.hourly - kdir /etc/cron.monthly - kdir /etc/cron.weekly - kdir /etc/env.d - dodir /etc/init.d # .keep file might mess up init.d stuff - kdir /etc/modules.autoload.d - kdir /etc/modprobe.d - kdir /etc/opt - kdir /home - kdir ${rcscripts_dir} - kdir ${rcscripts_dir}/awk - kdir ${rcscripts_dir}/sh - kdir ${rcscripts_dir}/net - # Only install /mnt stuff at bootstrap time #88835 / #90022 - if use build ; then - kdir /mnt - kdir -m 0700 /mnt/cdrom - kdir -m 0700 /mnt/floppy - fi - kdir /opt - kdir -o root -g uucp -m0775 /var/lock - kdir /proc - kdir -m 0700 /root - kdir /sbin - kdir /sys # for 2.6 kernels - kdir /usr/bin - kdir /usr/include - kdir /usr/include/asm - kdir /usr/include/linux - kdir /usr/local/bin - kdir /usr/local/games - kdir /usr/local/sbin - kdir /usr/local/share - kdir /usr/local/share/doc - kdir /usr/local/share/man - kdir /usr/local/src - kdir ${PORTDIR} - kdir /usr/sbin - kdir /usr/share/doc - kdir /usr/share/info - kdir /usr/share/man - kdir /usr/share/misc - kdir /usr/src - kdir -m 1777 /tmp - kdir /var - dodir /var/db/pkg # .keep file messes up Portage - kdir /var/lib/misc - kdir /var/lock/subsys - kdir /var/log/news - kdir /var/run - kdir /var/spool - kdir /var/state - kdir -m 1777 /var/tmp - - for dir in ${libdirs}; do - libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir} - [[ ${dir} == "lib" && ${SYMLINK_LIB} == "yes" ]] && continue - kdir /${dir} - kdir /usr/${dir} - kdir /usr/local/${dir} - done - - # Ugly compatibility with stupid ebuilds and old profiles symlinks - if [[ ${SYMLINK_LIB} == "yes" ]] ; then - rm -r "${D}"/{lib,usr/lib,usr/local/lib} &> /dev/null - ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /lib - ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/lib - ksym $(get_abi_LIBDIR ${DEFAULT_ABI}) /usr/local/lib - fi - - # FHS compatibility symlinks stuff - ksym /var/tmp /usr/tmp - ksym share/man /usr/local/man - - # - # Setup files in /etc - # - insopts -m0644 - insinto /etc - doins -r "${S}"/etc/* || die - fperms 0640 /etc/sysctl.conf - - # Install some files to /usr/share/baselayout instead of /etc to keep from - # (1) overwriting the user's settings, (2) screwing things up when - # attempting to merge files, (3) accidentally packaging up personal files - # with quickpkg - fperms 0600 /etc/shadow - mv "${D}"/etc/{passwd,shadow,group,fstab,hosts,issue.devfix} "${D}"/usr/share/baselayout || die - - # doinitd doesnt respect symlinks - dodir /etc/init.d - cp -P "${S}"/init.d/* "${D}"/etc/init.d/ || die "doinitd" - #doinitd "${S}"/init.d/* || die "doinitd" - doconfd "${S}"/etc/conf.d/* || die "doconfd" - doenvd "${S}"/etc/env.d/* || die "doenvd" - insinto /etc/modules.autoload.d - doins "${S}"/etc/modules.autoload.d/* || die - insinto /etc/modprobe.d - doins "${S}"/etc/modprobe.d/* || die - - # Special-case uglyness... For people updating from lib32 -> lib amd64 - # profiles, keep lib32 in the search path while it's around - if has_multilib_profile && [ -d /lib32 -o -d /usr/lib32 ] && ! has lib32 ${libdirs}; then - libdirs_env="${libdirs_env}:/lib32:/usr/lib32:/usr/local/lib32" - fi - - # List all the multilib libdirs in /etc/env/04multilib (only if they're - # actually different from the normal - if has_multilib_profile || [[ $(get_libdir) != "lib" || -n ${CONF_MULTILIBDIR} ]]; then - echo "LDPATH=\"${libdirs_env}\"" > 04multilib - doenvd 04multilib - fi - - # As of baselayout-1.10-1-r1, sysvinit is its own package again, and - # provides the inittab itself - rm -f "${D}"/etc/inittab - - # Stash the rc-lists for use during pkg_postinst - cp -r "${S}"/rc-lists "${D}"/usr/share/baselayout - - # rc-scripts version for testing of features that *should* be present - echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release - - # - # Setup files related to /dev - # - into / - dosbin "${S}"/sbin/MAKEDEV - dosym ../../sbin/MAKEDEV /usr/sbin/MAKEDEV - dosym ../sbin/MAKEDEV /dev/MAKEDEV - - # - # Setup files in /bin - # - cd "${S}"/bin - dobin rc-status checkpath || die - - # - # Setup files in /sbin - # - cd "${S}"/sbin - into / - dosbin rc rc-update || die - dosym rc-update /sbin/update-rc - # These moved from /etc/init.d/ to /sbin to help newb systems - # from breaking - dosbin runscript.sh functions.sh || die - - # Compat symlinks between /etc/init.d and /sbin - # (some stuff have hardcoded paths) - dosym ../../sbin/depscan.sh /etc/init.d/depscan.sh - dosym ../../sbin/runscript.sh /etc/init.d/runscript.sh - dosym ../../sbin/functions.sh /etc/init.d/functions.sh - - # - # Setup files in /lib/rcscripts - # These are support files for other things in baselayout that needn't be - # under CONFIG_PROTECTed /etc - # - cd "${S}"/sbin - exeinto ${rcscripts_dir}/sh - doexe rc-services.sh rc-daemon.sh rc-help.sh || die - - # This is for new depscan.sh written in awk - cd "${S}"/sbin - into / - dosbin depscan.sh - insinto ${rcscripts_dir}/awk - doins "${S}"/src/awk/*.awk - - # Original design had these in /etc/net.modules.d but that is too - # problematic with CONFIG_PROTECT - dodir ${rcscripts_dir} - cp -pPR "${S}"/lib/rcscripts/net "${D}"${rcscripts_dir} - chown -R root:0 "${D}"${rcscripts_dir} - - # - # Install baselayout documentation - # - doman "${S}"/man/*.* - docinto / - dodoc "${S}"/ChangeLog{,.svn} - - # - # Install baselayout utilities - # - local libdir="lib" - [[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") - - cd "${S}"/src - emake DESTDIR="${D}" LIBDIR="${libdir}" install || die - - # Hack to fix bug 9849, continued in pkg_postinst - unkdir -} - -# Support function for remapping old wireless dns vars -remap_dns_vars() { - local f="$1" - - if [[ -f ${ROOT}/etc/conf.d/${f} ]]; then - sed -e 's/\<domain_/dns_domain_/g' \ - -e 's/\<mac_domain_/mac_dns_domain_/g' \ - -e 's/\<nameservers_/dns_servers_/g' \ - -e 's/\<mac_nameservers_/mac_dns_servers_/g' \ - -e 's/\<searchdomains_/dns_search_domains_/g' \ - -e 's/\<mac_searchdomains_/mac_dns_search_domains_/g' \ - "${ROOT}"/etc/conf.d/${f} > "${D}"/etc/conf.d/${f} - fi -} - -pkg_preinst() { - # When downgrading from 1.13 we need to erase net.lo as it's a symlink - # and it's about to become a file - this is fatal in /etc - [[ -L "${ROOT}"etc/init.d/net.lo ]] && rm -f "${ROOT}"etc/init.d/net.lo - - # Reincarnate dirs from kdir/unkdir (hack for bug 9849) - # This needs to be in pkg_preinst() rather than pkg_postinst() as - # portage may create some dirs/files that'll screw us up (like /usr/lib/debug) - einfo "Creating directories and .keep files." - einfo "Some of these might fail if they're read-only mounted" - einfo "filesystems, for example /dev or /proc. That's okay!" - source "${D}"/usr/share/baselayout/mkdirs.sh - source "${D}"/usr/share/baselayout/mklinks.sh - echo - - if [[ -f ${ROOT}/etc/modules.autoload && ! -d ${ROOT}/etc/modules.autoload.d ]]; then - mkdir -p "${ROOT}"/etc/modules.autoload.d - mv -f "${ROOT}"/etc/modules.autoload \ - "${ROOT}"/etc/modules.autoload.d/kernel-2.4 - ln -snf modules.autoload.d/kernel-2.4 "${ROOT}"/etc/modules.autoload - fi - - # Change some vars introduced in baselayout-1.11.0 before we go stable - # The new names make more sense and allow nis_domain - # for use in baselayout-1.12.0 - remap_dns_vars net - remap_dns_vars wireless -} - -pkg_postinst() { - local x y - - # Create /boot/boot symlink in pkg_postinst because sometimes - # /boot is a FAT filesystem. When that is the case, then the - # symlink will fail. Consequently, if we create it in - # src_install, then merge will fail. AFAIK there is no point to - # this symlink except for misconfigured grubs. See bug 50108 - # (05 May 2004 agriffis) - ln -sn . "${ROOT}"/boot/boot 2>/dev/null - - # For the bootstrap scenario with an empty /dev, let's fill the - # sucker with generic crude ... some day we should think about - # slimming this way down as we've moved on to udev/devfs - if use build ; then - if [[ ! -e ${ROOT}/dev/.devfsd && ! -e ${ROOT}/dev/.udev ]] ; then - echo - einfo "Making device node tarball (this could take a couple minutes)" - cd "${ROOT}"/dev || die - PATH=${ROOT}/sbin:${PATH} create_dev_nodes - fi - fi - - # Set up default runlevel symlinks - # This used to be done in src_install but required knowledge of ${ROOT}, - # which meant that it was effectively broken for binary installs. - if [[ -z $(/bin/ls "${ROOT}"/etc/runlevels 2>/dev/null) ]]; then - for x in boot default nonetwork single; do - einfo "Creating default runlevel symlinks for ${x}" - mkdir -p "${ROOT}"/etc/runlevels/${x} - for y in $(<"${ROOT}"/usr/share/baselayout/rc-lists/${x}); do - if [[ ! -e ${ROOT}/etc/init.d/${y} ]]; then - ewarn "init.d/${y} not found -- ignoring" - else - ln -sfn /etc/init.d/${y} \ - "${ROOT}"/etc/runlevels/${x}/${y} - fi - done - done - fi - - # Create /etc/hosts in pkg_postinst so we don't overwrite an - # existing file during bootstrap - if [[ ! -e ${ROOT}/etc/hosts ]]; then - cp "${ROOT}"/usr/share/baselayout/hosts "${ROOT}"/etc - fi - - # Touching /etc/passwd and /etc/shadow after install can be fatal, as many - # new users do not update them properly... see src_install() for why they - # are in /usr/share/baselayout/ - for x in passwd shadow group fstab ; do - if [[ -e ${ROOT}/etc/${x} ]] ; then - touch "${ROOT}/etc/${x}" - else - cp "${ROOT}/usr/share/baselayout/${x}" "${ROOT}/etc/${x}" - fi - done - - # Under what circumstances would mtab be a symlink? It would be - # nice if there were an explanatory comment here - if [[ -L ${ROOT}/etc/mtab ]]; then - rm -f "${ROOT}/etc/mtab" - if [[ ${ROOT} == / ]]; then - cp /proc/mounts "${ROOT}/etc/mtab" - else - touch "${ROOT}/etc/mtab" - fi - fi - - # We should only install empty files if these files don't already exist. - [[ -e ${ROOT}/var/log/lastlog ]] || \ - touch "${ROOT}/var/log/lastlog" - [[ -e ${ROOT}/var/run/utmp ]] || \ - install -m 0664 -g utmp /dev/null "${ROOT}/var/run/utmp" - [[ -e ${ROOT}/var/log/wtmp ]] || \ - install -m 0664 -g utmp /dev/null "${ROOT}/var/log/wtmp" - - # Reload init to fix unmounting problems of / on next reboot. - # This is really needed, as without the new version of init cause init - # not to quit properly on reboot, and causes a fsck of / on next reboot. - if [[ ${ROOT} == / ]] && ! use build && ! use bootstrap; then - # Regenerate init.d dependency tree - /sbin/depscan.sh --update &>/dev/null - else - rm -f "${ROOT}"/etc/modules.conf - fi - - # This is also written in src_install (so it's in CONTENTS), but - # write it here so that the new version is immediately in the file - # (without waiting for the user to do etc-update) - rm -f "${ROOT}"/etc/._cfg????_gentoo-release - echo "Gentoo Base System release ${PV}" > "${ROOT}"/etc/gentoo-release - - echo - einfo "Please be sure to update all pending '._cfg*' files in /etc," - einfo "else things might break at your next reboot! You can use 'etc-update'" - einfo "to accomplish this:" - einfo - einfo " # etc-update" - echo - - for f in "${ROOT}"etc/init.d/net.* ; do - [[ -L ${f} || ${f} == "${ROOT}etc/init.d/net.lo" ]] && continue - echo - einfo "WARNING: You have older net.* files in ${ROOT}etc/init.d/" - einfo "They need to be converted to symlinks to net.lo. If you haven't" - einfo "made personal changes to those files, you can update with the" - einfo "following command:" - einfo - einfo " /bin/ls '${ROOT}'etc/init.d/net.* | grep -v '/net.lo$' | xargs -n1 ln -sfvn net.lo" - echo - break - done - - if sed -e 's/#.*//' "${ROOT}"/etc/conf.d/{net,wireless} 2>/dev/null \ - | egrep -q '\<(domain|nameservers|searchdomains)_' ; then - echo - ewarn "You have deprecated variables in ${ROOT}/etc/conf.d/net" - ewarn "or ${ROOT}/etc/conf.d/wireless" - ewarn - ewarn "domain_* -> dns_domain_*" - ewarn "nameservers_* -> dns_servers_*" - ewarn "searchdomains_* -> dns_search_domains_*" - ewarn - ewarn "They have been converted for you - ensure that you" - ewarn "update them via 'etc-update'" - echo - fi - - if sed -e 's/#.*//' "${ROOT}"/etc/conf.d/net 2>/dev/null \ - | egrep -q '\<(iface_|gateway=|ifconfig_|aliases_|broadcasts_|netmasks_|inet6_|ipaddr_|iproute_)'; then - echo - ewarn "You are using deprecated variables in ${ROOT}/etc/conf.d/net" - ewarn - ewarn "You are advised to review the new configuration variables as" - ewarn "found in '${ROOT}'/etc/conf.d/net.example as there is no" - ewarn "guarantee that they will work in future versions." - echo - fi - - # Remove old stuff that may cause problems. - if [[ -e "${ROOT}"/etc/env.d/01hostname ]] ; then - rm -f "${ROOT}"/etc/env.d/01hostname - fi - if [[ -e "${ROOT}"/etc/init.d/domainname ]] ; then - rm -f "${ROOT}"/etc/init.d/domainname - rm -f "${ROOT}"/etc/runlevels/*/domainname - ewarn "The domainname init script has been removed in this version." - ewarn "Consult '${ROOT}'/etc/conf.d/net.example for details about how" - ewarn "to apply dns/nis information to the loopback interface." - fi - - elog "The default setting for wiping /tmp has been set to 'yes'." - elog "Consult /etc/conf.d/bootmisc for more information." -} - -pkg_prerm() { - # Older baselayout installed a net.eth0 link by default - # which means during an upgrade, that link gets lost - if has_version '=sys-apps/baselayout-2*' && [[ -L ${ROOT}/etc/init.d/net.eth0 ]] ; then - readlink "${ROOT}"/etc/init.d/net.eth0 > "${T}"/carry-the-0 - else - rm -f "${T}"/carry-the-0 - fi -} - -pkg_postrm() { - # Older baselayout installed a net.eth0 link by default - # which means during an upgrade, that link gets lost - if has_version '=sys-apps/baselayout-2*' && - [[ ! -e ${ROOT}/etc/init.d/net.eth0 ]] && - [[ -e ${T}/carry-the-0 ]] - then - ln -s $(<"${T}"/carry-the-0) "${ROOT}"/etc/init.d/net.eth0 - fi -} diff --git a/sys-apps/baselayout/files/baselayout-1.12.14-iproute.patch b/sys-apps/baselayout/files/baselayout-1.12.14-iproute.patch deleted file mode 100644 index 8d1488623410..000000000000 --- a/sys-apps/baselayout/files/baselayout-1.12.14-iproute.patch +++ /dev/null @@ -1,18 +0,0 @@ -r3179 | vapier | 2010-10-03 17:20:25 -0400 (Sun, 03 Oct 2010) | 1 line - -fix infinite recursion with ip invocation #339013 by Krzysztof Olędzki - -Index: net-scripts/net/iproute2.sh -=================================================================== ---- lib/rcscripts/net/iproute2.sh (revision 3178) -+++ lib/rcscripts/net/iproute2.sh (revision 3179) -@@ -5,7 +5,8 @@ - # Fix any potential localisation problems - # Note that LC_ALL trumps LC_anything_else according to locale(7) - ip() { -- LC_ALL=C ip "$@" -+ # use the full path so we don't recurse into ip() -+ LC_ALL=C $(type -P ip) "$@" - } - iproute2_tunnel() { - LC_ALL=C ip tunnel "$@" |