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: Thu, 09 Sep 2021 18:07:53
Message-Id: 1631210865.38fa141928a9d2027d55c6cd8fe5a4205a22f6d6.williamh@gentoo
1 commit: 38fa141928a9d2027d55c6cd8fe5a4205a22f6d6
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 9 18:06:41 2021 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 9 18:07:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38fa1419
7
8 sys-apps/openrc: remove old
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
12
13 sys-apps/openrc/Manifest | 1 -
14 sys-apps/openrc/openrc-0.44.1.ebuild | 164 -----------------------------------
15 2 files changed, 165 deletions(-)
16
17 diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest
18 index 4504762e2b6..7e122a8f1de 100644
19 --- a/sys-apps/openrc/Manifest
20 +++ b/sys-apps/openrc/Manifest
21 @@ -1,3 +1,2 @@
22 DIST openrc-0.43.5.tar.gz 242146 BLAKE2B 993d3895588e8f1383049006834f944faaae0f889d3afcae5bff697db9f26383712f18aba52ce07d835f1d2bbe8ef19ef116ad60141d1eb0650767430d1d9967 SHA512 680c1549a8a37eb3a719f3e026888d045d26c98357d6e6eaf09069a23a001272deaca8cac4a9b8fd79f489c4cfb4fe2c7b5d481d1469798a8f5ec470d0cadbe3
23 -DIST openrc-0.44.1.tar.gz 251662 BLAKE2B 53af6372289dfa80de98ba0685699d22f0fddcbd55b972a5878f519411e867ab31193a37ddfe3f26e68cf14a54171f8b074f466c3da3e4a6a6dd899980a1717f SHA512 6514f997b18fb320289ddf41f417cea5192fd25c81f32fa5a44ef867d0cd649d3d242621d247bda61da3dfa60f5fde312310bd405241bcdbd420ded69c6f875d
24 DIST openrc-0.44.3.tar.gz 252469 BLAKE2B 6e1a952c4459ace4d67b5c07a44618324c1fd226d55b083e9701999559e2726d49654bf00a7f45f867f96b7550d782bf565cd687b3ac964d61217ed221445041 SHA512 b066feb89d3b58383d5dc20e731f016f0ecdaa72b95af750e49ba31d80d88b83f3df4d9a7d57c8b106c29cc5b0a004b9eee78192cf776b4cfacdcdcb1d7beeb8
25
26 diff --git a/sys-apps/openrc/openrc-0.44.1.ebuild b/sys-apps/openrc/openrc-0.44.1.ebuild
27 deleted file mode 100644
28 index c53c141b2d9..00000000000
29 --- a/sys-apps/openrc/openrc-0.44.1.ebuild
30 +++ /dev/null
31 @@ -1,164 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -inherit flag-o-matic meson pam toolchain-funcs
38 -
39 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
40 -HOMEPAGE="https://github.com/openrc/openrc/"
41 -
42 -if [[ ${PV} =~ ^9{4,}$ ]]; then
43 - EGIT_REPO_URI="https://github.com/OpenRC/${PN}.git"
44 - inherit git-r3
45 -else
46 - SRC_URI="https://github.com/OpenRC/openrc/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 -# KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
48 -fi
49 -
50 -LICENSE="BSD-2"
51 -SLOT="0"
52 -IUSE="audit bash debug ncurses pam newnet +netifrc selinux sysv-utils unicode"
53 -
54 -COMMON_DEPEND="
55 - ncurses? ( sys-libs/ncurses:0= )
56 - pam? ( sys-libs/pam )
57 - audit? ( sys-process/audit )
58 - sys-process/psmisc
59 - !<sys-process/procps-3.3.9-r2
60 - selinux? (
61 - sys-apps/policycoreutils
62 - >=sys-libs/libselinux-2.6
63 - )
64 - !<sys-apps/baselayout-2.1-r1
65 - !<sys-fs/udev-init-scripts-27"
66 -DEPEND="${COMMON_DEPEND}
67 - virtual/os-headers
68 - ncurses? ( virtual/pkgconfig )"
69 -RDEPEND="${COMMON_DEPEND}
70 - bash? ( app-shells/bash )
71 - !prefix? (
72 - sysv-utils? (
73 - !sys-apps/systemd[sysv-utils(-)]
74 - !sys-apps/sysvinit
75 - )
76 - !sysv-utils? ( >=sys-apps/sysvinit-2.86-r6[selinux?] )
77 - virtual/tmpfiles
78 - )
79 - selinux? (
80 - >=sec-policy/selinux-base-policy-2.20170204-r4
81 - >=sec-policy/selinux-openrc-2.20170204-r4
82 - )
83 - !<app-shells/gentoo-bashcomp-20180302
84 - !<app-shells/gentoo-zsh-completions-20180228
85 -"
86 -
87 -PDEPEND="netifrc? ( net-misc/netifrc )"
88 -
89 -src_configure() {
90 - local emesonargs=(
91 - $(meson_feature audit)
92 - "-Dbranding=\"Gentoo Linux\""
93 - $(meson_use newnet)
94 - -Dos=Linux
95 - $(meson_use pam)
96 - $(meson_feature selinux)
97 - -Dshell=$(usex bash /bin/bash /bin/sh)
98 - $(meson_use sysv-utils sysvinit)
99 - -Dtermcap=$(usev ncurses)
100 - )
101 - # export DEBUG=$(usev debug)
102 - meson_src_configure
103 -}
104 -
105 -# set_config <file> <option name> <yes value> <no value> test
106 -# a value of "#" will just comment out the option
107 -set_config() {
108 - local file="${ED}/$1" var=$2 val com
109 - eval "${@:5}" && val=$3 || val=$4
110 - [[ ${val} == "#" ]] && com="#" && val='\2'
111 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
112 -}
113 -
114 -set_config_yes_no() {
115 - set_config "$1" "$2" YES NO "${@:3}"
116 -}
117 -
118 -src_install() {
119 - meson_install
120 -
121 - keepdir /lib/rc/tmp
122 -
123 - # Setup unicode defaults for silly unicode users
124 - set_config_yes_no /etc/rc.conf unicode use unicode
125 -
126 - # Cater to the norm
127 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
128 -
129 - # On HPPA, do not run consolefont by default (bug #222889)
130 - if use hppa; then
131 - rm -f "${ED}"/etc/runlevels/boot/consolefont
132 - fi
133 -
134 - # Support for logfile rotation
135 - insinto /etc/logrotate.d
136 - newins "${FILESDIR}"/openrc.logrotate openrc
137 -
138 - if use pam; then
139 - # install gentoo pam.d files
140 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
141 - newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon
142 - fi
143 -
144 - # install documentation
145 - dodoc ChangeLog *.md
146 -}
147 -
148 -pkg_preinst() {
149 - # avoid default thrashing in conf.d files when possible #295406
150 - if [[ -e "${EROOT}"/etc/conf.d/hostname ]] ; then
151 - (
152 - unset hostname HOSTNAME
153 - source "${EROOT}"/etc/conf.d/hostname
154 - : ${hostname:=${HOSTNAME}}
155 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
156 - )
157 - fi
158 -
159 - # set default interactive shell to sulogin if it exists
160 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
161 - return 0
162 -}
163 -
164 -pkg_postinst() {
165 - if use hppa; then
166 - elog "Setting the console font does not work on all HPPA consoles."
167 - elog "You can still enable it by running:"
168 - elog "# rc-update add consolefont boot"
169 - fi
170 -
171 - # Added for 0.35.
172 - if [[ ! -h "${EROOT}"/lib ]]; then
173 - if [[ -d "${EROOT}/$(get_libdir)"/rc ]]; then
174 - cp -RPp "${EROOT}/$(get_libdir)/rc" "${EROOT}"/lib
175 - fi
176 - fi
177 -
178 - if ! use newnet && ! use netifrc; then
179 - ewarn "You have emerged OpenRc without network support. This"
180 - ewarn "means you need to SET UP a network manager such as"
181 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/connman,"
182 - ewarn " net-misc/NetworkManager, or net-vpn/badvpn."
183 - ewarn "Or, you have the option of emerging openrc with the newnet"
184 - ewarn "use flag and configuring /etc/conf.d/network and"
185 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
186 - ewarn
187 - fi
188 -
189 - if use newnet && [ ! -e "${EROOT}"/etc/runlevels/boot/network ]; then
190 - ewarn "Please add the network service to your boot runlevel"
191 - ewarn "as soon as possible. Not doing so could leave you with a system"
192 - ewarn "without networking."
193 - ewarn
194 - fi
195 -}