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