summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-04 04:57:12 +0000
committerMike Frysinger <vapier@gentoo.org>2013-05-04 04:57:12 +0000
commit11ea3ffad1bc184c46ab36714ac922d0a6c245e4 (patch)
tree05096e708a34f63cdba31c6c45dea06b70b3b8ba /sys-apps/sysvinit
parentversion bump (diff)
downloadhistorical-11ea3ffad1bc184c46ab36714ac922d0a6c245e4.tar.gz
historical-11ea3ffad1bc184c46ab36714ac922d0a6c245e4.tar.bz2
historical-11ea3ffad1bc184c46ab36714ac922d0a6c245e4.zip
Make shutdown -h work the same as other inits #449354 by David Weber. Stop installing mesg/wall as util-linux installs them now #468144 by Samuli Suominen.
Package-Manager: portage-2.2.0_alpha170/cvs/Linux x86_64 Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'sys-apps/sysvinit')
-rw-r--r--sys-apps/sysvinit/ChangeLog11
-rw-r--r--sys-apps/sysvinit/Manifest32
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch65
-rw-r--r--sys-apps/sysvinit/sysvinit-2.88-r4.ebuild4
-rw-r--r--sys-apps/sysvinit/sysvinit-2.88-r5.ebuild99
5 files changed, 193 insertions, 18 deletions
diff --git a/sys-apps/sysvinit/ChangeLog b/sys-apps/sysvinit/ChangeLog
index 768013764c0d..a709683b1c84 100644
--- a/sys-apps/sysvinit/ChangeLog
+++ b/sys-apps/sysvinit/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-apps/sysvinit
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.122 2013/04/20 03:51:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/ChangeLog,v 1.123 2013/05/04 04:57:00 vapier Exp $
+
+*sysvinit-2.88-r5 (04 May 2013)
+
+ 04 May 2013; Mike Frysinger <vapier@gentoo.org>
+ +files/sysvinit-2.88-shutdown-h.patch, +sysvinit-2.88-r5.ebuild,
+ sysvinit-2.88-r4.ebuild:
+ Make shutdown -h work the same as other inits #449354 by David Weber. Stop
+ installing mesg/wall as util-linux installs them now #468144 by Samuli
+ Suominen.
20 Apr 2013; Mike Frysinger <vapier@gentoo.org> files/inittab-2.87,
sysvinit-2.88-r4.ebuild:
diff --git a/sys-apps/sysvinit/Manifest b/sys-apps/sysvinit/Manifest
index 50006ae978a4..a437791408dd 100644
--- a/sys-apps/sysvinit/Manifest
+++ b/sys-apps/sysvinit/Manifest
@@ -8,6 +8,7 @@ AUX sysvinit-2.86-kexec.patch 3910 SHA256 a9d764afc05ae73c2153b024a3b9e3295ba913
AUX sysvinit-2.86-shutdown-single.patch 1229 SHA256 78852ca410e7ee23bf69cb6e566cb90404d8c8b7bcc10b264f66c97e0359d431 SHA512 b1fa6225cdb0d5ed6d2d3128a9ad29dc76f14845c3fe57aa2edf234af456ae49f700b25ed4170a6337f662be224bd6ddfd424331483b0c482fd33cd045ddc575 WHIRLPOOL a770eec46053c67a047832742197b8d30d8b5e2e27cad0dc4f608cbccde0b5ece7e08102c51372cc0b33304e266e3b03156d12209db14fbe61800b312ad556aa
AUX sysvinit-2.88-makefile.patch 1545 SHA256 34d6ee50be139ad08b620569df11ac6a4cdf3dae737733dda21a716c4064c194 SHA512 d19e260902f69dd19bfaa4f3e415a816388663a7f89b9d102b27f44c5f2d0654b64ab2e5689a20a3975ff0801e4fb96ef7b6737bfb4ba9466ec58c477de322aa WHIRLPOOL bba46046a59969ac2007c3c932bf07646a5ebece72a216990c185b8eeead724e88cd349219ae528060b9c71a5df97d1e3221691cdbb77e16c9522014c836a76d
AUX sysvinit-2.88-selinux.patch 1041 SHA256 e987ab6e478e5b3987ae1c6e338cfc66ae356f704d0c3ea932f9e4335b4986f0 SHA512 46eeb3ab2dd25f314b9f60b2dc8a7da2aa2aafb978953a730ccc36456d240e317930e86df69ce2592cf45978f3307dfc2522b24ae1158e64ff17dfa6ed84dcb8 WHIRLPOOL 4fe319df09759addf9499367a6da47e8effe93ec0a4ba5b7e7b1d0c746b324a303cdc81eb360c81e529faf41260d69e2b4364d6695b390db9dba1e3d1693c872
+AUX sysvinit-2.88-shutdown-h.patch 1626 SHA256 642585158e6fbb185ed53804be2eeea85c037726ed19beb51a9ffb594e63ca0f SHA512 244ed7c2242f52674153ccfebb92c7a9bdc68a25f98aacbbf107ddfce11b195483e90150619fbeae3167136fcb54b878f8eb77e2dfe225d9f2eeb2c182e5e2fe WHIRLPOOL 6500d8be6313190e5ccf8ca0fe3d51ef879458f59e7ebe1849f666f3c20ffdea21d73f2951e978ac0bf7dce1f47be0113e129db784fdabb6f4407e4d78a3cb0d
DIST sysvinit-2.87-patches-2.tar.bz2 7129 SHA256 724208540773ffa5d632285244bb61ea47fa347e6c0354c4faf31f407cfbe995 SHA512 f3ea9d947c2c756bbbd426a035ace3a78e1d851a9dc3fbb27f4c401f68b5a1c00372460918315efb6bf5118c740f31ea4d32fc1f3bda84a348342b1fb2873a5e WHIRLPOOL cfee9097a57f600af8134b2523dafdbb76564e0272922442523221317192755385609128cca8f173c51bfe52ad56733c29df1f58cca9aba70f38fc151714c68f
DIST sysvinit-2.88dsf.tar.bz2 105551 SHA256 60bbc8c1e1792056e23761d22960b30bb13eccc2cabff8c7310a01f4d5df1519 SHA512 0bd8eeb124e84fdfa8e621b05f796804ee69a9076b65f5115826bfa814ac1d5d28d31a5c22ebe77c86a93b2288edf4891adc0afaecc4de656c4ecda8a83807bf WHIRLPOOL f4809e19ea2c72c733d3c09a4964d7a6e67b091d1f1d9ef276515b2f138148bfbf516034d3fb1009289f9520f2fbe9e29687f432bba06fb437ebd6e2b9ef570c
DIST sysvinit_2.87dsf.orig.tar.gz 106102 SHA256 41b7c77942ec22916b36394d623de40c5cc5b058a6994af5ddeec08b284c4765 SHA512 151743c5cfe2c53b703fb4efb48424435073de488a5c5e4f4e2d34fdee447679cba666e59d52fe911b13c5cd584ae8ccf018b801313b3c2f3d27cebac28388c0 WHIRLPOOL d78facea0be9be9df40add99b60063e10abd5d2aff6780a8cd144cc1fda2a38824cefe33c5e15c6728ef98801582abce54d80e89952ea840ba3d50ebb94be60d
@@ -15,24 +16,25 @@ EBUILD sysvinit-2.87-r3.ebuild 2729 SHA256 0d24f5177bc5bc4add0dd817070258e3c0af0
EBUILD sysvinit-2.88-r1.ebuild 2510 SHA256 62d5487c1d007cb52cd226894098f349edbc4c98cda5ca02ab85eda63cd100ce SHA512 f39c27f44d5656e442d6ab1528e125ea1839df47e86bfa6af88b3c933a2f30fee8f90f6b493cdd8458a36e07c56afebb8f60dd7ee060b47676775b3892b5aafb WHIRLPOOL 288cba1582cf66c6611c3b2d4612ef0b6d616e0fc7ff728b77ed52ac4e1255c8abd2b1af09d51da75ecd3a4eee52a68bec2a5f6161c275f79d0d9b7d7719adb3
EBUILD sysvinit-2.88-r2.ebuild 2566 SHA256 dddf7c0ee6930815388381c0af7b49b9b75f39cb9bd927152ffff2ff14dafb73 SHA512 4eb872316bc9d22caac197fbddcc7162a5c03d464a066f3e4aefe1de25909d51293edcced154754e24a4eed99cf9f81309f8f8c205bca21689f6cd22ca332c29 WHIRLPOOL bd9a0d44b6a6958a8bea44994ca38c34f0f9610ac049146f15b4d206194c48796e230234d8b434eaea9dd7b5a5cff69326232bb949077e1cc2d666f675087889
EBUILD sysvinit-2.88-r3.ebuild 2855 SHA256 34fbfd3d6f80e0c7fc6fa373d926f0a78211f4cbad1dfa1b125292713feb09e2 SHA512 0074e8f3cce9801dc983c32f42cf16d429529a157d8bf188eeb73f39589f1e0bfb3580e6ee4176636693a67eb9576dbd556129cd133318b05e5db604b54590c6 WHIRLPOOL 1d8edc7a85f0b79e1f204e04b6c6d0b1fd36108da8ccd9ad02a4e22bad4119e493e6b85c33e09850900f70a2d1a74e7e8ffab97797b15fa082a21db27ad1080e
-EBUILD sysvinit-2.88-r4.ebuild 2921 SHA256 d6667bf77f30aee9d3fcd3dce58f519e53e0335cbcf39e65b4b5a5bd59fa1724 SHA512 9b4057b9d650e03551e81f936c743bbd7732c7df454d5a65f17ac184985caee135b3793ad1ad1164b8507156f0b58394a0742655c91914b11278dd00950f7a5b WHIRLPOOL 44bd574d139f9830b4534cf5aa19887beada9fdf7ddff11bf3068b5b9a7f4410a7a85598cc235dd7a9b43189c5198ac4080bafb7f343d368005926fde01d0468
+EBUILD sysvinit-2.88-r4.ebuild 2921 SHA256 dcf2683217da787fb25e9e6798e3eae30fc367965675f82050c86e53cc60e8cc SHA512 857cbba86090b7f51d23a67d81b2548a62aa0a7685bb2a41f6c51a6d0d682a34f889f7badcc081123aed267764d3c01d44244692c7cee2fc65c83b7f1ff70ed4 WHIRLPOOL a3013b2b6487c7b8d158f577fd626cce5a10430f777dafced9593c05c8f6dd7eb79b0cae4ea50629047bd0a6a0bf0671c6b80eefd3d015d707b9b2a7c4e2b2bf
+EBUILD sysvinit-2.88-r5.ebuild 2986 SHA256 30f75001a27021b59aa99c9009d89431f1859351cf8d8d82c0c87c38fc2064a8 SHA512 5632e5f78ff680e23100b12a4eb1263acba091f70b1b0327792253f170f2ffe0e8f47466f4e89b1116c39a2c710b180e7e75be61a1e56260408153c6d39cc32f WHIRLPOOL 01f52aee069a60268c39f813407e767e03fe725dbb71b1f1e97956ff90555c9d061a28a71c383f5dd97a257457d46d439726b0c7b024e289a110fd381ce488ac
EBUILD sysvinit-2.88.ebuild 2468 SHA256 dd4fefeedecd8719ea04e32a79f9cf6668ad3acf6959813fe7d221cdcd99da9a SHA512 4c2ea59a5b38618f579e1439e7feb83cb88c11172a3bfeff945a55a9869fbcebba6eeca3faf6fb9e1a1df526a189bb9024e9b79edac9dcbebc9f18caac82873d WHIRLPOOL 2e3af38da0093619b93ab2cf6862fa7e1255969201fb68e843ced9ad517cee7a27f76e092908c0d495a9af1208eec322cd8874a0064f6f589437ffafaca4e9fd
-MISC ChangeLog 17427 SHA256 083a2b1a8791f7c1369c9a83cc70b4729c3341d84f6d7bedba04c2d39fc64201 SHA512 508e24841e615c14e1ac7ac3f81654de548955807a9befcac34b0010c09c9c93d61b59f2e97851ea6c3ee0f6af93afbf65d5bbdc7bdc588db106d9843387f5ba WHIRLPOOL e05cec86ef1544199033e98869db5232eb4aea6389ed7a5bab096380e45cd8a53d5488004d037c1af7d91e205e269c0bf5787c124daafb8193a230b74abbb210
+MISC ChangeLog 17768 SHA256 147b5a70d262f43e8cc739ddf9e3310a328ba140e8c9d4680b2d1fa4a9d3a9fd SHA512 0ba210305fbe2e3c06d6a3997ad9d39452454d50c25ae1d44211820f7e8b86d38eebd109dd3a136509b8a271bb428034166e1b42728a48cbb60fc27e9f3b14ea WHIRLPOOL 11e43eab855171b3a027da96a68f5960c05e3c37065707e4213d7a5fa3f5bcebc47409d10a39aa572cfcce1d5424a0f68c51d8c54b7d50f5b2e606f0bc6683c6
MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJRchFRAAoJELEHsLL7fEFWLnkP/2s6lDNw+pZcsegzeBPsjvc3
-fvDtmQghctDkttcJCtBd1BGgp5XAARB4bIg9mJ/JZmRkeOQW3ZV3+yHsAAaJC+9c
-CFAdOtF8o3QzzfvNVvHa0/ffLNex9GvZ4q3qcowbBM6JaXTSuqFns2iVuQ6FSRym
-Aef3H0hznoaSFmVRvetL3zIXE3HUydnvuGI1N9fiCRTvFEDvptlpmaw+s8Ps/d9n
-OOXShC/EboLbYoioc0yiTr5WGZnkTHSwLKDiyKNCcuve7kch9iOgSH4xDuMrTzf9
-wa55/jv7qH9Q8encRjf0+8AplaKp7v2PlDYGdhvs8nG6r5CjESQ/CxcQ9jdl/+Io
-1MVj/69JLuc84vBOrxy+d1z9FVSl727v6K0UM70icJF+NYTZ1RLwRn/sDzOIcQrN
-TpE/ovbiRFvTcuYCQZlKieUqVMPm9mCjofg5IAPh1cTGjYqA6bzDaQKKMA+uA1i9
-X1lmT6NvhNLd9T007S83JBBSlRzAbRNUkvEsljffO1uzRBGFhKWunPB7jdQWsTRu
-j+dknTrA8v6Fl6Do0q4bxVOG8LgzOjDKB9BXOHD8ew126pSLlc6dS9B8LDNabe3n
-5rb5Gp1FjlY3SY5HNu1SpyfYoOhz298P79bvNtRwNhZmYQwhfMAdZBz33poVOWgE
-MDEMku2LBsbdRIP+tQfo
-=N0IB
+iQIcBAEBCAAGBQJRhJUkAAoJELEHsLL7fEFWP1kQAI9G7+T6jBSIoTQOBduThvad
+fkzldMvyB49m2sNebV/1cTzZSDebZqItvaUwYqkiFlnq4nndxLfUfXawfPByCqVW
+3v7xCiXREw9pfzyA0cV7O8LNMixLEUXaQH9Nt7XJNKf8PNMwg8FG9IE6R8ayGqW/
+jPd92SuNX4IUkiX3HDEwVgZoPpK1KP8rH2OMVTw7Zls0uxfaWfzT4FWihl4HXY9P
+GAPDBv6V2ngQzc0FqJpdBb3ytAkGoSXyfHuGjao8BAxesNdj0JOXLNQ7PUvkdtIC
+bFLTQV+hpqL3xUhTYQbQdMYUJ9/NdCR4KGYZryLDpg0f3x7JJG+NgZ/4rwXulMN3
+Th4F/e8ZkI6ljkicUezkssSaKeEfB8VoUbMr2PgfcDyhpTY+/wY9OMGWKx5jk0JX
+h9u2Kc3FZMwY9cUdhpCNv3Lchd+i0F/9rpWjN15W7ZLGtreZrZ8A/8PWjwUJZsoO
+H6utQdPc99DUko7NmL5gbp4R8Axw72ojqf7E6N9gepB6KXe93AU39CX8KKazfm6h
+jX91tTUBbGdi7uWxZkGAA/86x4LJQgIAMxgaojUr71uN5ypCN8okfngwW2g20pQo
+tDsQMK7xBsJFMIw2HnO7/MswbKGa8F+CyWZOUaUaoCJ/QJZq6V9oRoRYuRTmUV24
+cyYRFZgRcdPG73GdA3BJ
+=WDuF
-----END PGP SIGNATURE-----
diff --git a/sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch b/sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch
new file mode 100644
index 000000000000..716999c39c3b
--- /dev/null
+++ b/sys-apps/sysvinit/files/sysvinit-2.88-shutdown-h.patch
@@ -0,0 +1,65 @@
+other inits have moved to not requiring the -h flag when used with -H/-P.
+modify sysvinit to be the same since it really doesn't matter.
+
+https://bugs.gentoo.org/449354
+
+patch by Doug Goldstein
+
+--- sysvinit-2.88dsf/man/shutdown.8
++++ sysvinit-2.88dsf/man/shutdown.8
+@@ -66,16 +66,15 @@
+ .\"}}}
+ .\"{{{ -h
+ .IP \fB\-h\fP
+-Halt or power off after shutdown.
++Equivalent to -P, unless -H is specified.
+ .\"}}}
+ .\"{{{ -P
+ .IP \fB\-P\fP
+-Halt action is to turn off the power.
++Action is to power-off the machine.
+ .\"}}}
+ .\"{{{ -H
+ .IP \fB\-H\fP
+-Modifier to the -h flag. Halt action is to halt or drop into boot
+-monitor on systems that support it. Must be used with the -h flag.
++Action is to halt the machine.
+ .\"}}}
+ .\"{{{ -f
+ .IP \fB\-f\fP
+--- sysvinit-2.88dsf/src/shutdown.c
++++ sysvinit-2.88dsf/src/shutdown.c
+@@ -514,9 +514,11 @@
+ switch(c) {
+ case 'H':
+ halttype = "HALT";
++ down_level[0] = '0';
+ break;
+ case 'P':
+ halttype = "POWERDOWN";
++ down_level[0] = '0';
+ break;
+ case 'a': /* Access control. */
+ useacl = 1;
+@@ -532,6 +534,8 @@
+ break;
+ case 'h': /* Halt after shutdown */
+ down_level[0] = '0';
++ if (!halttype)
++ halttype = "POWERDOWN";
+ break;
+ case 'f': /* Don't perform fsck after next boot */
+ fastboot = 1;
+@@ -565,12 +569,6 @@
+ }
+ }
+
+- if (NULL != halttype && down_level[0] != '0') {
+- fprintf(stderr, "shutdown: -H and -P flags can only be used along with -h flag.\n");
+- usage();
+- exit(1);
+- }
+-
+ /* Do we need to use the shutdown.allow file ? */
+ if (useacl && (fp = fopen(SDALLOW, "r")) != NULL) {
+
diff --git a/sys-apps/sysvinit/sysvinit-2.88-r4.ebuild b/sys-apps/sysvinit/sysvinit-2.88-r4.ebuild
index 727608edaa72..8084fa2d5c43 100644
--- a/sys-apps/sysvinit/sysvinit-2.88-r4.ebuild
+++ b/sys-apps/sysvinit/sysvinit-2.88-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.88-r4.ebuild,v 1.14 2013/04/20 03:51:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.88-r4.ebuild,v 1.15 2013/05/04 04:57:00 vapier Exp $
EAPI="4"
@@ -16,7 +16,7 @@ KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
IUSE="selinux ibm static kernel_FreeBSD"
RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )
- !<sys-apps/util-linux-2.22"
+ !<sys-apps/util-linux-2.23"
DEPEND="${RDEPEND}
virtual/os-headers"
diff --git a/sys-apps/sysvinit/sysvinit-2.88-r5.ebuild b/sys-apps/sysvinit/sysvinit-2.88-r5.ebuild
new file mode 100644
index 000000000000..69f5cc9774d6
--- /dev/null
+++ b/sys-apps/sysvinit/sysvinit-2.88-r5.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/sysvinit-2.88-r5.ebuild,v 1.1 2013/05/04 04:57:00 vapier Exp $
+
+EAPI="4"
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="/sbin/init - parent of all processes"
+HOMEPAGE="http://savannah.nongnu.org/projects/sysvinit"
+SRC_URI="mirror://nongnu/${PN}/${P}dsf.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="selinux ibm static kernel_FreeBSD"
+
+RDEPEND="selinux? ( >=sys-libs/libselinux-1.28 )"
+DEPEND="${RDEPEND}
+ virtual/os-headers"
+
+S=${WORKDIR}/${P}dsf
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.86-kexec.patch #80220
+ epatch "${FILESDIR}"/${PN}-2.86-shutdown-single.patch #158615
+ epatch "${FILESDIR}"/${P}-makefile.patch #319197
+ epatch "${FILESDIR}"/${P}-selinux.patch #326697
+ epatch "${FILESDIR}"/${P}-shutdown-h.patch #449354
+ sed -i '/^CPPFLAGS =$/d' src/Makefile || die
+
+ # mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux
+ sed -i -r \
+ -e '/^(USR)?S?BIN/s:\<(mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \
+ -e '/^MAN[18]/s:\<(mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \
+ src/Makefile || die
+
+ # Mung inittab for specific architectures
+ cd "${WORKDIR}"
+ cp "${FILESDIR}"/inittab-2.87 inittab || die "cp inittab"
+ local insert=()
+ use ppc && insert=( '#psc0:12345:respawn:/sbin/agetty 115200 ttyPSC0 linux' )
+ use arm && insert=( '#f0:12345:respawn:/sbin/agetty 9600 ttyFB0 vt100' )
+ use hppa && insert=( 'b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100' )
+ use s390 && insert=( 's0:12345:respawn:/sbin/agetty 38400 console' )
+ if use ibm ; then
+ insert+=(
+ '#hvc0:2345:respawn:/sbin/agetty -L 9600 hvc0'
+ '#hvsi:2345:respawn:/sbin/agetty -L 19200 hvsi0'
+ )
+ fi
+ (use arm || use mips || use sh || use sparc) && sed -i '/ttyS0/s:#::' inittab
+ if use kernel_FreeBSD ; then
+ sed -i \
+ -e 's/linux/cons25/g' \
+ -e 's/ttyS0/cuaa0/g' \
+ -e 's/ttyS1/cuaa1/g' \
+ inittab #121786
+ fi
+ if use x86 || use amd64 ; then
+ sed -i \
+ -e '/ttyS[01]/s:9600:115200:' \
+ inittab
+ fi
+ if [[ ${#insert[@]} -gt 0 ]] ; then
+ printf '%s\n' '' '# Architecture specific features' "${insert[@]}" >> inittab
+ fi
+}
+
+src_compile() {
+ local myconf
+
+ tc-export CC
+ append-lfs-flags
+ export DISTRO= #381311
+ use static && append-ldflags -static
+ use selinux && myconf=WITH_SELINUX=yes
+ emake -C src ${myconf} || die
+}
+
+src_install() {
+ emake -C src install ROOT="${D}"
+ dodoc README doc/*
+
+ insinto /etc
+ doins "${WORKDIR}"/inittab
+
+ doinitd "${FILESDIR}"/{reboot,shutdown}.sh
+}
+
+pkg_postinst() {
+ # Reload init to fix unmounting problems of / on next reboot.
+ # This is really needed, as without the new version of init cause init
+ # not to quit properly on reboot, and causes a fsck of / on next reboot.
+ if [[ ${ROOT} == / ]] ; then
+ # Do not return an error if this fails
+ /sbin/telinit U &>/dev/null
+ fi
+}