1 |
commit: 1008f88c5f3e8eb76a304db733cf1231ae8e12f2 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 19:32:00 2015 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 19:34:07 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1008f88c |
7 |
|
8 |
sys-apps/openrc: version bump |
9 |
|
10 |
sys-apps/openrc/Manifest | 1 + |
11 |
sys-apps/openrc/openrc-0.18.4.ebuild | 348 +++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 349 insertions(+) |
13 |
|
14 |
diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest |
15 |
index a2aee01..6284184 100644 |
16 |
--- a/sys-apps/openrc/Manifest |
17 |
+++ b/sys-apps/openrc/Manifest |
18 |
@@ -9,3 +9,4 @@ DIST openrc-0.16.4.tar.bz2 158599 SHA256 6771257e208da2e4d20b4ac2e3e7f065eb88735 |
19 |
DIST openrc-0.16.tar.bz2 157924 SHA256 969ce450bb095a406ef14362572633b14c8696b57d67361394c5951704273ce3 SHA512 3ff3958bf480ec6bf97e50c8911c382dc855322a74d57b65da975e98d8b76debda971826d15803be96f2ae9c7fd5ebf4cf0c43013663a042224a9c49377614f8 WHIRLPOOL 5e6bb11b907a2fe3812653354950b0ec4e13571981580d03d2ee9b93dc8a68ce128ee1ec7560557adbc90af44aa881648aae51e15bb0f0990ca338ffb3c6c814 |
20 |
DIST openrc-0.17.tar.bz2 160533 SHA256 45818d9ef4659e8dd924a1468a091255c305daee5417f94d9515f0e125298b30 SHA512 6e69b036d113f066b0dd0bfe55e019328e0e77cff6c93f0a3e55751aa0a72411aa3b1efe8b4327e156a9612e4155863b0a81c9eda043c12904bb36e861b71399 WHIRLPOOL de45daf6f4aebe632ea9fcb46408e63f0aed6c9b9129fb5510f348f20cf1c62aa42e7dce47a7f19a441696596fa57494642e7334a42c415fdbc865cb80a18eff |
21 |
DIST openrc-0.18.3.tar.bz2 159104 SHA256 891478b28b3d2b964276b35a3cdf538a7f3d9cfdc41f455eb7453c881f629837 SHA512 49edd83c578d99b2df57b85a1db236748310ee012fee9c7220ad657e1543c04004817117c05060268b8493e95c294894124d3e958cdb01389cfd30a85cde3644 WHIRLPOOL 2b0c7f70c689c3d2851e1c78c1e4285fb60dde689624487b9cedf920882e7285b6c4bf7e37564f1995a8ee6f4106a77aedf69933c11f04af53f5d402e4b22bfb |
22 |
+DIST openrc-0.18.4.tar.bz2 157237 SHA256 2c8bf1c6f52fcf4c1f6945a2836ba2551a7d93015aa63ba5a2e1d2851c2942e4 SHA512 13f5dbc1292ce94c2e42a35e582bbba12e4bba943640952ea4cecc7ff5c60175d362055a4f5e213f218236ab4a040a5dff01a47c8bc007237554744d8a89a48a WHIRLPOOL f1f44effad80863276339af5bce1b3a9068d9c5ae7f7c3b571fb883b376c9083c207980c6d05170b0a18c0902ad1e2d76a1bafb0f11721b0522308e2cb7c67b4 |
23 |
|
24 |
diff --git a/sys-apps/openrc/openrc-0.18.4.ebuild b/sys-apps/openrc/openrc-0.18.4.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..4575415 |
27 |
--- /dev/null |
28 |
+++ b/sys-apps/openrc/openrc-0.18.4.ebuild |
29 |
@@ -0,0 +1,348 @@ |
30 |
+# Copyright 1999-2015 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit eutils flag-o-matic multilib pam toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" |
39 |
+HOMEPAGE="https://www.gentoo.org/proj/en/base/openrc/" |
40 |
+ |
41 |
+if [[ ${PV} == "9999" ]]; then |
42 |
+ EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git" |
43 |
+ inherit git-r3 |
44 |
+else |
45 |
+ SRC_URI="https://dev.gentoo.org/~williamh/dist/${P}.tar.bz2" |
46 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
47 |
+fi |
48 |
+ |
49 |
+LICENSE="BSD-2" |
50 |
+SLOT="0" |
51 |
+IUSE="audit debug elibc_glibc ncurses pam newnet prefix +netifrc selinux static-libs |
52 |
+ tools unicode kernel_linux kernel_FreeBSD" |
53 |
+ |
54 |
+COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) ) |
55 |
+ elibc_glibc? ( >=sys-libs/glibc-2.5 ) |
56 |
+ ncurses? ( sys-libs/ncurses:0= ) |
57 |
+ pam? ( |
58 |
+ sys-auth/pambase |
59 |
+ virtual/pam |
60 |
+ ) |
61 |
+ tools? ( dev-lang/perl ) |
62 |
+ audit? ( sys-process/audit ) |
63 |
+ kernel_linux? ( |
64 |
+ sys-process/psmisc |
65 |
+ !<sys-process/procps-3.3.9-r2 |
66 |
+ ) |
67 |
+ selinux? ( |
68 |
+ sys-apps/policycoreutils |
69 |
+ sys-libs/libselinux |
70 |
+ ) |
71 |
+ !<sys-apps/baselayout-2.1-r1 |
72 |
+ !<sys-fs/udev-init-scripts-27" |
73 |
+DEPEND="${COMMON_DEPEND} |
74 |
+ virtual/os-headers |
75 |
+ ncurses? ( virtual/pkgconfig )" |
76 |
+RDEPEND="${COMMON_DEPEND} |
77 |
+ !prefix? ( |
78 |
+ kernel_linux? ( || ( >=sys-apps/sysvinit-2.86-r6 sys-process/runit ) ) |
79 |
+ kernel_FreeBSD? ( sys-freebsd/freebsd-sbin ) |
80 |
+ ) |
81 |
+ selinux? ( |
82 |
+ sec-policy/selinux-base-policy |
83 |
+ sec-policy/selinux-openrc |
84 |
+ ) |
85 |
+" |
86 |
+ |
87 |
+PDEPEND="netifrc? ( net-misc/netifrc )" |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ sed -i 's:0444:0644:' mk/sys.mk || die |
91 |
+ |
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 |
+ # Allow user patches to be applied without modifying the ebuild |
98 |
+ epatch_user |
99 |
+} |
100 |
+ |
101 |
+src_compile() { |
102 |
+ unset LIBDIR #266688 |
103 |
+ |
104 |
+ MAKE_ARGS="${MAKE_ARGS} |
105 |
+ LIBNAME=$(get_libdir) |
106 |
+ LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc |
107 |
+ MKNET=$(usex newnet) |
108 |
+ MKSELINUX=$(usex selinux) |
109 |
+ MKAUDIT=$(usex audit) |
110 |
+ MKPAM=$(usev pam) |
111 |
+ MKSTATICLIBS=$(usex static-libs) |
112 |
+ MKTOOLS=$(usex tools)" |
113 |
+ |
114 |
+ local brand="Unknown" |
115 |
+ if use kernel_linux ; then |
116 |
+ MAKE_ARGS="${MAKE_ARGS} OS=Linux" |
117 |
+ brand="Linux" |
118 |
+ elif use kernel_FreeBSD ; then |
119 |
+ MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD" |
120 |
+ brand="FreeBSD" |
121 |
+ fi |
122 |
+ export BRANDING="Gentoo ${brand}" |
123 |
+ use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}" |
124 |
+ export DEBUG=$(usev debug) |
125 |
+ export MKTERMCAP=$(usev ncurses) |
126 |
+ |
127 |
+ tc-export CC AR RANLIB |
128 |
+ emake ${MAKE_ARGS} |
129 |
+} |
130 |
+ |
131 |
+# set_config <file> <option name> <yes value> <no value> test |
132 |
+# a value of "#" will just comment out the option |
133 |
+set_config() { |
134 |
+ local file="${ED}/$1" var=$2 val com |
135 |
+ eval "${@:5}" && val=$3 || val=$4 |
136 |
+ [[ ${val} == "#" ]] && com="#" && val='\2' |
137 |
+ sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}" |
138 |
+} |
139 |
+ |
140 |
+set_config_yes_no() { |
141 |
+ set_config "$1" "$2" YES NO "${@:3}" |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ emake ${MAKE_ARGS} DESTDIR="${D}" install |
146 |
+ |
147 |
+ # move the shared libs back to /usr so ldscript can install |
148 |
+ # more of a minimal set of files |
149 |
+ # disabled for now due to #270646 |
150 |
+ #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die |
151 |
+ #gen_usr_ldscript -a einfo rc |
152 |
+ gen_usr_ldscript libeinfo.so |
153 |
+ gen_usr_ldscript librc.so |
154 |
+ |
155 |
+ if ! use kernel_linux; then |
156 |
+ keepdir /$(get_libdir)/rc/init.d |
157 |
+ fi |
158 |
+ keepdir /$(get_libdir)/rc/tmp |
159 |
+ |
160 |
+ # Backup our default runlevels |
161 |
+ dodir /usr/share/"${PN}" |
162 |
+ cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die |
163 |
+ rm -rf "${ED}"/etc/runlevels |
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}"/usr/share/openrc/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 the gentoo pam.d file |
181 |
+ newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon |
182 |
+ |
183 |
+ # install documentation |
184 |
+ dodoc ChangeLog *.md |
185 |
+ if use newnet; then |
186 |
+ dodoc README.newnet |
187 |
+ fi |
188 |
+} |
189 |
+ |
190 |
+add_boot_init() { |
191 |
+ local initd=$1 |
192 |
+ local runlevel=${2:-boot} |
193 |
+ # if the initscript is not going to be installed and is not |
194 |
+ # currently installed, return |
195 |
+ [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \ |
196 |
+ || return |
197 |
+ [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return |
198 |
+ |
199 |
+ # if runlevels dont exist just yet, then create it but still flag |
200 |
+ # to pkg_postinst that it needs real setup #277323 |
201 |
+ if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then |
202 |
+ mkdir -p "${EROOT}"etc/runlevels/${runlevel} |
203 |
+ touch "${EROOT}"etc/runlevels/.add_boot_init.created |
204 |
+ fi |
205 |
+ |
206 |
+ elog "Auto-adding '${initd}' service to your ${runlevel} runlevel" |
207 |
+ ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd} |
208 |
+} |
209 |
+add_boot_init_mit_config() { |
210 |
+ local config=$1 initd=$2 |
211 |
+ if [[ -e ${EROOT}${config} ]] ; then |
212 |
+ if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then |
213 |
+ add_boot_init ${initd} |
214 |
+ fi |
215 |
+ fi |
216 |
+} |
217 |
+ |
218 |
+pkg_preinst() { |
219 |
+ local f LIBDIR=$(get_libdir) |
220 |
+ |
221 |
+ # avoid default thrashing in conf.d files when possible #295406 |
222 |
+ if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then |
223 |
+ ( |
224 |
+ unset hostname HOSTNAME |
225 |
+ source "${EROOT}"etc/conf.d/hostname |
226 |
+ : ${hostname:=${HOSTNAME}} |
227 |
+ [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}" |
228 |
+ ) |
229 |
+ fi |
230 |
+ |
231 |
+ # set default interactive shell to sulogin if it exists |
232 |
+ set_config /etc/rc.conf rc_shell /sbin/sulogin "#" test -e /sbin/sulogin |
233 |
+ |
234 |
+ # termencoding was added in 0.2.1 and needed in boot |
235 |
+ has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding |
236 |
+ |
237 |
+ # swapfiles was added in 0.9.9 and needed in boot (february 2012) |
238 |
+ has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles |
239 |
+ |
240 |
+ if ! has_version ">=sys-apps/openrc-0.11"; then |
241 |
+ add_boot_init sysfs sysinit |
242 |
+ fi |
243 |
+ |
244 |
+ if ! has_version ">=sys-apps/openrc-0.11.3" ; then |
245 |
+ migrate_udev_mount_script |
246 |
+ add_boot_init tmpfiles.setup boot |
247 |
+ fi |
248 |
+ |
249 |
+ # these were added in 0.12. |
250 |
+ if ! has_version ">=sys-apps/openrc-0.12"; then |
251 |
+ add_boot_init loopback |
252 |
+ add_boot_init tmpfiles.dev sysinit |
253 |
+ |
254 |
+ # ensure existing /etc/conf.d/net is not removed |
255 |
+ # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier |
256 |
+ # this needs to stay in openrc ebuilds for a long time. :( |
257 |
+ # Added in 0.12. |
258 |
+ if [[ -f "${EROOT}"etc/conf.d/net ]]; then |
259 |
+ einfo "Modifying conf.d/net to keep it from being removed" |
260 |
+ cat <<-EOF >>"${EROOT}"etc/conf.d/net |
261 |
+ |
262 |
+# The network scripts are now part of net-misc/netifrc |
263 |
+# In order to avoid sys-apps/${P} from removing this file, this comment was |
264 |
+# added; you can safely remove this comment. Please see |
265 |
+# /usr/share/doc/netifrc*/README* for more information. |
266 |
+EOF |
267 |
+ fi |
268 |
+ fi |
269 |
+ has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt |
270 |
+ |
271 |
+ if ! has_version ">=sys-apps/openrc-0.18.3"; then |
272 |
+ add_boot_init mtab |
273 |
+ if [[ -f "${EROOT}"etc/mtab ]] && [[ ! -L "${EROOT}"etc/mtab ]]; then |
274 |
+ ewarn "${EROOT}etc/mtab will be replaced with a" |
275 |
+ ewarn "symbolic link to /proc/self/mounts on the next" |
276 |
+ ewarn "reboot." |
277 |
+ ewarn "Change the setting in ${EROOT}etc/conf.d/mtab" |
278 |
+ ewarn "if you do not want this to happen." |
279 |
+ fi |
280 |
+ fi |
281 |
+} |
282 |
+ |
283 |
+# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev. |
284 |
+migrate_udev_mount_script() { |
285 |
+ if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \ |
286 |
+ ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then |
287 |
+ add_boot_init udev-mount sysinit |
288 |
+ fi |
289 |
+ return 0 |
290 |
+} |
291 |
+ |
292 |
+pkg_postinst() { |
293 |
+ local LIBDIR=$(get_libdir) |
294 |
+ |
295 |
+ # Make our runlevels if they don't exist |
296 |
+ if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then |
297 |
+ einfo "Copying across default runlevels" |
298 |
+ cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc |
299 |
+ rm -f "${EROOT}"etc/runlevels/.add_boot_init.created |
300 |
+ else |
301 |
+ if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then |
302 |
+ mkdir -p "${EROOT}"etc/runlevels/sysinit |
303 |
+ cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \ |
304 |
+ "${EROOT}"etc/runlevels/sysinit |
305 |
+ fi |
306 |
+ if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then |
307 |
+ mkdir -p "${EROOT}"etc/runlevels/shutdown |
308 |
+ cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \ |
309 |
+ "${EROOT}"etc/runlevels/shutdown |
310 |
+ fi |
311 |
+ fi |
312 |
+ |
313 |
+ if use hppa; then |
314 |
+ elog "Setting the console font does not work on all HPPA consoles." |
315 |
+ elog "You can still enable it by running:" |
316 |
+ elog "# rc-update add consolefont boot" |
317 |
+ fi |
318 |
+ |
319 |
+ # Handle the conf.d/local.{start,stop} -> local.d transition |
320 |
+ if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then |
321 |
+ elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}" |
322 |
+ elog "files to ${EROOT}etc/local.d" |
323 |
+ mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start |
324 |
+ mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop |
325 |
+ chmod +x "${EROOT}"etc/local.d/*{start,stop} |
326 |
+ fi |
327 |
+ |
328 |
+ if use kernel_linux && [[ "${EROOT}" = "/" ]]; then |
329 |
+ if ! /$(get_libdir)/rc/sh/migrate-to-run.sh; then |
330 |
+ ewarn "The dependency data could not be migrated to /run/openrc." |
331 |
+ ewarn "This means you need to reboot your system." |
332 |
+ fi |
333 |
+ fi |
334 |
+ |
335 |
+ # update the dependency tree after touching all files #224171 |
336 |
+ [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u |
337 |
+ |
338 |
+ if ! use newnet && ! use netifrc; then |
339 |
+ ewarn "You have emerged OpenRc without network support. This" |
340 |
+ ewarn "means you need to SET UP a network manager such as" |
341 |
+ ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd," |
342 |
+ ewarn "net-misc/NetworkManager, or net-misc/badvpn." |
343 |
+ ewarn "Or, you have the option of emerging openrc with the newnet" |
344 |
+ ewarn "use flag and configuring /etc/conf.d/network and" |
345 |
+ ewarn "/etc/conf.d/staticroute if you only use static interfaces." |
346 |
+ ewarn |
347 |
+ fi |
348 |
+ |
349 |
+ if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then |
350 |
+ ewarn "Please add the network service to your boot runlevel" |
351 |
+ ewarn "as soon as possible. Not doing so could leave you with a system" |
352 |
+ ewarn "without networking." |
353 |
+ ewarn |
354 |
+ fi |
355 |
+ |
356 |
+ ewarn "In this version of OpenRC, the loopback interface no longer" |
357 |
+ ewarn "satisfies the net virtual." |
358 |
+ ewarn "If you have services now which do not start because of this," |
359 |
+ ewarn "They can be fixed by adding rc_need=\"!net\"" |
360 |
+ ewarn "to the ${EROOT}etc/conf.d/<servicename> file." |
361 |
+ ewarn "You should also file a bug against the service asking that" |
362 |
+ ewarn "need net be dropped from the dependencies." |
363 |
+ ewarn "The bug you file should block the following tracker:" |
364 |
+ ewarn "https://bugs.gentoo.org/show_bug.cgi?id=439092" |
365 |
+ ewarn |
366 |
+ |
367 |
+ # Updated for 0.13.2. |
368 |
+ ewarn "Bug https://bugs.gentoo.org/show_bug.cgi?id=427996 was not" |
369 |
+ ewarn "fixed correctly in earlier versions of OpenRC." |
370 |
+ ewarn "The correct fix is implemented in this version, but that" |
371 |
+ ewarn "means netmount needs to be added to the default runlevel if" |
372 |
+ ewarn "you are using nfs file systems." |
373 |
+ ewarn |
374 |
+ |
375 |
+ elog "You should now update all files in /etc, using etc-update" |
376 |
+ elog "or equivalent before restarting any services or this host." |
377 |
+} |