summaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-18 15:36:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-18 15:36:15 +0100
commita2f7cdda45fadf1f967379421e8d808b1a503cd3 (patch)
treec02c7db0bb9249243aa73a4098a17e13daaaff21 /sys-apps
parent66611e742171c343d64095516e19737d4753ba61 (diff)
gentoo auto-resync : 18:08:2023 - 15:36:15
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/Manifest.gzbin49858 -> 49861 bytes
-rw-r--r--sys-apps/heirloom-tools/Manifest2
-rw-r--r--sys-apps/heirloom-tools/heirloom-tools-070715-r6.ebuild (renamed from sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild)2
-rw-r--r--sys-apps/systemd-utils/Manifest8
-rw-r--r--sys-apps/systemd-utils/systemd-utils-253.5.ebuild2
-rw-r--r--sys-apps/systemd-utils/systemd-utils-253.6.ebuild2
-rw-r--r--sys-apps/systemd-utils/systemd-utils-253.7.ebuild2
-rw-r--r--sys-apps/systemd-utils/systemd-utils-253.8.ebuild2
-rw-r--r--sys-apps/sysvinit/Manifest4
-rw-r--r--sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch38
-rw-r--r--sys-apps/sysvinit/sysvinit-3.08.ebuild201
11 files changed, 253 insertions, 10 deletions
diff --git a/sys-apps/Manifest.gz b/sys-apps/Manifest.gz
index 9a15aa75a320..b0ce0cab2371 100644
--- a/sys-apps/Manifest.gz
+++ b/sys-apps/Manifest.gz
Binary files differ
diff --git a/sys-apps/heirloom-tools/Manifest b/sys-apps/heirloom-tools/Manifest
index 77b45c728e61..c32fd8e978fe 100644
--- a/sys-apps/heirloom-tools/Manifest
+++ b/sys-apps/heirloom-tools/Manifest
@@ -5,5 +5,5 @@ AUX heirloom-tools-070715-glibc-2.31.patch 964 BLAKE2B c235d9c4d035c19617a1bdd40
AUX heirloom-tools-070715-major.patch 2104 BLAKE2B 88a602e587dc8376e8eb8198308e64a05db642b596e89b8087b30a2d6d16102b18f0b033cce4c1a4711a8ebcbd4a508139a7fb098b1cdcc292ef63d183bbc576 SHA512 7cee022491768031d413a8854a05a34cdbb6061fe30fa8514072efd0056614218e989c3e03fe771ae79a022085460f8bcdbb147fac0dcc6d97ab49703eaa98de
AUX heirloom-tools-070715-makefile.patch 581 BLAKE2B a74613af222aff0ec7e6e3e1c012bd444a0a1d74e9caa9ac6ee7b3175641f81966527d24dd2d67b88921943579b591e9f2f735bc427f0c8bfa66977078b2d537 SHA512 ab45b3feca27ad855e535ebae77537572b9d1b6b00bd7f973521d477e962691e56ec67ce5d900980b084758643d85db5af790447411374b488f6c440852cdf71
DIST heirloom-070715.tar.bz2 1000080 BLAKE2B 8719e38b7e260b0ecb9d055672e0097954eee31acd6cde8c582f82055a3b7f66511bf3c876309d0e74a8c29ac334b58ed81c56df26d1b9c065994bd353affd20 SHA512 0b30b0f4c4c92a10ee2da263ea44666f445d96bac86ca4afb7bbb50d8278986e4145a7bcdf3ed9f75611bb956e93e16fc0e19874498ce3ae1a00e6fbb4f910c9
-EBUILD heirloom-tools-070715-r5.ebuild 2367 BLAKE2B 82e1801939fa31adff8625942966ead48ebed11b7d405f75e46f344e132288125187990dd06730cac4b168412058bae4ae2b75a4e1ab8bd3bb03a9a4dab3599b SHA512 e24d34eb48b9c33bf6e1c9cdf057f3658e7baf5080eccb6e7fef121839775ab37c00363977cce7d801eb28447a03e228d2ea99ee9f042dcd97f5936174b46941
+EBUILD heirloom-tools-070715-r6.ebuild 2368 BLAKE2B 925bdd58d74da836d9203d608c87e3aad3b64a3392d8d203604897f6095a304e277a8613e12dccb2ef577618cb9386b90c5da82f625522636ec804c7732d5f2d SHA512 188c825085ba7ba252cd9a6bb8fa9bab595b2c808307ea8e3ba8a074fa5240b33dd545b2dad962a5aeff6ea5bd93697f73f23c8defc47e1e1ce5d279a23f1fa2
MISC metadata.xml 246 BLAKE2B b1bc124a7ff0a17a05a04ee3f6f0dd9c223853d17e0a1e71c7c49347ee3934dc3dfc42f34d42a79e71708c79a7281187d520c845b71258efc53ea1551013e755 SHA512 662e39fbe0a4ff2655d605e22e199d974662ce76e7b34e62ac680b6dd716c24c71e39f210d310f228030ff4d1b1fcd140ca39863755c4fe7d2aa33901c85b7aa
diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715-r6.ebuild
index 2408c41d6a73..5901908c1d1c 100644
--- a/sys-apps/heirloom-tools/heirloom-tools-070715-r5.ebuild
+++ b/sys-apps/heirloom-tools/heirloom-tools-070715-r6.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://heirloom.sourceforge.net/tools.html"
SRC_URI="mirror://sourceforge/heirloom/heirloom/${PV}/heirloom-${PV}.tar.bz2"
S="${WORKDIR}/heirloom-${PV}"
-LICENSE="ZLIB BSD BSD-4 CDDL GPL-2+ LGPL-2.1+ LPL-1.2 Info-ZIP public-domain"
+LICENSE="ZLIB BSD BSD-4 CDDL GPL-2+ LGPL-2.1+ LPL-1.02 Info-ZIP public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# slightly broken
diff --git a/sys-apps/systemd-utils/Manifest b/sys-apps/systemd-utils/Manifest
index 5bfb808aff8a..bcc5259ac292 100644
--- a/sys-apps/systemd-utils/Manifest
+++ b/sys-apps/systemd-utils/Manifest
@@ -13,8 +13,8 @@ DIST systemd-stable-253.7.tar.gz 12111722 BLAKE2B 2007653c264d615fbef52cd91d1735
DIST systemd-stable-253.8.tar.gz 12112413 BLAKE2B 0edf5d2fdb47ef4c2fd9257642a719cb3cf70096d74ae0002f4df2696f3efd591ddf239f2ac9762aa53ebcee5bf31295739f8176313b8260e97fe99cc51722f6 SHA512 628db658ccf01e6cf09c6832735ad08c3d0dd906798e3366d42621fb08ad8b72aa7a51ae4874d76acf6c56282c63dc5fdce677cde3d4e102ce0036571ccabcc4
EBUILD systemd-utils-252.10.ebuild 11815 BLAKE2B d25fdb6b3ea15768a7894807906e8b9bdf97e11d45d07886eb8361d214de82494986efb9757fd7ffdbffeeb99495404340013c86d2a24e928c6b744e10b050f1 SHA512 bf6ad12b10422b678d3b2110e4e27249dedb1a997d5c283bb9f48c32d593f96343ae0031721053d911a77ebcd12a3e509574eeecb8ab11c7dda5037bf52dd2ed
EBUILD systemd-utils-252.9.ebuild 11806 BLAKE2B 47a6f40881f6ed002bfa21c652dc0ddf6813bc74f842e33428241fdb26fb4f8948188f53589258146fcb0a865719e7aafe138a8854e70ea5f46aa87c7b9f0851 SHA512 3c5483674b0a468f0d0f1e4346ffc5f8f6d9c306a0a79d8908d440e837eff96cd8d032f98a521c016db48c9a5bb8bfea45306f83ae82587b92e556a8637282e4
-EBUILD systemd-utils-253.5.ebuild 12051 BLAKE2B 511960818a6e9fc2c0ed8d87f052a45cb25f833783d0478c0c0a39926e3971cd8fa44b9fa256a6e3b8cd3aa18e9fd879eaec50036272e5967c8b862a8490c239 SHA512 639bdd4d768a112be06f7cdb227b93ac2288462c614cbc9ab5e1d6a72784aace60a5d22743f13b2f409bf7bafe2f931cdb565c3792b9c0e81366bcc9788f90a0
-EBUILD systemd-utils-253.6.ebuild 12170 BLAKE2B ced9811dc7bbfb41f16c1da7bb169da1ff7fe604a412d577097533bd7ed274e09b2fc0186f47af14550011f219834608d476c86973fd556191a8c60e8498a246 SHA512 48bdee88b3ee47af08f244aadfee5d28fb1215c94600d7fb0988ef85b506999058b00259cb244bbd7ab856694fd1d0d56695fb2797daf6d1ad78824ebcbd5cc7
-EBUILD systemd-utils-253.7.ebuild 12178 BLAKE2B 0702128e3569f12e0016cb95b65934ea36bf3f97589636f9c80f27d493c0e3c93d07808be3204a88fbd1249dda85c32792fa895ab68e3e988e548b4e955a7209 SHA512 71553c2636af3fc59e690192105e2f6d0776337486b869d7051e63ef9fa087b539c2283e63ea7a0f2d30d32dd2304bfbd734c5d80271ad679cbb459693067f2b
-EBUILD systemd-utils-253.8.ebuild 12178 BLAKE2B 0702128e3569f12e0016cb95b65934ea36bf3f97589636f9c80f27d493c0e3c93d07808be3204a88fbd1249dda85c32792fa895ab68e3e988e548b4e955a7209 SHA512 71553c2636af3fc59e690192105e2f6d0776337486b869d7051e63ef9fa087b539c2283e63ea7a0f2d30d32dd2304bfbd734c5d80271ad679cbb459693067f2b
+EBUILD systemd-utils-253.5.ebuild 12051 BLAKE2B 21451742cca560c80fc8fdb5acfcc55e35d651dd4cc62d59084da2eb1b87c97ee0a562d8c47ff194541db53fa92466759f7d2058810b3466312707aa0b68c488 SHA512 a5d016aeb19993677ac260138f16fbf1c35fd01e67c70b6b367ac4242efa1df2e8864d0454e165aeeb7ae83309dd81114f073a764f25dd07aaa1d392a78f3792
+EBUILD systemd-utils-253.6.ebuild 12170 BLAKE2B 60ecca693978cb7c531b46f3d1e7f9615bc5935a828d917af327cd186bd700ab0f39e4bf76732536ffdf1f5b56c23903f6b70abe18b2dc6397160833e14db86d SHA512 617c4ba492371d0bedcfd8ed6d6c9d6d39b08db36240ed2e9e811c3c0725695f922430dfe44c24372ed16b28579afd113da8449f958a182777aee0613224ccfd
+EBUILD systemd-utils-253.7.ebuild 12178 BLAKE2B 688ef38e9378de0aa86611a2147b986d211e7efddfb91a8cfebd1f67df57f636d080dd922bac58bf19b7f379b2fd575b3eb9212ba9aebfcb7002becbcbbde33f SHA512 6ff531dbf3d241e69c8ca4d042095683932b3428d682e97df69b0c7ec72c54d8b64ee58a2c724035abd387627c66aedf89d066a801a6df9fbff4a840ac9045d0
+EBUILD systemd-utils-253.8.ebuild 12178 BLAKE2B 688ef38e9378de0aa86611a2147b986d211e7efddfb91a8cfebd1f67df57f636d080dd922bac58bf19b7f379b2fd575b3eb9212ba9aebfcb7002becbcbbde33f SHA512 6ff531dbf3d241e69c8ca4d042095683932b3428d682e97df69b0c7ec72c54d8b64ee58a2c724035abd387627c66aedf89d066a801a6df9fbff4a840ac9045d0
MISC metadata.xml 713 BLAKE2B 1dcb5d9949600c9a8c8ac0c005ffa03b2ca91293a932fa96092a24c094e9fb29f2cf063af041432c12daec4aa4e60d11ea77ed0a423e188095f995c68e75b91a SHA512 46d167a6d898abfc56130e373d232c18fb3ef8865755379fa7678c049515458e7354b7a8cab3bf3faa7326932cccceb0b0745b4695ab9bea492bc2344abf9da4
diff --git a/sys-apps/systemd-utils/systemd-utils-253.5.ebuild b/sys-apps/systemd-utils/systemd-utils-253.5.ebuild
index ce13ed37ce57..fe557dadef3c 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.5.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.5.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..11} )
QA_PKGCONFIG_VERSION=$(ver_cut 1)
diff --git a/sys-apps/systemd-utils/systemd-utils-253.6.ebuild b/sys-apps/systemd-utils/systemd-utils-253.6.ebuild
index 6a42f0fff537..b0af755e370d 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.6.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.6.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..11} )
QA_PKGCONFIG_VERSION=$(ver_cut 1)
diff --git a/sys-apps/systemd-utils/systemd-utils-253.7.ebuild b/sys-apps/systemd-utils/systemd-utils-253.7.ebuild
index 49d0f39faa66..c06d1b1a0d0c 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.7.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.7.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..11} )
QA_PKGCONFIG_VERSION=$(ver_cut 1)
diff --git a/sys-apps/systemd-utils/systemd-utils-253.8.ebuild b/sys-apps/systemd-utils/systemd-utils-253.8.ebuild
index 49d0f39faa66..c06d1b1a0d0c 100644
--- a/sys-apps/systemd-utils/systemd-utils-253.8.ebuild
+++ b/sys-apps/systemd-utils/systemd-utils-253.8.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..11} )
QA_PKGCONFIG_VERSION=$(ver_cut 1)
diff --git a/sys-apps/sysvinit/Manifest b/sys-apps/sysvinit/Manifest
index 584419beb376..3660d19e2dc0 100644
--- a/sys-apps/sysvinit/Manifest
+++ b/sys-apps/sysvinit/Manifest
@@ -5,8 +5,12 @@ AUX inittab-2.98-r1 2124 BLAKE2B 57e40e8410a31ec73f581e2feb142c600e2ce687745a613
AUX sysvinit-2.86-kexec.patch 3910 BLAKE2B fb62326925c78960142123da82ffd1de6319153cce234b0d1dc7546beecf67296f8b7d6e3eb0f633d8a4ebc83fc4cc586c4f92cdb48df1f766aa4af72b0fa0e1 SHA512 6ce3adf698554d15394edbe6dbfc62822859854d503b201c9f96bd81c2a8cd249ed44229a85dd8b97f454f9311abc5792e349f5cc512ff6d5570500d88044bee
AUX sysvinit-2.94_beta-shutdown-single.patch 1261 BLAKE2B 571b7cf40ccdbb27e65b31e507ea8331ae1e9b8b012570cdc4099a15c864f2abc92f84c44ef9dbd35dfe43c68e491d347266abaa0156536edae4c35231f17ccb SHA512 2f26201e8634b380dafdf42678cd0241a93f0e473f5c8680d4206d97dfe3510c2ceeb4cd066d1af3ae97fe411f7a5452a9586f8f5c5e65653bf9241fea1edaf0
AUX sysvinit-3.07-halt.patch 2085 BLAKE2B 6cf746ff84d9d4fb499e1751d26de1bcf646c14792f0f13de2a84b8dfeeaf92d67e4e66d28ffbf06733a2fb51b2ac8df155ef37c19a3fc012ce22db22c297133 SHA512 89becb9874111679a86bdcc066ab5de6087a48961871ad25aaea3e9b129cf7131d02b7d8b3599832eded9cd5e8c7c39b520c63d54ecacdb5d6617375af8a6ebc
+AUX sysvinit-3.08-shutdown-single.patch 1341 BLAKE2B f0b2ac2e803a3521f0473ab50b18aec300ad0c4566c0f0a53924b32540e862437ee5d99c3f54fe453e84d9ebe8011f64e75f60ca1f73cc9606b30a867df68e7d SHA512 7b3ba5c8af1e25ecc59568e920446da66fd53284e2bca0eb4b8cae2f9b919552c254e74c7363bb3598f2a35a413dcb31008dd8cae57ceaf98f6bf8921918cce7
DIST sysvinit-3.07.tar.xz 263352 BLAKE2B 51943290c5f41ac6eb421a3ee1529d07bc127a44306973a2f3180079a28119001ad6b44c25156986fe249dd025f5eb1929189edfb5da72ee4fa64b5fd4cd5993 SHA512 57d8365ae9ab4e3b6ab948d1ac9a4f1fe86c4e86c06ea3b12fca7f7be88ef39b5e04787fbfec9417aaf06cff0db3a90e18e6a6135e205f7eb74a5e7c897491fd
DIST sysvinit-3.07.tar.xz.sig 833 BLAKE2B 7a05a2d44a7006f61bb41abc8ae3d5207cc4558156e5cc553cc9477f4d1366bf847013e22c382aa9112b6c4c9c33d4a5465e73ca810a041c459a927d710dfadc SHA512 50047ce638fd5af19c3894c4dfcada3e1b2e359331b18f6dbc5f526e91f250b736625877362c7741dbd83c9fee79ec8e4e7a57c4aa72102c017b23518064733a
+DIST sysvinit-3.08.tar.xz 268296 BLAKE2B ec4a4ff3663ac7d67808b50b67631ff4fe1ab56d376df15868df0eb79cbc329b192af124380eec6a797d827c3c7c5586058310d803f42ee1934dcffbfbe876f7 SHA512 a523e030e559ecc56391f9424e240fbe54a714bb3c522ca0bb410b649a1c08c5e9f03d298340a5586565f18d8640b1b418fa09294b41fb95a9cd2a686316b758
+DIST sysvinit-3.08.tar.xz.sig 833 BLAKE2B b1cbe8a95faa16a22e92e2a8841643aeaf7a5a31cc9fa9628a7ee2400aac1b3a184ae01f09c75d48d5d55a71f7e62feb25c16345644bfb4fcd19cbd061f86573 SHA512 1af105d84b98428766cc315d8dea068e6c5a7ad52008291ba7c1d5accbcaeead4999fd714fc152c1038e54953f9b469bd0f792a0830e68c3e2f43afcd36e0e2d
EBUILD sysvinit-3.07-r2.ebuild 5903 BLAKE2B 0be1a5ec8f77d21b3a86914a174e153a6d5cc7601a04f48579841dd1fa932de82f0c47b67a81c10a8b448ef22e1b37d61405d507224edce797ae6413b8ed04d9 SHA512 3959546115bf08f7bdcf725543d20ccf33b80628d137d21a29401c7b5c47f0120c9cca6f13c2a4f7a37c011d7fd4c56023ef51541e9acb7c04ce622639dccb54
EBUILD sysvinit-3.07.ebuild 5528 BLAKE2B a1f6e53e828454b541349b5d1e26e0e38d0079da15c91c16a80d7cca9741c47809378b8cfdad3c9f4e8b7fd38e886570ebb6dff11d8fc0e6c5fbd10c50754bcf SHA512 5ce4441a90bb654aaadb69fd75f62b871c38a31584b891249fe87af7e26f69df5f812aa255a27f10615a53d29ed038fdf6a212a7ce4cb356e227c3da856ea4cc
+EBUILD sysvinit-3.08.ebuild 5762 BLAKE2B c8129626f07fb5ed1f6bf194b8ca94bc6e101e3e2fbb3dff55e2190b5d908d4bcd10731a2af576665ed7255b2ff56fafd4c88acda3e42f38d68ae8b009d58690 SHA512 d19405e9df8158875a352ae21c6d6fd70a847a09afc305b7a81210bd26e06d4a71785730c8b34a0f7ad4145206e8ae2d131e081fb339e270f77948120ae39c28
MISC metadata.xml 506 BLAKE2B ea180981d7eafbe8356b6d187c7c1c12afc7ef91d94f7992489ad54f459c924b009bfe7c7888bf1934b356091489285dbda9eee39ab14f318528e0738da6474c SHA512 b5451236ce138c372e32c1f5e4bc25fca9acb05063720d6b452e81b19a7661058b791f6fc95a9f585244ba44ff307d07f6be49aadf1dbb461492575e2af80a89
diff --git a/sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch b/sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch
new file mode 100644
index 000000000000..571f951f073c
--- /dev/null
+++ b/sys-apps/sysvinit/files/sysvinit-3.08-shutdown-single.patch
@@ -0,0 +1,38 @@
+This patch makes shutdown use the Single User runlevel by default so
+the gettys are shutdown too.
+
+Roy Marples <uberlord@gentoo.org>
+
+Forward-ported from v2.86 to v2.94_beta
+Lars Wendler <polynomial-c@gentoo.org>
+--- a/man/shutdown.8
++++ b/man/shutdown.8
+@@ -44,7 +44,7 @@ mail and news processing programs a chance to exit cleanly, etc.
+ \fBshutdown\fP does its job by signalling the \fBinit\fP process,
+ asking it to change the runlevel.
+ Runlevel \fB0\fP is used to halt the system, runlevel \fB6\fP is used
+-to reboot the system, and runlevel \fB1\fP is used to put to system into
++to reboot the system, and runlevel \fBS\fP is used to put to system into
+ a state where administrative tasks can be performed; this is the default
+ if neither the \fB-h\fP or \fB-r\fP flag is given to \fBshutdown\fP.
+ To see which actions are taken on halt or reboot see the appropriate
+--- a/src/shutdown.c
++++ b/src/shutdown.c
+@@ -547,7 +547,7 @@ int main(int argc, char **argv)
+ usage();
+ exit(1);
+ }
+- strcpy(down_level, "1");
++ strcpy(down_level, "S");
+ halttype = NULL;
+ memset(when, '\0', WHEN_SIZE);
+
+@@ -734,6 +734,8 @@ int main(int argc, char **argv)
+ strncpy(newstate, "for reboot", STATELEN);
+ break;
+ case '1':
++ case 'S':
++ case 's':
+ strncpy(newstate, "to maintenance mode", STATELEN);
+ break;
+ default:
diff --git a/sys-apps/sysvinit/sysvinit-3.08.ebuild b/sys-apps/sysvinit/sysvinit-3.08.ebuild
new file mode 100644
index 000000000000..df7929079fae
--- /dev/null
+++ b/sys-apps/sysvinit/sysvinit-3.08.ebuild
@@ -0,0 +1,201 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Dropped these because blank as of 3.02
+#PLOCALES="de es fi fr hu id pl"
+PLOCALES="de es fr pl"
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/sysvinit.asc
+inherit toolchain-funcs flag-o-matic plocale verify-sig
+
+DESCRIPTION="/sbin/init - parent of all processes"
+HOMEPAGE="https://savannah.nongnu.org/projects/sysvinit"
+# https://github.com/slicer69/sysvinit/issues/12
+#SRC_URI="mirror://nongnu/${PN}/${P/_/-}.tar.xz"
+#SRC_URI+=" verify-sig? ( mirror://nongnu/${PN}/${P/_/-}.tar.xz.sig )"
+SRC_URI="https://github.com/slicer69/sysvinit/releases/download/${PV}/${P}.tar.xz"
+SRC_URI+=" verify-sig? ( https://github.com/slicer69/sysvinit/releases/download/${PV}/${P}.tar.xz.sig )"
+S="${WORKDIR}/${P/_*}"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} != *beta* ]] ; then
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+IUSE="selinux ibm nls static"
+
+COMMON_DEPEND="
+ acct-group/root
+ selinux? (
+ >=sys-libs/libselinux-1.28
+ )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ virtual/os-headers
+"
+# Old OpenRC blocker is for bug #587424
+# Keep for longer than usual given it's cheap and avoid user inconvenience
+RDEPEND="
+ ${COMMON_DEPEND}
+ !<app-i18n/man-pages-l10n-4.18.1-r1
+ !<sys-apps/openrc-0.13
+ selinux? ( sec-policy/selinux-shutdown )
+"
+# po4a is for man page translations
+BDEPEND="
+ nls? ( app-text/po4a )
+ verify-sig? ( >=sec-keys/openpgp-keys-sysvinit-20220413 )
+"
+
+PATCHES=(
+ # bug #158615
+ "${FILESDIR}/${PN}-3.08-shutdown-single.patch"
+)
+
+src_prepare() {
+ default
+
+ # We already enforce F_S=2 as a minimum in our toolchain, and
+ # allow 3. Also, SSP doesn't always make sense for some platforms
+ # e.g. HPPA. It's default-on in our toolchain where it works.
+ sed -i \
+ -e '/^CPPFLAGS =$/d' \
+ -e '/^override CFLAGS +=/s/ -fstack-protector-strong//' \
+ -e '/^override CFLAGS +=/s/ -D_FORTIFY_SOURCE=2//' \
+ src/Makefile || die
+
+ # last/lastb/mesg/mountpoint/sulogin/utmpdump/wall have moved to util-linux
+ sed -i -r \
+ -e '/^(USR)?S?BIN/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)\>::g' \
+ -e '/^MAN[18]/s:\<(last|lastb|mesg|mountpoint|sulogin|utmpdump|wall)[.][18]\>::g' \
+ src/Makefile || die
+
+ # pidof has moved to >=procps-3.3.9
+ sed -i -r \
+ -e '/\/bin\/pidof/d' \
+ -e '/^MAN8/s:\<pidof.8\>::g' \
+ src/Makefile || die
+
+ # logsave is already in e2fsprogs
+ sed -i -r \
+ -e '/^(USR)?S?BIN/s:\<logsave\>::g' \
+ -e '/^MAN8/s:\<logsave.8\>::g' \
+ src/Makefile || die
+
+ # Munge inittab for specific architectures
+ cd "${WORKDIR}" || die
+ cp "${FILESDIR}"/inittab-2.98-r1 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 arm64 && insert=( 'f0:12345:respawn:/sbin/agetty 9600 ttyAMA0 vt100' )
+ use hppa && insert=( 'b0:12345:respawn:/sbin/agetty 9600 ttyB0 vt100' )
+ use s390 && insert=( 's0:12345:respawn:/sbin/agetty 38400 console dumb' )
+ 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 sparc) && sed -i '/ttyS0/s:#::' inittab
+ 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
+
+ delete_unused_locale() {
+ local locale=${1}
+
+ einfo "Deleting non-requested man page translations for locale=${locale}"
+ rm "${S}"/man/po/${locale}.po || die
+
+ sed -i -e "/^\[po4a_langs\]/ s:${locale}::" "${S}"/man/po/po4a.cfg || die
+ }
+
+ plocale_for_each_disabled_locale delete_unused_locale
+}
+
+src_compile() {
+ tc-export CC
+
+ append-lfs-flags
+
+ # bug #381311
+ export DISTRO=
+ export VERSION="${PV}"
+
+ use static && append-ldflags -static
+ emake -C src $(usex selinux 'WITH_SELINUX=yes' '')
+
+ if use nls && [[ -n "$(plocale_get_locales)" ]] ; then
+ cd man/po || die
+ po4a po4a.cfg || die
+ fi
+}
+
+src_install() {
+ emake -C src install ROOT="${D}"
+ dodoc README doc/*
+
+ insinto /etc
+ doins "${WORKDIR}"/inittab
+
+ newinitd "${FILESDIR}"/bootlogd.initd bootlogd
+ newconfd "${FILESDIR}"/bootlogd.confd bootlogd
+
+ into /
+ dosbin "${FILESDIR}"/halt.sh
+
+ keepdir /etc/inittab.d
+
+ if use nls && [[ -n "$(plocale_get_locales)" ]] ; then
+ install_locale_man_pages() {
+ doman -i18n=${1} man/po/${1}/*
+ }
+
+ plocale_for_each_locale install_locale_man_pages
+ fi
+
+ # Dead symlink
+ find "${ED}" -xtype l -delete || die
+
+ find "${ED}" -type d -empty -delete || die
+}
+
+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 [[ -z ${ROOT} ]] ; then
+ if [[ -e /dev/initctl ]] && [[ ! -e /run/initctl ]] ; then
+ ln -s /dev/initctl /run/initctl \
+ || ewarn "Failed to set /run/initctl symlink!"
+ fi
+ # Do not return an error if this fails
+ /sbin/telinit U &>/dev/null
+ fi
+
+ elog "The last/lastb/mesg/mountpoint/sulogin/utmpdump/wall tools have been moved to"
+ elog "sys-apps/util-linux. The pidof tool has been moved to sys-process/procps."
+
+ # Required for new bootlogd service
+ if [[ ! -e "${EROOT}/var/log/boot" ]] ; then
+ touch "${EROOT}/var/log/boot"
+ fi
+
+ local ver
+ for ver in ${REPLACING_VERSIONS}; do
+ ver_test ${ver} -ge 3.07-r2 && continue
+ ewarn "Previously, the 'halt' command caused the system to power off"
+ ewarn "even if option -p was not given. This long-standing bug has"
+ ewarn "been fixed, and the command now behaves as documented."
+ break
+ done
+}