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: Wed, 21 Aug 2019 01:44:34
Message-Id: 1566351817.94899415b4ed5c37165f731130aa03690ba15b73.williamh@gentoo
1 commit: 94899415b4ed5c37165f731130aa03690ba15b73
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 21 01:40:09 2019 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 21 01:43:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94899415
7
8 sys-apps/openrc: remove broken version
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
12
13 sys-apps/openrc/Manifest | 1 -
14 sys-apps/openrc/openrc-0.42.ebuild | 211 -------------------------------------
15 2 files changed, 212 deletions(-)
16
17 diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest
18 index 2f4db701205..f5e4edb0229 100644
19 --- a/sys-apps/openrc/Manifest
20 +++ b/sys-apps/openrc/Manifest
21 @@ -1,3 +1,2 @@
22 DIST openrc-0.41.2.tar.gz 245302 BLAKE2B ab80dc4f3a7c2c464fe64cdfa7fd31363d5a9d25e90d0239325be05561e5802f22c47013fde82650f5ce08cf99f16f5f479d8617c254647b8c40cec9609d0b6b SHA512 ebfa691cae4704bb3023ea0508a712a45b8c20809828729dfa5292e96f3fd1b309813d80d7c286d0c09680bf5378aba40cfd994f27951f43a3ffb1fd0d69a58b
23 DIST openrc-0.42.1.tar.gz 242848 BLAKE2B 381f52552c13afbbcf45456fe71078bacf9182adfd67c97394093986977f5e8262d8a3c64219501745575a5210f525afe9fccee72f7625485a9f575108baa369 SHA512 579b9bfbb151b945a364a2c12b037d2e15991820ca99a07ac18e9bdc50074e67fbf0dcf9865aa4deabe2bf82092e4623be51c9e0b4014384951e0a92ac1e7646
24 -DIST openrc-0.42.tar.gz 242670 BLAKE2B df3c1594cb441228dd9c5f16e0758bd3a62cd51c8797ce57b6c290b0b8d80307eb5e43a4a6107da8d6911777524deac48cea48f6b96a5d4eab4e5c81fa11a835 SHA512 200f3f0054e766accce332bc86941367f99f0c6a0b00bf1faad877ff9ac7cfa36a90a60432361483c0d2a778bed0d811130ad692aea64b2e2d34c5b95940b68a
25
26 diff --git a/sys-apps/openrc/openrc-0.42.ebuild b/sys-apps/openrc/openrc-0.42.ebuild
27 deleted file mode 100644
28 index dea79c65bd1..00000000000
29 --- a/sys-apps/openrc/openrc-0.42.ebuild
30 +++ /dev/null
31 @@ -1,211 +0,0 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
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 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
48 -fi
49 -
50 -LICENSE="BSD-2"
51 -SLOT="0"
52 -IUSE="audit bash debug ncurses pam newnet prefix +netifrc selinux static-libs
53 - sysv-utils unicode kernel_linux kernel_FreeBSD"
54 -
55 -COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) )
56 - ncurses? ( sys-libs/ncurses:0= )
57 - pam? (
58 - sys-auth/pambase
59 - virtual/pam
60 - )
61 - audit? ( sys-process/audit )
62 - kernel_linux? (
63 - sys-process/psmisc
64 - !<sys-process/procps-3.3.9-r2
65 - )
66 - selinux? (
67 - sys-apps/policycoreutils
68 - >=sys-libs/libselinux-2.6
69 - )
70 - !<sys-apps/baselayout-2.1-r1
71 - !<sys-fs/udev-init-scripts-27"
72 -DEPEND="${COMMON_DEPEND}
73 - virtual/os-headers
74 - ncurses? ( virtual/pkgconfig )"
75 -RDEPEND="${COMMON_DEPEND}
76 - bash? ( app-shells/bash )
77 - !prefix? (
78 - kernel_linux? (
79 - sysv-utils? ( !sys-apps/sysvinit )
80 - !sysv-utils? ( >=sys-apps/sysvinit-2.86-r6[selinux?] )
81 - virtual/tmpfiles
82 - )
83 - kernel_FreeBSD? ( sys-freebsd/freebsd-sbin )
84 - )
85 - selinux? (
86 - >=sec-policy/selinux-base-policy-2.20170204-r4
87 - >=sec-policy/selinux-openrc-2.20170204-r4
88 - )
89 - !<app-shells/gentoo-bashcomp-20180302
90 - !<app-shells/gentoo-zsh-completions-20180228
91 -"
92 -
93 -PDEPEND="netifrc? ( net-misc/netifrc )"
94 -
95 -src_prepare() {
96 - default
97 - if [[ ${PV} == "9999" ]] ; then
98 - local ver="git-${EGIT_VERSION:0:6}"
99 - sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die
100 - fi
101 -}
102 -
103 -src_compile() {
104 - unset LIBDIR #266688
105 -
106 - MAKE_ARGS="${MAKE_ARGS}
107 - LIBNAME=$(get_libdir)
108 - LIBEXECDIR=${EPREFIX}/lib/rc
109 - MKBASHCOMP=yes
110 - MKNET=$(usex newnet)
111 - MKSELINUX=$(usex selinux)
112 - MKSYSVINIT=$(usex sysv-utils)
113 - MKAUDIT=$(usex audit)
114 - MKPAM=$(usev pam)
115 - MKSTATICLIBS=$(usex static-libs)
116 - MKZSHCOMP=yes
117 - SH=$(usex bash /bin/bash /bin/sh)"
118 -
119 - local brand="Unknown"
120 - if use kernel_linux ; then
121 - MAKE_ARGS="${MAKE_ARGS} OS=Linux"
122 - brand="Linux"
123 - elif use kernel_FreeBSD ; then
124 - MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD"
125 - brand="FreeBSD"
126 - fi
127 - export BRANDING="Gentoo ${brand}"
128 - use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}"
129 - export DEBUG=$(usev debug)
130 - export MKTERMCAP=$(usev ncurses)
131 -
132 - tc-export CC AR RANLIB
133 - emake ${MAKE_ARGS}
134 -}
135 -
136 -# set_config <file> <option name> <yes value> <no value> test
137 -# a value of "#" will just comment out the option
138 -set_config() {
139 - local file="${ED}/$1" var=$2 val com
140 - eval "${@:5}" && val=$3 || val=$4
141 - [[ ${val} == "#" ]] && com="#" && val='\2'
142 - sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}"
143 -}
144 -
145 -set_config_yes_no() {
146 - set_config "$1" "$2" YES NO "${@:3}"
147 -}
148 -
149 -src_install() {
150 - emake ${MAKE_ARGS} DESTDIR="${D}" install
151 -
152 - # move the shared libs back to /usr so ldscript can install
153 - # more of a minimal set of files
154 - # disabled for now due to #270646
155 - #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die
156 - #gen_usr_ldscript -a einfo rc
157 - gen_usr_ldscript libeinfo.so
158 - gen_usr_ldscript librc.so
159 -
160 - if ! use kernel_linux; then
161 - keepdir /lib/rc/init.d
162 - fi
163 - keepdir /lib/rc/tmp
164 -
165 - # Setup unicode defaults for silly unicode users
166 - set_config_yes_no /etc/rc.conf unicode use unicode
167 -
168 - # Cater to the norm
169 - set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')'
170 -
171 - # On HPPA, do not run consolefont by default (bug #222889)
172 - if use hppa; then
173 - rm -f "${ED}"/etc/runlevels/boot/consolefont
174 - fi
175 -
176 - # Support for logfile rotation
177 - insinto /etc/logrotate.d
178 - newins "${FILESDIR}"/openrc.logrotate openrc
179 -
180 - # install gentoo pam.d files
181 - newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
182 - newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon
183 -
184 - # install documentation
185 - dodoc ChangeLog *.md
186 - if use newnet; then
187 - dodoc README.newnet
188 - fi
189 -}
190 -
191 -pkg_preinst() {
192 - # avoid default thrashing in conf.d files when possible #295406
193 - if [[ -e "${EROOT}"/etc/conf.d/hostname ]] ; then
194 - (
195 - unset hostname HOSTNAME
196 - source "${EROOT}"/etc/conf.d/hostname
197 - : ${hostname:=${HOSTNAME}}
198 - [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}"
199 - )
200 - fi
201 -
202 - # set default interactive shell to sulogin if it exists
203 - set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin
204 - return 0
205 -}
206 -
207 -pkg_postinst() {
208 - if use hppa; then
209 - elog "Setting the console font does not work on all HPPA consoles."
210 - elog "You can still enable it by running:"
211 - elog "# rc-update add consolefont boot"
212 - fi
213 -
214 - # Added for 0.35.
215 - if use kernel_linux && [[ ! -h "${EROOT}"/lib ]]; then
216 - if [[ -d "${EROOT}/$(get_libdir)"/rc ]]; then
217 - cp -RPp "${EROOT}/$(get_libdir)/rc" "${EROOT}"/lib
218 - fi
219 - elif ! use kernel_linux; then
220 - if [[ -d "${EROOT}/$(get_libdir)"/rc ]]; then
221 - cp -RPp "${EROOT}/$(get_libdir)/rc" "${EROOT}"/lib
222 - fi
223 - fi
224 -
225 - if ! use newnet && ! use netifrc; then
226 - ewarn "You have emerged OpenRc without network support. This"
227 - ewarn "means you need to SET UP a network manager such as"
228 - ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
229 - ewarn "net-misc/NetworkManager, or net-vpn/badvpn."
230 - ewarn "Or, you have the option of emerging openrc with the newnet"
231 - ewarn "use flag and configuring /etc/conf.d/network and"
232 - ewarn "/etc/conf.d/staticroute if you only use static interfaces."
233 - ewarn
234 - fi
235 -
236 - if use newnet && [ ! -e "${EROOT}"/etc/runlevels/boot/network ]; then
237 - ewarn "Please add the network service to your boot runlevel"
238 - ewarn "as soon as possible. Not doing so could leave you with a system"
239 - ewarn "without networking."
240 - ewarn
241 - fi
242 -}