Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/
Date: Fri, 01 Jan 2021 21:49:40
Message-Id: 1609537753.b5aff6534ef63f0a4a5d964d40ed4b62ed062a95.dilfridge@gentoo
1 commit: b5aff6534ef63f0a4a5d964d40ed4b62ed062a95
2 Author: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 19:21:52 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 21:49:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5aff653
7
8 sys-apps/openrc: Remove old
9
10 Bug: https://bugs.gentoo.org/705868
11 Package-Manager: Portage-3.0.12, Repoman-3.0.2
12 Signed-off-by: Andreas K. Huettel <dilfridge <AT> gentoo.org>
13
14 sys-apps/openrc/Manifest | 1 -
15 sys-apps/openrc/openrc-0.41.2.ebuild | 192 -----------------------------------
16 2 files changed, 193 deletions(-)
17
18 diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest
19 index f5e4edb0229..82e0a33c18d 100644
20 --- a/sys-apps/openrc/Manifest
21 +++ b/sys-apps/openrc/Manifest
22 @@ -1,2 +1 @@
23 -DIST openrc-0.41.2.tar.gz 245302 BLAKE2B ab80dc4f3a7c2c464fe64cdfa7fd31363d5a9d25e90d0239325be05561e5802f22c47013fde82650f5ce08cf99f16f5f479d8617c254647b8c40cec9609d0b6b SHA512 ebfa691cae4704bb3023ea0508a712a45b8c20809828729dfa5292e96f3fd1b309813d80d7c286d0c09680bf5378aba40cfd994f27951f43a3ffb1fd0d69a58b
24 DIST openrc-0.42.1.tar.gz 242848 BLAKE2B 381f52552c13afbbcf45456fe71078bacf9182adfd67c97394093986977f5e8262d8a3c64219501745575a5210f525afe9fccee72f7625485a9f575108baa369 SHA512 579b9bfbb151b945a364a2c12b037d2e15991820ca99a07ac18e9bdc50074e67fbf0dcf9865aa4deabe2bf82092e4623be51c9e0b4014384951e0a92ac1e7646
25
26 diff --git a/sys-apps/openrc/openrc-0.41.2.ebuild b/sys-apps/openrc/openrc-0.41.2.ebuild
27 deleted file mode 100644
28 index afd7df37c6b..00000000000
29 --- a/sys-apps/openrc/openrc-0.41.2.ebuild
30 +++ /dev/null
31 @@ -1,192 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -inherit flag-o-matic pam toolchain-funcs usr-ldscript
38 -
39 -DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
40 -HOMEPAGE="https://github.com/openrc/openrc/"
41 -
42 -if [[ ${PV} == "9999" ]]; then
43 - EGIT_REPO_URI="https://github.com/OpenRC/${PN}.git"
44 - inherit git-r3
45 -else
46 - SRC_URI="https://github.com/${PN}/${PN}/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 prefix +netifrc selinux static-libs
53 - unicode"
54 -
55 -COMMON_DEPEND="
56 - ncurses? ( sys-libs/ncurses:0= )
57 - pam? (
58 - sys-auth/pambase
59 - sys-libs/pam
60 - )
61 - audit? ( sys-process/audit )
62 - sys-process/psmisc
63 - !<sys-process/procps-3.3.9-r2
64 - selinux? (
65 - sys-apps/policycoreutils
66 - >=sys-libs/libselinux-2.6
67 - )
68 - !<sys-apps/baselayout-2.1-r1
69 - !<sys-fs/udev-init-scripts-27"
70 -DEPEND="${COMMON_DEPEND}
71 - virtual/os-headers
72 - ncurses? ( virtual/pkgconfig )"
73 -RDEPEND="${COMMON_DEPEND}
74 - bash? ( app-shells/bash )
75 - !prefix? (
76 - >=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_prepare() {
90 - default
91 - if [[ ${PV} == "9999" ]] ; then
92 - local ver="git-${EGIT_VERSION:0:6}"
93 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
94 - fi
95 -}
96 -
97 -src_compile() {
98 - unset LIBDIR #266688
99 -
100 - MAKE_ARGS="${MAKE_ARGS}
101 - LIBNAME=$(get_libdir)
102 - LIBEXECDIR=${EPREFIX}/lib/rc
103 - MKBASHCOMP=yes
104 - MKNET=$(usex newnet)
105 - MKSELINUX=$(usex selinux)
106 - MKAUDIT=$(usex audit)
107 - MKPAM=$(usev pam)
108 - MKSTATICLIBS=$(usex static-libs)
109 - MKZSHCOMP=yes
110 - SH=$(usex bash /bin/bash /bin/sh)"
111 -
112 - local brand="Unknown"
113 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
114 - brand="Linux"
115 - export BRANDING="Gentoo ${brand}"
116 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
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 - # move the shared libs back to /usr so ldscript can install
141 - # more of a minimal set of files
142 - # disabled for now due to #270646
143 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
144 - #gen_usr_ldscript -a einfo rc
145 - gen_usr_ldscript libeinfo.so
146 - gen_usr_ldscript librc.so
147 -
148 - keepdir /lib/rc/tmp
149 -
150 - # Setup unicode defaults for silly unicode users
151 - set_config_yes_no /etc/rc.conf unicode use unicode
152 -
153 - # Cater to the norm
154 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
155 -
156 - # On HPPA, do not run consolefont by default (bug #222889)
157 - if use hppa; then
158 - rm -f "${ED}"/etc/runlevels/boot/consolefont
159 - fi
160 -
161 - # Support for logfile rotation
162 - insinto /etc/logrotate.d
163 - newins "${FILESDIR}"/openrc.logrotate openrc
164 -
165 - # install gentoo pam.d files
166 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
167 - newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon
168 -
169 - # install documentation
170 - dodoc ChangeLog *.md
171 - if use newnet; then
172 - dodoc README.newnet
173 - fi
174 -}
175 -
176 -pkg_preinst() {
177 - # avoid default thrashing in conf.d files when possible #295406
178 - if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then
179 - (
180 - unset hostname HOSTNAME
181 - source "${EROOT}"etc/conf.d/hostname
182 - : ${hostname:=${HOSTNAME}}
183 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
184 - )
185 - fi
186 -
187 - # set default interactive shell to sulogin if it exists
188 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
189 - return 0
190 -}
191 -
192 -pkg_postinst() {
193 - if use hppa; then
194 - elog "Setting the console font does not work on all HPPA consoles."
195 - elog "You can still enable it by running:"
196 - elog "# rc-update add consolefont boot"
197 - fi
198 -
199 - # Added for 0.35.
200 - if [[ ! -h "${EROOT}"/lib ]]; then
201 - if [[ -d "${EROOT}$(get_libdir)"/rc ]]; then
202 - cp -RPp "${EROOT}$(get_libdir)/rc" "${EROOT}"lib
203 - fi
204 - fi
205 -
206 - if ! use newnet && ! use netifrc; then
207 - ewarn "You have emerged OpenRc without network support. This"
208 - ewarn "means you need to SET UP a network manager such as"
209 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/connman,"
210 - ewarn " net-misc/NetworkManager, or net-vpn/badvpn."
211 - ewarn "Or, you have the option of emerging openrc with the newnet"
212 - ewarn "use flag and configuring /etc/conf.d/network and"
213 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
214 - ewarn
215 - fi
216 -
217 - if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then
218 - ewarn "Please add the network service to your boot runlevel"
219 - ewarn "as soon as possible. Not doing so could leave you with a system"
220 - ewarn "without networking."
221 - ewarn
222 - fi
223 -}