Remove broken 0.13.x versions. Bug #531600 was a memory management issue that was...
authorWilliam Hubbs <williamh@gentoo.org>
Thu, 15 Jan 2015 16:23:56 +0000 (16:23 +0000)
committerWilliam Hubbs <williamh@gentoo.org>
Thu, 15 Jan 2015 16:23:56 +0000 (16:23 +0000)
Package-Manager: portage-2.2.15/cvs/Linux x86_64
Manifest-Sign-Key: 0x30C46538

sys-apps/openrc/ChangeLog
sys-apps/openrc/Manifest
sys-apps/openrc/openrc-0.13.1.ebuild [deleted file]
sys-apps/openrc/openrc-0.13.2.ebuild [deleted file]
sys-apps/openrc/openrc-0.13.3.ebuild [deleted file]
sys-apps/openrc/openrc-0.13.4.ebuild [deleted file]
sys-apps/openrc/openrc-0.13.5.ebuild [deleted file]
sys-apps/openrc/openrc-0.13.6.ebuild [deleted file]

index 299e8608a10471504ce029d0c4a8ef2766ade349..ecc2c7574b2654de62b158a6b307a36bb87686c6 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-apps/openrc
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.318 2015/01/15 16:18:28 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/ChangeLog,v 1.319 2015/01/15 16:23:55 williamh Exp $
+
+  15 Jan 2015; William Hubbs <williamh@gentoo.org> -openrc-0.13.1.ebuild,
+  -openrc-0.13.2.ebuild, -openrc-0.13.3.ebuild, -openrc-0.13.4.ebuild,
+  -openrc-0.13.5.ebuild, -openrc-0.13.6.ebuild:
+  Remove broken 0.13.x versions. Bug #531600 was a memory management issue that
+  was present in most of this series; it was fixed in 0.13.7, so everyone should
+  run this version.
 
 *openrc-0.13.7 (15 Jan 2015)
 
index b2f080598b75a0c94946fdc188769d1b5b3dab68..667141a4adf73912fdab62063131f88bdc837ec0 100644 (file)
@@ -8,28 +8,16 @@ AUX openrc-9999-pause.patch 825 SHA256 ffa34418921d30c589ad762a5d6d7640c37e7279c
 AUX openrc.logrotate 71 SHA256 0b44210db9770588bd491cd6c0ac9412d99124c6be4c9d3f7d31ec8746072f5c SHA512 690612fddfb2c4cf8f6b5ba7239b9faf29eb3d9b152ab4dcf62694aa2852780440d08cee56d98a9597607f446b3697c911269562821a8402bb5747cbbae34bd9 WHIRLPOOL 8678c51583c77a4985760e4ea2082e7214f28b68cad460b362d683db71067cf6031e1f3275e83ac7959b0973cdafd0a4102525fe7b0d975798ec2182d1fd2769
 AUX start-stop-daemon.pam 63 SHA256 2681da17e4a122656b5303b7c7eca82b8fb182641290b153fdbe96b63638086d SHA512 85cf440611b8f87f51bf24bdd9fa03639a75b950f00096d81b8826c21ae85ff9784b8c56b8ddb482e70f08bce933d4561b30750346d51fb2cef3be34acc065cb WHIRLPOOL 4abc9f051155a62d3033258a06003a4ca3909d8104deca84d5c1605bc1c7e56167fd82b2b4b72fe7b707070de98a7628730de1ad3f14b924b5b1480fba5ef854
 DIST openrc-0.12.4.tar.bz2 131914 SHA256 c4edda2fff4b613f50b9cc265bb457a9ab0170fbc1fe7c26eccd4a5d63b2625c SHA512 14e188e382dfe02037d3e4211fa3265152d5ec92ca491b1e86154c0615583ddfc0a2592ca849ab453068dd60000886e57e7da024036fa58d7474acdbb6b92208 WHIRLPOOL 7bdc2c310ee6e87a439574f377a3c1541a118b4122d098d727f6d4464e9f645e5a4d40bedfc82f401b53e640e78494f74fac94f9b6813eb202cc18d1c5391280
-DIST openrc-0.13.1.tar.bz2 135712 SHA256 c2eeea257aa8b6b614fa69a73dd1dbc8b8a0a80e283a73e12356c212414540f6 SHA512 01e92c213cd9cda8f6d16b5428c63338f836dd047d2dd6032f37dd192a791b05be7233c20210219b594d4ef8b0851f7f64f04503e484a577f085991028d30b36 WHIRLPOOL 4f61a8a97ad53eeb8af0796ae2460538598d3f8f7ac6938f55ed454753a2e6542fef818e832d4a667dd1a924981383c87c7805ee2ea1d77b31a6fe9132616523
-DIST openrc-0.13.2.tar.bz2 141784 SHA256 6552cbc58f86ad6cb680c3ee5544ced1865bee8edb3543473eccc6aeaaf47855 SHA512 e4209691136cbe7bb66c4b0a927c416afe54ae1fbf9678d51b5766e6dab51ab7f59ccdf16e6b375e97c53707f486b6e19b49a27b762ad6fd3eecac391033e801 WHIRLPOOL 7e2bfe3f3fc17aaa9a8a8cb0f7294e16d80eba256ed1e40fb2e4075af25b4c196f22a132e6aeab386bd31077529cd5feaeb23e07a851ab51af4a4d68f1bc0047
-DIST openrc-0.13.3.tar.bz2 141800 SHA256 6be45d4ba3d7c5b5e7c1b335bf25143eca780d7259ea9eda5ee46a6e91af69aa SHA512 e1a889e1812aebff3e4ca9a24d71c3cf1a535f3499c1a4d957f63c458a7a46a7780e1dccc23fe3f2ae51946bec53a027d602d4f89f362510edabff72fd7e6c1f WHIRLPOOL 74c990078bd819b1a78c533861ac4fbc91e0190e4c869c7fdbbd98fc43ff471264e8711505a037b3ef1e096dff82738b4e592a5f63fe20254ab9556fee175e1d
-DIST openrc-0.13.4.tar.bz2 141771 SHA256 41adddd95644f96bc5fec0d1da8ae498698181374e731b17428d88ed362bdf28 SHA512 9d0980a552e2a54eb77cbc771834a61320919b31679ce4d99439b01619a434ef00258c48bba747a1081ba68766b7a6eba1e488facb4ff83d359d0c3741588182 WHIRLPOOL f3f40a712d4caa0d68bb96422c158ac9cdd45cdffc9a067c39fe894dbc3f3fcaa4e6f473f372a2a693adad957b82a43cad26588e883af20b9337eb5337ecea90
-DIST openrc-0.13.5.tar.bz2 141817 SHA256 4b6b83d85e5266161f733c4c7237662013cb1d08e5c2c207ef0e9b68f541f8b3 SHA512 7bfdf137fc0e145fef323bb2e76775518b4f31ea7eca086aef5a3682cc85c035f998418d1e7c1f7f4c9a1d42af2d982caf49510ae88b89bd4acbef6b7df9dd55 WHIRLPOOL 6549fae890a56091b0dd93a0aab3665bfea926b203da0d36375f6baf4f2adaa87af57fd3b67a674059a628188e7d189709f8bbc510c96fb6fa659318c3a56c9c
-DIST openrc-0.13.6.tar.bz2 141885 SHA256 ddd38ab1ceaa5c62d0d78602bdf64b2452aebc05306142d4623662ab92dae33a SHA512 19aa91d7feb3c93309c91b642b3626d1d211f42c9e537e2e51f1bd3c481a764c665e51ca21de0edb8d82ee4a7f092e5479520062e9249dba5ef1ee743e831a52 WHIRLPOOL 2c93d256a9959a426c39d2c06ac7c68c9517b9044930ebdc4d7b937d0071c6979c7fca5b06e94387bfc645e2d6ee6eb5a4e552377868bf9736ddc8a222a86cbe
 DIST openrc-0.13.7.tar.bz2 151392 SHA256 f74bb193eba4b3448594bd81f4369a730f9215fa7ca4406eddd60df158881a3b SHA512 0cd8885bee888508b8d6d20c38310fc903b7a6de04081bdafa6c1ff06f3d8275c93e1e4ae077548628ebad89809f93cf8b18edfd4bb6e196a7b6ed5534fce08b WHIRLPOOL 5a6a526e8422eabd80062eef4f58c5344b57db6776bf4e5e5e69ac640e52fe056a64dafc56c3b0ed05d6ea2e1864d6c45ed171d10ab458901bd9ddcb4c0d5805
 EBUILD openrc-0.12.4.ebuild 10526 SHA256 ab99de60778f73bbd9586baee6076a89d9940e75132ece301800b3503b890199 SHA512 7c5f845188914577e227acb1a4a12683a2ee02c0629480ca0d9424f0270ec0108a05008dadb277887eca0cf9294bdb30cf5bc1daa6563c573a69b59ef98c60e8 WHIRLPOOL faa90225269168bda71f7bd91f676cf285ac7ebde5b4f8dcda4b52a1a5189a3de808d2f1bee11474f39df520d331644f0bc92f866e74d21fa51507d5856b80fe
