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