1 |
commit: e584a3a349286aae2d26432e9ec269d10c8efe85 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 28 00:53:00 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 28 00:53:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e584a3a3 |
7 |
|
8 |
sys-apps/sysvinit: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.58, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-apps/sysvinit/Manifest | 2 - |
14 |
sys-apps/sysvinit/files/inittab-2.88 | 59 ---------- |
15 |
.../sysvinit/files/sysvinit-2.88-makefile.patch | 60 ---------- |
16 |
.../sysvinit/files/sysvinit-2.88-selinux.patch | 38 ------- |
17 |
.../sysvinit/files/sysvinit-2.88-sysmacros.patch | 12 -- |
18 |
.../sysvinit/files/sysvinit-2.88-ttydefaults.patch | 10 -- |
19 |
sys-apps/sysvinit/sysvinit-2.88-r9.ebuild | 122 --------------------- |
20 |
sys-apps/sysvinit/sysvinit-2.92.ebuild | 122 --------------------- |
21 |
8 files changed, 425 deletions(-) |
22 |
|
23 |
diff --git a/sys-apps/sysvinit/Manifest b/sys-apps/sysvinit/Manifest |
24 |
index 32422a04565..7b91e7557d4 100644 |
25 |
--- a/sys-apps/sysvinit/Manifest |
26 |
+++ b/sys-apps/sysvinit/Manifest |
27 |
@@ -1,4 +1,2 @@ |
28 |
-DIST sysvinit-2.88dsf.tar.bz2 105551 BLAKE2B 2378a7ab96d059fc781b8b7dd130f4c6311a83527e80e6d40b0970140f0f6c0b081eec502b0c9e461fe5ac02cc064437c2bef2237b20209c8c5f8535a45e50d1 SHA512 0bd8eeb124e84fdfa8e621b05f796804ee69a9076b65f5115826bfa814ac1d5d28d31a5c22ebe77c86a93b2288edf4891adc0afaecc4de656c4ecda8a83807bf |
29 |
DIST sysvinit-2.91.tar.xz 114412 BLAKE2B 5e044f589f5001c2b5a30eda76bf5c24bb2a7e0d308b7027d54031848407e6b7667b59096044eb186a7f6a862521d4a670c05a17dcc929d07da6515058949606 SHA512 8dcf6de79b03567c300ef5f2b7dd211895745e231510d730092085a15f61f06f28cee7c504b0b022bdcb4b4e903f44946537d4fbb2b5069fb5d29bb099fd45f5 |
30 |
-DIST sysvinit-2.92.tar.xz 117560 BLAKE2B 300c9b7dffb5a07ece9b12682bf49816143215953527b69fe80c4f7f9b487de6c812213c9a851c5636de3989889b3179ace9a17b35c985729655a7c877b67170 SHA512 1395943540bc52d999de64c426c7f807d7688166591a8104e6c8cec2f45f13e0e3dd3d182b91194402c38172f412424a6c7d8c09662b3b5169ba6f928b5592a9 |
31 |
DIST sysvinit-2.93.tar.xz 117580 BLAKE2B 2e771b00dbdc73e76df9e78659aaa5e5fcbfda36290a1b5aa20a5a6fe3540c4616f2a235a668de30d33c620e2d2516da303537eda47b83b29b0844ad7aa77df4 SHA512 c80d07a674253d15ec6382cfaf792f47486e2e84ab9c913d3c9e03b590cf211177a3a14e168f4d1c9c2e97737221f7ac70a75633d90502837a6d29bdc4c48d72 |
32 |
|
33 |
diff --git a/sys-apps/sysvinit/files/inittab-2.88 b/sys-apps/sysvinit/files/inittab-2.88 |
34 |
deleted file mode 100644 |
35 |
index baab75b31ac..00000000000 |
36 |
--- a/sys-apps/sysvinit/files/inittab-2.88 |
37 |
+++ /dev/null |
38 |
@@ -1,59 +0,0 @@ |
39 |
-# |
40 |
-# /etc/inittab: This file describes how the INIT process should set up |
41 |
-# the system in a certain run-level. |
42 |
-# |
43 |
-# Author: Miquel van Smoorenburg, <miquels@×××××××.nl> |
44 |
-# Modified by: Patrick J. Volkerding, <volkerdi@×××××××××.com> |
45 |
-# Modified by: Daniel Robbins, <drobbins@g.o> |
46 |
-# Modified by: Martin Schlemmer, <azarah@g.o> |
47 |
-# Modified by: Mike Frysinger, <vapier@g.o> |
48 |
-# Modified by: Robin H. Johnson, <robbat2@g.o> |
49 |
-# Modified by: William Hubbs, <williamh@g.o> |
50 |
-# |
51 |
- |
52 |
-# Default runlevel. |
53 |
-id:3:initdefault: |
54 |
- |
55 |
-# System initialization, mount local filesystems, etc. |
56 |
-si::sysinit:/sbin/openrc sysinit |
57 |
- |
58 |
-# Further system initialization, brings up the boot runlevel. |
59 |
-rc::bootwait:/sbin/openrc boot |
60 |
- |
61 |
-l0:0:wait:/sbin/openrc shutdown |
62 |
-l0s:0:wait:/sbin/halt -dhnp |
63 |
-l1:1:wait:/sbin/openrc single |
64 |
-l2:2:wait:/sbin/openrc nonetwork |
65 |
-l3:3:wait:/sbin/openrc default |
66 |
-l4:4:wait:/sbin/openrc default |
67 |
-l5:5:wait:/sbin/openrc default |
68 |
-l6:6:wait:/sbin/openrc reboot |
69 |
-l6r:6:wait:/sbin/reboot -dkn |
70 |
-#z6:6:respawn:/sbin/sulogin |
71 |
- |
72 |
-# new-style single-user |
73 |
-su0:S:wait:/sbin/openrc single |
74 |
-su1:S:wait:/sbin/sulogin |
75 |
- |
76 |
-# TERMINALS |
77 |
-#x1:12345:respawn:/sbin/agetty 38400 console linux |
78 |
-c1:12345:respawn:/sbin/agetty 38400 tty1 linux |
79 |
-c2:2345:respawn:/sbin/agetty 38400 tty2 linux |
80 |
-c3:2345:respawn:/sbin/agetty 38400 tty3 linux |
81 |
-c4:2345:respawn:/sbin/agetty 38400 tty4 linux |
82 |
-c5:2345:respawn:/sbin/agetty 38400 tty5 linux |
83 |
-c6:2345:respawn:/sbin/agetty 38400 tty6 linux |
84 |
- |
85 |
-# SERIAL CONSOLES |
86 |
-#s0:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt100 |
87 |
-#s1:12345:respawn:/sbin/agetty -L 9600 ttyS1 vt100 |
88 |
- |
89 |
-# What to do at the "Three Finger Salute". |
90 |
-ca:12345:ctrlaltdel:/sbin/shutdown -r now |
91 |
- |
92 |
-# Used by /etc/init.d/xdm to control DM startup. |
93 |
-# Read the comments in /etc/init.d/xdm for more |
94 |
-# info. Do NOT remove, as this will start nothing |
95 |
-# extra at boot if /etc/init.d/xdm is not added |
96 |
-# to the "default" runlevel. |
97 |
-x:a:once:/etc/X11/startDM.sh |
98 |
|
99 |
diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-makefile.patch b/sys-apps/sysvinit/files/sysvinit-2.88-makefile.patch |
100 |
deleted file mode 100644 |
101 |
index 73c0160803a..00000000000 |
102 |
--- a/sys-apps/sysvinit/files/sysvinit-2.88-makefile.patch |
103 |
+++ /dev/null |
104 |
@@ -1,60 +0,0 @@ |
105 |
-https://savannah.nongnu.org/bugs/index.php?29758 |
106 |
- |
107 |
-From 2b7d90f04cdd0e343f413c5c7672615926c02706 Mon Sep 17 00:00:00 2001 |
108 |
-From: wfink <wfink@456724a4-4300-0410-8514-c89748c515a2> |
109 |
-Date: Tue, 4 May 2010 07:50:12 +0000 |
110 |
-Subject: [PATCH] Fix sysvinit bug #29758 |
111 |
- |
112 |
-git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@87 456724a4-4300-0410-8514-c89748c515a2 |
113 |
- |
114 |
-diff --git a/src/Makefile b/src/Makefile |
115 |
-index e2b8028..19675c5 100644 |
116 |
---- a/src/Makefile |
117 |
-+++ b/src/Makefile |
118 |
-@@ -92,9 +92,9 @@ all: $(BIN) $(SBIN) $(USRBIN) |
119 |
- init: LDLIBS += $(INITLIBS) $(STATIC) |
120 |
- init: init.o init_utmp.o |
121 |
- |
122 |
--halt: halt.o ifdown.o hddown.o utmp.o reboot.h |
123 |
-+halt: halt.o ifdown.o hddown.o utmp.o |
124 |
- |
125 |
--last: last.o oldutmp.h |
126 |
-+last: last.o |
127 |
- |
128 |
- mesg: mesg.o |
129 |
- |
130 |
-@@ -109,7 +109,7 @@ sulogin: sulogin.o |
131 |
- |
132 |
- wall: dowall.o wall.o |
133 |
- |
134 |
--shutdown: dowall.o shutdown.o utmp.o reboot.h |
135 |
-+shutdown: dowall.o shutdown.o utmp.o |
136 |
- |
137 |
- bootlogd: LDLIBS += -lutil |
138 |
- bootlogd: bootlogd.o |
139 |
-@@ -118,14 +118,22 @@ sulogin.o: CPPFLAGS += $(SELINUX_DEF) |
140 |
- sulogin.o: sulogin.c |
141 |
- |
142 |
- init.o: CPPFLAGS += $(SELINUX_DEF) |
143 |
--init.o: init.c init.h set.h reboot.h initreq.h |
144 |
-+init.o: init.c init.h initreq.h paths.h reboot.h set.h |
145 |
- |
146 |
--utmp.o: utmp.c init.h |
147 |
-+utmp.o: |
148 |
- |
149 |
- init_utmp.o: CPPFLAGS += -DINIT_MAIN |
150 |
--init_utmp.o: utmp.c init.h |
151 |
-+init_utmp.o: utmp.c init.h initreq.h paths.h |
152 |
- $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |
153 |
- |
154 |
-+utmpdump.o: utmpdump.c oldutmp.h |
155 |
-+ |
156 |
-+shutdown.o: shutdown.c paths.h reboot.h initreq.h init.h |
157 |
-+ |
158 |
-+halt.o: halt.c reboot.h |
159 |
-+ |
160 |
-+last.o: last.c oldutmp.h |
161 |
-+ |
162 |
- cleanobjs: |
163 |
- rm -f *.o *.bak |
164 |
- |
165 |
|
166 |
diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-selinux.patch b/sys-apps/sysvinit/files/sysvinit-2.88-selinux.patch |
167 |
deleted file mode 100644 |
168 |
index 91b7435b25a..00000000000 |
169 |
--- a/sys-apps/sysvinit/files/sysvinit-2.88-selinux.patch |
170 |
+++ /dev/null |
171 |
@@ -1,38 +0,0 @@ |
172 |
-http://svn.savannah.nongnu.org/viewvc?view=rev&root=sysvinit&revision=90 |
173 |
-https://bugs.gentoo.org/326697 |
174 |
- |
175 |
---- sysvinit/trunk/src/init.c 2010/05/07 15:16:26 89 |
176 |
-+++ sysvinit/trunk/src/init.c 2010/05/17 09:44:34 90 |
177 |
-@@ -54,10 +54,6 @@ |
178 |
- |
179 |
- #ifdef WITH_SELINUX |
180 |
- # include <selinux/selinux.h> |
181 |
--# include <sys/mount.h> |
182 |
--# ifndef MNT_DETACH /* present in glibc 2.10, missing in 2.7 */ |
183 |
--# define MNT_DETACH 2 |
184 |
--# endif |
185 |
- #endif |
186 |
- |
187 |
- #ifdef __i386__ |
188 |
-@@ -2872,11 +2868,9 @@ |
189 |
- |
190 |
- #ifdef WITH_SELINUX |
191 |
- if (getenv("SELINUX_INIT") == NULL) { |
192 |
-- const int rc = mount("proc", "/proc", "proc", 0, 0); |
193 |
-- if (is_selinux_enabled() > 0) { |
194 |
-- putenv("SELINUX_INIT=YES"); |
195 |
-- if (rc == 0) umount2("/proc", MNT_DETACH); |
196 |
-+ if (is_selinux_enabled() != 1) { |
197 |
- if (selinux_init_load_policy(&enforce) == 0) { |
198 |
-+ putenv("SELINUX_INIT=YES"); |
199 |
- execv(myname, argv); |
200 |
- } else { |
201 |
- if (enforce > 0) { |
202 |
-@@ -2887,7 +2881,6 @@ |
203 |
- } |
204 |
- } |
205 |
- } |
206 |
-- if (rc == 0) umount2("/proc", MNT_DETACH); |
207 |
- } |
208 |
- #endif |
209 |
- /* Start booting. */ |
210 |
|
211 |
diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-sysmacros.patch b/sys-apps/sysvinit/files/sysvinit-2.88-sysmacros.patch |
212 |
deleted file mode 100644 |
213 |
index efbe47a30be..00000000000 |
214 |
--- a/sys-apps/sysvinit/files/sysvinit-2.88-sysmacros.patch |
215 |
+++ /dev/null |
216 |
@@ -1,12 +0,0 @@ |
217 |
-Newer C libraries omit this include from sys/types.h. |
218 |
- |
219 |
---- a/src/bootlogd.c |
220 |
-+++ b/src/bootlogd.c |
221 |
-@@ -32,6 +32,7 @@ |
222 |
- * |
223 |
- */ |
224 |
- |
225 |
-+#include <sys/sysmacros.h> |
226 |
- #include <sys/types.h> |
227 |
- #include <sys/time.h> |
228 |
- #include <sys/stat.h> |
229 |
|
230 |
diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-ttydefaults.patch b/sys-apps/sysvinit/files/sysvinit-2.88-ttydefaults.patch |
231 |
deleted file mode 100644 |
232 |
index 5db809067e1..00000000000 |
233 |
--- a/sys-apps/sysvinit/files/sysvinit-2.88-ttydefaults.patch |
234 |
+++ /dev/null |
235 |
@@ -1,10 +0,0 @@ |
236 |
---- sysvinit/trunk/src/init.c 2014/01/26 16:40:03 134 |
237 |
-+++ sysvinit/trunk/src/init.c 2014/01/26 22:00:42 135 |
238 |
-@@ -49,6 +49,7 @@ |
239 |
- #include <utmp.h> |
240 |
- #include <ctype.h> |
241 |
- #include <stdarg.h> |
242 |
-+#include <sys/ttydefaults.h> |
243 |
- #include <sys/syslog.h> |
244 |
- #include <sys/time.h> |
245 |
- |
246 |
|
247 |
diff --git a/sys-apps/sysvinit/sysvinit-2.88-r9.ebuild b/sys-apps/sysvinit/sysvinit-2.88-r9.ebuild |
248 |
deleted file mode 100644 |
249 |
index 06533bd44b1..00000000000 |
250 |
--- a/sys-apps/sysvinit/sysvinit-2.88-r9.ebuild |
251 |
+++ /dev/null |
252 |
@@ -1,122 +0,0 @@ |
253 |
-# Copyright 1999-2017 Gentoo Foundation |
254 |
-# Distributed under the terms of the GNU General Public License v2 |
255 |
- |
256 |
-EAPI=5 |
257 |
- |
258 |
-inherit eutils toolchain-funcs flag-o-matic |
259 |
- |
260 |
-DESCRIPTION="/sbin/init - parent of all processes" |
261 |
-HOMEPAGE="https://savannah.nongnu.org/projects/sysvinit" |
262 |
-SRC_URI="mirror://nongnu/${PN}/${P}dsf.tar.bz2" |
263 |
- |
264 |
-LICENSE="GPL-2" |
265 |
-SLOT="0" |
266 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" |
267 |
-IUSE="selinux ibm static kernel_FreeBSD" |
268 |
- |
269 |
-CDEPEND=" |
270 |
- selinux? ( |
271 |
- >=sys-libs/libselinux-1.28 |
272 |
- )" |
273 |
-DEPEND="${CDEPEND} |
274 |
- virtual/os-headers" |
275 |
-RDEPEND="${CDEPEND} |
276 |
- selinux? ( sec-policy/selinux-shutdown ) |
277 |
- !<sys-apps/openrc-0.13 |
278 |
-" |
279 |
- |
280 |
-S=${WORKDIR}/${P}dsf |
281 |
- |
282 |
-PATCHES=( |
283 |
- "${FILESDIR}/${PN}-2.86-kexec.patch" #80220 |
284 |
- "${FILESDIR}/${PN}-2.86-shutdown-single.patch" #158615 |
285 |
- "${FILESDIR}/${P}-makefile.patch" #319197 |
286 |
- "${FILESDIR}/${P}-selinux.patch" #326697 |
287 |
- "${FILESDIR}/${P}-shutdown-h.patch" #449354 |
288 |
- "${FILESDIR}/${PN}-2.88-sysmacros.patch" |
289 |
- "${FILESDIR}/${PN}-2.88-ttydefaults.patch" #551626 |
290 |
-) |
291 |
- |
292 |
-src_prepare() { |
293 |
- epatch "${PATCHES[@]}" |
294 |
- sed -i '/^CPPFLAGS =$/d' src/Makefile || die |
295 |
- |
296 |
- # last/lastb/mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux |
297 |
- sed -i -r \ |
298 |
- -e '/^(USR)?S?BIN/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \ |
299 |
- -e '/^MAN[18]/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \ |
300 |
- src/Makefile || die |
301 |
- |
302 |
- # pidof has moved to >=procps-3.3.9 |
303 |
- sed -i -r \ |
304 |
- -e '/\/bin\/pidof/d' \ |
305 |
- -e '/^MAN8/s:\<pidof.8\>::g' \ |
306 |
- src/Makefile || die |
307 |
- |
308 |
- # Mung inittab for specific architectures |
309 |
- cd "${WORKDIR}" |
310 |
- cp "${FILESDIR}"/inittab-2.88 inittab || die "cp inittab" |
311 |
- local insert=() |
312 |
- use ppc && insert=( '#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux' ) |
313 |
- use arm && insert=( '#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100' ) |
314 |
- use arm64 && insert=( 'f0:12345:respawn:/sbin/agetty 9600 ttyAMA0 vt100' ) |
315 |
- use hppa && insert=( 'b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100' ) |
316 |
- use s390 && insert=( 's0:12345:respawn:/sbin/agetty 38400 console dumb' ) |
317 |
- if use ibm ; then |
318 |
- insert+=( |
319 |
- '#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0' |
320 |
- '#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0' |
321 |
- ) |
322 |
- fi |
323 |
- (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab |
324 |
- if use kernel_FreeBSD ; then |
325 |
- sed -i \ |
326 |
- -e 's/linux/cons25/g' \ |
327 |
- -e 's/ttyS0/cuaa0/g' \ |
328 |
- -e 's/ttyS1/cuaa1/g' \ |
329 |
- inittab #121786 |
330 |
- fi |
331 |
- if use x86 || use amd64 ; then |
332 |
- sed -i \ |
333 |
- -e '/ttyS[01]/s:9600:115200:' \ |
334 |
- inittab |
335 |
- fi |
336 |
- if [[ ${#insert[@]} -gt 0 ]] ; then |
337 |
- printf '%s\n' '' '# Architecture specific features' "${insert[@]}" >> inittab |
338 |
- fi |
339 |
-} |
340 |
- |
341 |
-src_compile() { |
342 |
- local myconf |
343 |
- |
344 |
- tc-export CC |
345 |
- append-lfs-flags |
346 |
- export DISTRO= #381311 |
347 |
- use static && append-ldflags -static |
348 |
- use selinux && myconf=WITH_SELINUX=yes |
349 |
- emake -C src ${myconf} || die |
350 |
-} |
351 |
- |
352 |
-src_install() { |
353 |
- emake -C src install ROOT="${D}" |
354 |
- dodoc README doc/* |
355 |
- |
356 |
- insinto /etc |
357 |
- doins "${WORKDIR}"/inittab |
358 |
- |
359 |
- # dead symlink |
360 |
- rm "${D}"/usr/bin/lastb || die |
361 |
-} |
362 |
- |
363 |
-pkg_postinst() { |
364 |
- # Reload init to fix unmounting problems of / on next reboot. |
365 |
- # This is really needed, as without the new version of init cause init |
366 |
- # not to quit properly on reboot, and causes a fsck of / on next reboot. |
367 |
- if [[ ${ROOT} == / ]] ; then |
368 |
- # Do not return an error if this fails |
369 |
- /sbin/telinit U &>/dev/null |
370 |
- fi |
371 |
- |
372 |
- elog "The last/lastb/mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to" |
373 |
- elog "sys-apps/util-linux. The pidof tool has been moved to sys-process/procps." |
374 |
-} |
375 |
|
376 |
diff --git a/sys-apps/sysvinit/sysvinit-2.92.ebuild b/sys-apps/sysvinit/sysvinit-2.92.ebuild |
377 |
deleted file mode 100644 |
378 |
index b6ea9ba1c91..00000000000 |
379 |
--- a/sys-apps/sysvinit/sysvinit-2.92.ebuild |
380 |
+++ /dev/null |
381 |
@@ -1,122 +0,0 @@ |
382 |
-# Copyright 1999-2018 Gentoo Authors |
383 |
-# Distributed under the terms of the GNU General Public License v2 |
384 |
- |
385 |
-EAPI=6 |
386 |
- |
387 |
-inherit toolchain-funcs flag-o-matic |
388 |
- |
389 |
-DESCRIPTION="/sbin/init - parent of all processes" |
390 |
-HOMEPAGE="https://savannah.nongnu.org/projects/sysvinit" |
391 |
-SRC_URI="mirror://nongnu/${PN}/${P/_/-}.tar.xz" |
392 |
- |
393 |
-LICENSE="GPL-2" |
394 |
-SLOT="0" |
395 |
-[[ "${PV}" == *beta* ]] || \ |
396 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
397 |
-IUSE="selinux ibm static kernel_FreeBSD" |
398 |
- |
399 |
-CDEPEND=" |
400 |
- selinux? ( |
401 |
- >=sys-libs/libselinux-1.28 |
402 |
- )" |
403 |
-DEPEND="${CDEPEND} |
404 |
- virtual/os-headers" |
405 |
-RDEPEND="${CDEPEND} |
406 |
- selinux? ( sec-policy/selinux-shutdown ) |
407 |
- !<sys-apps/openrc-0.13 |
408 |
-" |
409 |
- |
410 |
-S="${WORKDIR}/${P/_*}" |
411 |
- |
412 |
-PATCHES=( |
413 |
- "${FILESDIR}/${PN}-2.86-kexec.patch" #80220 |
414 |
- "${FILESDIR}/${PN}-2.86-shutdown-single.patch" #158615 |
415 |
- "${FILESDIR}/${PN}-2.92_beta-shutdown-h.patch" #449354 |
416 |
-) |
417 |
- |
418 |
-src_prepare() { |
419 |
- default |
420 |
- sed -i '/^CPPFLAGS =$/d' src/Makefile || die |
421 |
- |
422 |
- # last/lastb/mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux |
423 |
- sed -i -r \ |
424 |
- -e '/^(USR)?S?BIN/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \ |
425 |
- -e '/^MAN[18]/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \ |
426 |
- src/Makefile || die |
427 |
- |
428 |
- # pidof has moved to >=procps-3.3.9 |
429 |
- sed -i -r \ |
430 |
- -e '/\/bin\/pidof/d' \ |
431 |
- -e '/^MAN8/s:\<pidof.8\>::g' \ |
432 |
- src/Makefile || die |
433 |
- |
434 |
- # Mung inittab for specific architectures |
435 |
- cd "${WORKDIR}" || die |
436 |
- cp "${FILESDIR}"/inittab-2.91 inittab || die "cp inittab" |
437 |
- local insert=() |
438 |
- use ppc && insert=( '#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux' ) |
439 |
- use arm && insert=( '#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100' ) |
440 |
- use arm64 && insert=( 'f0:12345:respawn:/sbin/agetty 9600 ttyAMA0 vt100' ) |
441 |
- use hppa && insert=( 'b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100' ) |
442 |
- use s390 && insert=( 's0:12345:respawn:/sbin/agetty 38400 console dumb' ) |
443 |
- if use ibm ; then |
444 |
- insert+=( |
445 |
- '#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0' |
446 |
- '#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0' |
447 |
- ) |
448 |
- fi |
449 |
- (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab |
450 |
- if use kernel_FreeBSD ; then |
451 |
- sed -i \ |
452 |
- -e 's/linux/cons25/g' \ |
453 |
- -e 's/ttyS0/cuaa0/g' \ |
454 |
- -e 's/ttyS1/cuaa1/g' \ |
455 |
- inittab #121786 |
456 |
- fi |
457 |
- if use x86 || use amd64 ; then |
458 |
- sed -i \ |
459 |
- -e '/ttyS[01]/s:9600:115200:' \ |
460 |
- inittab |
461 |
- fi |
462 |
- if [[ ${#insert[@]} -gt 0 ]] ; then |
463 |
- printf '%s\n' '' '# Architecture specific features' "${insert[@]}" >> inittab |
464 |
- fi |
465 |
-} |
466 |
- |
467 |
-src_compile() { |
468 |
- tc-export CC |
469 |
- append-lfs-flags |
470 |
- export DISTRO= #381311 |
471 |
- export VERSION="${PV}" |
472 |
- use static && append-ldflags -static |
473 |
- emake -C src $(usex selinux 'WITH_SELINUX=yes' '') |
474 |
-} |
475 |
- |
476 |
-src_install() { |
477 |
- emake -C src install ROOT="${D}" |
478 |
- dodoc README doc/* |
479 |
- |
480 |
- insinto /etc |
481 |
- doins "${WORKDIR}"/inittab |
482 |
- |
483 |
- # dead symlink |
484 |
- rm "${ED%/}"/usr/bin/lastb || die |
485 |
- |
486 |
- newinitd "${FILESDIR}"/bootlogd.initd bootlogd |
487 |
-} |
488 |
- |
489 |
-pkg_postinst() { |
490 |
- # Reload init to fix unmounting problems of / on next reboot. |
491 |
- # This is really needed, as without the new version of init cause init |
492 |
- # not to quit properly on reboot, and causes a fsck of / on next reboot. |
493 |
- if [[ ${ROOT} == / ]] ; then |
494 |
- if [[ -e /dev/initctl && ! -e /run/initctl ]]; then |
495 |
- ln -s /dev/initctl /run/initctl |
496 |
- fi |
497 |
- # Do not return an error if this fails |
498 |
- /sbin/telinit U &>/dev/null |
499 |
- fi |
500 |
- |
501 |
- elog "The last/lastb/mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to" |
502 |
- elog "sys-apps/util-linux. The pidof tool has been moved to sys-process/procps." |
503 |
-} |