-EBUILD openrc-0.13.1.ebuild 10639 SHA256 809d365303800e8d328167bbe38ede56dea33909373ddbb2bb4613f61b7ccd16 SHA512 82b2a6555ab816c03737b3460541ac37e38cf4001853fda4bc4210ee17be0d2c8572da385edd4a9935f148f505d169d8f34eaf7f3d7e60b0d3b03c69597c2787 WHIRLPOOL 064ebc4249bcd134b726a01b0869ac71f9eb17ba163675895e102b5e28e05f821de035a0a74a99f29ad457f73f99ddb8c1c74e6b8c929aef5cd59b7b1ad7ca25
-EBUILD openrc-0.13.2.ebuild 10689 SHA256 5545881c334479510f6590256b943a2d6a8f2de39c0318bf133047a84c63f105 SHA512 3c47c67f2f9450441d816d05fc6af74e722931ccfacb009b2b9059fee8c864d38fe363206a3e1b40004139c00e68093554ae704c9cef519589e5c911cf96ba1d WHIRLPOOL 3cea2ccb05993d9d5c9ddf73aac33ef04dae4a818d2b4b4e229ce0b81771824f4d76ba25edf426cf3d5bb39868c4b521498be09065683eea08f47c9bc56605f9
-EBUILD openrc-0.13.3.ebuild 10689 SHA256 a6deb3add539905a3cb3ad613f23e80f92c9cff5f864c324d3a54d1fb7d988a3 SHA512 b52fa219a227c2ee3e787f93baec7dd14c4e6d0c8da7cc65408c4a122303f6fe826e2514c6f6228d8ec2bf4eb29ac22441bbf89d8b5e67f9106adea6411e2214 WHIRLPOOL 453bd850e2c9a27bea417eca57c60d59f89dedc3a5a4058340429a937fcc4220a6db2bf5f9fbaee3c7e35c6fad8d884b26860203bb34ddc37e9ea1a89d3fd274
-EBUILD openrc-0.13.4.ebuild 10689 SHA256 238d8dd2b7d69b7b0db092f8e2f9b1b238b104308e4b3baefecc225317331157 SHA512 5f7222a66910cf766a700865dc432c5b8f36e17909affb2cc116bebe7201f2b8938ab1045ec0347a81b768b17225288b1a05faefb302c7db3ec4d1a18f506c53 WHIRLPOOL a055a88eb7fae7fa5c6d724c17841dc634294d862285bd9411b04ab5a6cd0db6793bf2602432f0c11022c28a85d300e3c49a89c7063333a18db68de750789919
-EBUILD openrc-0.13.5.ebuild 10692 SHA256 063c35b6fb8b77de6890840d60360601adea4d373960d95ce23d3b225dd315b6 SHA512 1c6b347e5b8367de6041e5d987d1ca04a9fb1941228e26008f9a2a835a9acb80117d74d2fa92697ce47403ab40f64419753be8fc3843d00cc5861e0a27c10e89 WHIRLPOOL 3fd06337e1795197e1bd21112d10f51c7af6024f93c988f01d5294c00f80a07be523a75fc4773112a201ffb546899402369da76392566c59403fb5bcd1892f60
-EBUILD openrc-0.13.6.ebuild 10692 SHA256 543ade331ee497d3f68acf68507ff59eb8830c73ea0038c4fded8df5abf2de3f SHA512 42e7f4da5825d69867d1ec0835aed7c61ac31ef0103abdc4f432d2212ffb33fbcd32be09be6889cc3af2a504d1edcb5af29fe5b231ee1cc99f01c4186d014d34 WHIRLPOOL 0960210afaa30b817afd76fff6d39636191b0a423e4e7ca7ccd8088e3a21e7b772935e194db923859d7bf2ba68ec3fabb47701e47dd5b80c805a7fc3b5efdd15
 EBUILD openrc-0.13.7.ebuild 10705 SHA256 c803ede2938b6ff32fcde5223edf3e16f6a3b6b5502149766639a9cd84ba883c SHA512 f47239a3ed7dc7fb519ca2884a11b7a3a6fc663f8dc45e64d1a60a977ef07b71c761f7e422f6765836758d7fe120817a432eb15a806b36a41156eaa191f7ae3d WHIRLPOOL a06cb5b3e39c974531391b8c7abc147a1da6d2a0335b5a5f762ac3e4ffd488030e00ebd27068f6661b63da7af762180e94913203f6a02dd72313b6c3b60e3ca9
 EBUILD openrc-9999.ebuild 10780 SHA256 4d533acf9a622974008338d96b1f9db6cc7af3ff3310c9903b4da4319344d018 SHA512 7e384592556be09a3395e365a345373a5aa8803e291cc4c8cb728d3beba3a333c876c64b02f1d0e4511def83525d853364daa48e7622a0209e4c4c60229374ea WHIRLPOOL 23916371cc1419ee38da7b4d9e840918ccf1fb1257dc80b21d178a02aa673ea4d53726fd0e78e30ff88b2b0a6bae6683284fe218397767d0f8796247abec0c76
-MISC ChangeLog 52130 SHA256 4408de091292c461188e123805df8546daae033f84046553e0c618450e7c4480 SHA512 31557b8be635ad73a541496b3fa4d5f428d727049a2099fc04198d7c84de7f966be1359791c0af69dc89371a78fcfff390769b870d4ea90b3677c400063d1cea WHIRLPOOL 20492442d241c2f7d919b751980250c2979295bcb03c40b02d11445e4a76774ffea0716f5b33e79bf4d41d30b4e849c9b5a7f2b0b0132fb0fa30020d601a8134
+MISC ChangeLog 52505 SHA256 3b79b4663e4e75b1864e6570f682f04556b17aeab199bdfe4c56e89fb36fe7bc SHA512 e3bd3540ee22f6db033b0f7a98ac1b0d614b6971dce91b67ca854ccc357e2a8436e0dc57ee747915a32b24684e5a90689776a7a689951a8aa8108192a39fdb2f WHIRLPOOL 34e6db5c77478fb83821e42b8280cce3991df1b3bc15ea37734587e0c14dc5e51b0d262e31f16e75bf4e759ffe5ac58c9e2347b928d648815a6fbcbfc8554186
 MISC metadata.xml 442 SHA256 f823e0d3ab1b90455d2cee346582ab02c3ad2746a09a6f1ab0879ebd6d62ceff SHA512 9ab114930529ee9d146de58e3d330ec049462fcda9cf7e8627e8f5f0bc86276b0c07015d0c5758987732d09e007464849d4ee4c464c9af732fda53c125d0685e WHIRLPOOL 5339a9d7f49dc292f5cff108e576ace3492d9c685df98530a14041c41d809ef141b6785717e56ede7a63928a589cc01883b724854ba159735aab9787dea1efe3
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iEYEAREIAAYFAlS36FoACgkQblQW9DDEZTgj7ACgindSm1Db2EMW9tYKMT6v4VL0
-PjkAoKgQWcwpccrZ/FVd8p1HCKrKknP5
-=kPSJ
+iEYEAREIAAYFAlS36ZwACgkQblQW9DDEZTi1uwCfbuvAT2jZ7BVRMwccbnta3aS4
+ka4AnRAlDjOhFsnIFza8Njxe/9i/UpSB
+=0Uoc
 -----END PGP SIGNATURE-----
