1 |
commit: ac93a2404102bd2a03570b59a6057c655697b8a2 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 2 18:14:46 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 2 18:14:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac93a240 |
7 |
|
8 |
sys-apps/openrc: 0.43 bump |
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.ebuild | 187 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 188 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest |
17 |
index 82e0a33c18d..3395d0037c5 100644 |
18 |
--- a/sys-apps/openrc/Manifest |
19 |
+++ b/sys-apps/openrc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST openrc-0.42.1.tar.gz 242848 BLAKE2B 381f52552c13afbbcf45456fe71078bacf9182adfd67c97394093986977f5e8262d8a3c64219501745575a5210f525afe9fccee72f7625485a9f575108baa369 SHA512 579b9bfbb151b945a364a2c12b037d2e15991820ca99a07ac18e9bdc50074e67fbf0dcf9865aa4deabe2bf82092e4623be51c9e0b4014384951e0a92ac1e7646 |
22 |
+DIST openrc-0.43.tar.gz 241243 BLAKE2B d184fed50d154025086ea05f6cf81165884bbcb8fcdf7c099982a0ebff589145f9ac63959c5968a9642fabcbafa1551a885242c585d6d5b37079cbc69d46b6dc SHA512 6c26f170892612a3621b6893af31ba8e2245d276f4d042adafa845bae081393a2eaf10e865f112db39034b06104bc3e4ff98ec19b63470e22fa28ba9ec4f1a49 |
23 |
|
24 |
diff --git a/sys-apps/openrc/openrc-0.43.ebuild b/sys-apps/openrc/openrc-0.43.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..f6eaa2172d2 |
27 |
--- /dev/null |
28 |
+++ b/sys-apps/openrc/openrc-0.43.ebuild |
29 |
@@ -0,0 +1,187 @@ |
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? ( |
55 |
+ sys-auth/pambase |
56 |
+ sys-libs/pam |
57 |
+ ) |
58 |
+ audit? ( sys-process/audit ) |
59 |
+ sys-process/psmisc |
60 |
+ !<sys-process/procps-3.3.9-r2 |
61 |
+ selinux? ( |
62 |
+ sys-apps/policycoreutils |
63 |
+ >=sys-libs/libselinux-2.6 |
64 |
+ ) |
65 |
+ !<sys-apps/baselayout-2.1-r1 |
66 |
+ !<sys-fs/udev-init-scripts-27" |
67 |
+DEPEND="${COMMON_DEPEND} |
68 |
+ virtual/os-headers |
69 |
+ ncurses? ( virtual/pkgconfig )" |
70 |
+RDEPEND="${COMMON_DEPEND} |
71 |
+ bash? ( app-shells/bash ) |
72 |
+ !prefix? ( |
73 |
+ sysv-utils? ( |
74 |
+ !sys-apps/systemd[sysv-utils(-)] |
75 |
+ !sys-apps/sysvinit |
76 |
+ ) |
77 |
+ !sysv-utils? ( >=sys-apps/sysvinit-2.86-r6[selinux?] ) |
78 |
+ virtual/tmpfiles |
79 |
+ ) |
80 |
+ selinux? ( |
81 |
+ >=sec-policy/selinux-base-policy-2.20170204-r4 |
82 |
+ >=sec-policy/selinux-openrc-2.20170204-r4 |
83 |
+ ) |
84 |
+ !<app-shells/gentoo-bashcomp-20180302 |
85 |
+ !<app-shells/gentoo-zsh-completions-20180228 |
86 |
+" |
87 |
+ |
88 |
+PDEPEND="netifrc? ( net-misc/netifrc )" |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ default |
92 |
+ if [[ ${PV} == "9999" ]] ; then |
93 |
+ local ver="git-${EGIT_VERSION:0:6}" |
94 |
+ sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ MAKE_ARGS="${MAKE_ARGS} |
100 |
+ LIBNAME=$(get_libdir) |
101 |
+ LIBDIR=${EPREFIX}/$(get_libdir) |
102 |
+ LIBEXECDIR=${EPREFIX}/lib/rc |
103 |
+ MKBASHCOMP=yes |
104 |
+ MKNET=$(usex newnet) |
105 |
+ MKSELINUX=$(usex selinux) |
106 |
+ MKSYSVINIT=$(usex sysv-utils) |
107 |
+ MKAUDIT=$(usex audit) |
108 |
+ MKPAM=$(usev pam) |
109 |
+ MKSTATICLIBS=no |
110 |
+ MKZSHCOMP=yes |
111 |
+ OS=Linux |
112 |
+ SH=$(usex bash /bin/bash /bin/sh)" |
113 |
+ |
114 |
+ use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}" |
115 |
+export BRANDING="Gentoo Linux" |
116 |
+ export DEBUG=$(usev debug) |
117 |
+ export MKTERMCAP=$(usev ncurses) |
118 |
+ |
119 |
+ tc-export CC AR RANLIB |
120 |
+ emake ${MAKE_ARGS} |
121 |
+} |
122 |
+ |
123 |
+# set_config <file> <option name> <yes value> <no value> test |
124 |
+# a value of "#" will just comment out the option |
125 |
+set_config() { |
126 |
+ local file="${ED}/$1" var=$2 val com |
127 |
+ eval "${@:5}" && val=$3 || val=$4 |
128 |
+ [[ ${val} == "#" ]] && com="#" && val='\2' |
129 |
+ sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}" |
130 |
+} |
131 |
+ |
132 |
+set_config_yes_no() { |
133 |
+ set_config "$1" "$2" YES NO "${@:3}" |
134 |
+} |
135 |
+ |
136 |
+src_install() { |
137 |
+ emake ${MAKE_ARGS} DESTDIR="${D}" install |
138 |
+ |
139 |
+ keepdir /lib/rc/tmp |
140 |
+ |
141 |
+ # Setup unicode defaults for silly unicode users |
142 |
+ set_config_yes_no /etc/rc.conf unicode use unicode |
143 |
+ |
144 |
+ # Cater to the norm |
145 |
+ set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')' |
146 |
+ |
147 |
+ # On HPPA, do not run consolefont by default (bug #222889) |
148 |
+ if use hppa; then |
149 |
+ rm -f "${ED}"/etc/runlevels/boot/consolefont |
150 |
+ fi |
151 |
+ |
152 |
+ # Support for logfile rotation |
153 |
+ insinto /etc/logrotate.d |
154 |
+ newins "${FILESDIR}"/openrc.logrotate openrc |
155 |
+ |
156 |
+ if use pam; then |
157 |
+ # install gentoo pam.d files |
158 |
+ newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon |
159 |
+ newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon |
160 |
+ fi |
161 |
+ |
162 |
+ # install documentation |
163 |
+ dodoc ChangeLog *.md |
164 |
+ if use newnet; then |
165 |
+ dodoc README.newnet |
166 |
+ fi |
167 |
+} |
168 |
+ |
169 |
+pkg_preinst() { |
170 |
+ # avoid default thrashing in conf.d files when possible #295406 |
171 |
+ if [[ -e "${EROOT}"/etc/conf.d/hostname ]] ; then |
172 |
+ ( |
173 |
+ unset hostname HOSTNAME |
174 |
+ source "${EROOT}"/etc/conf.d/hostname |
175 |
+ : ${hostname:=${HOSTNAME}} |
176 |
+ [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}" |
177 |
+ ) |
178 |
+ fi |
179 |
+ |
180 |
+ # set default interactive shell to sulogin if it exists |
181 |
+ set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin |
182 |
+ return 0 |
183 |
+} |
184 |
+ |
185 |
+pkg_postinst() { |
186 |
+ if use hppa; then |
187 |
+ elog "Setting the console font does not work on all HPPA consoles." |
188 |
+ elog "You can still enable it by running:" |
189 |
+ elog "# rc-update add consolefont boot" |
190 |
+ fi |
191 |
+ |
192 |
+ # Added for 0.35. |
193 |
+ if [[ ! -h "${EROOT}"/lib ]]; then |
194 |
+ if [[ -d "${EROOT}/$(get_libdir)"/rc ]]; then |
195 |
+ cp -RPp "${EROOT}/$(get_libdir)/rc" "${EROOT}"/lib |
196 |
+ fi |
197 |
+ fi |
198 |
+ |
199 |
+ if ! use newnet && ! use netifrc; then |
200 |
+ ewarn "You have emerged OpenRc without network support. This" |
201 |
+ ewarn "means you need to SET UP a network manager such as" |
202 |
+ ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/connman," |
203 |
+ ewarn " net-misc/NetworkManager, or net-vpn/badvpn." |
204 |
+ ewarn "Or, you have the option of emerging openrc with the newnet" |
205 |
+ ewarn "use flag and configuring /etc/conf.d/network and" |
206 |
+ ewarn "/etc/conf.d/staticroute if you only use static interfaces." |
207 |
+ ewarn |
208 |
+ fi |
209 |
+ |
210 |
+ if use newnet && [ ! -e "${EROOT}"/etc/runlevels/boot/network ]; then |
211 |
+ ewarn "Please add the network service to your boot runlevel" |
212 |
+ ewarn "as soon as possible. Not doing so could leave you with a system" |
213 |
+ ewarn "without networking." |
214 |
+ ewarn |
215 |
+ fi |
216 |
+} |