Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/
Date: Tue, 31 May 2016 17:43:15
Message-Id: 1464716135.c89e3e065e22dafdfc2c1b700fa2d4243ba3b5da.williamh@gentoo
1 commit: c89e3e065e22dafdfc2c1b700fa2d4243ba3b5da
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 17:34:41 2016 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 17:35:35 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c89e3e06
7
8 sys-apps/openrc: remove many old and unstable versions
9
10 Package-Manager: portage-2.2.28
11
12 sys-apps/openrc/Manifest | 10 -
13 sys-apps/openrc/openrc-0.13.11.ebuild | 331 --------------------------------
14 sys-apps/openrc/openrc-0.14.ebuild | 336 --------------------------------
15 sys-apps/openrc/openrc-0.15.1.ebuild | 336 --------------------------------
16 sys-apps/openrc/openrc-0.15.ebuild | 336 --------------------------------
17 sys-apps/openrc/openrc-0.16.1.ebuild | 336 --------------------------------
18 sys-apps/openrc/openrc-0.16.2.ebuild | 336 --------------------------------
19 sys-apps/openrc/openrc-0.16.3.ebuild | 336 --------------------------------
20 sys-apps/openrc/openrc-0.16.4.ebuild | 336 --------------------------------
21 sys-apps/openrc/openrc-0.16.ebuild | 336 --------------------------------
22 sys-apps/openrc/openrc-0.18.3.ebuild | 347 ----------------------------------
23 11 files changed, 3376 deletions(-)
24
25 diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest
26 index 3dfac83..6fb6194 100644
27 --- a/sys-apps/openrc/Manifest
28 +++ b/sys-apps/openrc/Manifest
29 @@ -1,14 +1,4 @@
30 -DIST openrc-0.13.11.tar.bz2 150680 SHA256 30edffa8b39d5e68129ddd9e8cd8dfde8ca8cfafc8b470124d7323a32a4a443c SHA512 1dd9d86f5f2f13e196d2724b978c0aaabf7a73c487bf2f8f759d82c856faa754b612d5252dacedb042ba308ff7e9a745dea88b78654a693c39f5d720f0f92ada WHIRLPOOL 2849260c60811e88467b2d0916afa37bc4c7a6e2159abf70a2f5bad2cf97586b801993f45ed86145dfecbc93166298c6302a78602bbfe1957d2f159a3cde11dc
31 -DIST openrc-0.14.tar.bz2 155903 SHA256 fc7144811cd84b7a0d3786120e98cdd8c8ea31040f4665be67dac6da4fb8c6aa SHA512 44ead70f7a254d6f789090d09d03d931beb3ebce8e204feae5054d87921453aa6e8182c8f1f1cac0977ab0723d2a9cc0c09c482136c244d626ce32ea89e0bee4 WHIRLPOOL 4dfd551f4e94f50d1feed5a3157b9de36b4d8a0ab30dd886c864df3e273009f561e2048c8f077c6518caac09b44ac1b963a5b514beaa8a8699724598142b0352
32 -DIST openrc-0.15.1.tar.bz2 156774 SHA256 b125e0a9b54f7829b19529fe6d90005dfd2c01b4f96da3b03847b34d6dc77cac SHA512 287759e0b0deffb7698bb9e1ad82279504ad1f2d2e5333660a83b66618e2b807c98c2d6289c455f2137f2de09028147722c1c757c6afe12e49cc16ef8d86144f WHIRLPOOL 19d5af87296436a776aeffe8bab09d48bc90f40a1b08412c06a01231608296a11e17ff6bd1c04462d5c8fa405fd4336269d3db2e9678443dac8c67982f61ba94
33 -DIST openrc-0.15.tar.bz2 156099 SHA256 157c58ce1ff83b79a4063c44958c8070b15c9700fb7454827c8515091c3abeb6 SHA512 938e2688c865b0c0886273eb987a9289e74ef7f0ec93aef0a3ec51111b11e0ddb6afd9c752fba08f6a5e2d089d783e0e6a40d978cd0f104449d6c333dbe79e87 WHIRLPOOL d7872a266570d4ef76a564619e57070a18e1286233417e8cf78e8a7f35f8073bfbd7b85c94f5331f8647fc395d4f32b8256ec934dbe18f1b4642c50a42a342b0
34 -DIST openrc-0.16.1.tar.bz2 158448 SHA256 0654d88b5789abf0ada04548058edf1fc9ba61f16f063bc061bb720e20d7989a SHA512 4e197d2b6d46a15ebf7bf7ffcd1ec7711fec43a9243ad852d3a3d04f5a978045b8f0e58806b4428fe310be0e069654c13d49713754ff5306c2b4637ae31f2028 WHIRLPOOL 58c455d734ec7562a17571a8e5adeb71d63c58ca932dccafd3474c16551220ed2715dfe1cb481f02e221bc26e206704f081df50562e0e62e0f84007714bffe51
35 -DIST openrc-0.16.2.tar.bz2 158753 SHA256 77b2c0f435b457a7f40fb607ee5bbf6fccd93362580d07bc96ef692cc7ddac46 SHA512 baf3b00b4fb3e418e2863b09a40dd722cbcc52e3381dc08acc0876984881b2cbeb70a078cc697bffbdaaa8d268d457efd3ce72a4e122be3ec74f3138fec0e936 WHIRLPOOL 708d949cbe99ca6e879c657f884d2b4f2e3455352c7daca3e2a3449b1a2f972fe2e371a4b38bed929471080c59f2715c07d7f1d4ea686051e30b17b6a20699e8
36 -DIST openrc-0.16.3.tar.bz2 158844 SHA256 6f2d5293f82591183391362fdbcb6b24b6a07c74f9e565db6d0ebf77189e5262 SHA512 1c41edf7e061947895a260dc5a4cf856af5ac62ef41d3b7c6bb1eef09bc5bfb3f9e4d0957cabad635068db18286658843b3ad02e2831b63f5a2957246736e337 WHIRLPOOL ff4c147b566077e55386c1ef386d3659bcc8ce8a2211ba4961468039cf9b4b2088cab606934db4e378eb10a96f46bec35f0a46ec069c942ad42167ceb1776385
37 -DIST openrc-0.16.4.tar.bz2 158599 SHA256 6771257e208da2e4d20b4ac2e3e7f065eb8873566644ff385e9dbd6bc5221d21 SHA512 8ade50cdb8c2e05e00e917f848e96bfee54bb4ac77bf50af8c5ab66e2e01f8a5c2621123087945feaa9b15ad84a5936e23cc489a2bb7127c2b118a5a0695ee6e WHIRLPOOL 706d7b1101927ff89afb01ad766f491db94ff04f574bc7b69349b6ab0334ed5d2cd5ee2d8041cf5a0ba00f5a6a3596502835fa132c668533772a42737f0e2412
38 -DIST openrc-0.16.tar.bz2 157924 SHA256 969ce450bb095a406ef14362572633b14c8696b57d67361394c5951704273ce3 SHA512 3ff3958bf480ec6bf97e50c8911c382dc855322a74d57b65da975e98d8b76debda971826d15803be96f2ae9c7fd5ebf4cf0c43013663a042224a9c49377614f8 WHIRLPOOL 5e6bb11b907a2fe3812653354950b0ec4e13571981580d03d2ee9b93dc8a68ce128ee1ec7560557adbc90af44aa881648aae51e15bb0f0990ca338ffb3c6c814
39 DIST openrc-0.17.tar.bz2 160533 SHA256 45818d9ef4659e8dd924a1468a091255c305daee5417f94d9515f0e125298b30 SHA512 6e69b036d113f066b0dd0bfe55e019328e0e77cff6c93f0a3e55751aa0a72411aa3b1efe8b4327e156a9612e4155863b0a81c9eda043c12904bb36e861b71399 WHIRLPOOL de45daf6f4aebe632ea9fcb46408e63f0aed6c9b9129fb5510f348f20cf1c62aa42e7dce47a7f19a441696596fa57494642e7334a42c415fdbc865cb80a18eff
40 -DIST openrc-0.18.3.tar.bz2 159104 SHA256 891478b28b3d2b964276b35a3cdf538a7f3d9cfdc41f455eb7453c881f629837 SHA512 49edd83c578d99b2df57b85a1db236748310ee012fee9c7220ad657e1543c04004817117c05060268b8493e95c294894124d3e958cdb01389cfd30a85cde3644 WHIRLPOOL 2b0c7f70c689c3d2851e1c78c1e4285fb60dde689624487b9cedf920882e7285b6c4bf7e37564f1995a8ee6f4106a77aedf69933c11f04af53f5d402e4b22bfb
41 DIST openrc-0.18.4.tar.bz2 157237 SHA256 2c8bf1c6f52fcf4c1f6945a2836ba2551a7d93015aa63ba5a2e1d2851c2942e4 SHA512 13f5dbc1292ce94c2e42a35e582bbba12e4bba943640952ea4cecc7ff5c60175d362055a4f5e213f218236ab4a040a5dff01a47c8bc007237554744d8a89a48a WHIRLPOOL f1f44effad80863276339af5bce1b3a9068d9c5ae7f7c3b571fb883b376c9083c207980c6d05170b0a18c0902ad1e2d76a1bafb0f11721b0522308e2cb7c67b4
42 DIST openrc-0.19.1.tar.bz2 159598 SHA256 5628c04b12e2f51f25e59c303bdccbf545ba0db25484adcca48e70d0712ce0e6 SHA512 303db4475fd02aa3aa161dbd8794a45c2633b9fe96aaab67b81014fa3915bed1aa51cff57128f4413cf9f2329ce1f2012e460e089c39f01ac6eb061a95844329 WHIRLPOOL a4e8720579b8983cb3c2c9b4dd983c1b7bf45e053aa0c9545f31e36c22e44d06e55198d4143dc0a6bca3b7d00b151b43d1da439b2479044344ca12f3151711f1
43 DIST openrc-0.20.4.tar.bz2 163060 SHA256 0474a08e9e280a3c2450bed014b1f6b485e1a583391575f0d35c3551709e3784 SHA512 6d4ccee5f3c3e64eeeaa05b591d7420e3cdaa82eb42606a8a721030b9323e1e56928da78d302e5cbd20c652f6ecf5db23a695de436216f2c55c0be4cfc98387a WHIRLPOOL b2bf5c1b66595a4b2b3a66a39f15896d6ab0aa4b0c42518146238016ba01adb12b3aaf6ce21570756693e283fe14a979f305afd253db68ba47246135529b1ab9
44
45 diff --git a/sys-apps/openrc/openrc-0.13.11.ebuild b/sys-apps/openrc/openrc-0.13.11.ebuild
46 deleted file mode 100644
47 index e05995d..0000000
48 --- a/sys-apps/openrc/openrc-0.13.11.ebuild
49 +++ /dev/null
50 @@ -1,331 +0,0 @@
51 -# Copyright 1999-2016 Gentoo Foundation
52 -# Distributed under the terms of the GNU General Public License v2
53 -# $Id$
54 -
55 -EAPI=5
56 -
57 -inherit eutils flag-o-matic multilib pam toolchain-funcs
58 -
59 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
60 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
61 -
62 -if [[ ${PV} == "9999" ]]; then
63 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
64 - inherit git-r3
65 -else
66 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
67 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
68 -fi
69 -
70 -LICENSE="BSD-2"
71 -SLOT="0"
72 -IUSE="debug ncurses pam newnet prefix +netifrc selinux static-libs
73 - tools unicode kernel_linux kernel_FreeBSD"
74 -
75 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
76 - ncurses? ( sys-libs/ncurses:0= )
77 - pam? (
78 - sys-auth/pambase
79 - virtual/pam
80 - )
81 - tools? ( dev-lang/perl )
82 - kernel_linux? (
83 - sys-process/psmisc
84 - !<sys-process/procps-3.3.9-r2
85 - )
86 - selinux? ( sys-libs/libselinux )
87 - !<sys-apps/baselayout-2.1-r1
88 - !<sys-fs/udev-init-scripts-27"
89 -DEPEND="${COMMON_DEPEND}
90 - virtual/os-headers
91 - ncurses? ( virtual/pkgconfig )"
92 -RDEPEND="${COMMON_DEPEND}
93 - !prefix? (
94 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
95 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
96 - )
97 - selinux? (
98 - sec-policy/selinux-base-policy
99 - sec-policy/selinux-openrc
100 - )
101 -"
102 -
103 -PDEPEND="netifrc? ( net-misc/netifrc )"
104 -
105 -src_prepare() {
106 - sed -i 's:0444:0644:' mk/sys.mk || die
107 -
108 - if [[ ${PV} == "9999" ]] ; then
109 - local ver="git-${EGIT_VERSION:0:6}"
110 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/git.mk || die
111 - fi
112 -
113 - # Allow user patches to be applied without modifying the ebuild
114 - epatch_user
115 -}
116 -
117 -src_compile() {
118 - unset LIBDIR #266688
119 -
120 - MAKE_ARGS="${MAKE_ARGS}
121 - LIBNAME=$(get_libdir)
122 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
123 - MKNET=$(usex newnet)
124 - MKSELINUX=$(usex selinux)
125 - MKSTATICLIBS=$(usex static-libs)
126 - MKTOOLS=$(usex tools)"
127 -
128 - local brand="Unknown"
129 - if use kernel_linux ; then
130 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
131 - brand="Linux"
132 - elif use kernel_FreeBSD ; then
133 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
134 - brand="FreeBSD"
135 - fi
136 - export BRANDING="Gentoo ${brand}"
137 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
138 - export DEBUG=$(usev debug)
139 - export MKPAM=$(usev pam)
140 - export MKTERMCAP=$(usev ncurses)
141 -
142 - tc-export CC AR RANLIB
143 - emake ${MAKE_ARGS}
144 -}
145 -
146 -# set_config <file> <option name> <yes value> <no value> test
147 -# a value of "#" will just comment out the option
148 -set_config() {
149 - local file="${ED}/$1" var=$2 val com
150 - eval "${@:5}" && val=$3 || val=$4
151 - [[ ${val} == "#" ]] && com="#" && val='\2'
152 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
153 -}
154 -
155 -set_config_yes_no() {
156 - set_config "$1" "$2" YES NO "${@:3}"
157 -}
158 -
159 -src_install() {
160 - emake ${MAKE_ARGS} DESTDIR="${D}" install
161 -
162 - # move the shared libs back to /usr so ldscript can install
163 - # more of a minimal set of files
164 - # disabled for now due to #270646
165 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
166 - #gen_usr_ldscript -a einfo rc
167 - gen_usr_ldscript libeinfo.so
168 - gen_usr_ldscript librc.so
169 -
170 - if ! use kernel_linux; then
171 - keepdir /$(get_libdir)/rc/init.d
172 - fi
173 - keepdir /$(get_libdir)/rc/tmp
174 -
175 - # Backup our default runlevels
176 - dodir /usr/share/"${PN}"
177 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
178 - rm -rf "${ED}"/etc/runlevels
179 -
180 - # Setup unicode defaults for silly unicode users
181 - set_config_yes_no /etc/rc.conf unicode use unicode
182 -
183 - # Cater to the norm
184 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
185 -
186 - # On HPPA, do not run consolefont by default (bug #222889)
187 - if use hppa; then
188 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
189 - fi
190 -
191 - # Support for logfile rotation
192 - insinto /etc/logrotate.d
193 - newins "${FILESDIR}"/openrc.logrotate openrc
194 -
195 - # install the gentoo pam.d file
196 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
197 -
198 - # install documentation
199 - dodoc ChangeLog README README.busybox README.history \
200 - FEATURE-REMOVAL-SCHEDULE
201 - if use newnet; then
202 - dodoc README.newnet
203 - fi
204 -}
205 -
206 -add_boot_init() {
207 - local initd=$1
208 - local runlevel=${2:-boot}
209 - # if the initscript is not going to be installed and is not
210 - # currently installed, return
211 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
212 - || return
213 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
214 -
215 - # if runlevels dont exist just yet, then create it but still flag
216 - # to pkg_postinst that it needs real setup #277323
217 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
218 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
219 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
220 - fi
221 -
222 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
223 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
224 -}
225 -add_boot_init_mit_config() {
226 - local config=$1 initd=$2
227 - if [[ -e ${EROOT}${config} ]] ; then
228 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
229 - add_boot_init ${initd}
230 - fi
231 - fi
232 -}
233 -
234 -pkg_preinst() {
235 - local f LIBDIR=$(get_libdir)
236 -
237 - # avoid default thrashing in conf.d files when possible #295406
238 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
239 - (
240 - unset hostname HOSTNAME
241 - source "${EROOT}"etc/conf.d/hostname
242 - : ${hostname:=${HOSTNAME}}
243 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
244 - )
245 - fi
246 -
247 - # set default interactive shell to sulogin if it exists
248 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
249 -
250 - # termencoding was added in 0.2.1 and needed in boot
251 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
252 -
253 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
254 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
255 -
256 - if ! has_version ">=sys-apps/openrc-0.11"; then
257 - add_boot_init sysfs sysinit
258 - fi
259 -
260 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
261 - migrate_udev_mount_script
262 - add_boot_init tmpfiles.setup boot
263 - fi
264 -
265 - # these were added in 0.12.
266 - if ! has_version ">=sys-apps/openrc-0.12"; then
267 - add_boot_init loopback
268 - add_boot_init tmpfiles.dev sysinit
269 -
270 - # ensure existing /etc/conf.d/net is not removed
271 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
272 - # this needs to stay in openrc ebuilds for a long time. :(
273 - # Added in 0.12.
274 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
275 - einfo "Modifying conf.d/net to keep it from being removed"
276 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
277 -
278 -# The network scripts are now part of net-misc/netifrc
279 -# In order to avoid sys-apps/${P} from removing this file, this comment was
280 -# added; you can safely remove this comment. Please see
281 -# /usr/share/doc/netifrc*/README* for more information.
282 -EOF
283 - fi
284 - fi
285 -}
286 -
287 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
288 -migrate_udev_mount_script() {
289 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
290 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
291 - add_boot_init udev-mount sysinit
292 - fi
293 - return 0
294 -}
295 -
296 -pkg_postinst() {
297 - local LIBDIR=$(get_libdir)
298 -
299 - # Make our runlevels if they don't exist
300 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
301 - einfo "Copying across default runlevels"
302 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
303 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
304 - else
305 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
306 - mkdir -p "${EROOT}"etc/runlevels/sysinit
307 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
308 - "${EROOT}"etc/runlevels/sysinit
309 - fi
310 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
311 - mkdir -p "${EROOT}"etc/runlevels/shutdown
312 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
313 - "${EROOT}"etc/runlevels/shutdown
314 - fi
315 - fi
316 -
317 - if use hppa; then
318 - elog "Setting the console font does not work on all HPPA consoles."
319 - elog "You can still enable it by running:"
320 - elog "# rc-update add consolefont boot"
321 - fi
322 -
323 - # Handle the conf.d/local.{start,stop} -> local.d transition
324 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
325 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
326 - elog "files to ${EROOT}etc/local.d"
327 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
328 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
329 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
330 - fi
331 -
332 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
333 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
334 - ewarn "The dependency data could not be migrated to /run/openrc."
335 - ewarn "This means you need to reboot your system."
336 - fi
337 - fi
338 -
339 - # update the dependency tree after touching all files #224171
340 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
341 -
342 - if ! use newnet && ! use netifrc; then
343 - ewarn "You have emerged OpenRc without network support. This"
344 - ewarn "means you need to SET UP a network manager such as"
345 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
346 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
347 - ewarn "Or, you have the option of emerging openrc with the newnet"
348 - ewarn "use flag and configuring /etc/conf.d/network and"
349 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
350 - ewarn
351 - fi
352 -
353 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
354 - ewarn "Please add the network service to your boot runlevel"
355 - ewarn "as soon as possible. Not doing so could leave you with a system"
356 - ewarn "without networking."
357 - ewarn
358 - fi
359 -
360 - ewarn "In this version of OpenRC, the loopback interface no longer"
361 - ewarn "satisfies the net virtual."
362 - ewarn "If you have services now which do not start because of this,"
363 - ewarn "They can be fixed by adding rc_need=\"!net\""
364 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
365 - ewarn "You should also file a bug against the service asking that"
366 - ewarn "need net be dropped from the dependencies."
367 - ewarn "The bug you file should block the following tracker:"
368 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
369 - ewarn
370 -
371 - # Updated for 0.13.2.
372 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
373 - ewarn "fixed correctly in earlier versions of OpenRC."
374 - ewarn "The correct fix is implemented in this version, but that"
375 - ewarn "means netmount needs to be added to the default runlevel if"
376 - ewarn "you are using nfs file systems."
377 - ewarn
378 -
379 - elog "You should now update all files in /etc, using etc-update"
380 - elog "or equivalent before restarting any services or this host."
381 -}
382
383 diff --git a/sys-apps/openrc/openrc-0.14.ebuild b/sys-apps/openrc/openrc-0.14.ebuild
384 deleted file mode 100644
385 index bdc3b24..0000000
386 --- a/sys-apps/openrc/openrc-0.14.ebuild
387 +++ /dev/null
388 @@ -1,336 +0,0 @@
389 -# Copyright 1999-2016 Gentoo Foundation
390 -# Distributed under the terms of the GNU General Public License v2
391 -# $Id$
392 -
393 -EAPI=5
394 -
395 -inherit eutils flag-o-matic multilib pam toolchain-funcs
396 -
397 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
398 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
399 -
400 -if [[ ${PV} == "9999" ]]; then
401 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
402 - inherit git-r3
403 -else
404 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
405 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
406 -fi
407 -
408 -LICENSE="BSD-2"
409 -SLOT="0"
410 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
411 - tools unicode kernel_linux kernel_FreeBSD"
412 -
413 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
414 - ncurses? ( sys-libs/ncurses:0= )
415 - pam? (
416 - sys-auth/pambase
417 - virtual/pam
418 - )
419 - tools? ( dev-lang/perl )
420 - audit? ( sys-process/audit )
421 - kernel_linux? (
422 - sys-process/psmisc
423 - !<sys-process/procps-3.3.9-r2
424 - )
425 - selinux? (
426 - sys-apps/policycoreutils
427 - sys-libs/libselinux
428 - )
429 - !<sys-apps/baselayout-2.1-r1
430 - !<sys-fs/udev-init-scripts-27"
431 -DEPEND="${COMMON_DEPEND}
432 - virtual/os-headers
433 - ncurses? ( virtual/pkgconfig )"
434 -RDEPEND="${COMMON_DEPEND}
435 - !prefix? (
436 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
437 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
438 - )
439 - selinux? (
440 - sec-policy/selinux-base-policy
441 - sec-policy/selinux-openrc
442 - )
443 -"
444 -
445 -PDEPEND="netifrc? ( net-misc/netifrc )"
446 -
447 -src_prepare() {
448 - sed -i 's:0444:0644:' mk/sys.mk || die
449 -
450 - if [[ ${PV} == "9999" ]] ; then
451 - local ver="git-${EGIT_VERSION:0:6}"
452 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
453 - fi
454 -
455 - # Allow user patches to be applied without modifying the ebuild
456 - epatch_user
457 -}
458 -
459 -src_compile() {
460 - unset LIBDIR #266688
461 -
462 - MAKE_ARGS="${MAKE_ARGS}
463 - LIBNAME=$(get_libdir)
464 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
465 - MKNET=$(usex newnet)
466 - MKSELINUX=$(usex selinux)
467 - MKAUDIT=$(usex audit)
468 - MKPAM=$(usev pam)
469 - MKSTATICLIBS=$(usex static-libs)
470 - MKTOOLS=$(usex tools)"
471 -
472 - local brand="Unknown"
473 - if use kernel_linux ; then
474 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
475 - brand="Linux"
476 - elif use kernel_FreeBSD ; then
477 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
478 - brand="FreeBSD"
479 - fi
480 - export BRANDING="Gentoo ${brand}"
481 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
482 - export DEBUG=$(usev debug)
483 - export MKTERMCAP=$(usev ncurses)
484 -
485 - tc-export CC AR RANLIB
486 - emake ${MAKE_ARGS}
487 -}
488 -
489 -# set_config <file> <option name> <yes value> <no value> test
490 -# a value of "#" will just comment out the option
491 -set_config() {
492 - local file="${ED}/$1" var=$2 val com
493 - eval "${@:5}" && val=$3 || val=$4
494 - [[ ${val} == "#" ]] && com="#" && val='\2'
495 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
496 -}
497 -
498 -set_config_yes_no() {
499 - set_config "$1" "$2" YES NO "${@:3}"
500 -}
501 -
502 -src_install() {
503 - emake ${MAKE_ARGS} DESTDIR="${D}" install
504 -
505 - # move the shared libs back to /usr so ldscript can install
506 - # more of a minimal set of files
507 - # disabled for now due to #270646
508 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
509 - #gen_usr_ldscript -a einfo rc
510 - gen_usr_ldscript libeinfo.so
511 - gen_usr_ldscript librc.so
512 -
513 - if ! use kernel_linux; then
514 - keepdir /$(get_libdir)/rc/init.d
515 - fi
516 - keepdir /$(get_libdir)/rc/tmp
517 -
518 - # Backup our default runlevels
519 - dodir /usr/share/"${PN}"
520 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
521 - rm -rf "${ED}"/etc/runlevels
522 -
523 - # Setup unicode defaults for silly unicode users
524 - set_config_yes_no /etc/rc.conf unicode use unicode
525 -
526 - # Cater to the norm
527 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
528 -
529 - # On HPPA, do not run consolefont by default (bug #222889)
530 - if use hppa; then
531 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
532 - fi
533 -
534 - # Support for logfile rotation
535 - insinto /etc/logrotate.d
536 - newins "${FILESDIR}"/openrc.logrotate openrc
537 -
538 - # install the gentoo pam.d file
539 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
540 -
541 - # install documentation
542 - dodoc ChangeLog *.md
543 - if use newnet; then
544 - dodoc README.newnet
545 - fi
546 -}
547 -
548 -add_boot_init() {
549 - local initd=$1
550 - local runlevel=${2:-boot}
551 - # if the initscript is not going to be installed and is not
552 - # currently installed, return
553 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
554 - || return
555 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
556 -
557 - # if runlevels dont exist just yet, then create it but still flag
558 - # to pkg_postinst that it needs real setup #277323
559 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
560 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
561 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
562 - fi
563 -
564 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
565 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
566 -}
567 -add_boot_init_mit_config() {
568 - local config=$1 initd=$2
569 - if [[ -e ${EROOT}${config} ]] ; then
570 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
571 - add_boot_init ${initd}
572 - fi
573 - fi
574 -}
575 -
576 -pkg_preinst() {
577 - local f LIBDIR=$(get_libdir)
578 -
579 - # avoid default thrashing in conf.d files when possible #295406
580 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
581 - (
582 - unset hostname HOSTNAME
583 - source "${EROOT}"etc/conf.d/hostname
584 - : ${hostname:=${HOSTNAME}}
585 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
586 - )
587 - fi
588 -
589 - # set default interactive shell to sulogin if it exists
590 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
591 -
592 - # termencoding was added in 0.2.1 and needed in boot
593 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
594 -
595 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
596 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
597 -
598 - if ! has_version ">=sys-apps/openrc-0.11"; then
599 - add_boot_init sysfs sysinit
600 - fi
601 -
602 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
603 - migrate_udev_mount_script
604 - add_boot_init tmpfiles.setup boot
605 - fi
606 -
607 - # these were added in 0.12.
608 - if ! has_version ">=sys-apps/openrc-0.12"; then
609 - add_boot_init loopback
610 - add_boot_init tmpfiles.dev sysinit
611 -
612 - # ensure existing /etc/conf.d/net is not removed
613 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
614 - # this needs to stay in openrc ebuilds for a long time. :(
615 - # Added in 0.12.
616 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
617 - einfo "Modifying conf.d/net to keep it from being removed"
618 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
619 -
620 -# The network scripts are now part of net-misc/netifrc
621 -# In order to avoid sys-apps/${P} from removing this file, this comment was
622 -# added; you can safely remove this comment. Please see
623 -# /usr/share/doc/netifrc*/README* for more information.
624 -EOF
625 - fi
626 - fi
627 - has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
628 -}
629 -
630 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
631 -migrate_udev_mount_script() {
632 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
633 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
634 - add_boot_init udev-mount sysinit
635 - fi
636 - return 0
637 -}
638 -
639 -pkg_postinst() {
640 - local LIBDIR=$(get_libdir)
641 -
642 - # Make our runlevels if they don't exist
643 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
644 - einfo "Copying across default runlevels"
645 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
646 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
647 - else
648 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
649 - mkdir -p "${EROOT}"etc/runlevels/sysinit
650 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
651 - "${EROOT}"etc/runlevels/sysinit
652 - fi
653 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
654 - mkdir -p "${EROOT}"etc/runlevels/shutdown
655 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
656 - "${EROOT}"etc/runlevels/shutdown
657 - fi
658 - fi
659 -
660 - if use hppa; then
661 - elog "Setting the console font does not work on all HPPA consoles."
662 - elog "You can still enable it by running:"
663 - elog "# rc-update add consolefont boot"
664 - fi
665 -
666 - # Handle the conf.d/local.{start,stop} -> local.d transition
667 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
668 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
669 - elog "files to ${EROOT}etc/local.d"
670 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
671 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
672 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
673 - fi
674 -
675 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
676 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
677 - ewarn "The dependency data could not be migrated to /run/openrc."
678 - ewarn "This means you need to reboot your system."
679 - fi
680 - fi
681 -
682 - # update the dependency tree after touching all files #224171
683 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
684 -
685 - if ! use newnet && ! use netifrc; then
686 - ewarn "You have emerged OpenRc without network support. This"
687 - ewarn "means you need to SET UP a network manager such as"
688 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
689 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
690 - ewarn "Or, you have the option of emerging openrc with the newnet"
691 - ewarn "use flag and configuring /etc/conf.d/network and"
692 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
693 - ewarn
694 - fi
695 -
696 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
697 - ewarn "Please add the network service to your boot runlevel"
698 - ewarn "as soon as possible. Not doing so could leave you with a system"
699 - ewarn "without networking."
700 - ewarn
701 - fi
702 -
703 - ewarn "In this version of OpenRC, the loopback interface no longer"
704 - ewarn "satisfies the net virtual."
705 - ewarn "If you have services now which do not start because of this,"
706 - ewarn "They can be fixed by adding rc_need=\"!net\""
707 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
708 - ewarn "You should also file a bug against the service asking that"
709 - ewarn "need net be dropped from the dependencies."
710 - ewarn "The bug you file should block the following tracker:"
711 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
712 - ewarn
713 -
714 - # Updated for 0.13.2.
715 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
716 - ewarn "fixed correctly in earlier versions of OpenRC."
717 - ewarn "The correct fix is implemented in this version, but that"
718 - ewarn "means netmount needs to be added to the default runlevel if"
719 - ewarn "you are using nfs file systems."
720 - ewarn
721 -
722 - elog "You should now update all files in /etc, using etc-update"
723 - elog "or equivalent before restarting any services or this host."
724 -}
725
726 diff --git a/sys-apps/openrc/openrc-0.15.1.ebuild b/sys-apps/openrc/openrc-0.15.1.ebuild
727 deleted file mode 100644
728 index bdc3b24..0000000
729 --- a/sys-apps/openrc/openrc-0.15.1.ebuild
730 +++ /dev/null
731 @@ -1,336 +0,0 @@
732 -# Copyright 1999-2016 Gentoo Foundation
733 -# Distributed under the terms of the GNU General Public License v2
734 -# $Id$
735 -
736 -EAPI=5
737 -
738 -inherit eutils flag-o-matic multilib pam toolchain-funcs
739 -
740 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
741 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
742 -
743 -if [[ ${PV} == "9999" ]]; then
744 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
745 - inherit git-r3
746 -else
747 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
748 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
749 -fi
750 -
751 -LICENSE="BSD-2"
752 -SLOT="0"
753 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
754 - tools unicode kernel_linux kernel_FreeBSD"
755 -
756 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
757 - ncurses? ( sys-libs/ncurses:0= )
758 - pam? (
759 - sys-auth/pambase
760 - virtual/pam
761 - )
762 - tools? ( dev-lang/perl )
763 - audit? ( sys-process/audit )
764 - kernel_linux? (
765 - sys-process/psmisc
766 - !<sys-process/procps-3.3.9-r2
767 - )
768 - selinux? (
769 - sys-apps/policycoreutils
770 - sys-libs/libselinux
771 - )
772 - !<sys-apps/baselayout-2.1-r1
773 - !<sys-fs/udev-init-scripts-27"
774 -DEPEND="${COMMON_DEPEND}
775 - virtual/os-headers
776 - ncurses? ( virtual/pkgconfig )"
777 -RDEPEND="${COMMON_DEPEND}
778 - !prefix? (
779 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
780 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
781 - )
782 - selinux? (
783 - sec-policy/selinux-base-policy
784 - sec-policy/selinux-openrc
785 - )
786 -"
787 -
788 -PDEPEND="netifrc? ( net-misc/netifrc )"
789 -
790 -src_prepare() {
791 - sed -i 's:0444:0644:' mk/sys.mk || die
792 -
793 - if [[ ${PV} == "9999" ]] ; then
794 - local ver="git-${EGIT_VERSION:0:6}"
795 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
796 - fi
797 -
798 - # Allow user patches to be applied without modifying the ebuild
799 - epatch_user
800 -}
801 -
802 -src_compile() {
803 - unset LIBDIR #266688
804 -
805 - MAKE_ARGS="${MAKE_ARGS}
806 - LIBNAME=$(get_libdir)
807 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
808 - MKNET=$(usex newnet)
809 - MKSELINUX=$(usex selinux)
810 - MKAUDIT=$(usex audit)
811 - MKPAM=$(usev pam)
812 - MKSTATICLIBS=$(usex static-libs)
813 - MKTOOLS=$(usex tools)"
814 -
815 - local brand="Unknown"
816 - if use kernel_linux ; then
817 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
818 - brand="Linux"
819 - elif use kernel_FreeBSD ; then
820 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
821 - brand="FreeBSD"
822 - fi
823 - export BRANDING="Gentoo ${brand}"
824 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
825 - export DEBUG=$(usev debug)
826 - export MKTERMCAP=$(usev ncurses)
827 -
828 - tc-export CC AR RANLIB
829 - emake ${MAKE_ARGS}
830 -}
831 -
832 -# set_config <file> <option name> <yes value> <no value> test
833 -# a value of "#" will just comment out the option
834 -set_config() {
835 - local file="${ED}/$1" var=$2 val com
836 - eval "${@:5}" && val=$3 || val=$4
837 - [[ ${val} == "#" ]] && com="#" && val='\2'
838 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
839 -}
840 -
841 -set_config_yes_no() {
842 - set_config "$1" "$2" YES NO "${@:3}"
843 -}
844 -
845 -src_install() {
846 - emake ${MAKE_ARGS} DESTDIR="${D}" install
847 -
848 - # move the shared libs back to /usr so ldscript can install
849 - # more of a minimal set of files
850 - # disabled for now due to #270646
851 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
852 - #gen_usr_ldscript -a einfo rc
853 - gen_usr_ldscript libeinfo.so
854 - gen_usr_ldscript librc.so
855 -
856 - if ! use kernel_linux; then
857 - keepdir /$(get_libdir)/rc/init.d
858 - fi
859 - keepdir /$(get_libdir)/rc/tmp
860 -
861 - # Backup our default runlevels
862 - dodir /usr/share/"${PN}"
863 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
864 - rm -rf "${ED}"/etc/runlevels
865 -
866 - # Setup unicode defaults for silly unicode users
867 - set_config_yes_no /etc/rc.conf unicode use unicode
868 -
869 - # Cater to the norm
870 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
871 -
872 - # On HPPA, do not run consolefont by default (bug #222889)
873 - if use hppa; then
874 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
875 - fi
876 -
877 - # Support for logfile rotation
878 - insinto /etc/logrotate.d
879 - newins "${FILESDIR}"/openrc.logrotate openrc
880 -
881 - # install the gentoo pam.d file
882 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
883 -
884 - # install documentation
885 - dodoc ChangeLog *.md
886 - if use newnet; then
887 - dodoc README.newnet
888 - fi
889 -}
890 -
891 -add_boot_init() {
892 - local initd=$1
893 - local runlevel=${2:-boot}
894 - # if the initscript is not going to be installed and is not
895 - # currently installed, return
896 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
897 - || return
898 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
899 -
900 - # if runlevels dont exist just yet, then create it but still flag
901 - # to pkg_postinst that it needs real setup #277323
902 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
903 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
904 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
905 - fi
906 -
907 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
908 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
909 -}
910 -add_boot_init_mit_config() {
911 - local config=$1 initd=$2
912 - if [[ -e ${EROOT}${config} ]] ; then
913 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
914 - add_boot_init ${initd}
915 - fi
916 - fi
917 -}
918 -
919 -pkg_preinst() {
920 - local f LIBDIR=$(get_libdir)
921 -
922 - # avoid default thrashing in conf.d files when possible #295406
923 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
924 - (
925 - unset hostname HOSTNAME
926 - source "${EROOT}"etc/conf.d/hostname
927 - : ${hostname:=${HOSTNAME}}
928 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
929 - )
930 - fi
931 -
932 - # set default interactive shell to sulogin if it exists
933 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
934 -
935 - # termencoding was added in 0.2.1 and needed in boot
936 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
937 -
938 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
939 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
940 -
941 - if ! has_version ">=sys-apps/openrc-0.11"; then
942 - add_boot_init sysfs sysinit
943 - fi
944 -
945 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
946 - migrate_udev_mount_script
947 - add_boot_init tmpfiles.setup boot
948 - fi
949 -
950 - # these were added in 0.12.
951 - if ! has_version ">=sys-apps/openrc-0.12"; then
952 - add_boot_init loopback
953 - add_boot_init tmpfiles.dev sysinit
954 -
955 - # ensure existing /etc/conf.d/net is not removed
956 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
957 - # this needs to stay in openrc ebuilds for a long time. :(
958 - # Added in 0.12.
959 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
960 - einfo "Modifying conf.d/net to keep it from being removed"
961 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
962 -
963 -# The network scripts are now part of net-misc/netifrc
964 -# In order to avoid sys-apps/${P} from removing this file, this comment was
965 -# added; you can safely remove this comment. Please see
966 -# /usr/share/doc/netifrc*/README* for more information.
967 -EOF
968 - fi
969 - fi
970 - has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
971 -}
972 -
973 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
974 -migrate_udev_mount_script() {
975 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
976 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
977 - add_boot_init udev-mount sysinit
978 - fi
979 - return 0
980 -}
981 -
982 -pkg_postinst() {
983 - local LIBDIR=$(get_libdir)
984 -
985 - # Make our runlevels if they don't exist
986 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
987 - einfo "Copying across default runlevels"
988 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
989 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
990 - else
991 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
992 - mkdir -p "${EROOT}"etc/runlevels/sysinit
993 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
994 - "${EROOT}"etc/runlevels/sysinit
995 - fi
996 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
997 - mkdir -p "${EROOT}"etc/runlevels/shutdown
998 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
999 - "${EROOT}"etc/runlevels/shutdown
1000 - fi
1001 - fi
1002 -
1003 - if use hppa; then
1004 - elog "Setting the console font does not work on all HPPA consoles."
1005 - elog "You can still enable it by running:"
1006 - elog "# rc-update add consolefont boot"
1007 - fi
1008 -
1009 - # Handle the conf.d/local.{start,stop} -> local.d transition
1010 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
1011 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
1012 - elog "files to ${EROOT}etc/local.d"
1013 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
1014 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
1015 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
1016 - fi
1017 -
1018 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
1019 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
1020 - ewarn "The dependency data could not be migrated to /run/openrc."
1021 - ewarn "This means you need to reboot your system."
1022 - fi
1023 - fi
1024 -
1025 - # update the dependency tree after touching all files #224171
1026 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
1027 -
1028 - if ! use newnet && ! use netifrc; then
1029 - ewarn "You have emerged OpenRc without network support. This"
1030 - ewarn "means you need to SET UP a network manager such as"
1031 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
1032 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
1033 - ewarn "Or, you have the option of emerging openrc with the newnet"
1034 - ewarn "use flag and configuring /etc/conf.d/network and"
1035 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
1036 - ewarn
1037 - fi
1038 -
1039 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
1040 - ewarn "Please add the network service to your boot runlevel"
1041 - ewarn "as soon as possible. Not doing so could leave you with a system"
1042 - ewarn "without networking."
1043 - ewarn
1044 - fi
1045 -
1046 - ewarn "In this version of OpenRC, the loopback interface no longer"
1047 - ewarn "satisfies the net virtual."
1048 - ewarn "If you have services now which do not start because of this,"
1049 - ewarn "They can be fixed by adding rc_need=\"!net\""
1050 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
1051 - ewarn "You should also file a bug against the service asking that"
1052 - ewarn "need net be dropped from the dependencies."
1053 - ewarn "The bug you file should block the following tracker:"
1054 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
1055 - ewarn
1056 -
1057 - # Updated for 0.13.2.
1058 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
1059 - ewarn "fixed correctly in earlier versions of OpenRC."
1060 - ewarn "The correct fix is implemented in this version, but that"
1061 - ewarn "means netmount needs to be added to the default runlevel if"
1062 - ewarn "you are using nfs file systems."
1063 - ewarn
1064 -
1065 - elog "You should now update all files in /etc, using etc-update"
1066 - elog "or equivalent before restarting any services or this host."
1067 -}
1068
1069 diff --git a/sys-apps/openrc/openrc-0.15.ebuild b/sys-apps/openrc/openrc-0.15.ebuild
1070 deleted file mode 100644
1071 index bdc3b24..0000000
1072 --- a/sys-apps/openrc/openrc-0.15.ebuild
1073 +++ /dev/null
1074 @@ -1,336 +0,0 @@
1075 -# Copyright 1999-2016 Gentoo Foundation
1076 -# Distributed under the terms of the GNU General Public License v2
1077 -# $Id$
1078 -
1079 -EAPI=5
1080 -
1081 -inherit eutils flag-o-matic multilib pam toolchain-funcs
1082 -
1083 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
1084 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
1085 -
1086 -if [[ ${PV} == "9999" ]]; then
1087 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
1088 - inherit git-r3
1089 -else
1090 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
1091 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1092 -fi
1093 -
1094 -LICENSE="BSD-2"
1095 -SLOT="0"
1096 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
1097 - tools unicode kernel_linux kernel_FreeBSD"
1098 -
1099 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
1100 - ncurses? ( sys-libs/ncurses:0= )
1101 - pam? (
1102 - sys-auth/pambase
1103 - virtual/pam
1104 - )
1105 - tools? ( dev-lang/perl )
1106 - audit? ( sys-process/audit )
1107 - kernel_linux? (
1108 - sys-process/psmisc
1109 - !<sys-process/procps-3.3.9-r2
1110 - )
1111 - selinux? (
1112 - sys-apps/policycoreutils
1113 - sys-libs/libselinux
1114 - )
1115 - !<sys-apps/baselayout-2.1-r1
1116 - !<sys-fs/udev-init-scripts-27"
1117 -DEPEND="${COMMON_DEPEND}
1118 - virtual/os-headers
1119 - ncurses? ( virtual/pkgconfig )"
1120 -RDEPEND="${COMMON_DEPEND}
1121 - !prefix? (
1122 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
1123 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
1124 - )
1125 - selinux? (
1126 - sec-policy/selinux-base-policy
1127 - sec-policy/selinux-openrc
1128 - )
1129 -"
1130 -
1131 -PDEPEND="netifrc? ( net-misc/netifrc )"
1132 -
1133 -src_prepare() {
1134 - sed -i 's:0444:0644:' mk/sys.mk || die
1135 -
1136 - if [[ ${PV} == "9999" ]] ; then
1137 - local ver="git-${EGIT_VERSION:0:6}"
1138 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
1139 - fi
1140 -
1141 - # Allow user patches to be applied without modifying the ebuild
1142 - epatch_user
1143 -}
1144 -
1145 -src_compile() {
1146 - unset LIBDIR #266688
1147 -
1148 - MAKE_ARGS="${MAKE_ARGS}
1149 - LIBNAME=$(get_libdir)
1150 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
1151 - MKNET=$(usex newnet)
1152 - MKSELINUX=$(usex selinux)
1153 - MKAUDIT=$(usex audit)
1154 - MKPAM=$(usev pam)
1155 - MKSTATICLIBS=$(usex static-libs)
1156 - MKTOOLS=$(usex tools)"
1157 -
1158 - local brand="Unknown"
1159 - if use kernel_linux ; then
1160 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
1161 - brand="Linux"
1162 - elif use kernel_FreeBSD ; then
1163 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
1164 - brand="FreeBSD"
1165 - fi
1166 - export BRANDING="Gentoo ${brand}"
1167 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
1168 - export DEBUG=$(usev debug)
1169 - export MKTERMCAP=$(usev ncurses)
1170 -
1171 - tc-export CC AR RANLIB
1172 - emake ${MAKE_ARGS}
1173 -}
1174 -
1175 -# set_config <file> <option name> <yes value> <no value> test
1176 -# a value of "#" will just comment out the option
1177 -set_config() {
1178 - local file="${ED}/$1" var=$2 val com
1179 - eval "${@:5}" && val=$3 || val=$4
1180 - [[ ${val} == "#" ]] && com="#" && val='\2'
1181 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
1182 -}
1183 -
1184 -set_config_yes_no() {
1185 - set_config "$1" "$2" YES NO "${@:3}"
1186 -}
1187 -
1188 -src_install() {
1189 - emake ${MAKE_ARGS} DESTDIR="${D}" install
1190 -
1191 - # move the shared libs back to /usr so ldscript can install
1192 - # more of a minimal set of files
1193 - # disabled for now due to #270646
1194 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
1195 - #gen_usr_ldscript -a einfo rc
1196 - gen_usr_ldscript libeinfo.so
1197 - gen_usr_ldscript librc.so
1198 -
1199 - if ! use kernel_linux; then
1200 - keepdir /$(get_libdir)/rc/init.d
1201 - fi
1202 - keepdir /$(get_libdir)/rc/tmp
1203 -
1204 - # Backup our default runlevels
1205 - dodir /usr/share/"${PN}"
1206 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
1207 - rm -rf "${ED}"/etc/runlevels
1208 -
1209 - # Setup unicode defaults for silly unicode users
1210 - set_config_yes_no /etc/rc.conf unicode use unicode
1211 -
1212 - # Cater to the norm
1213 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
1214 -
1215 - # On HPPA, do not run consolefont by default (bug #222889)
1216 - if use hppa; then
1217 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
1218 - fi
1219 -
1220 - # Support for logfile rotation
1221 - insinto /etc/logrotate.d
1222 - newins "${FILESDIR}"/openrc.logrotate openrc
1223 -
1224 - # install the gentoo pam.d file
1225 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
1226 -
1227 - # install documentation
1228 - dodoc ChangeLog *.md
1229 - if use newnet; then
1230 - dodoc README.newnet
1231 - fi
1232 -}
1233 -
1234 -add_boot_init() {
1235 - local initd=$1
1236 - local runlevel=${2:-boot}
1237 - # if the initscript is not going to be installed and is not
1238 - # currently installed, return
1239 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
1240 - || return
1241 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
1242 -
1243 - # if runlevels dont exist just yet, then create it but still flag
1244 - # to pkg_postinst that it needs real setup #277323
1245 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
1246 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
1247 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
1248 - fi
1249 -
1250 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
1251 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
1252 -}
1253 -add_boot_init_mit_config() {
1254 - local config=$1 initd=$2
1255 - if [[ -e ${EROOT}${config} ]] ; then
1256 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
1257 - add_boot_init ${initd}
1258 - fi
1259 - fi
1260 -}
1261 -
1262 -pkg_preinst() {
1263 - local f LIBDIR=$(get_libdir)
1264 -
1265 - # avoid default thrashing in conf.d files when possible #295406
1266 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
1267 - (
1268 - unset hostname HOSTNAME
1269 - source "${EROOT}"etc/conf.d/hostname
1270 - : ${hostname:=${HOSTNAME}}
1271 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
1272 - )
1273 - fi
1274 -
1275 - # set default interactive shell to sulogin if it exists
1276 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
1277 -
1278 - # termencoding was added in 0.2.1 and needed in boot
1279 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
1280 -
1281 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
1282 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
1283 -
1284 - if ! has_version ">=sys-apps/openrc-0.11"; then
1285 - add_boot_init sysfs sysinit
1286 - fi
1287 -
1288 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
1289 - migrate_udev_mount_script
1290 - add_boot_init tmpfiles.setup boot
1291 - fi
1292 -
1293 - # these were added in 0.12.
1294 - if ! has_version ">=sys-apps/openrc-0.12"; then
1295 - add_boot_init loopback
1296 - add_boot_init tmpfiles.dev sysinit
1297 -
1298 - # ensure existing /etc/conf.d/net is not removed
1299 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
1300 - # this needs to stay in openrc ebuilds for a long time. :(
1301 - # Added in 0.12.
1302 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
1303 - einfo "Modifying conf.d/net to keep it from being removed"
1304 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
1305 -
1306 -# The network scripts are now part of net-misc/netifrc
1307 -# In order to avoid sys-apps/${P} from removing this file, this comment was
1308 -# added; you can safely remove this comment. Please see
1309 -# /usr/share/doc/netifrc*/README* for more information.
1310 -EOF
1311 - fi
1312 - fi
1313 - has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
1314 -}
1315 -
1316 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
1317 -migrate_udev_mount_script() {
1318 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
1319 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
1320 - add_boot_init udev-mount sysinit
1321 - fi
1322 - return 0
1323 -}
1324 -
1325 -pkg_postinst() {
1326 - local LIBDIR=$(get_libdir)
1327 -
1328 - # Make our runlevels if they don't exist
1329 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
1330 - einfo "Copying across default runlevels"
1331 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
1332 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
1333 - else
1334 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
1335 - mkdir -p "${EROOT}"etc/runlevels/sysinit
1336 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
1337 - "${EROOT}"etc/runlevels/sysinit
1338 - fi
1339 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
1340 - mkdir -p "${EROOT}"etc/runlevels/shutdown
1341 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
1342 - "${EROOT}"etc/runlevels/shutdown
1343 - fi
1344 - fi
1345 -
1346 - if use hppa; then
1347 - elog "Setting the console font does not work on all HPPA consoles."
1348 - elog "You can still enable it by running:"
1349 - elog "# rc-update add consolefont boot"
1350 - fi
1351 -
1352 - # Handle the conf.d/local.{start,stop} -> local.d transition
1353 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
1354 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
1355 - elog "files to ${EROOT}etc/local.d"
1356 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
1357 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
1358 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
1359 - fi
1360 -
1361 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
1362 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
1363 - ewarn "The dependency data could not be migrated to /run/openrc."
1364 - ewarn "This means you need to reboot your system."
1365 - fi
1366 - fi
1367 -
1368 - # update the dependency tree after touching all files #224171
1369 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
1370 -
1371 - if ! use newnet && ! use netifrc; then
1372 - ewarn "You have emerged OpenRc without network support. This"
1373 - ewarn "means you need to SET UP a network manager such as"
1374 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
1375 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
1376 - ewarn "Or, you have the option of emerging openrc with the newnet"
1377 - ewarn "use flag and configuring /etc/conf.d/network and"
1378 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
1379 - ewarn
1380 - fi
1381 -
1382 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
1383 - ewarn "Please add the network service to your boot runlevel"
1384 - ewarn "as soon as possible. Not doing so could leave you with a system"
1385 - ewarn "without networking."
1386 - ewarn
1387 - fi
1388 -
1389 - ewarn "In this version of OpenRC, the loopback interface no longer"
1390 - ewarn "satisfies the net virtual."
1391 - ewarn "If you have services now which do not start because of this,"
1392 - ewarn "They can be fixed by adding rc_need=\"!net\""
1393 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
1394 - ewarn "You should also file a bug against the service asking that"
1395 - ewarn "need net be dropped from the dependencies."
1396 - ewarn "The bug you file should block the following tracker:"
1397 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
1398 - ewarn
1399 -
1400 - # Updated for 0.13.2.
1401 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
1402 - ewarn "fixed correctly in earlier versions of OpenRC."
1403 - ewarn "The correct fix is implemented in this version, but that"
1404 - ewarn "means netmount needs to be added to the default runlevel if"
1405 - ewarn "you are using nfs file systems."
1406 - ewarn
1407 -
1408 - elog "You should now update all files in /etc, using etc-update"
1409 - elog "or equivalent before restarting any services or this host."
1410 -}
1411
1412 diff --git a/sys-apps/openrc/openrc-0.16.1.ebuild b/sys-apps/openrc/openrc-0.16.1.ebuild
1413 deleted file mode 100644
1414 index bdc3b24..0000000
1415 --- a/sys-apps/openrc/openrc-0.16.1.ebuild
1416 +++ /dev/null
1417 @@ -1,336 +0,0 @@
1418 -# Copyright 1999-2016 Gentoo Foundation
1419 -# Distributed under the terms of the GNU General Public License v2
1420 -# $Id$
1421 -
1422 -EAPI=5
1423 -
1424 -inherit eutils flag-o-matic multilib pam toolchain-funcs
1425 -
1426 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
1427 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
1428 -
1429 -if [[ ${PV} == "9999" ]]; then
1430 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
1431 - inherit git-r3
1432 -else
1433 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
1434 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1435 -fi
1436 -
1437 -LICENSE="BSD-2"
1438 -SLOT="0"
1439 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
1440 - tools unicode kernel_linux kernel_FreeBSD"
1441 -
1442 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
1443 - ncurses? ( sys-libs/ncurses:0= )
1444 - pam? (
1445 - sys-auth/pambase
1446 - virtual/pam
1447 - )
1448 - tools? ( dev-lang/perl )
1449 - audit? ( sys-process/audit )
1450 - kernel_linux? (
1451 - sys-process/psmisc
1452 - !<sys-process/procps-3.3.9-r2
1453 - )
1454 - selinux? (
1455 - sys-apps/policycoreutils
1456 - sys-libs/libselinux
1457 - )
1458 - !<sys-apps/baselayout-2.1-r1
1459 - !<sys-fs/udev-init-scripts-27"
1460 -DEPEND="${COMMON_DEPEND}
1461 - virtual/os-headers
1462 - ncurses? ( virtual/pkgconfig )"
1463 -RDEPEND="${COMMON_DEPEND}
1464 - !prefix? (
1465 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
1466 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
1467 - )
1468 - selinux? (
1469 - sec-policy/selinux-base-policy
1470 - sec-policy/selinux-openrc
1471 - )
1472 -"
1473 -
1474 -PDEPEND="netifrc? ( net-misc/netifrc )"
1475 -
1476 -src_prepare() {
1477 - sed -i 's:0444:0644:' mk/sys.mk || die
1478 -
1479 - if [[ ${PV} == "9999" ]] ; then
1480 - local ver="git-${EGIT_VERSION:0:6}"
1481 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
1482 - fi
1483 -
1484 - # Allow user patches to be applied without modifying the ebuild
1485 - epatch_user
1486 -}
1487 -
1488 -src_compile() {
1489 - unset LIBDIR #266688
1490 -
1491 - MAKE_ARGS="${MAKE_ARGS}
1492 - LIBNAME=$(get_libdir)
1493 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
1494 - MKNET=$(usex newnet)
1495 - MKSELINUX=$(usex selinux)
1496 - MKAUDIT=$(usex audit)
1497 - MKPAM=$(usev pam)
1498 - MKSTATICLIBS=$(usex static-libs)
1499 - MKTOOLS=$(usex tools)"
1500 -
1501 - local brand="Unknown"
1502 - if use kernel_linux ; then
1503 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
1504 - brand="Linux"
1505 - elif use kernel_FreeBSD ; then
1506 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
1507 - brand="FreeBSD"
1508 - fi
1509 - export BRANDING="Gentoo ${brand}"
1510 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
1511 - export DEBUG=$(usev debug)
1512 - export MKTERMCAP=$(usev ncurses)
1513 -
1514 - tc-export CC AR RANLIB
1515 - emake ${MAKE_ARGS}
1516 -}
1517 -
1518 -# set_config <file> <option name> <yes value> <no value> test
1519 -# a value of "#" will just comment out the option
1520 -set_config() {
1521 - local file="${ED}/$1" var=$2 val com
1522 - eval "${@:5}" && val=$3 || val=$4
1523 - [[ ${val} == "#" ]] && com="#" && val='\2'
1524 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
1525 -}
1526 -
1527 -set_config_yes_no() {
1528 - set_config "$1" "$2" YES NO "${@:3}"
1529 -}
1530 -
1531 -src_install() {
1532 - emake ${MAKE_ARGS} DESTDIR="${D}" install
1533 -
1534 - # move the shared libs back to /usr so ldscript can install
1535 - # more of a minimal set of files
1536 - # disabled for now due to #270646
1537 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
1538 - #gen_usr_ldscript -a einfo rc
1539 - gen_usr_ldscript libeinfo.so
1540 - gen_usr_ldscript librc.so
1541 -
1542 - if ! use kernel_linux; then
1543 - keepdir /$(get_libdir)/rc/init.d
1544 - fi
1545 - keepdir /$(get_libdir)/rc/tmp
1546 -
1547 - # Backup our default runlevels
1548 - dodir /usr/share/"${PN}"
1549 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
1550 - rm -rf "${ED}"/etc/runlevels
1551 -
1552 - # Setup unicode defaults for silly unicode users
1553 - set_config_yes_no /etc/rc.conf unicode use unicode
1554 -
1555 - # Cater to the norm
1556 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
1557 -
1558 - # On HPPA, do not run consolefont by default (bug #222889)
1559 - if use hppa; then
1560 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
1561 - fi
1562 -
1563 - # Support for logfile rotation
1564 - insinto /etc/logrotate.d
1565 - newins "${FILESDIR}"/openrc.logrotate openrc
1566 -
1567 - # install the gentoo pam.d file
1568 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
1569 -
1570 - # install documentation
1571 - dodoc ChangeLog *.md
1572 - if use newnet; then
1573 - dodoc README.newnet
1574 - fi
1575 -}
1576 -
1577 -add_boot_init() {
1578 - local initd=$1
1579 - local runlevel=${2:-boot}
1580 - # if the initscript is not going to be installed and is not
1581 - # currently installed, return
1582 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
1583 - || return
1584 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
1585 -
1586 - # if runlevels dont exist just yet, then create it but still flag
1587 - # to pkg_postinst that it needs real setup #277323
1588 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
1589 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
1590 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
1591 - fi
1592 -
1593 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
1594 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
1595 -}
1596 -add_boot_init_mit_config() {
1597 - local config=$1 initd=$2
1598 - if [[ -e ${EROOT}${config} ]] ; then
1599 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
1600 - add_boot_init ${initd}
1601 - fi
1602 - fi
1603 -}
1604 -
1605 -pkg_preinst() {
1606 - local f LIBDIR=$(get_libdir)
1607 -
1608 - # avoid default thrashing in conf.d files when possible #295406
1609 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
1610 - (
1611 - unset hostname HOSTNAME
1612 - source "${EROOT}"etc/conf.d/hostname
1613 - : ${hostname:=${HOSTNAME}}
1614 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
1615 - )
1616 - fi
1617 -
1618 - # set default interactive shell to sulogin if it exists
1619 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
1620 -
1621 - # termencoding was added in 0.2.1 and needed in boot
1622 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
1623 -
1624 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
1625 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
1626 -
1627 - if ! has_version ">=sys-apps/openrc-0.11"; then
1628 - add_boot_init sysfs sysinit
1629 - fi
1630 -
1631 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
1632 - migrate_udev_mount_script
1633 - add_boot_init tmpfiles.setup boot
1634 - fi
1635 -
1636 - # these were added in 0.12.
1637 - if ! has_version ">=sys-apps/openrc-0.12"; then
1638 - add_boot_init loopback
1639 - add_boot_init tmpfiles.dev sysinit
1640 -
1641 - # ensure existing /etc/conf.d/net is not removed
1642 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
1643 - # this needs to stay in openrc ebuilds for a long time. :(
1644 - # Added in 0.12.
1645 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
1646 - einfo "Modifying conf.d/net to keep it from being removed"
1647 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
1648 -
1649 -# The network scripts are now part of net-misc/netifrc
1650 -# In order to avoid sys-apps/${P} from removing this file, this comment was
1651 -# added; you can safely remove this comment. Please see
1652 -# /usr/share/doc/netifrc*/README* for more information.
1653 -EOF
1654 - fi
1655 - fi
1656 - has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
1657 -}
1658 -
1659 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
1660 -migrate_udev_mount_script() {
1661 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
1662 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
1663 - add_boot_init udev-mount sysinit
1664 - fi
1665 - return 0
1666 -}
1667 -
1668 -pkg_postinst() {
1669 - local LIBDIR=$(get_libdir)
1670 -
1671 - # Make our runlevels if they don't exist
1672 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
1673 - einfo "Copying across default runlevels"
1674 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
1675 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
1676 - else
1677 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
1678 - mkdir -p "${EROOT}"etc/runlevels/sysinit
1679 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
1680 - "${EROOT}"etc/runlevels/sysinit
1681 - fi
1682 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
1683 - mkdir -p "${EROOT}"etc/runlevels/shutdown
1684 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
1685 - "${EROOT}"etc/runlevels/shutdown
1686 - fi
1687 - fi
1688 -
1689 - if use hppa; then
1690 - elog "Setting the console font does not work on all HPPA consoles."
1691 - elog "You can still enable it by running:"
1692 - elog "# rc-update add consolefont boot"
1693 - fi
1694 -
1695 - # Handle the conf.d/local.{start,stop} -> local.d transition
1696 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
1697 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
1698 - elog "files to ${EROOT}etc/local.d"
1699 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
1700 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
1701 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
1702 - fi
1703 -
1704 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
1705 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
1706 - ewarn "The dependency data could not be migrated to /run/openrc."
1707 - ewarn "This means you need to reboot your system."
1708 - fi
1709 - fi
1710 -
1711 - # update the dependency tree after touching all files #224171
1712 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
1713 -
1714 - if ! use newnet && ! use netifrc; then
1715 - ewarn "You have emerged OpenRc without network support. This"
1716 - ewarn "means you need to SET UP a network manager such as"
1717 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
1718 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
1719 - ewarn "Or, you have the option of emerging openrc with the newnet"
1720 - ewarn "use flag and configuring /etc/conf.d/network and"
1721 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
1722 - ewarn
1723 - fi
1724 -
1725 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
1726 - ewarn "Please add the network service to your boot runlevel"
1727 - ewarn "as soon as possible. Not doing so could leave you with a system"
1728 - ewarn "without networking."
1729 - ewarn
1730 - fi
1731 -
1732 - ewarn "In this version of OpenRC, the loopback interface no longer"
1733 - ewarn "satisfies the net virtual."
1734 - ewarn "If you have services now which do not start because of this,"
1735 - ewarn "They can be fixed by adding rc_need=\"!net\""
1736 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
1737 - ewarn "You should also file a bug against the service asking that"
1738 - ewarn "need net be dropped from the dependencies."
1739 - ewarn "The bug you file should block the following tracker:"
1740 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
1741 - ewarn
1742 -
1743 - # Updated for 0.13.2.
1744 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
1745 - ewarn "fixed correctly in earlier versions of OpenRC."
1746 - ewarn "The correct fix is implemented in this version, but that"
1747 - ewarn "means netmount needs to be added to the default runlevel if"
1748 - ewarn "you are using nfs file systems."
1749 - ewarn
1750 -
1751 - elog "You should now update all files in /etc, using etc-update"
1752 - elog "or equivalent before restarting any services or this host."
1753 -}
1754
1755 diff --git a/sys-apps/openrc/openrc-0.16.2.ebuild b/sys-apps/openrc/openrc-0.16.2.ebuild
1756 deleted file mode 100644
1757 index bdc3b24..0000000
1758 --- a/sys-apps/openrc/openrc-0.16.2.ebuild
1759 +++ /dev/null
1760 @@ -1,336 +0,0 @@
1761 -# Copyright 1999-2016 Gentoo Foundation
1762 -# Distributed under the terms of the GNU General Public License v2
1763 -# $Id$
1764 -
1765 -EAPI=5
1766 -
1767 -inherit eutils flag-o-matic multilib pam toolchain-funcs
1768 -
1769 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
1770 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
1771 -
1772 -if [[ ${PV} == "9999" ]]; then
1773 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
1774 - inherit git-r3
1775 -else
1776 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
1777 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
1778 -fi
1779 -
1780 -LICENSE="BSD-2"
1781 -SLOT="0"
1782 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
1783 - tools unicode kernel_linux kernel_FreeBSD"
1784 -
1785 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
1786 - ncurses? ( sys-libs/ncurses:0= )
1787 - pam? (
1788 - sys-auth/pambase
1789 - virtual/pam
1790 - )
1791 - tools? ( dev-lang/perl )
1792 - audit? ( sys-process/audit )
1793 - kernel_linux? (
1794 - sys-process/psmisc
1795 - !<sys-process/procps-3.3.9-r2
1796 - )
1797 - selinux? (
1798 - sys-apps/policycoreutils
1799 - sys-libs/libselinux
1800 - )
1801 - !<sys-apps/baselayout-2.1-r1
1802 - !<sys-fs/udev-init-scripts-27"
1803 -DEPEND="${COMMON_DEPEND}
1804 - virtual/os-headers
1805 - ncurses? ( virtual/pkgconfig )"
1806 -RDEPEND="${COMMON_DEPEND}
1807 - !prefix? (
1808 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
1809 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
1810 - )
1811 - selinux? (
1812 - sec-policy/selinux-base-policy
1813 - sec-policy/selinux-openrc
1814 - )
1815 -"
1816 -
1817 -PDEPEND="netifrc? ( net-misc/netifrc )"
1818 -
1819 -src_prepare() {
1820 - sed -i 's:0444:0644:' mk/sys.mk || die
1821 -
1822 - if [[ ${PV} == "9999" ]] ; then
1823 - local ver="git-${EGIT_VERSION:0:6}"
1824 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
1825 - fi
1826 -
1827 - # Allow user patches to be applied without modifying the ebuild
1828 - epatch_user
1829 -}
1830 -
1831 -src_compile() {
1832 - unset LIBDIR #266688
1833 -
1834 - MAKE_ARGS="${MAKE_ARGS}
1835 - LIBNAME=$(get_libdir)
1836 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
1837 - MKNET=$(usex newnet)
1838 - MKSELINUX=$(usex selinux)
1839 - MKAUDIT=$(usex audit)
1840 - MKPAM=$(usev pam)
1841 - MKSTATICLIBS=$(usex static-libs)
1842 - MKTOOLS=$(usex tools)"
1843 -
1844 - local brand="Unknown"
1845 - if use kernel_linux ; then
1846 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
1847 - brand="Linux"
1848 - elif use kernel_FreeBSD ; then
1849 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
1850 - brand="FreeBSD"
1851 - fi
1852 - export BRANDING="Gentoo ${brand}"
1853 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
1854 - export DEBUG=$(usev debug)
1855 - export MKTERMCAP=$(usev ncurses)
1856 -
1857 - tc-export CC AR RANLIB
1858 - emake ${MAKE_ARGS}
1859 -}
1860 -
1861 -# set_config <file> <option name> <yes value> <no value> test
1862 -# a value of "#" will just comment out the option
1863 -set_config() {
1864 - local file="${ED}/$1" var=$2 val com
1865 - eval "${@:5}" && val=$3 || val=$4
1866 - [[ ${val} == "#" ]] && com="#" && val='\2'
1867 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
1868 -}
1869 -
1870 -set_config_yes_no() {
1871 - set_config "$1" "$2" YES NO "${@:3}"
1872 -}
1873 -
1874 -src_install() {
1875 - emake ${MAKE_ARGS} DESTDIR="${D}" install
1876 -
1877 - # move the shared libs back to /usr so ldscript can install
1878 - # more of a minimal set of files
1879 - # disabled for now due to #270646
1880 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
1881 - #gen_usr_ldscript -a einfo rc
1882 - gen_usr_ldscript libeinfo.so
1883 - gen_usr_ldscript librc.so
1884 -
1885 - if ! use kernel_linux; then
1886 - keepdir /$(get_libdir)/rc/init.d
1887 - fi
1888 - keepdir /$(get_libdir)/rc/tmp
1889 -
1890 - # Backup our default runlevels
1891 - dodir /usr/share/"${PN}"
1892 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
1893 - rm -rf "${ED}"/etc/runlevels
1894 -
1895 - # Setup unicode defaults for silly unicode users
1896 - set_config_yes_no /etc/rc.conf unicode use unicode
1897 -
1898 - # Cater to the norm
1899 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
1900 -
1901 - # On HPPA, do not run consolefont by default (bug #222889)
1902 - if use hppa; then
1903 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
1904 - fi
1905 -
1906 - # Support for logfile rotation
1907 - insinto /etc/logrotate.d
1908 - newins "${FILESDIR}"/openrc.logrotate openrc
1909 -
1910 - # install the gentoo pam.d file
1911 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
1912 -
1913 - # install documentation
1914 - dodoc ChangeLog *.md
1915 - if use newnet; then
1916 - dodoc README.newnet
1917 - fi
1918 -}
1919 -
1920 -add_boot_init() {
1921 - local initd=$1
1922 - local runlevel=${2:-boot}
1923 - # if the initscript is not going to be installed and is not
1924 - # currently installed, return
1925 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
1926 - || return
1927 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
1928 -
1929 - # if runlevels dont exist just yet, then create it but still flag
1930 - # to pkg_postinst that it needs real setup #277323
1931 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
1932 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
1933 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
1934 - fi
1935 -
1936 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
1937 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
1938 -}
1939 -add_boot_init_mit_config() {
1940 - local config=$1 initd=$2
1941 - if [[ -e ${EROOT}${config} ]] ; then
1942 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
1943 - add_boot_init ${initd}
1944 - fi
1945 - fi
1946 -}
1947 -
1948 -pkg_preinst() {
1949 - local f LIBDIR=$(get_libdir)
1950 -
1951 - # avoid default thrashing in conf.d files when possible #295406
1952 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
1953 - (
1954 - unset hostname HOSTNAME
1955 - source "${EROOT}"etc/conf.d/hostname
1956 - : ${hostname:=${HOSTNAME}}
1957 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
1958 - )
1959 - fi
1960 -
1961 - # set default interactive shell to sulogin if it exists
1962 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
1963 -
1964 - # termencoding was added in 0.2.1 and needed in boot
1965 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
1966 -
1967 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
1968 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
1969 -
1970 - if ! has_version ">=sys-apps/openrc-0.11"; then
1971 - add_boot_init sysfs sysinit
1972 - fi
1973 -
1974 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
1975 - migrate_udev_mount_script
1976 - add_boot_init tmpfiles.setup boot
1977 - fi
1978 -
1979 - # these were added in 0.12.
1980 - if ! has_version ">=sys-apps/openrc-0.12"; then
1981 - add_boot_init loopback
1982 - add_boot_init tmpfiles.dev sysinit
1983 -
1984 - # ensure existing /etc/conf.d/net is not removed
1985 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
1986 - # this needs to stay in openrc ebuilds for a long time. :(
1987 - # Added in 0.12.
1988 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
1989 - einfo "Modifying conf.d/net to keep it from being removed"
1990 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
1991 -
1992 -# The network scripts are now part of net-misc/netifrc
1993 -# In order to avoid sys-apps/${P} from removing this file, this comment was
1994 -# added; you can safely remove this comment. Please see
1995 -# /usr/share/doc/netifrc*/README* for more information.
1996 -EOF
1997 - fi
1998 - fi
1999 - has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
2000 -}
2001 -
2002 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
2003 -migrate_udev_mount_script() {
2004 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
2005 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
2006 - add_boot_init udev-mount sysinit
2007 - fi
2008 - return 0
2009 -}
2010 -
2011 -pkg_postinst() {
2012 - local LIBDIR=$(get_libdir)
2013 -
2014 - # Make our runlevels if they don't exist
2015 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
2016 - einfo "Copying across default runlevels"
2017 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
2018 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
2019 - else
2020 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
2021 - mkdir -p "${EROOT}"etc/runlevels/sysinit
2022 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
2023 - "${EROOT}"etc/runlevels/sysinit
2024 - fi
2025 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
2026 - mkdir -p "${EROOT}"etc/runlevels/shutdown
2027 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
2028 - "${EROOT}"etc/runlevels/shutdown
2029 - fi
2030 - fi
2031 -
2032 - if use hppa; then
2033 - elog "Setting the console font does not work on all HPPA consoles."
2034 - elog "You can still enable it by running:"
2035 - elog "# rc-update add consolefont boot"
2036 - fi
2037 -
2038 - # Handle the conf.d/local.{start,stop} -> local.d transition
2039 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
2040 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
2041 - elog "files to ${EROOT}etc/local.d"
2042 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
2043 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
2044 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
2045 - fi
2046 -
2047 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
2048 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
2049 - ewarn "The dependency data could not be migrated to /run/openrc."
2050 - ewarn "This means you need to reboot your system."
2051 - fi
2052 - fi
2053 -
2054 - # update the dependency tree after touching all files #224171
2055 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
2056 -
2057 - if ! use newnet && ! use netifrc; then
2058 - ewarn "You have emerged OpenRc without network support. This"
2059 - ewarn "means you need to SET UP a network manager such as"
2060 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
2061 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
2062 - ewarn "Or, you have the option of emerging openrc with the newnet"
2063 - ewarn "use flag and configuring /etc/conf.d/network and"
2064 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
2065 - ewarn
2066 - fi
2067 -
2068 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
2069 - ewarn "Please add the network service to your boot runlevel"
2070 - ewarn "as soon as possible. Not doing so could leave you with a system"
2071 - ewarn "without networking."
2072 - ewarn
2073 - fi
2074 -
2075 - ewarn "In this version of OpenRC, the loopback interface no longer"
2076 - ewarn "satisfies the net virtual."
2077 - ewarn "If you have services now which do not start because of this,"
2078 - ewarn "They can be fixed by adding rc_need=\"!net\""
2079 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
2080 - ewarn "You should also file a bug against the service asking that"
2081 - ewarn "need net be dropped from the dependencies."
2082 - ewarn "The bug you file should block the following tracker:"
2083 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
2084 - ewarn
2085 -
2086 - # Updated for 0.13.2.
2087 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
2088 - ewarn "fixed correctly in earlier versions of OpenRC."
2089 - ewarn "The correct fix is implemented in this version, but that"
2090 - ewarn "means netmount needs to be added to the default runlevel if"
2091 - ewarn "you are using nfs file systems."
2092 - ewarn
2093 -
2094 - elog "You should now update all files in /etc, using etc-update"
2095 - elog "or equivalent before restarting any services or this host."
2096 -}
2097
2098 diff --git a/sys-apps/openrc/openrc-0.16.3.ebuild b/sys-apps/openrc/openrc-0.16.3.ebuild
2099 deleted file mode 100644
2100 index bdc3b24..0000000
2101 --- a/sys-apps/openrc/openrc-0.16.3.ebuild
2102 +++ /dev/null
2103 @@ -1,336 +0,0 @@
2104 -# Copyright 1999-2016 Gentoo Foundation
2105 -# Distributed under the terms of the GNU General Public License v2
2106 -# $Id$
2107 -
2108 -EAPI=5
2109 -
2110 -inherit eutils flag-o-matic multilib pam toolchain-funcs
2111 -
2112 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
2113 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
2114 -
2115 -if [[ ${PV} == "9999" ]]; then
2116 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
2117 - inherit git-r3
2118 -else
2119 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
2120 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
2121 -fi
2122 -
2123 -LICENSE="BSD-2"
2124 -SLOT="0"
2125 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
2126 - tools unicode kernel_linux kernel_FreeBSD"
2127 -
2128 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
2129 - ncurses? ( sys-libs/ncurses:0= )
2130 - pam? (
2131 - sys-auth/pambase
2132 - virtual/pam
2133 - )
2134 - tools? ( dev-lang/perl )
2135 - audit? ( sys-process/audit )
2136 - kernel_linux? (
2137 - sys-process/psmisc
2138 - !<sys-process/procps-3.3.9-r2
2139 - )
2140 - selinux? (
2141 - sys-apps/policycoreutils
2142 - sys-libs/libselinux
2143 - )
2144 - !<sys-apps/baselayout-2.1-r1
2145 - !<sys-fs/udev-init-scripts-27"
2146 -DEPEND="${COMMON_DEPEND}
2147 - virtual/os-headers
2148 - ncurses? ( virtual/pkgconfig )"
2149 -RDEPEND="${COMMON_DEPEND}
2150 - !prefix? (
2151 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
2152 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
2153 - )
2154 - selinux? (
2155 - sec-policy/selinux-base-policy
2156 - sec-policy/selinux-openrc
2157 - )
2158 -"
2159 -
2160 -PDEPEND="netifrc? ( net-misc/netifrc )"
2161 -
2162 -src_prepare() {
2163 - sed -i 's:0444:0644:' mk/sys.mk || die
2164 -
2165 - if [[ ${PV} == "9999" ]] ; then
2166 - local ver="git-${EGIT_VERSION:0:6}"
2167 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
2168 - fi
2169 -
2170 - # Allow user patches to be applied without modifying the ebuild
2171 - epatch_user
2172 -}
2173 -
2174 -src_compile() {
2175 - unset LIBDIR #266688
2176 -
2177 - MAKE_ARGS="${MAKE_ARGS}
2178 - LIBNAME=$(get_libdir)
2179 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
2180 - MKNET=$(usex newnet)
2181 - MKSELINUX=$(usex selinux)
2182 - MKAUDIT=$(usex audit)
2183 - MKPAM=$(usev pam)
2184 - MKSTATICLIBS=$(usex static-libs)
2185 - MKTOOLS=$(usex tools)"
2186 -
2187 - local brand="Unknown"
2188 - if use kernel_linux ; then
2189 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
2190 - brand="Linux"
2191 - elif use kernel_FreeBSD ; then
2192 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
2193 - brand="FreeBSD"
2194 - fi
2195 - export BRANDING="Gentoo ${brand}"
2196 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
2197 - export DEBUG=$(usev debug)
2198 - export MKTERMCAP=$(usev ncurses)
2199 -
2200 - tc-export CC AR RANLIB
2201 - emake ${MAKE_ARGS}
2202 -}
2203 -
2204 -# set_config <file> <option name> <yes value> <no value> test
2205 -# a value of "#" will just comment out the option
2206 -set_config() {
2207 - local file="${ED}/$1" var=$2 val com
2208 - eval "${@:5}" && val=$3 || val=$4
2209 - [[ ${val} == "#" ]] && com="#" && val='\2'
2210 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
2211 -}
2212 -
2213 -set_config_yes_no() {
2214 - set_config "$1" "$2" YES NO "${@:3}"
2215 -}
2216 -
2217 -src_install() {
2218 - emake ${MAKE_ARGS} DESTDIR="${D}" install
2219 -
2220 - # move the shared libs back to /usr so ldscript can install
2221 - # more of a minimal set of files
2222 - # disabled for now due to #270646
2223 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
2224 - #gen_usr_ldscript -a einfo rc
2225 - gen_usr_ldscript libeinfo.so
2226 - gen_usr_ldscript librc.so
2227 -
2228 - if ! use kernel_linux; then
2229 - keepdir /$(get_libdir)/rc/init.d
2230 - fi
2231 - keepdir /$(get_libdir)/rc/tmp
2232 -
2233 - # Backup our default runlevels
2234 - dodir /usr/share/"${PN}"
2235 - cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die
2236 - rm -rf "${ED}"/etc/runlevels
2237 -
2238 - # Setup unicode defaults for silly unicode users
2239 - set_config_yes_no /etc/rc.conf unicode use unicode
2240 -
2241 - # Cater to the norm
2242 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
2243 -
2244 - # On HPPA, do not run consolefont by default (bug #222889)
2245 - if use hppa; then
2246 - rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont
2247 - fi
2248 -
2249 - # Support for logfile rotation
2250 - insinto /etc/logrotate.d
2251 - newins "${FILESDIR}"/openrc.logrotate openrc
2252 -
2253 - # install the gentoo pam.d file
2254 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
2255 -
2256 - # install documentation
2257 - dodoc ChangeLog *.md
2258 - if use newnet; then
2259 - dodoc README.newnet
2260 - fi
2261 -}
2262 -
2263 -add_boot_init() {
2264 - local initd=$1
2265 - local runlevel=${2:-boot}
2266 - # if the initscript is not going to be installed and is not
2267 - # currently installed, return
2268 - [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \
2269 - || return
2270 - [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return
2271 -
2272 - # if runlevels dont exist just yet, then create it but still flag
2273 - # to pkg_postinst that it needs real setup #277323
2274 - if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then
2275 - mkdir -p "${EROOT}"etc/runlevels/${runlevel}
2276 - touch "${EROOT}"etc/runlevels/.add_boot_init.created
2277 - fi
2278 -
2279 - elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
2280 - ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
2281 -}
2282 -add_boot_init_mit_config() {
2283 - local config=$1 initd=$2
2284 - if [[ -e ${EROOT}${config} ]] ; then
2285 - if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then
2286 - add_boot_init ${initd}
2287 - fi
2288 - fi
2289 -}
2290 -
2291 -pkg_preinst() {
2292 - local f LIBDIR=$(get_libdir)
2293 -
2294 - # avoid default thrashing in conf.d files when possible #295406
2295 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
2296 - (
2297 - unset hostname HOSTNAME
2298 - source "${EROOT}"etc/conf.d/hostname
2299 - : ${hostname:=${HOSTNAME}}
2300 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
2301 - )
2302 - fi
2303 -
2304 - # set default interactive shell to sulogin if it exists
2305 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
2306 -
2307 - # termencoding was added in 0.2.1 and needed in boot
2308 - has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding
2309 -
2310 - # swapfiles was added in 0.9.9 and needed in boot (february 2012)
2311 - has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles
2312 -
2313 - if ! has_version ">=sys-apps/openrc-0.11"; then
2314 - add_boot_init sysfs sysinit
2315 - fi
2316 -
2317 - if ! has_version ">=sys-apps/openrc-0.11.3" ; then
2318 - migrate_udev_mount_script
2319 - add_boot_init tmpfiles.setup boot
2320 - fi
2321 -
2322 - # these were added in 0.12.
2323 - if ! has_version ">=sys-apps/openrc-0.12"; then
2324 - add_boot_init loopback
2325 - add_boot_init tmpfiles.dev sysinit
2326 -
2327 - # ensure existing /etc/conf.d/net is not removed
2328 - # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier
2329 - # this needs to stay in openrc ebuilds for a long time. :(
2330 - # Added in 0.12.
2331 - if [[ -f "${EROOT}"etc/conf.d/net ]]; then
2332 - einfo "Modifying conf.d/net to keep it from being removed"
2333 - cat <<-EOF >>"${EROOT}"etc/conf.d/net
2334 -
2335 -# The network scripts are now part of net-misc/netifrc
2336 -# In order to avoid sys-apps/${P} from removing this file, this comment was
2337 -# added; you can safely remove this comment. Please see
2338 -# /usr/share/doc/netifrc*/README* for more information.
2339 -EOF
2340 - fi
2341 - fi
2342 - has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt
2343 -}
2344 -
2345 -# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev.
2346 -migrate_udev_mount_script() {
2347 - if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \
2348 - ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then
2349 - add_boot_init udev-mount sysinit
2350 - fi
2351 - return 0
2352 -}
2353 -
2354 -pkg_postinst() {
2355 - local LIBDIR=$(get_libdir)
2356 -
2357 - # Make our runlevels if they don't exist
2358 - if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then
2359 - einfo "Copying across default runlevels"
2360 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc
2361 - rm -f "${EROOT}"etc/runlevels/.add_boot_init.created
2362 - else
2363 - if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then
2364 - mkdir -p "${EROOT}"etc/runlevels/sysinit
2365 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \
2366 - "${EROOT}"etc/runlevels/sysinit
2367 - fi
2368 - if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then
2369 - mkdir -p "${EROOT}"etc/runlevels/shutdown
2370 - cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \
2371 - "${EROOT}"etc/runlevels/shutdown
2372 - fi
2373 - fi
2374 -
2375 - if use hppa; then
2376 - elog "Setting the console font does not work on all HPPA consoles."
2377 - elog "You can still enable it by running:"
2378 - elog "# rc-update add consolefont boot"
2379 - fi
2380 -
2381 - # Handle the conf.d/local.{start,stop} -> local.d transition
2382 - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then
2383 - elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}"
2384 - elog "files to ${EROOT}etc/local.d"
2385 - mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start
2386 - mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop
2387 - chmod +x "${EROOT}"etc/local.d/*{start,stop}
2388 - fi
2389 -
2390 - if use kernel_linux && [[ "${EROOT}" = "/" ]]; then
2391 - if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then
2392 - ewarn "The dependency data could not be migrated to /run/openrc."
2393 - ewarn "This means you need to reboot your system."
2394 - fi
2395 - fi
2396 -
2397 - # update the dependency tree after touching all files #224171
2398 - [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u
2399 -
2400 - if ! use newnet && ! use netifrc; then
2401 - ewarn "You have emerged OpenRc without network support. This"
2402 - ewarn "means you need to SET UP a network manager such as"
2403 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
2404 - ewarn "net-misc/NetworkManager, or net-misc/badvpn."
2405 - ewarn "Or, you have the option of emerging openrc with the newnet"
2406 - ewarn "use flag and configuring /etc/conf.d/network and"
2407 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
2408 - ewarn
2409 - fi
2410 -
2411 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
2412 - ewarn "Please add the network service to your boot runlevel"
2413 - ewarn "as soon as possible. Not doing so could leave you with a system"
2414 - ewarn "without networking."
2415 - ewarn
2416 - fi
2417 -
2418 - ewarn "In this version of OpenRC, the loopback interface no longer"
2419 - ewarn "satisfies the net virtual."
2420 - ewarn "If you have services now which do not start because of this,"
2421 - ewarn "They can be fixed by adding rc_need=\"!net\""
2422 - ewarn "to the ${EROOT}etc/conf.d/<servicename> file."
2423 - ewarn "You should also file a bug against the service asking that"
2424 - ewarn "need net be dropped from the dependencies."
2425 - ewarn "The bug you file should block the following tracker:"
2426 - ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092"
2427 - ewarn
2428 -
2429 - # Updated for 0.13.2.
2430 - ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not"
2431 - ewarn "fixed correctly in earlier versions of OpenRC."
2432 - ewarn "The correct fix is implemented in this version, but that"
2433 - ewarn "means netmount needs to be added to the default runlevel if"
2434 - ewarn "you are using nfs file systems."
2435 - ewarn
2436 -
2437 - elog "You should now update all files in /etc, using etc-update"
2438 - elog "or equivalent before restarting any services or this host."
2439 -}
2440
2441 diff --git a/sys-apps/openrc/openrc-0.16.4.ebuild b/sys-apps/openrc/openrc-0.16.4.ebuild
2442 deleted file mode 100644
2443 index bffc891..0000000
2444 --- a/sys-apps/openrc/openrc-0.16.4.ebuild
2445 +++ /dev/null
2446 @@ -1,336 +0,0 @@
2447 -# Copyright 1999-2016 Gentoo Foundation
2448 -# Distributed under the terms of the GNU General Public License v2
2449 -# $Id$
2450 -
2451 -EAPI=5
2452 -
2453 -inherit eutils flag-o-matic multilib pam toolchain-funcs
2454 -
2455 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
2456 -HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/"
2457 -
2458 -if [[ ${PV} == "9999" ]]; then
2459 - EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git"
2460 - inherit git-r3
2461 -else
2462 - SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2"
2463 - KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
2464 -fi
2465 -
2466 -LICENSE="BSD-2"
2467 -SLOT="0"
2468 -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs
2469 - tools unicode kernel_linux kernel_FreeBSD"
2470 -
2471 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
2472 - ncurses? ( sys-libs/ncurses:0= )
2473 - pam? (
2474 - sys-auth/pambase
2475 - virtual/pam
2476 - )
2477 - tools? ( dev-lang/perl )
2478 - audit? ( sys-process/audit )
2479 - kernel_linux? (
2480 - sys-process/psmisc
2481 - !<sys-process/procps-3.3.9-r2
2482 - )
2483 - selinux? (
2484 - sys-apps/policycoreutils
2485 - sys-libs/libselinux
2486 - )
2487 - !<sys-apps/baselayout-2.1-r1
2488 - !<sys-fs/udev-init-scripts-27"
2489 -DEPEND="${COMMON_DEPEND}
2490 - virtual/os-headers
2491 - ncurses? ( virtual/pkgconfig )"
2492 -RDEPEND="${COMMON_DEPEND}
2493 - !prefix? (
2494 - kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) )
2495 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
2496 - )
2497 - selinux? (
2498 - sec-policy/selinux-base-policy
2499 - sec-policy/selinux-openrc
2500 - )
2501 -"
2502 -
2503 -PDEPEND="netifrc? ( net-misc/netifrc )"
2504 -
2505 -src_prepare() {
2506 - sed -i 's:0444:0644:' mk/sys.mk || die
2507 -
2508 - if [[ ${PV} == "9999" ]] ; then
2509 - local ver="git-${EGIT_VERSION:0:6}"
2510 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
2511 - fi
2512 -
2513 - # Allow user patches to be applied without modifying the ebuild
2514 - epatch_user
2515 -}
2516 -
2517 -src_compile() {
2518 - unset LIBDIR #266688
2519 -
2520 - MAKE_ARGS="${MAKE_ARGS}
2521 - LIBNAME=$(get_libdir)
2522 - LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc
2523 - MKNET=$(usex newnet)
2524 - MKSELINUX=$(usex selinux)
2525 - MKAUDIT=$(usex audit)
2526 - MKPAM=$(usev pam)
2527 - MKSTATICLIBS=$(usex static-libs)
2528