diff --git a/sys-apps/openrc/openrc-0.13.1.ebuild b/sys-apps/openrc/openrc-0.13.1.ebuild
deleted file mode 100644 (file)
index 9c42cc9..0000000
+++ /dev/null
@@ -1,323 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.13.1.ebuild,v 1.3 2014/11/02 09:54:49 swift Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib pam toolchain-funcs
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
-
-if [[ ${PV} == "9999" ]]; then
-       EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
-       inherit git-r3
-else
-       SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs
-       tools unicode kernel_linux kernel_FreeBSD"
-
-COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
-       elibc_glibc? ( >=sys-libs/glibc-2.5 )
-       ncurses? ( sys-libs/ncurses )
-       pam? ( sys-auth/pambase )
-       tools? ( dev-lang/perl )
-       kernel_linux? (
-               sys-process/psmisc
-               !<sys-process/procps-3.3.9-r2
-       )
-       selinux? ( sys-libs/libselinux )
-       !<sys-apps/baselayout-2.1-r1
-       !<sys-fs/udev-init-scripts-27"
-DEPEND="${COMMON_DEPEND}
-       virtual/os-headers
-       ncurses? ( virtual/pkgconfig )"
-RDEPEND="${COMMON_DEPEND}
-       !prefix? (
-               kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
-               kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
-       )
-       selinux? (
-               sec-policy/selinux-base-policy
-               sec-policy/selinux-openrc
-       )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_prepare() {
-       sed -i 's:0444:0644:' mk/sys.mk || die
-
-       if [[ ${PV} == "9999" ]] ; then
-               local ver="git-${EGIT_VERSION:0:6}"
-               sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
-       fi
-
-       # Allow user patches to be applied without modifying the ebuild
-       epatch_user
-}
-
-src_compile() {
-       unset LIBDIR #266688
-
-       MAKE_ARGS="${MAKE_ARGS}
-               LIBNAME=$(get_libdir)
-               LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
-               MKNET=$(usex newnet)
-               MKSELINUX=$(usex selinux)
-               MKSTATICLIBS=$(usex static-libs)
-       MKTOOLS=$(usex tools)"
-
-       local brand="Unknown"
-       if use kernel_linux ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=Linux"
-               brand="Linux"
-       elif use kernel_FreeBSD ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
-               brand="FreeBSD"
-       fi
-       export BRANDING="Gentoo ${brand}"
-       use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
-       export DEBUG=$(usev debug)
-       export MKPAM=$(usev pam)
-       export MKTERMCAP=$(usev ncurses)
-
-       tc-export CC AR RANLIB
-       emake ${MAKE_ARGS}
-}
-
-# set_config <file> <option name> <yes value> <no value> test
-# a value of "#" will just comment out the option
-set_config() {
-       local file="${ED}/$1" var=$2 val com
-       eval "${@:5}" && val=$3 || val=$4
-       [[ ${val} == "#" ]] && com="#" && val='\2'
-       sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
-}
-
-set_config_yes_no() {
-       set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
-       emake ${MAKE_ARGS} DESTDIR="${D}" install
-
-       # move the shared libs back to /usr so ldscript can install
-       # more of a minimal set of files
-       # disabled for now due to #270646
-       #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
-       #gen_usr_ldscript -a einfo rc
-       gen_usr_ldscript libeinfo.so
-       gen_usr_ldscript librc.so
-
-       if ! use kernel_linux; then
-               keepdir /$(get_libdir)/rc/init.d
-       fi
-       keepdir /$(get_libdir)/rc/tmp
-
-       # Backup our default runlevels
-       dodir /usr/share/"${PN}"
-       cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
-       rm -rf "${ED}"/etc/runlevels
-
-       # Setup unicode defaults for silly unicode users
-       set_config_yes_no /etc/rc.conf unicode use unicode
-
-       # Cater to the norm
-       set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
-
-       # On HPPA, do not run consolefont by default (bug #222889)
-       if use hppa; then
-               rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
-       fi
-
-       # Support for logfile rotation
-       insinto /etc/logrotate.d
-       newins "${FILESDIR}"/openrc.logrotate openrc
-
-       # install the gentoo pam.d file
-       newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
-
-       # install documentation
-       dodoc README README.busybox README.history      FEATURE-REMOVAL-SCHEDULE
-       if use newnet; then
-               dodoc README.newnet
-       fi
-}
-
-add_boot_init() {
-       local initd=$1
-       local runlevel=${2:-boot}
-       # if the initscript is not going to be installed and is not
-       # currently installed, return
-       [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
-               || return
-       [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
-
-       # if runlevels dont exist just yet, then create it but still flag
-       # to pkg_postinst that it needs real setup #277323
-       if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
-               mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-               touch "${EROOT}"etc/runlevels/.add_boot_init.created
-       fi
-
-       elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-       ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
-add_boot_init_mit_config() {
-       local config=$1 initd=$2
-       if [[ -e ${EROOT}${config} ]] ; then
-               if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
-                       add_boot_init ${initd}
-               fi
-       fi
-}
-
-pkg_preinst() {
-       local f LIBDIR=$(get_libdir)
-
-       # avoid default thrashing in conf.d files when possible #295406
-       if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
-               (
-               unset hostname HOSTNAME
-               source "${EROOT}"etc/conf.d/hostname
-               : ${hostname:=${HOSTNAME}}
-               [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
-               )
-       fi
-
-       # set default interactive shell to sulogin if it exists
-       set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
-
-       # termencoding was added in 0.2.1 and needed in boot
-       has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
-
-       # swapfiles was added in 0.9.9 and needed in boot (february 2012)
-       has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
-
-       if ! has_version ">=sys-apps/openrc-0.11"; then
-               add_boot_init sysfs sysinit
-       fi
-
-       if ! has_version ">=sys-apps/openrc-0.11.3" ; then
-               migrate_udev_mount_script
-               add_boot_init tmpfiles.setup boot
-       fi
-
-       # these were added in 0.12.
-       if ! has_version ">=sys-apps/openrc-0.12"; then
-               add_boot_init loopback
-               add_boot_init tmpfiles.dev sysinit
-
-               # ensure existing /etc/conf.d/net is not removed
-               # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
-               # this needs to stay in openrc ebuilds for a long time. :(
-               # Added in 0.12.
-               if [[ -f "${EROOT}"etc/conf.d/net ]]; then
-                       einfo "Modifying conf.d/net to keep it from being removed"
-                       cat <<-EOF >>"${EROOT}"etc/conf.d/net
-
-# The network scripts are now part of net-misc/netifrc
-# In order to avoid sys-apps/${P} from removing this file, this comment was
-# added; you can safely remove this comment.  Please see
-# /usr/share/doc/netifrc*/README* for more information.
-EOF
-               fi
-       fi
-}
-
-# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
-migrate_udev_mount_script() {
-       if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
-               ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
-               add_boot_init udev-mount sysinit
-       fi
-       return 0
-}
-
-pkg_postinst() {
-       local LIBDIR=$(get_libdir)
-
-       # Make our runlevels if they don't exist
-       if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
-               einfo "Copying across default runlevels"
-               cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
-               rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
-       else
-               if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/sysinit
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
-                               "${EROOT}"etc/runlevels/sysinit
-               fi
-               if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/shutdown
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
-                               "${EROOT}"etc/runlevels/shutdown
-               fi
-       fi
-
-       if use hppa; then
-               elog "Setting the console font does not work on all HPPA consoles."
-               elog "You can still enable it by running:"
-               elog "# rc-update add consolefont boot"
-       fi
-
-       # Handle the conf.d/local.{start,stop} -> local.d transition
-       if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
-               elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
-               elog "files to ${EROOT}etc/local.d"
-               mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
-               mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
-               chmod +x "${EROOT}"etc/local.d/*{start,stop}
-       fi
-
-       if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
-               if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
-                       ewarn "The dependency data could not be migrated to /run/openrc."
-                       ewarn "This means you need to reboot your system."
-               fi
-       fi
-
-       # update the dependency tree after touching all files #224171
-       [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
-
-       if ! use newnet && ! use netifrc; then
-               ewarn "You have emerged OpenRc without network support. This"
-               ewarn "means you need to SET UP a network manager such as"
-               ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
-               ewarn "net-misc/NetworkManager, or net-misc/badvpn."
-               ewarn "Or, you have the option of emerging openrc with the newnet"
-               ewarn "use flag and configuring /etc/conf.d/network and"
-               ewarn "/etc/conf.d/staticroute if you only use static interfaces."
-       fi
-
-       if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
-               ewarn "Please add the network service to your boot runlevel"
-               ewarn "as soon as possible. Not doing so could leave you with a system"
-               ewarn "without networking."
-       fi
-
-       ewarn "In this version of OpenRC, the loopback interface no longer"
-       ewarn "satisfies the net virtual."
-       ewarn "If you have services now which do not start because of this,"
-       ewarn "They can be fixed by adding rc_need=\"!net\""
-       ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
-       ewarn "You should also file a bug against the service asking that"
-       ewarn "need net be dropped from the dependencies."
-       ewarn "The bug you file should block the following tracker:"
-       ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
-
-       ewarn "This version of OpenRC doesn't enable nfs mounts automatically any"
-       ewarn "longer. In order to mount nfs file systems, you must use the"
-       ewarn "nfsmount service from the nfs-utils package."
-       ewarn "See bug https://bugs.gentoo.org/show_bug.cgi?id=427996 for"
-       ewarn "more information on this."
-
-       elog "You should now update all files in /etc, using etc-update"
-       elog "or equivalent before restarting any services or this host."
-}
diff --git a/sys-apps/openrc/openrc-0.13.2.ebuild b/sys-apps/openrc/openrc-0.13.2.ebuild
deleted file mode 100644 (file)
index 9679907..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.13.2.ebuild,v 1.3 2014/11/14 19:27:04 swift Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib pam toolchain-funcs
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
-
-if [[ ${PV} == "9999" ]]; then
-       EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
-       inherit git-r3
-else
-       SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs
-       tools unicode kernel_linux kernel_FreeBSD"
-
-COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
-       elibc_glibc? ( >=sys-libs/glibc-2.5 )
-       ncurses? ( sys-libs/ncurses )
-       pam? ( sys-auth/pambase )
-       tools? ( dev-lang/perl )
-       kernel_linux? (
-               sys-process/psmisc
-               !<sys-process/procps-3.3.9-r2
-       )
-       selinux? ( sys-libs/libselinux )
-       !<sys-apps/baselayout-2.1-r1
-       !<sys-fs/udev-init-scripts-27"
-DEPEND="${COMMON_DEPEND}
-       virtual/os-headers
-       ncurses? ( virtual/pkgconfig )"
-RDEPEND="${COMMON_DEPEND}
-       !prefix? (
-               kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
-               kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
-       )
-       selinux? (
-               sec-policy/selinux-base-policy
-               sec-policy/selinux-openrc
-       )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_prepare() {
-       sed -i 's:0444:0644:' mk/sys.mk || die
-
-       if [[ ${PV} == "9999" ]] ; then
-               local ver="git-${EGIT_VERSION:0:6}"
-               sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
-       fi
-
-       # Allow user patches to be applied without modifying the ebuild
-       epatch_user
-}
-
-src_compile() {
-       unset LIBDIR #266688
-
-       MAKE_ARGS="${MAKE_ARGS}
-               LIBNAME=$(get_libdir)
-               LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
-               MKNET=$(usex newnet)
-               MKSELINUX=$(usex selinux)
-               MKSTATICLIBS=$(usex static-libs)
-       MKTOOLS=$(usex tools)"
-
-       local brand="Unknown"
-       if use kernel_linux ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=Linux"
-               brand="Linux"
-       elif use kernel_FreeBSD ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
-               brand="FreeBSD"
-       fi
-       export BRANDING="Gentoo ${brand}"
-       use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
-       export DEBUG=$(usev debug)
-       export MKPAM=$(usev pam)
-       export MKTERMCAP=$(usev ncurses)
-
-       tc-export CC AR RANLIB
-       emake ${MAKE_ARGS}
-}
-
-# set_config <file> <option name> <yes value> <no value> test
-# a value of "#" will just comment out the option
-set_config() {
-       local file="${ED}/$1" var=$2 val com
-       eval "${@:5}" && val=$3 || val=$4
-       [[ ${val} == "#" ]] && com="#" && val='\2'
-       sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
-}
-
-set_config_yes_no() {
-       set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
-       emake ${MAKE_ARGS} DESTDIR="${D}" install
-
-       # move the shared libs back to /usr so ldscript can install
-       # more of a minimal set of files
-       # disabled for now due to #270646
-       #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
-       #gen_usr_ldscript -a einfo rc
-       gen_usr_ldscript libeinfo.so
-       gen_usr_ldscript librc.so
-
-       if ! use kernel_linux; then
-               keepdir /$(get_libdir)/rc/init.d
-       fi
-       keepdir /$(get_libdir)/rc/tmp
-
-       # Backup our default runlevels
-       dodir /usr/share/"${PN}"
-       cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
-       rm -rf "${ED}"/etc/runlevels
-
-       # Setup unicode defaults for silly unicode users
-       set_config_yes_no /etc/rc.conf unicode use unicode
-
-       # Cater to the norm
-       set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
-
-       # On HPPA, do not run consolefont by default (bug #222889)
-       if use hppa; then
-               rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
-       fi
-
-       # Support for logfile rotation
-       insinto /etc/logrotate.d
-       newins "${FILESDIR}"/openrc.logrotate openrc
-
-       # install the gentoo pam.d file
-       newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
-
-       # install documentation
-       dodoc README README.busybox README.history      FEATURE-REMOVAL-SCHEDULE
-       if use newnet; then
-               dodoc README.newnet
-       fi
-}
-
-add_boot_init() {
-       local initd=$1
-       local runlevel=${2:-boot}
-       # if the initscript is not going to be installed and is not
-       # currently installed, return
-       [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
-               || return
-       [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
-
-       # if runlevels dont exist just yet, then create it but still flag
-       # to pkg_postinst that it needs real setup #277323
-       if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
-               mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-               touch "${EROOT}"etc/runlevels/.add_boot_init.created
-       fi
-
-       elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-       ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
-add_boot_init_mit_config() {
-       local config=$1 initd=$2
-       if [[ -e ${EROOT}${config} ]] ; then
-               if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
-                       add_boot_init ${initd}
-               fi
-       fi
-}
-
-pkg_preinst() {
-       local f LIBDIR=$(get_libdir)
-
-       # avoid default thrashing in conf.d files when possible #295406
-       if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
-               (
-               unset hostname HOSTNAME
-               source "${EROOT}"etc/conf.d/hostname
-               : ${hostname:=${HOSTNAME}}
-               [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
-               )
-       fi
-
-       # set default interactive shell to sulogin if it exists
-       set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
-
-       # termencoding was added in 0.2.1 and needed in boot
-       has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
-
-       # swapfiles was added in 0.9.9 and needed in boot (february 2012)
-       has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
-
-       if ! has_version ">=sys-apps/openrc-0.11"; then
-               add_boot_init sysfs sysinit
-       fi
-
-       if ! has_version ">=sys-apps/openrc-0.11.3" ; then
-               migrate_udev_mount_script
-               add_boot_init tmpfiles.setup boot
-       fi
-
-       # these were added in 0.12.
-       if ! has_version ">=sys-apps/openrc-0.12"; then
-               add_boot_init loopback
-               add_boot_init tmpfiles.dev sysinit
-
-               # ensure existing /etc/conf.d/net is not removed
-               # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
-               # this needs to stay in openrc ebuilds for a long time. :(
-               # Added in 0.12.
-               if [[ -f "${EROOT}"etc/conf.d/net ]]; then
-                       einfo "Modifying conf.d/net to keep it from being removed"
-                       cat <<-EOF >>"${EROOT}"etc/conf.d/net
-
-# The network scripts are now part of net-misc/netifrc
-# In order to avoid sys-apps/${P} from removing this file, this comment was
-# added; you can safely remove this comment.  Please see
-# /usr/share/doc/netifrc*/README* for more information.
-EOF
-               fi
-       fi
-}
-
-# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
-migrate_udev_mount_script() {
-       if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
-               ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
-               add_boot_init udev-mount sysinit
-       fi
-       return 0
-}
-
-pkg_postinst() {
-       local LIBDIR=$(get_libdir)
-
-       # Make our runlevels if they don't exist
-       if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
-               einfo "Copying across default runlevels"
-               cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
-               rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
-       else
-               if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/sysinit
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
-                               "${EROOT}"etc/runlevels/sysinit
-               fi
-               if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/shutdown
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
-                               "${EROOT}"etc/runlevels/shutdown
-               fi
-       fi
-
-       if use hppa; then
-               elog "Setting the console font does not work on all HPPA consoles."
-               elog "You can still enable it by running:"
-               elog "# rc-update add consolefont boot"
-       fi
-
-       # Handle the conf.d/local.{start,stop} -> local.d transition
-       if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
-               elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
-               elog "files to ${EROOT}etc/local.d"
-               mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
-               mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
-               chmod +x "${EROOT}"etc/local.d/*{start,stop}
-       fi
-
-       if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
-               if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
-                       ewarn "The dependency data could not be migrated to /run/openrc."
-                       ewarn "This means you need to reboot your system."
-               fi
-       fi
-
-       # update the dependency tree after touching all files #224171
-       [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
-
-       if ! use newnet && ! use netifrc; then
-               ewarn "You have emerged OpenRc without network support. This"
-               ewarn "means you need to SET UP a network manager such as"
-               ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
-               ewarn "net-misc/NetworkManager, or net-misc/badvpn."
-               ewarn "Or, you have the option of emerging openrc with the newnet"
-               ewarn "use flag and configuring /etc/conf.d/network and"
-               ewarn "/etc/conf.d/staticroute if you only use static interfaces."
-               ewarn
-       fi
-
-       if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
-               ewarn "Please add the network service to your boot runlevel"
-               ewarn "as soon as possible. Not doing so could leave you with a system"
-               ewarn "without networking."
-               ewarn
-       fi
-
-       ewarn "In this version of OpenRC, the loopback interface no longer"
-       ewarn "satisfies the net virtual."
-       ewarn "If you have services now which do not start because of this,"
-       ewarn "They can be fixed by adding rc_need=\"!net\""
-       ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
-       ewarn "You should also file a bug against the service asking that"
-       ewarn "need net be dropped from the dependencies."
-       ewarn "The bug you file should block the following tracker:"
-       ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
-       ewarn
-
-       # Updated for 0.13.2.
-       ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
-       ewarn "fixed correctly in earlier versions of OpenRC."
-       ewarn "The correct fix is implemented in this version, but that"
-       ewarn "means netmount needs to be added to the default runlevel if"
-       ewarn "you are using nfs file systems."
-       ewarn
-
-       elog "You should now update all files in /etc, using etc-update"
-       elog "or equivalent before restarting any services or this host."
-}
diff --git a/sys-apps/openrc/openrc-0.13.3.ebuild b/sys-apps/openrc/openrc-0.13.3.ebuild
deleted file mode 100644 (file)
index faecf55..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.13.3.ebuild,v 1.2 2014/11/14 19:27:04 swift Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib pam toolchain-funcs
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
-
-if [[ ${PV} == "9999" ]]; then
-       EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
-       inherit git-r3
-else
-       SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs
-       tools unicode kernel_linux kernel_FreeBSD"
-
-COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
-       elibc_glibc? ( >=sys-libs/glibc-2.5 )
-       ncurses? ( sys-libs/ncurses )
-       pam? ( sys-auth/pambase )
-       tools? ( dev-lang/perl )
-       kernel_linux? (
-               sys-process/psmisc
-               !<sys-process/procps-3.3.9-r2
-       )
-       selinux? ( sys-libs/libselinux )
-       !<sys-apps/baselayout-2.1-r1
-       !<sys-fs/udev-init-scripts-27"
-DEPEND="${COMMON_DEPEND}
-       virtual/os-headers
-       ncurses? ( virtual/pkgconfig )"
-RDEPEND="${COMMON_DEPEND}
-       !prefix? (
-               kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
-               kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
-       )
-       selinux? (
-               sec-policy/selinux-base-policy
-               sec-policy/selinux-openrc
-       )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_prepare() {
-       sed -i 's:0444:0644:' mk/sys.mk || die
-
-       if [[ ${PV} == "9999" ]] ; then
-               local ver="git-${EGIT_VERSION:0:6}"
-               sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
-       fi
-
-       # Allow user patches to be applied without modifying the ebuild
-       epatch_user
-}
-
-src_compile() {
-       unset LIBDIR #266688
-
-       MAKE_ARGS="${MAKE_ARGS}
-               LIBNAME=$(get_libdir)
-               LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
-               MKNET=$(usex newnet)
-               MKSELINUX=$(usex selinux)
-               MKSTATICLIBS=$(usex static-libs)
-       MKTOOLS=$(usex tools)"
-
-       local brand="Unknown"
-       if use kernel_linux ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=Linux"
-               brand="Linux"
-       elif use kernel_FreeBSD ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
-               brand="FreeBSD"
-       fi
-       export BRANDING="Gentoo ${brand}"
-       use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
-       export DEBUG=$(usev debug)
-       export MKPAM=$(usev pam)
-       export MKTERMCAP=$(usev ncurses)
-
-       tc-export CC AR RANLIB
-       emake ${MAKE_ARGS}
-}
-
-# set_config <file> <option name> <yes value> <no value> test
-# a value of "#" will just comment out the option
-set_config() {
-       local file="${ED}/$1" var=$2 val com
-       eval "${@:5}" && val=$3 || val=$4
-       [[ ${val} == "#" ]] && com="#" && val='\2'
-       sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
-}
-
-set_config_yes_no() {
-       set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
-       emake ${MAKE_ARGS} DESTDIR="${D}" install
-
-       # move the shared libs back to /usr so ldscript can install
-       # more of a minimal set of files
-       # disabled for now due to #270646
-       #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
-       #gen_usr_ldscript -a einfo rc
-       gen_usr_ldscript libeinfo.so
-       gen_usr_ldscript librc.so
-
-       if ! use kernel_linux; then
-               keepdir /$(get_libdir)/rc/init.d
-       fi
-       keepdir /$(get_libdir)/rc/tmp
-
-       # Backup our default runlevels
-       dodir /usr/share/"${PN}"
-       cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
-       rm -rf "${ED}"/etc/runlevels
-
-       # Setup unicode defaults for silly unicode users
-       set_config_yes_no /etc/rc.conf unicode use unicode
-
-       # Cater to the norm
-       set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
-
-       # On HPPA, do not run consolefont by default (bug #222889)
-       if use hppa; then
-               rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
-       fi
-
-       # Support for logfile rotation
-       insinto /etc/logrotate.d
-       newins "${FILESDIR}"/openrc.logrotate openrc
-
-       # install the gentoo pam.d file
-       newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
-
-       # install documentation
-       dodoc README README.busybox README.history      FEATURE-REMOVAL-SCHEDULE
-       if use newnet; then
-               dodoc README.newnet
-       fi
-}
-
-add_boot_init() {
-       local initd=$1
-       local runlevel=${2:-boot}
-       # if the initscript is not going to be installed and is not
-       # currently installed, return
-       [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
-               || return
-       [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
-
-       # if runlevels dont exist just yet, then create it but still flag
-       # to pkg_postinst that it needs real setup #277323
-       if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
-               mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-               touch "${EROOT}"etc/runlevels/.add_boot_init.created
-       fi
-
-       elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-       ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
-add_boot_init_mit_config() {
-       local config=$1 initd=$2
-       if [[ -e ${EROOT}${config} ]] ; then
-               if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
-                       add_boot_init ${initd}
-               fi
-       fi
-}
-
-pkg_preinst() {
-       local f LIBDIR=$(get_libdir)
-
-       # avoid default thrashing in conf.d files when possible #295406
-       if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
-               (
-               unset hostname HOSTNAME
-               source "${EROOT}"etc/conf.d/hostname
-               : ${hostname:=${HOSTNAME}}
-               [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
-               )
-       fi
-
-       # set default interactive shell to sulogin if it exists
-       set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
-
-       # termencoding was added in 0.2.1 and needed in boot
-       has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
-
-       # swapfiles was added in 0.9.9 and needed in boot (february 2012)
-       has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
-
-       if ! has_version ">=sys-apps/openrc-0.11"; then
-               add_boot_init sysfs sysinit
-       fi
-
-       if ! has_version ">=sys-apps/openrc-0.11.3" ; then
-               migrate_udev_mount_script
-               add_boot_init tmpfiles.setup boot
-       fi
-
-       # these were added in 0.12.
-       if ! has_version ">=sys-apps/openrc-0.12"; then
-               add_boot_init loopback
-               add_boot_init tmpfiles.dev sysinit
-
-               # ensure existing /etc/conf.d/net is not removed
-               # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
-               # this needs to stay in openrc ebuilds for a long time. :(
-               # Added in 0.12.
-               if [[ -f "${EROOT}"etc/conf.d/net ]]; then
-                       einfo "Modifying conf.d/net to keep it from being removed"
-                       cat <<-EOF >>"${EROOT}"etc/conf.d/net
-
-# The network scripts are now part of net-misc/netifrc
-# In order to avoid sys-apps/${P} from removing this file, this comment was
-# added; you can safely remove this comment.  Please see
-# /usr/share/doc/netifrc*/README* for more information.
-EOF
-               fi
-       fi
-}
-
-# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
-migrate_udev_mount_script() {
-       if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
-               ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
-               add_boot_init udev-mount sysinit
-       fi
-       return 0
-}
-
-pkg_postinst() {
-       local LIBDIR=$(get_libdir)
-
-       # Make our runlevels if they don't exist
-       if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
-               einfo "Copying across default runlevels"
-               cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
-               rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
-       else
-               if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/sysinit
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
-                               "${EROOT}"etc/runlevels/sysinit
-               fi
-               if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/shutdown
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
-                               "${EROOT}"etc/runlevels/shutdown
-               fi
-       fi
-
-       if use hppa; then
-               elog "Setting the console font does not work on all HPPA consoles."
-               elog "You can still enable it by running:"
-               elog "# rc-update add consolefont boot"
-       fi
-
-       # Handle the conf.d/local.{start,stop} -> local.d transition
-       if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
-               elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
-               elog "files to ${EROOT}etc/local.d"
-               mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
-               mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
-               chmod +x "${EROOT}"etc/local.d/*{start,stop}
-       fi
-
-       if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
-               if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
-                       ewarn "The dependency data could not be migrated to /run/openrc."
-                       ewarn "This means you need to reboot your system."
-               fi
-       fi
-
-       # update the dependency tree after touching all files #224171
-       [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
-
-       if ! use newnet && ! use netifrc; then
-               ewarn "You have emerged OpenRc without network support. This"
-               ewarn "means you need to SET UP a network manager such as"
-               ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
-               ewarn "net-misc/NetworkManager, or net-misc/badvpn."
-               ewarn "Or, you have the option of emerging openrc with the newnet"
-               ewarn "use flag and configuring /etc/conf.d/network and"
-               ewarn "/etc/conf.d/staticroute if you only use static interfaces."
-               ewarn
-       fi
-
-       if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
-               ewarn "Please add the network service to your boot runlevel"
-               ewarn "as soon as possible. Not doing so could leave you with a system"
-               ewarn "without networking."
-               ewarn
-       fi
-
-       ewarn "In this version of OpenRC, the loopback interface no longer"
-       ewarn "satisfies the net virtual."
-       ewarn "If you have services now which do not start because of this,"
-       ewarn "They can be fixed by adding rc_need=\"!net\""
-       ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
-       ewarn "You should also file a bug against the service asking that"
-       ewarn "need net be dropped from the dependencies."
-       ewarn "The bug you file should block the following tracker:"
-       ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
-       ewarn
-
-       # Updated for 0.13.2.
-       ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
-       ewarn "fixed correctly in earlier versions of OpenRC."
-       ewarn "The correct fix is implemented in this version, but that"
-       ewarn "means netmount needs to be added to the default runlevel if"
-       ewarn "you are using nfs file systems."
-       ewarn
-
-       elog "You should now update all files in /etc, using etc-update"
-       elog "or equivalent before restarting any services or this host."
-}
diff --git a/sys-apps/openrc/openrc-0.13.4.ebuild b/sys-apps/openrc/openrc-0.13.4.ebuild
deleted file mode 100644 (file)
index 5868bf2..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.13.4.ebuild,v 1.2 2014/11/14 19:27:04 swift Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib pam toolchain-funcs
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
-
-if [[ ${PV} == "9999" ]]; then
-       EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
-       inherit git-r3
-else
-       SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs
-       tools unicode kernel_linux kernel_FreeBSD"
-
-COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
-       elibc_glibc? ( >=sys-libs/glibc-2.5 )
-       ncurses? ( sys-libs/ncurses )
-       pam? ( sys-auth/pambase )
-       tools? ( dev-lang/perl )
-       kernel_linux? (
-               sys-process/psmisc
-               !<sys-process/procps-3.3.9-r2
-       )
-       selinux? ( sys-libs/libselinux )
-       !<sys-apps/baselayout-2.1-r1
-       !<sys-fs/udev-init-scripts-27"
-DEPEND="${COMMON_DEPEND}
-       virtual/os-headers
-       ncurses? ( virtual/pkgconfig )"
-RDEPEND="${COMMON_DEPEND}
-       !prefix? (
-               kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
-               kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
-       )
-       selinux? (
-               sec-policy/selinux-base-policy
-               sec-policy/selinux-openrc
-       )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_prepare() {
-       sed -i 's:0444:0644:' mk/sys.mk || die
-
-       if [[ ${PV} == "9999" ]] ; then
-               local ver="git-${EGIT_VERSION:0:6}"
-               sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
-       fi
-
-       # Allow user patches to be applied without modifying the ebuild
-       epatch_user
-}
-
-src_compile() {
-       unset LIBDIR #266688
-
-       MAKE_ARGS="${MAKE_ARGS}
-               LIBNAME=$(get_libdir)
-               LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
-               MKNET=$(usex newnet)
-               MKSELINUX=$(usex selinux)
-               MKSTATICLIBS=$(usex static-libs)
-       MKTOOLS=$(usex tools)"
-
-       local brand="Unknown"
-       if use kernel_linux ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=Linux"
-               brand="Linux"
-       elif use kernel_FreeBSD ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
-               brand="FreeBSD"
-       fi
-       export BRANDING="Gentoo ${brand}"
-       use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
-       export DEBUG=$(usev debug)
-       export MKPAM=$(usev pam)
-       export MKTERMCAP=$(usev ncurses)
-
-       tc-export CC AR RANLIB
-       emake ${MAKE_ARGS}
-}
-
-# set_config <file> <option name> <yes value> <no value> test
-# a value of "#" will just comment out the option
-set_config() {
-       local file="${ED}/$1" var=$2 val com
-       eval "${@:5}" && val=$3 || val=$4
-       [[ ${val} == "#" ]] && com="#" && val='\2'
-       sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
-}
-
-set_config_yes_no() {
-       set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
-       emake ${MAKE_ARGS} DESTDIR="${D}" install
-
-       # move the shared libs back to /usr so ldscript can install
-       # more of a minimal set of files
-       # disabled for now due to #270646
-       #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
-       #gen_usr_ldscript -a einfo rc
-       gen_usr_ldscript libeinfo.so
-       gen_usr_ldscript librc.so
-
-       if ! use kernel_linux; then
-               keepdir /$(get_libdir)/rc/init.d
-       fi
-       keepdir /$(get_libdir)/rc/tmp
-
-       # Backup our default runlevels
-       dodir /usr/share/"${PN}"
-       cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
-       rm -rf "${ED}"/etc/runlevels
-
-       # Setup unicode defaults for silly unicode users
-       set_config_yes_no /etc/rc.conf unicode use unicode
-
-       # Cater to the norm
-       set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
-
-       # On HPPA, do not run consolefont by default (bug #222889)
-       if use hppa; then
-               rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
-       fi
-
-       # Support for logfile rotation
-       insinto /etc/logrotate.d
-       newins "${FILESDIR}"/openrc.logrotate openrc
-
-       # install the gentoo pam.d file
-       newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
-
-       # install documentation
-       dodoc README README.busybox README.history      FEATURE-REMOVAL-SCHEDULE
-       if use newnet; then
-               dodoc README.newnet
-       fi
-}
-
-add_boot_init() {
-       local initd=$1
-       local runlevel=${2:-boot}
-       # if the initscript is not going to be installed and is not
-       # currently installed, return
-       [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
-               || return
-       [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
-
-       # if runlevels dont exist just yet, then create it but still flag
-       # to pkg_postinst that it needs real setup #277323
-       if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
-               mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-               touch "${EROOT}"etc/runlevels/.add_boot_init.created
-       fi
-
-       elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-       ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
-add_boot_init_mit_config() {
-       local config=$1 initd=$2
-       if [[ -e ${EROOT}${config} ]] ; then
-               if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
-                       add_boot_init ${initd}
-               fi
-       fi
-}
-
-pkg_preinst() {
-       local f LIBDIR=$(get_libdir)
-
-       # avoid default thrashing in conf.d files when possible #295406
-       if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
-               (
-               unset hostname HOSTNAME
-               source "${EROOT}"etc/conf.d/hostname
-               : ${hostname:=${HOSTNAME}}
-               [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
-               )
-       fi
-
-       # set default interactive shell to sulogin if it exists
-       set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
-
-       # termencoding was added in 0.2.1 and needed in boot
-       has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
-
-       # swapfiles was added in 0.9.9 and needed in boot (february 2012)
-       has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
-
-       if ! has_version ">=sys-apps/openrc-0.11"; then
-               add_boot_init sysfs sysinit
-       fi
-
-       if ! has_version ">=sys-apps/openrc-0.11.3" ; then
-               migrate_udev_mount_script
-               add_boot_init tmpfiles.setup boot
-       fi
-
-       # these were added in 0.12.
-       if ! has_version ">=sys-apps/openrc-0.12"; then
-               add_boot_init loopback
-               add_boot_init tmpfiles.dev sysinit
-
-               # ensure existing /etc/conf.d/net is not removed
-               # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
-               # this needs to stay in openrc ebuilds for a long time. :(
-               # Added in 0.12.
-               if [[ -f "${EROOT}"etc/conf.d/net ]]; then
-                       einfo "Modifying conf.d/net to keep it from being removed"
-                       cat <<-EOF >>"${EROOT}"etc/conf.d/net
-
-# The network scripts are now part of net-misc/netifrc
-# In order to avoid sys-apps/${P} from removing this file, this comment was
-# added; you can safely remove this comment.  Please see
-# /usr/share/doc/netifrc*/README* for more information.
-EOF
-               fi
-       fi
-}
-
-# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
-migrate_udev_mount_script() {
-       if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
-               ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
-               add_boot_init udev-mount sysinit
-       fi
-       return 0
-}
-
-pkg_postinst() {
-       local LIBDIR=$(get_libdir)
-
-       # Make our runlevels if they don't exist
-       if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
-               einfo "Copying across default runlevels"
-               cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
-               rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
-       else
-               if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/sysinit
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
-                               "${EROOT}"etc/runlevels/sysinit
-               fi
-               if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/shutdown
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
-                               "${EROOT}"etc/runlevels/shutdown
-               fi
-       fi
-
-       if use hppa; then
-               elog "Setting the console font does not work on all HPPA consoles."
-               elog "You can still enable it by running:"
-               elog "# rc-update add consolefont boot"
-       fi
-
-       # Handle the conf.d/local.{start,stop} -> local.d transition
-       if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
-               elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
-               elog "files to ${EROOT}etc/local.d"
-               mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
-               mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
-               chmod +x "${EROOT}"etc/local.d/*{start,stop}
-       fi
-
-       if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
-               if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
-                       ewarn "The dependency data could not be migrated to /run/openrc."
-                       ewarn "This means you need to reboot your system."
-               fi
-       fi
-
-       # update the dependency tree after touching all files #224171
-       [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
-
-       if ! use newnet && ! use netifrc; then
-               ewarn "You have emerged OpenRc without network support. This"
-               ewarn "means you need to SET UP a network manager such as"
-               ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
-               ewarn "net-misc/NetworkManager, or net-misc/badvpn."
-               ewarn "Or, you have the option of emerging openrc with the newnet"
-               ewarn "use flag and configuring /etc/conf.d/network and"
-               ewarn "/etc/conf.d/staticroute if you only use static interfaces."
-               ewarn
-       fi
-
-       if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
-               ewarn "Please add the network service to your boot runlevel"
-               ewarn "as soon as possible. Not doing so could leave you with a system"
-               ewarn "without networking."
-               ewarn
-       fi
-
-       ewarn "In this version of OpenRC, the loopback interface no longer"
-       ewarn "satisfies the net virtual."
-       ewarn "If you have services now which do not start because of this,"
-       ewarn "They can be fixed by adding rc_need=\"!net\""
-       ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
-       ewarn "You should also file a bug against the service asking that"
-       ewarn "need net be dropped from the dependencies."
-       ewarn "The bug you file should block the following tracker:"
-       ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
-       ewarn
-
-       # Updated for 0.13.2.
-       ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
-       ewarn "fixed correctly in earlier versions of OpenRC."
-       ewarn "The correct fix is implemented in this version, but that"
-       ewarn "means netmount needs to be added to the default runlevel if"
-       ewarn "you are using nfs file systems."
-       ewarn
-
-       elog "You should now update all files in /etc, using etc-update"
-       elog "or equivalent before restarting any services or this host."
-}
diff --git a/sys-apps/openrc/openrc-0.13.5.ebuild b/sys-apps/openrc/openrc-0.13.5.ebuild
deleted file mode 100644 (file)
index bcbcec5..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.13.5.ebuild,v 1.1 2014/11/20 18:25:52 williamh Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib pam toolchain-funcs
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
-
-if [[ ${PV} == "9999" ]]; then
-       EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
-       inherit git-r3
-else
-       SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs
-       tools unicode kernel_linux kernel_FreeBSD"
-
-COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
-       elibc_glibc? ( >=sys-libs/glibc-2.5 )
-       ncurses? ( sys-libs/ncurses )
-       pam? ( sys-auth/pambase )
-       tools? ( dev-lang/perl )
-       kernel_linux? (
-               sys-process/psmisc
-               !<sys-process/procps-3.3.9-r2
-       )
-       selinux? ( sys-libs/libselinux )
-       !<sys-apps/baselayout-2.1-r1
-       !<sys-fs/udev-init-scripts-27"
-DEPEND="${COMMON_DEPEND}
-       virtual/os-headers
-       ncurses? ( virtual/pkgconfig )"
-RDEPEND="${COMMON_DEPEND}
-       !prefix? (
-               kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
-               kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
-       )
-       selinux? (
-               sec-policy/selinux-base-policy
-               sec-policy/selinux-openrc
-       )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_prepare() {
-       sed -i 's:0444:0644:' mk/sys.mk || die
-
-       if [[ ${PV} == "9999" ]] ; then
-               local ver="git-${EGIT_VERSION:0:6}"
-               sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
-       fi
-
-       # Allow user patches to be applied without modifying the ebuild
-       epatch_user
-}
-
-src_compile() {
-       unset LIBDIR #266688
-
-       MAKE_ARGS="${MAKE_ARGS}
-               LIBNAME=$(get_libdir)
-               LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
-               MKNET=$(usex newnet)
-               MKSELINUX=$(usex selinux)
-               MKSTATICLIBS=$(usex static-libs)
-       MKTOOLS=$(usex tools)"
-
-       local brand="Unknown"
-       if use kernel_linux ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=Linux"
-               brand="Linux"
-       elif use kernel_FreeBSD ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
-               brand="FreeBSD"
-       fi
-       export BRANDING="Gentoo ${brand}"
-       use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
-       export DEBUG=$(usev debug)
-       export MKPAM=$(usev pam)
-       export MKTERMCAP=$(usev ncurses)
-
-       tc-export CC AR RANLIB
-       emake ${MAKE_ARGS}
-}
-
-# set_config <file> <option name> <yes value> <no value> test
-# a value of "#" will just comment out the option
-set_config() {
-       local file="${ED}/$1" var=$2 val com
-       eval "${@:5}" && val=$3 || val=$4
-       [[ ${val} == "#" ]] && com="#" && val='\2'
-       sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
-}
-
-set_config_yes_no() {
-       set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
-       emake ${MAKE_ARGS} DESTDIR="${D}" install
-
-       # move the shared libs back to /usr so ldscript can install
-       # more of a minimal set of files
-       # disabled for now due to #270646
-       #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
-       #gen_usr_ldscript -a einfo rc
-       gen_usr_ldscript libeinfo.so
-       gen_usr_ldscript librc.so
-
-       if ! use kernel_linux; then
-               keepdir /$(get_libdir)/rc/init.d
-       fi
-       keepdir /$(get_libdir)/rc/tmp
-
-       # Backup our default runlevels
-       dodir /usr/share/"${PN}"
-       cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
-       rm -rf "${ED}"/etc/runlevels
-
-       # Setup unicode defaults for silly unicode users
-       set_config_yes_no /etc/rc.conf unicode use unicode
-
-       # Cater to the norm
-       set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
-
-       # On HPPA, do not run consolefont by default (bug #222889)
-       if use hppa; then
-               rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
-       fi
-
-       # Support for logfile rotation
-       insinto /etc/logrotate.d
-       newins "${FILESDIR}"/openrc.logrotate openrc
-
-       # install the gentoo pam.d file
-       newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
-
-       # install documentation
-       dodoc README README.busybox README.history      FEATURE-REMOVAL-SCHEDULE
-       if use newnet; then
-               dodoc README.newnet
-       fi
-}
-
-add_boot_init() {
-       local initd=$1
-       local runlevel=${2:-boot}
-       # if the initscript is not going to be installed and is not
-       # currently installed, return
-       [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
-               || return
-       [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
-
-       # if runlevels dont exist just yet, then create it but still flag
-       # to pkg_postinst that it needs real setup #277323
-       if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
-               mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-               touch "${EROOT}"etc/runlevels/.add_boot_init.created
-       fi
-
-       elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-       ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
-add_boot_init_mit_config() {
-       local config=$1 initd=$2
-       if [[ -e ${EROOT}${config} ]] ; then
-               if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
-                       add_boot_init ${initd}
-               fi
-       fi
-}
-
-pkg_preinst() {
-       local f LIBDIR=$(get_libdir)
-
-       # avoid default thrashing in conf.d files when possible #295406
-       if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
-               (
-               unset hostname HOSTNAME
-               source "${EROOT}"etc/conf.d/hostname
-               : ${hostname:=${HOSTNAME}}
-               [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
-               )
-       fi
-
-       # set default interactive shell to sulogin if it exists
-       set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
-
-       # termencoding was added in 0.2.1 and needed in boot
-       has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
-
-       # swapfiles was added in 0.9.9 and needed in boot (february 2012)
-       has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
-
-       if ! has_version ">=sys-apps/openrc-0.11"; then
-               add_boot_init sysfs sysinit
-       fi
-
-       if ! has_version ">=sys-apps/openrc-0.11.3" ; then
-               migrate_udev_mount_script
-               add_boot_init tmpfiles.setup boot
-       fi
-
-       # these were added in 0.12.
-       if ! has_version ">=sys-apps/openrc-0.12"; then
-               add_boot_init loopback
-               add_boot_init tmpfiles.dev sysinit
-
-               # ensure existing /etc/conf.d/net is not removed
-               # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
-               # this needs to stay in openrc ebuilds for a long time. :(
-               # Added in 0.12.
-               if [[ -f "${EROOT}"etc/conf.d/net ]]; then
-                       einfo "Modifying conf.d/net to keep it from being removed"
-                       cat <<-EOF >>"${EROOT}"etc/conf.d/net
-
-# The network scripts are now part of net-misc/netifrc
-# In order to avoid sys-apps/${P} from removing this file, this comment was
-# added; you can safely remove this comment.  Please see
-# /usr/share/doc/netifrc*/README* for more information.
-EOF
-               fi
-       fi
-}
-
-# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
-migrate_udev_mount_script() {
-       if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
-               ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
-               add_boot_init udev-mount sysinit
-       fi
-       return 0
-}
-
-pkg_postinst() {
-       local LIBDIR=$(get_libdir)
-
-       # Make our runlevels if they don't exist
-       if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
-               einfo "Copying across default runlevels"
-               cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
-               rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
-       else
-               if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/sysinit
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
-                               "${EROOT}"etc/runlevels/sysinit
-               fi
-               if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/shutdown
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
-                               "${EROOT}"etc/runlevels/shutdown
-               fi
-       fi
-
-       if use hppa; then
-               elog "Setting the console font does not work on all HPPA consoles."
-               elog "You can still enable it by running:"
-               elog "# rc-update add consolefont boot"
-       fi
-
-       # Handle the conf.d/local.{start,stop} -> local.d transition
-       if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
-               elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
-               elog "files to ${EROOT}etc/local.d"
-               mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
-               mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
-               chmod +x "${EROOT}"etc/local.d/*{start,stop}
-       fi
-
-       if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
-               if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
-                       ewarn "The dependency data could not be migrated to /run/openrc."
-                       ewarn "This means you need to reboot your system."
-               fi
-       fi
-
-       # update the dependency tree after touching all files #224171
-       [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
-
-       if ! use newnet && ! use netifrc; then
-               ewarn "You have emerged OpenRc without network support. This"
-               ewarn "means you need to SET UP a network manager such as"
-               ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
-               ewarn "net-misc/NetworkManager, or net-misc/badvpn."
-               ewarn "Or, you have the option of emerging openrc with the newnet"
-               ewarn "use flag and configuring /etc/conf.d/network and"
-               ewarn "/etc/conf.d/staticroute if you only use static interfaces."
-               ewarn
-       fi
-
-       if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
-               ewarn "Please add the network service to your boot runlevel"
-               ewarn "as soon as possible. Not doing so could leave you with a system"
-               ewarn "without networking."
-               ewarn
-       fi
-
-       ewarn "In this version of OpenRC, the loopback interface no longer"
-       ewarn "satisfies the net virtual."
-       ewarn "If you have services now which do not start because of this,"
-       ewarn "They can be fixed by adding rc_need=\"!net\""
-       ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
-       ewarn "You should also file a bug against the service asking that"
-       ewarn "need net be dropped from the dependencies."
-       ewarn "The bug you file should block the following tracker:"
-       ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
-       ewarn
-
-       # Updated for 0.13.2.
-       ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
-       ewarn "fixed correctly in earlier versions of OpenRC."
-       ewarn "The correct fix is implemented in this version, but that"
-       ewarn "means netmount needs to be added to the default runlevel if"
-       ewarn "you are using nfs file systems."
-       ewarn
-
-       elog "You should now update all files in /etc, using etc-update"
-       elog "or equivalent before restarting any services or this host."
-}
diff --git a/sys-apps/openrc/openrc-0.13.6.ebuild b/sys-apps/openrc/openrc-0.13.6.ebuild
deleted file mode 100644 (file)
index 707f426..0000000
+++ /dev/null
@@ -1,328 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.13.6.ebuild,v 1.1 2014/11/24 04:51:58 williamh Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic multilib pam toolchain-funcs
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="http://www.gentoo.org/proj/en/base/openrc/"
-
-if [[ ${PV} == "9999" ]]; then
-       EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
-       inherit git-r3
-else
-       SRC_URI="http://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs
-       tools unicode kernel_linux kernel_FreeBSD"
-
-COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
-       elibc_glibc? ( >=sys-libs/glibc-2.5 )
-       ncurses? ( sys-libs/ncurses )
-       pam? ( sys-auth/pambase )
-       tools? ( dev-lang/perl )
-       kernel_linux? (
-               sys-process/psmisc
-               !<sys-process/procps-3.3.9-r2
-       )
-       selinux? ( sys-libs/libselinux )
-       !<sys-apps/baselayout-2.1-r1
-       !<sys-fs/udev-init-scripts-27"
-DEPEND="${COMMON_DEPEND}
-       virtual/os-headers
-       ncurses? ( virtual/pkgconfig )"
-RDEPEND="${COMMON_DEPEND}
-       !prefix? (
-               kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
-               kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
-       )
-       selinux? (
-               sec-policy/selinux-base-policy
-               sec-policy/selinux-openrc
-       )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_prepare() {
-       sed -i 's:0444:0644:' mk/sys.mk || die
-
-       if [[ ${PV} == "9999" ]] ; then
-               local ver="git-${EGIT_VERSION:0:6}"
-               sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
-       fi
-
-       # Allow user patches to be applied without modifying the ebuild
-       epatch_user
-}
-
-src_compile() {
-       unset LIBDIR #266688
-
-       MAKE_ARGS="${MAKE_ARGS}
-               LIBNAME=$(get_libdir)
-               LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
-               MKNET=$(usex newnet)
-               MKSELINUX=$(usex selinux)
-               MKSTATICLIBS=$(usex static-libs)
-       MKTOOLS=$(usex tools)"
-
-       local brand="Unknown"
-       if use kernel_linux ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=Linux"
-               brand="Linux"
-       elif use kernel_FreeBSD ; then
-               MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
-               brand="FreeBSD"
-       fi
-       export BRANDING="Gentoo ${brand}"
-       use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
-       export DEBUG=$(usev debug)
-       export MKPAM=$(usev pam)
-       export MKTERMCAP=$(usev ncurses)
-
-       tc-export CC AR RANLIB
-       emake ${MAKE_ARGS}
-}
-
-# set_config <file> <option name> <yes value> <no value> test
-# a value of "#" will just comment out the option
-set_config() {
-       local file="${ED}/$1" var=$2 val com
-       eval "${@:5}" && val=$3 || val=$4
-       [[ ${val} == "#" ]] && com="#" && val='\2'
-       sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
-}
-
-set_config_yes_no() {
-       set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
-       emake ${MAKE_ARGS} DESTDIR="${D}" install
-
-       # move the shared libs back to /usr so ldscript can install
-       # more of a minimal set of files
-       # disabled for now due to #270646
-       #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
-       #gen_usr_ldscript -a einfo rc
-       gen_usr_ldscript libeinfo.so
-       gen_usr_ldscript librc.so
-
-       if ! use kernel_linux; then
-               keepdir /$(get_libdir)/rc/init.d
-       fi
-       keepdir /$(get_libdir)/rc/tmp
-
-       # Backup our default runlevels
-       dodir /usr/share/"${PN}"
-       cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
-       rm -rf "${ED}"/etc/runlevels
-
-       # Setup unicode defaults for silly unicode users
-       set_config_yes_no /etc/rc.conf unicode use unicode
-
-       # Cater to the norm
-       set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
-
-       # On HPPA, do not run consolefont by default (bug #222889)
-       if use hppa; then
-               rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
-       fi
-
-       # Support for logfile rotation
-       insinto /etc/logrotate.d
-       newins "${FILESDIR}"/openrc.logrotate openrc
-
-       # install the gentoo pam.d file
-       newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
-
-       # install documentation
-       dodoc README README.busybox README.history      FEATURE-REMOVAL-SCHEDULE
-       if use newnet; then
-               dodoc README.newnet
-       fi
-}
-
-add_boot_init() {
-       local initd=$1
-       local runlevel=${2:-boot}
-       # if the initscript is not going to be installed and is not
-       # currently installed, return
-       [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
-               || return
-       [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
-
-       # if runlevels dont exist just yet, then create it but still flag
-       # to pkg_postinst that it needs real setup #277323
-       if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
-               mkdir -p "${EROOT}"etc/runlevels/${runlevel}
-               touch "${EROOT}"etc/runlevels/.add_boot_init.created
-       fi
-
-       elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
-       ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
-}
-add_boot_init_mit_config() {
-       local config=$1 initd=$2
-       if [[ -e ${EROOT}${config} ]] ; then
-               if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
-                       add_boot_init ${initd}
-               fi
-       fi
-}
-
-pkg_preinst() {
-       local f LIBDIR=$(get_libdir)
-
-       # avoid default thrashing in conf.d files when possible #295406
-       if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
-               (
-               unset hostname HOSTNAME
-               source "${EROOT}"etc/conf.d/hostname
-               : ${hostname:=${HOSTNAME}}
-               [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
-               )
-       fi
-
-       # set default interactive shell to sulogin if it exists
-       set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
-
-       # termencoding was added in 0.2.1 and needed in boot
-       has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
-
-       # swapfiles was added in 0.9.9 and needed in boot (february 2012)
-       has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
-
-       if ! has_version ">=sys-apps/openrc-0.11"; then
-               add_boot_init sysfs sysinit
-       fi
-
-       if ! has_version ">=sys-apps/openrc-0.11.3" ; then
-               migrate_udev_mount_script
-               add_boot_init tmpfiles.setup boot
-       fi
-
-       # these were added in 0.12.
-       if ! has_version ">=sys-apps/openrc-0.12"; then
-               add_boot_init loopback
-               add_boot_init tmpfiles.dev sysinit
-
-               # ensure existing /etc/conf.d/net is not removed
-               # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
-               # this needs to stay in openrc ebuilds for a long time. :(
-               # Added in 0.12.
-               if [[ -f "${EROOT}"etc/conf.d/net ]]; then
-                       einfo "Modifying conf.d/net to keep it from being removed"
-                       cat <<-EOF >>"${EROOT}"etc/conf.d/net
-
-# The network scripts are now part of net-misc/netifrc
-# In order to avoid sys-apps/${P} from removing this file, this comment was
-# added; you can safely remove this comment.  Please see
-# /usr/share/doc/netifrc*/README* for more information.
-EOF
-               fi
-       fi
-}
-
-# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
-migrate_udev_mount_script() {
-       if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
-               ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
-               add_boot_init udev-mount sysinit
-       fi
-       return 0
-}
-
-pkg_postinst() {
-       local LIBDIR=$(get_libdir)
-
-       # Make our runlevels if they don't exist
-       if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
-               einfo "Copying across default runlevels"
-               cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
-               rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
-       else
-               if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/sysinit
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
-                               "${EROOT}"etc/runlevels/sysinit
-               fi
-               if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
-                       mkdir -p "${EROOT}"etc/runlevels/shutdown
-                       cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
-                               "${EROOT}"etc/runlevels/shutdown
-               fi
-       fi
-
-       if use hppa; then
-               elog "Setting the console font does not work on all HPPA consoles."
-               elog "You can still enable it by running:"
-               elog "# rc-update add consolefont boot"
-       fi
-
-       # Handle the conf.d/local.{start,stop} -> local.d transition
-       if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
-               elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
-               elog "files to ${EROOT}etc/local.d"
-               mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
-               mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
-               chmod +x "${EROOT}"etc/local.d/*{start,stop}
-       fi
-
-       if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
-               if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
-                       ewarn "The dependency data could not be migrated to /run/openrc."
-                       ewarn "This means you need to reboot your system."
-               fi
-       fi
-
-       # update the dependency tree after touching all files #224171
-       [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
-
-       if ! use newnet && ! use netifrc; then
-               ewarn "You have emerged OpenRc without network support. This"
-               ewarn "means you need to SET UP a network manager such as"
-               ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
-               ewarn "net-misc/NetworkManager, or net-misc/badvpn."
-               ewarn "Or, you have the option of emerging openrc with the newnet"
-               ewarn "use flag and configuring /etc/conf.d/network and"
-               ewarn "/etc/conf.d/staticroute if you only use static interfaces."
-               ewarn
-       fi
-
-       if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
-               ewarn "Please add the network service to your boot runlevel"
-               ewarn "as soon as possible. Not doing so could leave you with a system"
-               ewarn "without networking."
-               ewarn
-       fi
-
-       ewarn "In this version of OpenRC, the loopback interface no longer"
-       ewarn "satisfies the net virtual."
-       ewarn "If you have services now which do not start because of this,"
-       ewarn "They can be fixed by adding rc_need=\"!net\""
-       ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
-       ewarn "You should also file a bug against the service asking that"
-       ewarn "need net be dropped from the dependencies."
-       ewarn "The bug you file should block the following tracker:"
-       ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
-       ewarn
-
-       # Updated for 0.13.2.
-       ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
-       ewarn "fixed correctly in earlier versions of OpenRC."
-       ewarn "The correct fix is implemented in this version, but that"
-       ewarn "means netmount needs to be added to the default runlevel if"
-       ewarn "you are using nfs file systems."
-       ewarn
-
-       elog "You should now update all files in /etc, using etc-update"
-       elog "or equivalent before restarting any services or this host."
-}