diff options
author | Stuart Shelton <stuart@shelton.me> | 2017-02-27 14:01:45 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2017-02-27 14:01:45 +0000 |
commit | 23a71f9597a37d873044efc1fcc2ed1030a84003 (patch) | |
tree | 29f97130c51ae378b406521c32562f35bb869683 | |
parent | Update net-nds/openldap-2.4.44 (diff) | |
download | srcshelton-23a71f9597a37d873044efc1fcc2ed1030a84003.tar.gz srcshelton-23a71f9597a37d873044efc1fcc2ed1030a84003.tar.bz2 srcshelton-23a71f9597a37d873044efc1fcc2ed1030a84003.zip |
Add sys-apps/openrc-0.23.2
-rw-r--r-- | sys-apps/openrc/Manifest | 6 | ||||
-rwxr-xr-x | sys-apps/openrc/files/localmount-r3.initd | 143 | ||||
-rw-r--r-- | sys-apps/openrc/files/openrc-0.23.2-norun.patch | 143 | ||||
-rw-r--r-- | sys-apps/openrc/files/openrc-0.23.2-rc.conf.patch | 21 | ||||
-rwxr-xr-x | sys-apps/openrc/files/root-r2.initd | 77 | ||||
-rw-r--r-- | sys-apps/openrc/openrc-0.23.2.ebuild | 361 |
6 files changed, 751 insertions, 0 deletions
diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest index f92bb7ce..08c69501 100644 --- a/sys-apps/openrc/Manifest +++ b/sys-apps/openrc/Manifest @@ -1,5 +1,6 @@ AUX localmount-r1.initd 3246 SHA256 b2386ce5fe0513dbaed342c45af6dfb158b2aa66f01e643249f907abddf7e35d SHA512 6fcc4b5689cf50ca130db33fdef8ad39945a1bfc4a8dd07698d70227d03e1cc5d9e31f265bf09608d1d331d12027b76c6eee698e809a2104c126b1f7b62a39e1 WHIRLPOOL 80a45220bc3dee5eaa7d4b247b864a2d5f4054c699823319e84e2cba833531208fb70c68d76b6c1fd7a8167ff65fce6b5dd0868767c233707d58298499313d3d AUX localmount-r2.initd 3378 SHA256 d8f97219881bb74d42c352f7ffe0d82f392af09f60aa1b1007782fee4a190dc4 SHA512 6eaf302998999eeeef765708e292bd3406880f9f7f4551befe19ae80107b4edf5c0ec6ca6f08b3ad08fa701ac8158bc1100ecad20e977bd92a2e340a04fc28cb WHIRLPOOL afdd9ba95c7c3631360b1c074289bf01a94a48e55992565c0ca687d8e5c95fa7ec45c95ca10718c3f3ae9aa5a11cb204099c34c6816d2f14e5411209c70d22e6 +AUX localmount-r3.initd 3983 SHA256 0d8baa3a68383af23090eca3851c72427c93390302608b5bd5e6f6434d73a749 SHA512 22684ebe97a9865f20db9b5a27698e8d955bf00bf643d558c83e71cd8b35c7a83a02bce041c04b1565036540c34bba394c3fb277df91f9020ebf3a5f9fcee139 WHIRLPOOL b0d2f47a5c4dd2043eac8a29870dbc59bb9499729bea702c772573f314e231b8582fec501b40bf29ee400e823b71f654b1fb418db927cd5bd3e8a76bf0a20b05 AUX localmount.initd 2428 SHA256 c568b55dc87acb3f1a7ca4f7c34b27d03e11b2672384acc3483d6d0c0b709b16 SHA512 5568615c2ab585829d7454e2a6b3f8c4f9be8ad201796cfd104a0f7b574454c77f8430289b3115f2947209a60bd2ed68fec0eaee811767071370892434045e2e WHIRLPOOL a8aefdef82d93285218fb006e217bf847ec787e91ea1d1232a77b66cfae5fabd8c9273f21565846dd3adc6e6342e5f1c2d320e9e9e8f597ea0e7a92b72dfca14 AUX openrc-0.11.5-bootmisc.in.patch 344 SHA256 3b0d2447f6e97fd2f6b11a281f88b9571d60291d43765098c8cd5791624f997b SHA512 b7b28e3ff3c72800b989b2bcde31a3abe9704d447e325e4f353056a58b30f97fc92c79cb52e6f4ee7b40e954da99d772e0090e902e356a0ee3e2f57608b53cf6 WHIRLPOOL 3362580d3c5c4a26ad092c0cb2daafd527a9045e1ef5e447d06d4864cfe7d579496a32b408b6e5d84093dc8f1068b6ded4418ce6a57ce60397399d6c27bd04b4 AUX openrc-0.11.5-init.sh.Linux.in.patch 3252 SHA256 469dda504380b0c0498eb0d2c9792d42dcf744c902114ab25f9b061c51e48153 SHA512 086721ca0fd513f755e06286e355510a3f6eda99ce35d7709628efe7a8c3d3c2ccc35c2ec8d3e9532ad50cb83f47ae49e9a66455e5c000bf33d5b1dd70f42481 WHIRLPOOL 1380625e52d3921c442d51c8fb2e6de2e3b7d89f4dab298150bb660c7b13791872c6b257f18eae75ba5eb5a8b7bc23ca438d5b1ef71824c82c192ffa2d800e8b @@ -23,12 +24,15 @@ AUX openrc-0.21.3-rc.conf.in.patch 987 SHA256 9b2bbb919d108003c97d7c519347f4c225 AUX openrc-0.22.4-cgroup-race.patch 385 SHA256 4ee88ee55aa02f8b4c29e967f59cccf0867cc0ba0715aec70ec19fd758c78cb0 SHA512 a207a26beb7d46b7d26667b51869eab8658aeae29697b2ca4c05b3d157756b5437e65c49a94c103530b14b14e629eaa62a0d33fc700a45b19b853dda4b170348 WHIRLPOOL 9661901f105f519d38d99fb967b6e256ed50679cad71736b2a05a01f2626d63ad63b5d36c5e1457b38995e816c58b401dd8b8e21c497b3c82257f738f9a9dfdd AUX openrc-0.22.4-norun.patch 4550 SHA256 495a4155069b380cfea1b20e58cd5cb2e9c60662d582803a66365415fe70d202 SHA512 433714c364cda77d14930cb9c95e98f192ef936189b6f3c6e411e26bbefdba23c30f322841fe10c7f39a3372c6f0ecf529efc3add0fcf2c7faafffd60f4b3ce0 WHIRLPOOL 003c37e7020b7a2f361cf4423eefdbf335a528748b0df88614f544bd4d8f61d7b7d9f625c3ab1e3f392ce78449c8098d91eb80a9d0f70bafb4937ff289827255 AUX openrc-0.22.4-rc.conf.patch 909 SHA256 de244e4c13c11ae52e5daebcf4a1d16294d0c8526e7b749dccb0ea2c38024ef8 SHA512 cbf2c5a03166422f1cd33ace8e05ffac4733ce650dde5d92cd872b596a90e46f144a6e061ef7831839bd80b40df80928e1bac00f47a8398f466a4312eab483a1 WHIRLPOOL 59b795a82171d1bb6972dc8e7d6d83ec2e7c4dbab7c593123126e182664a4c6f22ed0a61a6fbdf35e76543803c5650dda3ea5e12366d3734d14881564023df64 +AUX openrc-0.23.2-norun.patch 4062 SHA256 172e7e4145b77e598556738dd72075dd4b746fb43df66440f74a773b29d8326b SHA512 49633de75391550d97f0be8cea2d40f2da11eee955e525ee779f03d9f7c4aa3b6ab72fdc2975a0d8c911dbeefe4d2d3742b9c351e9a4c0bdc377e5ebd67bd8a8 WHIRLPOOL 4b2908e3e500325e6140de16bb9e4428c31c101efd2035d23bffab257b56b251d8f09b2008bf264b4234c5bc8baf522a6bf77b9488b935c681e329c3fc294c97 +AUX openrc-0.23.2-rc.conf.patch 643 SHA256 35fe821d3acc7c5a974dd627eca3ad6bd9f136b4a5b644ecf563b4e6a82eaab6 SHA512 6a098f83d66a4556f3da4ee6ecbfd5dd747e87c3080172f1ca078a756bc4b80d26347e597fb7c70c7bc823614dcf3aea5ae9f8bed12cda432c06052f1587e2a5 WHIRLPOOL a06f5c8da1c6fac1d0ce90edf7311ef8d71b589467d9b54cdd272941193956da2b6f9ced6eae6ea0b07c420a8675c97a1777ae0f506f7303a20c9a6e17cf66e2 AUX openrc-0.8.3-ccwgroup.patch 1992 SHA256 5a092cc0ab90507c28f8bd6af34b67fbb3d8a9ddce257195dde55128f87324fc SHA512 bea08e3064b8253713d996098006e8f636fef8e071d0c373b91db643c678aff36d490c5db853c97c91e0ce53f10c4db3d2b104283303aba1d3841058d5e3bb4a WHIRLPOOL a37fbb6fb31abab0631d61baa61280330791209c329aed0c41ffef1ffdab9e0ba41732404035f8a26865077b1d857387f4d253c71febfc9743ff864b484ec1cf AUX openrc-0.8.3-deprecation_warning.patch 1055 SHA256 fa95aaa34db3556240031fcfb5e33d85e44da2a2f74562faa97c75f569d4efa0 SHA512 72f8dc6a931ea4c97f337a1a358ccc4fc3600d8809e549afad8697fc74a07fa6f1460603d5c80ea08af2e441ad8cb7f404454876dce1244fdba13099f948d00a WHIRLPOOL 5bcee2abc2158ce750b94fee97f6e270adf4d5098bac2d64d2423bae462ce3b702c5df52d3e013e0027db66e09edde1c7aca1d5b8d77088f0f8937f968eba176 AUX openrc-9999-msg-style.patch 2775 SHA256 637fc2d13e0940b55b7d4613ebf8ebabdee87a802a2690191c01fd5ee7cb3581 SHA512 ffeaba677106929ed842d38b161a865a6b3bd26e4ed804bf922d7a1e3c749adbf23348a20ca1be44f41cc0abd7d113172f1865d29865f322e30fbac9f9b34cba WHIRLPOOL 3044d94c523ec2a33a2b9cfda5988070d67bfe631c1fba1314eaba5f432e9e4dfcbb307685e326c181c9205dfe12c161568e3707b276ceff2114bd92e9375ec0 AUX openrc-9999-pause.patch 825 SHA256 ffa34418921d30c589ad762a5d6d7640c37e7279ca19af469912cb9f118cc75d SHA512 ebab7434c5e1b76b882d99d45069de33da07230c9fa9bf28212b18c2742d726aff7be62907964cad9c37b483c25d805dc07d0c5927349f8104fef2f957e69943 WHIRLPOOL 2f633409182e6ab0da4162fcd3a29e928eaad9aa72d008192aa0f4e9532b55492a122c61d9027766a04a766be2c74697624a0f15aaadc273de45cca554c13cd3 AUX openrc.logrotate 43 SHA256 30a81fb2f761083088d4d6a3d435fc842966d44588e9837b45ffd03e48be6eb6 SHA512 12bb6354e808fbf47bbab963de55ee7901738b4a912659982c57ef2777fff9a670e867fcb8ec316a76b151032c92dc89a950d7d1d835ef53f753a8f3b41d2cec WHIRLPOOL 22e69eb14704cb5a47d176f2bee062267094c345ef17eb21c9c9dfd6e9c0767539f2d71e5720c9ec1ca51a5da5bc21e953961f4dd4aa65eeae2e748609f78ec1 AUX root-r1.initd 1435 SHA256 0eb526394fc741f93ab7f09b17496ceba1006efb0f6ba5a5f2a244c6041a53f7 SHA512 fb6025a824086b77b5e2bc2c680aa9aef80938ec7cf63272777a1fa63d6fa298a1eaf015291145acadcffbb10bb46b93cef9fffd3ac5bd2b6824749d2e2ad9a9 WHIRLPOOL 723d7e5051b5b41927a4a3a7086d9d4c8c37a351227d1b829152e5952105731a4d4b54898e80068b4c58564ce6ab4d6b3203d7cd9b89d9395be45dfae8efe6ea +AUX root-r2.initd 1856 SHA256 3d0a745bd0fdcc3959b66b31c72fc56810224e8306701e398e4bee64a6ede2e6 SHA512 92528969df81c99dc0c115d3376c7e36240adc4e9295787804ff3b71e07db4638d53149fed0502c364572f74695e27157e3b6e36acd47986cfe7977478530ebf WHIRLPOOL 91dbdcc18ed55aa82b3ee446e36e642a0520af5de84dbeb9b65c5f4fca240d60795f613d6d8df82e275ad4af7a22b0c68bab1a571242e61329a5b609b45d3eda AUX root.initd 1418 SHA256 d6528a5bb03fa5b54276ea70f86ebceb9f46e271996a21081f59b0f3008f3a8a SHA512 f7118d0b3e5eb452b3e08cdfc1dba548a1ea2b934e1fde94543cb83fa0d8be39f1a533178e5227f93a7bbcda21efab3228db73a61f93390e5b60c842d519fb2a WHIRLPOOL 2faf4b4f068de796671fe9c68eecd4ee193f75200a34d6c8eb984dbb189583c42d5e3d0cf96c193bf919945095b7936ef12a1174e4f98e88cbe8ff0c49c857e7 AUX start-stop-daemon.pam 63 SHA256 2681da17e4a122656b5303b7c7eca82b8fb182641290b153fdbe96b63638086d SHA512 85cf440611b8f87f51bf24bdd9fa03639a75b950f00096d81b8826c21ae85ff9784b8c56b8ddb482e70f08bce933d4561b30750346d51fb2cef3be34acc065cb WHIRLPOOL 4abc9f051155a62d3033258a06003a4ca3909d8104deca84d5c1605bc1c7e56167fd82b2b4b72fe7b707070de98a7628730de1ad3f14b924b5b1480fba5ef854 DIST openrc-0.11.5.tar.bz2 174650 SHA256 f0c3ff6e51adc5fd10c355d76d1ee20773154da6b8415f461f5dab9ff75d6453 SHA512 0f35dc8940f577c863de659813ee296f002fd7038d953fa7eeb4bdbd793cc853c43f0dd7f0fda5fa81bcfed9efccbee2e26dbc78955ed98a7600644c80320af2 WHIRLPOOL b89c75143d0ec69be59f272197b48b4df50bc2cfd581de81e17641ae0abc6165f43151947be47b84000c7f7cb07ca3e80f87d9ee5a7f93822a6e5f613953e78e @@ -47,6 +51,7 @@ DIST openrc-0.19.1.tar.bz2 159598 SHA256 5628c04b12e2f51f25e59c303bdccbf545ba0db DIST openrc-0.21.3.tar.bz2 167326 SHA256 ce04bf2e1648fb49212b90d3f72910ee7e3ab6fc41a34416268d9d5a791d6cd6 SHA512 452b09d016e91a235bbb3c0e2f44c915c5f14fb212924bcfcff8a6147a503df8d5fb0b30bb18bc93fb9a4413346e9f1dabd1095f053b4153d76eca2f44044a57 WHIRLPOOL 163c62dcfd70d104d60ab22c721a75ce62db2d3741d460e26bbb51ecf5715b3711c1c01e90c5a1dd08470b2c596ab964acbefdeaefa4646544832d29c82d9823 DIST openrc-0.21.7.tar.bz2 168104 SHA256 0d4bb11cfac9950687dfbc1a72a90e337af25bb39edc032cb0b807cfe0d04c3d SHA512 26edf47e0eae0b62b651484bcbe73a5ccda2032ecbcc303f280bbf671fd1a8a1394d206228bd12e5157e8214210eb124898d11acc78cdef0d9145a952754f6bc WHIRLPOOL 5731326b0879759f58b3e251e3b1c4cc6dcc17bee3ebf1d8ef4b689dff5ec39d429cde9c3d4f2901c8a592aaad7253bfca69a0caaa2ae77b6f45f9afe6e66df4 DIST openrc-0.22.4.tar.gz 214321 SHA256 d428890c12936b502d79018667dc6094d0e801c558f118b49e44c5f34636073b SHA512 c85f6a87d03203f665d010ae357e7e1e2cae0158b12075376f3fe928daeffa14139ccc3dc2f24613cec25eb145b8f7dd64e067bd07493001570659095e60c296 WHIRLPOOL 3e50761d5626da03a74ce6de634ae08d79fa190d811fc8e661a56be66b3f0a6d28ee24f6045183914ebabd14280f535920d34c591e384df5d016e7cca49c209b +DIST openrc-0.23.2.tar.gz 209569 SHA256 244a9902a98694a7fd59ad3dec49bd9e61a6b22864795ed31ef8fc81aa474251 SHA512 6c8483d36812d21ba45bf3c386c6f1c03a9c01c10f48b7e7eb26707d105568b8017ba8a7728a794ac0ac6fedab10cea2bc9587f4d5ddb1957001e03f872e8f18 WHIRLPOOL 88f61ab81562bdcb1b616441f01cbc3b45aca45d0a55bf41e3a9d6b733b3dfec429bf3c1645811c187c21038674e56d3e32e6035062685b45765fb3b85740e3c EBUILD openrc-0.11.5.ebuild 16502 SHA256 caf32e93a383ab1ac1766999f85292029c194380ff92007f05c08514401d2740 SHA512 54fc14f6e2a6c11d0446f12f75d78f74cc6c37b863eaa68d7f898770c5b6b96807ce6de190f86b0db472042c3a94ae2976049c374ca884bda5d1bc5732751700 WHIRLPOOL 69b03be1a1da0d571b27d915324802295325a5b7c41e4ae294abbad40ee0deaac89e64d727914a45c8f9579c1453dd8b19f78d3230d8fe9947b86d2ca86f1043 EBUILD openrc-0.11.6.ebuild 16537 SHA256 408e9a98ffb81c84e287acdc82ac1839861957ecda23d7cb575c889ce68a227d SHA512 fc6089241dbe5139fa19069864c5ca0e3cbc5b289ea7678d676edfed4058a3acf5c1cad40188a954156c65f8332b7ba5726549cb5061a4ef5fbbed1afd7beb7f WHIRLPOOL 8ad01c29ef9be7aab107712e50ddae5f8879da64c875d2a60b3502bbd3515a872a9d2861584a2bf9974cd0b06a45b85f9d605b9835705494b6ce818f897bfb27 EBUILD openrc-0.11.8.ebuild 17228 SHA256 16dc63fd49833ccceabdf6f2fc8b34d298bb662e058f76d46683c40ae4028ede SHA512 c5ad283417c1a8eb49e23ff6841e6322f5acb46769c314b320b2ab843f3436edbe2ffd5a532b6785564d20a475da11ab3e8e770ba4af6b6cd5f219b798b896ce WHIRLPOOL e67e717a3b3c2b170a22b0c35b2609f3409e8e2909f1031d7f27dae35657f5ed1385374689bf91ad888f5b2a98730910e6ff8230a8bbd3e4c51faeb469c23bb5 @@ -63,3 +68,4 @@ EBUILD openrc-0.19.1.ebuild 12508 SHA256 414fcf73a8fb4c4ffdabe0a9ef4b206c21efc11 EBUILD openrc-0.21.3.ebuild 11884 SHA256 018c052ce41cf7a7e29028ea6271fd487f552831ffc2e10be10b5ec54ce976c2 SHA512 18a2c605b005d9781170454cfa2f621bb562dbad8f42ee8283e1a1b419e558c1cd5ba09bfa7556f7496ff17c8e2d3a7136a9d61757e6736f2e6fa975f813bb2c WHIRLPOOL a81ef204ce4ce477572e0542e4b986c52dfb091e6f6443148e9f8b51acc7b361f9713d8f519ca2d60bfa0de02135bda92b1c16fd8889210986e33f5e291a13ef EBUILD openrc-0.21.7.ebuild 11858 SHA256 c9ca36f0ac4e2e61b934f54a355513ad3834375a5d8b75ae129827631e0d2541 SHA512 2122dc5eb69ef8557d2bef48c076426f2982eb1854a585e831521e668c4a81f4f92aedb5411a093e6dc227f4d55b699c66570625cc83e7c8988f0ff01f37f104 WHIRLPOOL afdd98cfbbd82c17cc7708f3cd375cdaca907fdcfb8b4ea940f8baab2e0d36f60a7c638140ec3b3b4f644a5c341ab9f22ff91c9701a7bdd3def5b96756937abc EBUILD openrc-0.22.4.ebuild 11613 SHA256 d93c1e2a58d633cd4b68c3474e41cdd461560c8c52989be23d2408ac1c874328 SHA512 32a624ea204140301ed612ac25211d45c1cd662dd5ff0afa1b893eb7f96202966daba756a8df9453c1ef8e749af5d20c8d860731bc100241b8c60557367007c8 WHIRLPOOL 6e5c2ff1e0ad3feb00516178edffcde90acecec647383a1636a62dc2a083ae8174391784535e8864165c9bf053e220dc0dbba1834b5896603c208d013b46e3e4 +EBUILD openrc-0.23.2.ebuild 11644 SHA256 30aa27f6a602477f440324bf69a577a1bc83c97985655c8f1683051c69882f93 SHA512 88cdc93d1636fe57da4d932a9608663bb6b9ffffb5d30b67899edb1bf20343f2ca6b961f241fb036c31b97b5b39a08ceb626b17e80360766fc59e5a820025908 WHIRLPOOL 42361cc78d5686f3b31fed193df1204e02012fe2d4099a056189d65a612d10bd15988cd5e6880417f93d86d12a24bd945ba2663ea57faa050c44568f3cba9590 diff --git a/sys-apps/openrc/files/localmount-r3.initd b/sys-apps/openrc/files/localmount-r3.initd new file mode 100755 index 00000000..0363a89f --- /dev/null +++ b/sys-apps/openrc/files/localmount-r3.initd @@ -0,0 +1,143 @@ +#!/sbin/openrc-run +# Copyright (c) 2007-2015 The OpenRC Authors. +# See the Authors file at the top-level directory of this distribution and +# https://github.com/OpenRC/openrc/blob/master/AUTHORS +# +# This file is part of OpenRC. It is subject to the license terms in +# the LICENSE file found in the top-level directory of this +# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE +# This file may not be copied, modified, propagated, or distributed +# except according to the terms contained in the LICENSE file. + +description="Mounts disks and swap according to /etc/fstab." + +depend() +{ + need fsck + use lvm modules mtab + after lvm modules + keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver +} + +start() +{ + # Mount local filesystems in /etc/fstab. + # The types variable must start with no, and must be a type + local critical= types="noproc" x= no_netdev= rc= + for x in $net_fs_list $extra_net_fs_list; do + types="${types},${x}" + done + + if [ "$RC_UNAME" = Linux ]; then + no_netdev="-O no_netdev" + if mountinfo -q /usr; then + touch "$RC_SVCDIR"/usr_premounted + fi + fi + if [ -n "$( sed 's/#.*$//' /etc/fstab | grep btrfs )" ]; then + if [ -x /sbin/btrfs ]; then + grep -q btrfs /proc/filesystems >/dev/null 2>&1 \ + || /sbin/modprobe btrfs >/dev/null 2>&1 + + ebegin "Scanning for btrfs filesystem components" + local output="$( /sbin/btrfs device scan 2>&1 )" + eend $? "$output" + fi + fi + ebegin "Mounting local filesystems" + mount -at "$types" $no_netdev + eend $? "Some local filesystem failed to mount" + rc=$? + if [ -z "$critical_mounts" ]; then + rc=0 + else + for x in ${critical_mounts}; do + fstabinfo -q $x || continue + if ! mountinfo -q $x; then + critical=x + eerror "Failed to mount $x" + fi + done + [ -z "$critical" ] && rc=0 + fi + return $rc +} + +stop() +{ + yesno $RC_GOINGDOWN || return 0 + # We never unmount / or /dev or $RC_SVCDIR + + # Bug 381783 + local rc_svcdir=$(printf '%s\n' "$RC_SVCDIR" | sed 's:/lib\(32\|64\)\?/:/lib(32|64)?/:g') + + local x= no_umounts_r="/|/dev|/dev/.*|${rc_svcdir}" + no_umounts_r="${no_umounts_r}|/bin|/sbin|/lib(32|64)?|/libexec" + # RC_NO_UMOUNTS is an env var that can be set by plugins + local IFS="$IFS:" + for x in $no_umounts $RC_NO_UMOUNTS; do + no_umounts_r="$no_umounts_r|$x" + done + + if [ "$RC_UNAME" = Linux ]; then + no_umounts_r="$no_umounts_r|/proc|/proc/.*|/run|/sys|/sys/.*" + if [ -e "$rc_svcdir"/usr_premounted ]; then + no_umounts_r="$no_umounts_r|/usr" + fi + fi + no_umounts_r="^($no_umounts_r)$" + + # Flush all pending disk writes now + sync + + . "$RC_LIBEXECDIR"/sh/rc-mount.sh + + if [ "$RC_UNAME" = Linux ] && [ -d /sys/fs/aufs ] ; then + #if / is aufs we remount it noxino during shutdown + if mountinfo -q -f '^aufs$' / ; then + mount -o remount,noxino,rw / + sync + fi + + local aufs_branch aufs_mount_point aufs_si_id aufs_br_id branches + for aufs_si_dir in /sys/fs/aufs/si*; do + [ -d "${aufs_si_dir}" ] || continue + aufs_si_id="si=${aufs_si_dir#/sys/fs/aufs/si_}" + aufs_mount_point="$(mountinfo -o ${aufs_si_id})" + branches="$aufs_si_dir/br[0-9] $aufs_si_dir/br[0-9][0-9] $aufs_si_dir/br[0-9][0-9][0-9]" + for x in $branches; do + [ -e "${x}" ] || continue + aufs_branch=$(sed 's/=.*//g' $x) + eindent + if ! mount -o "remount,del:$aufs_branch" "$aufs_mount_point" > /dev/null 2>&1; then + ewarn "Failed to remove branch $aufs_branch from aufs" \ + "$aufs_mount_point" + fi + eoutdent + sync + done + done + fi + + # Umount loop devices + einfo "Unmounting loop devices" + eindent + do_unmount "umount -d" --skip-point-regex "$no_umounts_r" \ + --node-regex "^/dev/loop" + eoutdent + + # Now everything else, except network filesystems as the + # network should be down by this point. + einfo "Unmounting filesystems" + eindent + local fs= + for x in $net_fs_list $extra_net_fs_list; do + fs="$fs${fs:+|}$x" + done + [ -n "$fs" ] && fs="^($fs)$" + do_unmount umount --skip-point-regex "$no_umounts_r" \ + "${fs:+--skip-fstype-regex}" $fs --nonetdev + eoutdent + + return 0 +} diff --git a/sys-apps/openrc/files/openrc-0.23.2-norun.patch b/sys-apps/openrc/files/openrc-0.23.2-norun.patch new file mode 100644 index 00000000..a63c9c30 --- /dev/null +++ b/sys-apps/openrc/files/openrc-0.23.2-norun.patch @@ -0,0 +1,143 @@ +--- sh/init.sh.Linux.in.dist ++++ sh/init.sh.Linux.in +@@ -42,33 +98,70 @@ + if [ ! -d /run ]; then + if [ "$sys" = VSERVER ]; then + if [ -e /run ]; then +- rm -rf /run ++ rm -rf /run + fi + mkdir /run + else +- eerror "The /run directory does not exist. Unable to continue." +- return 1 ++ #eerror "The /run directory does not exist. Unable to continue." ++ #return 1 ++ : ++ # awk may live in /usr... ++ if type -pf awk >/dev/null 2>&1; then ++ boot_services="$( rc-status -Ca 2>/dev/null | awk 'BEGIN { doprint = 0 } ; /^Runlevel: / { doprint = 0 ; ( "boot" == $2 || "sysinit" == $2 ) && doprint = 2 } ; ( 1 == doprint ) { print $1 } ; ( 2 == doprint ) { doprint = 1 }' )" ++ else ++ boot_services="$( rc-status -Ca 2>/dev/null | sed -r '/^Runlevel: / s/^(.*)$/Runlevel: \n\1/' | sed -nr '/^Runlevel: (sysinit|boot)/,/^(Dynamic )?Runlevel: /p' | grep -v '^Runlevel:' | sed 's/^ \+// ; s/ .*$//' )" ++ fi ++ ++ if echo ${boot_services:-lvm} | grep -Eq "dmeventd|lvm|device-mapper" >/dev/null 2>&1 && [ -d /var -a ! -w /var ]; then ++ if ! mountinfo -q /var/run; then ++ ebegin "Mounting /var/run" ++ rc=0 ++ if ! fstabinfo --mount /var/run; then ++ mount -t tmpfs -o mode=0755,nosuid,nodev,size=10% tmpfs /var/run ++ rc=$? ++ fi ++ if [ $rc != 0 ]; then ++ eerror "Unable to mount tmpfs on /var/run." ++ fi ++ fi ++ if ! mountinfo -q /var/lock; then ++ ebegin "Mounting /var/lock" ++ rc=0 ++ if ! fstabinfo --mount /var/lock; then ++ mount -t tmpfs -o mode=0755,nosuid,nodev,size=10% tmpfs /var/lock ++ rc=$? ++ checkpath -d -m 0775 -o root:uucp /var/lock ++ fi ++ if [ $rc != 0 ]; then ++ eerror "Unable to mount tmpfs on /var/lock" ++ fi ++ fi ++ fi + fi + fi + +-if [ "$sys" = VSERVER ]; then +- rm -rf /run/* +-elif ! mountinfo -q /run; then +- ebegin "Mounting /run" +- rc=0 +- if ! fstabinfo --mount /run; then +- mount -t tmpfs -o mode=0755,nodev,size=10% tmpfs /run +- rc=$? +- fi +- if [ $rc != 0 ]; then +- eerror "Unable to mount tmpfs on /run." +- eerror "Can't continue." +- exit 1 ++if [ -d /run ]; then ++ if [ "$sys" = VSERVER ]; then ++ rm -rf /run/* ++ elif ! mountinfo -q /run; then ++ ebegin "Mounting /run" ++ rc=0 ++ if ! fstabinfo --mount /run; then ++ mount -t tmpfs -o mode=0755,nodev,size=10% tmpfs /run ++ rc=$? ++ fi ++ if [ $rc != 0 ]; then ++ eerror "Unable to mount tmpfs on /run." ++ eerror "Can't continue." ++ exit 1 ++ fi + fi ++ checkpath -d -m 0775 -o root:uucp /run/lock ++else ++ [ -w /var ] && checkpath -d -m 0775 -o root:uucp /var/lock + fi + + checkpath -d $RC_SVCDIR +-checkpath -d -m 0775 -o root:uucp /run/lock + + # Try to mount xenfs as early as possible, otherwise rc_sys() will always + # return RC_SYS_XENU and will think that we are in a domU while it's not. +@@ -80,9 +173,4 @@ + eend $? + fi + +-if [ -e "$RC_LIBEXECDIR"/cache/softlevel ]; then +- cp -p "$RC_LIBEXECDIR"/cache/* "$RC_SVCDIR" 2>/dev/null +-fi +- +-echo sysinit >"$RC_SVCDIR"/softlevel +-exit 0 ++. "$RC_LIBEXECDIR"/sh/init-common-post.sh +--- init.d/bootmisc.in.dist ++++ init.d/bootmisc.in +@@ -79,7 +79,7 @@ + case "$x" in + *.pid) + start-stop-daemon --test --quiet \ +- --stop --pidfile "$x" && continue ++ --stop --pidfile "$x" >/dev/null 2>&1 && continue + ;; + esac + rm -f -- "$x" +@@ -174,11 +174,11 @@ + fi + done + +- if [ "$RC_UNAME" = Linux -a -d /run ]; then +- migrate_to_run /var/lock /run/lock +- migrate_to_run /var/run /run +- clean_run +- fi ++ #if [ "$RC_UNAME" = Linux -a -d /run ]; then ++ # migrate_to_run /var/lock /run/lock ++ # migrate_to_run /var/run /run ++ # clean_run ++ #fi + + if checkpath -W /var/run; then + ebegin "Creating user login records" +--- src/librc/rc.h.in.dist ++++ src/librc/rc.h.in +@@ -41,9 +41,11 @@ + #define RC_LIBEXECDIR "@LIBEXECDIR@" + #if defined(PREFIX) + #define RC_SVCDIR RC_LIBEXECDIR "/init.d" ++/* + #elif defined(__linux__) || (defined(__FreeBSD_kernel__) && \ + defined(__GLIBC__)) || defined(__GNU__) + #define RC_SVCDIR "/run/openrc" ++*/ + #else + #define RC_SVCDIR RC_LIBEXECDIR "/init.d" + #endif diff --git a/sys-apps/openrc/files/openrc-0.23.2-rc.conf.patch b/sys-apps/openrc/files/openrc-0.23.2-rc.conf.patch new file mode 100644 index 00000000..84773f6c --- /dev/null +++ b/sys-apps/openrc/files/openrc-0.23.2-rc.conf.patch @@ -0,0 +1,21 @@ +--- etc/rc.conf.dist ++++ etc/rc.conf +@@ -17,7 +17,7 @@ + + # If we need to drop to a shell, you can specify it here. + # If not specified we use $SHELL, otherwise the one specified in /etc/passwd, +-# otherwise /bin/sh +-# Linux users could specify /sbin/sulogin ++# otherwise '/bin/sh'. ++# Linux users could specify '/sbin/sulogin'. + #rc_shell=/bin/sh + +@@ -92,7 +92,7 @@ + #unicode="NO" + + # This is how long fuser should wait for a remote server to respond. The +-# default is 60 seconds, but it can be adjusted here. ++# default is 60 seconds, but it can be adjusted here. + #rc_fuser_timeout=60 + + # Below is the default list of network fstypes. diff --git a/sys-apps/openrc/files/root-r2.initd b/sys-apps/openrc/files/root-r2.initd new file mode 100755 index 00000000..d906daf7 --- /dev/null +++ b/sys-apps/openrc/files/root-r2.initd @@ -0,0 +1,77 @@ +#!/sbin/openrc-run +# Copyright (c) 2007-2015 The OpenRC Authors. +# See the Authors file at the top-level directory of this distribution and +# https://github.com/OpenRC/openrc/blob/master/AUTHORS +# +# This file is part of OpenRC. It is subject to the license terms in +# the LICENSE file found in the top-level directory of this +# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE +# This file may not be copied, modified, propagated, or distributed +# except according to the terms contained in the LICENSE file. + +description="Mount the root fs read/write" + +depend() +{ + need fsck + keyword -docker -jail -lxc -openvz -prefix -systemd-nspawn -vserver +} + +start() +{ + case ",$(fstabinfo -o /)," in + *,remount,*) + ebegin "Remounting root filesystem with fstab options" + local fsopts=",$(fstabinfo -o /)," + fsopts="$(echo "$fsopts" | sed 's/,remount,/,/ ; s/^,// ; s/,$//')" + case "$RC_UNAME" in + Linux) + mount -n -o remount,${fsopts} / + ;; + *) + mount -u -o ${fsopts} / + ;; + esac + eend $? "Root filesystem could not be remounted" + if [ $? -eq 0 ] && checkpath -W /; then + rm -f /fastboot /forcefsck + fi + ;; + *,ro,*) + ;; + *) + # Check if the rootfs isn't already writable. + if checkpath -W /; then + rm -f /fastboot /forcefsck + else + ebegin "Remounting root filesystem read/write" + case "$RC_UNAME" in + Linux) + mount -n -o remount,rw / + ;; + *) + mount -u -o rw / + ;; + esac + eend $? "Root filesystem could not be mounted read/write" + if [ $? -eq 0 ]; then + rm -f /fastboot /forcefsck + fi + fi + ;; + esac + + ebegin "Remounting filesystems" + local mountpoint + for mountpoint in $(fstabinfo); do + case "${mountpoint}" in + /) + ;; + /*) + mountinfo -q "${mountpoint}" && \ + fstabinfo --remount "${mountpoint}" + ;; + esac + done + eend 0 +} diff --git a/sys-apps/openrc/openrc-0.23.2.ebuild b/sys-apps/openrc/openrc-0.23.2.ebuild new file mode 100644 index 00000000..8d32594b --- /dev/null +++ b/sys-apps/openrc/openrc-0.23.2.ebuild @@ -0,0 +1,361 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: 1395ff413f238dde87a7545cd2e3a34f67ba7442 $ + +EAPI=6 + +inherit flag-o-matic pam toolchain-funcs + +DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" +HOMEPAGE="https://github.com/openrc/openrc/" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="git://github.com/OpenRC/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs + +tmpfiles tools unicode -vanilla +varrun kernel_linux kernel_FreeBSD" + +COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) ) + ncurses? ( sys-libs/ncurses:0= ) + pam? ( + sys-auth/pambase + virtual/pam + ) + tools? ( dev-lang/perl ) + audit? ( sys-process/audit ) + kernel_linux? ( + sys-process/psmisc + !<sys-process/procps-3.3.9-r2 + ) + selinux? ( + sys-apps/policycoreutils + sys-libs/libselinux + ) + !<sys-apps/baselayout-2.1-r1 + !<sys-fs/udev-init-scripts-27" +DEPEND="${COMMON_DEPEND} + virtual/os-headers + ncurses? ( virtual/pkgconfig )" +RDEPEND="${COMMON_DEPEND} + !prefix? ( + kernel_linux? ( + >=sys-apps/sysvinit-2.86-r6[selinux?] + tmpfiles? ( + virtual/tmpfiles + ) + ) + kernel_FreeBSD? ( sys-freebsd/freebsd-sbin ) + ) + selinux? ( + sec-policy/selinux-base-policy + sec-policy/selinux-openrc + ) +" + +PDEPEND="netifrc? ( net-misc/netifrc )" + +src_prepare() { + default + + sed -i 's:0444:0644:' mk/sys.mk || die + + if [[ ${PV} == "9999" ]] ; then + local ver="git-${EGIT_VERSION:0:6}" + sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die + fi + + if ! use vanilla; then + if use varrun ; then + eapply -p0 -- "${FILESDIR}/openrc-0.23.2-norun.patch" || die "eapply failed" + else + eapply -p0 -- "${FILESDIR}/openrc-0.12.4-bootmisc.in.patch" || die "bootmisc.in eapply failed" + fi + eapply -p0 -- "${FILESDIR}/openrc-0.16.4-init.patch" || die "init eapply failed" + eapply -p0 -- "${FILESDIR}/openrc-0.18.4-devfs.patch" || die "devfs eapply failed" + eapply -p0 -- "${FILESDIR}/openrc-0.19.1-functions.sh.in.patch" || die "functions.sh.in eapply failed" + eapply -p0 -- "${FILESDIR}/openrc-0.23.2-rc.conf.patch" || die "rc.conf.in eapply failed" + fi + eapply -p0 -- "${FILESDIR}/openrc-0.22.4-cgroup-race.patch" || die "cgroup eapply failed" +} + +src_compile() { + unset LIBDIR #266688 + + MAKE_ARGS="${MAKE_ARGS} + LIBNAME=$(get_libdir) + LIBEXECDIR=${EPREFIX}/$(get_libdir)/rc + MKNET=$(usex newnet) + MKSELINUX=$(usex selinux) + MKAUDIT=$(usex audit) + MKPAM=$(usev pam) + MKSTATICLIBS=$(usex static-libs) + MKTOOLS=$(usex tools)" + + local brand="Unknown" + if use kernel_linux ; then + MAKE_ARGS="${MAKE_ARGS} OS=Linux" + brand="Linux" + elif use kernel_FreeBSD ; then + MAKE_ARGS="${MAKE_ARGS} OS=FreeBSD" + brand="FreeBSD" + fi + export BRANDING="Gentoo ${brand}" + use prefix && MAKE_ARGS="${MAKE_ARGS} MKPREFIX=yes PREFIX=${EPREFIX}" + export DEBUG=$(usev debug) + export MKTERMCAP=$(usev ncurses) + + tc-export CC AR RANLIB + emake ${MAKE_ARGS} +} + +# set_config <file> <option name> <yes value> <no value> test +# a value of "#" will just comment out the option +set_config() { + local file="${ED}/$1" var=$2 val com + eval "${@:5}" && val=$3 || val=$4 + [[ ${val} == "#" ]] && com="#" && val='\2' + sed -i -r -e "/^#?${var}=/{s:=([\"'])?([^ ]*)\1?:=\1${val}\1:;s:^#?:${com}:}" "${file}" # ' # " # Syntax highlight failure +} + +set_config_yes_no() { + set_config "$1" "$2" YES NO "${@:3}" +} + +src_install() { + emake ${MAKE_ARGS} DESTDIR="${D}" install + + # move the shared libs back to /usr so ldscript can install + # more of a minimal set of files + # disabled for now due to #270646 + #mv "${ED}"/$(get_libdir)/lib{einfo,rc}* "${ED}"/usr/$(get_libdir)/ || die + #gen_usr_ldscript -a einfo rc + gen_usr_ldscript libeinfo.so + gen_usr_ldscript librc.so + + if use varrun || ! use kernel_linux; then + keepdir "${EROOT}"$(get_libdir)/rc/init.d + fi + keepdir "${EROOT}"$(get_libdir)/rc/tmp + + if ! use vanilla; then + # Install updated /etc/init.d/root script, allowing /etc/fstab options to + # determine mount options for the root filesystem + newinitd "${FILESDIR}"/root-r2.initd root + # Install updated /etc/init.d/localmount script, to run: + # `btrfs devices scan` + # ... before attempting to mount local btrfs filesystems + newinitd "${FILESDIR}"/localmount-r3.initd localmount + + # Restore now-integrated script + exeinto "${EROOT}"$(get_libdir)/rc/sh + newexe "${FILESDIR}"/${PN}-0.13.7-init-common-post.sh init-common-post.sh + fi + + # Backup our default runlevels + dodir /usr/share/"${PN}" + cp -PR "${ED}"/etc/runlevels "${ED}"/usr/share/${PN} || die + rm -rf "${ED}"/etc/runlevels + + # Setup unicode defaults for silly unicode users + set_config_yes_no /etc/rc.conf unicode use unicode + + # Cater to the norm + set_config_yes_no /etc/conf.d/keymaps windowkeys '(' use x86 '||' use amd64 ')' + + # On HPPA, do not run consolefont by default (bug #222889) + if use hppa; then + rm -f "${ED}"/usr/share/openrc/runlevels/boot/consolefont + fi + + # Support for logfile rotation + insinto /etc/logrotate.d + newins "${FILESDIR}"/openrc.logrotate openrc + + # install gentoo pam.d files + newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon + newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon + + # install documentation + dodoc ChangeLog *.md + if use newnet; then + dodoc README.newnet + fi +} + +add_boot_init() { + local initd=$1 + local runlevel=${2:-boot} + # if the initscript is not going to be installed and is not + # currently installed, return + [[ -e "${ED}"/etc/init.d/${initd} || -e "${EROOT}"etc/init.d/${initd} ]] \ + || return + [[ -e "${EROOT}"etc/runlevels/${runlevel}/${initd} ]] && return + + # if runlevels dont exist just yet, then create it but still flag + # to pkg_postinst that it needs real setup #277323 + if [[ ! -d "${EROOT}"etc/runlevels/${runlevel} ]] ; then + mkdir -p "${EROOT}"etc/runlevels/${runlevel} + touch "${EROOT}"etc/runlevels/.add_boot_init.created + fi + + elog "Auto-adding '${initd}' service to your ${runlevel} runlevel" + ln -snf "${EROOT}"etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd} +} +add_boot_init_mit_config() { + local config=$1 initd=$2 + if [[ -e ${EROOT}${config} ]] ; then + if [[ -n $(sed -e 's:#.*::' -e '/^[[:space:]]*$/d' "${EROOT}"${config}) ]] ; then + add_boot_init ${initd} + fi + fi +} + +pkg_preinst() { + local f LIBDIR=$(get_libdir) + + # avoid default thrashing in conf.d files when possible #295406 + if [[ -e "${EROOT}"etc/conf.d/hostname ]] ; then + ( + unset hostname HOSTNAME + source "${EROOT}"etc/conf.d/hostname + : ${hostname:=${HOSTNAME}} + [[ -n ${hostname} ]] && set_config /etc/conf.d/hostname hostname "${hostname}" + ) + fi + + # set default interactive shell to sulogin if it exists + set_config /etc/rc.conf rc_shell "${EROOT}"sbin/sulogin "#" test -e "${EROOT}"sbin/sulogin + + # termencoding was added in 0.2.1 and needed in boot + has_version ">=sys-apps/openrc-0.2.1" || add_boot_init termencoding + + # swapfiles was added in 0.9.9 and needed in boot (february 2012) + has_version ">=sys-apps/openrc-0.9.9" || add_boot_init swapfiles + + if ! has_version ">=sys-apps/openrc-0.11"; then + add_boot_init sysfs sysinit + fi + + if ! has_version ">=sys-apps/openrc-0.11.3" ; then + migrate_udev_mount_script + add_boot_init tmpfiles.setup boot + fi + + # these were added in 0.12. + if ! has_version ">=sys-apps/openrc-0.12"; then + add_boot_init loopback + add_boot_init tmpfiles.dev sysinit + + # ensure existing /etc/conf.d/net is not removed + # undoes the hack to get around CONFIG_PROTECT in openrc-0.11.8 and earlier + # this needs to stay in openrc ebuilds for a long time. :( + # Added in 0.12. + if [[ -f "${EROOT}"etc/conf.d/net ]]; then + einfo "Modifying conf.d/net to keep it from being removed" + cat <<-EOF >>"${EROOT}"etc/conf.d/net + +# The network scripts are now part of net-misc/netifrc +# In order to avoid sys-apps/${P} from removing this file, this comment was +# added; you can safely remove this comment. Please see +# /usr/share/doc/netifrc*/README* for more information. +EOF + fi + fi + has_version ">=sys-apps/openrc-0.14" || add_boot_init binfmt + + if ! has_version ">=sys-apps/openrc-0.18.3"; then + add_boot_init mtab + if [[ -f "${EROOT}"etc/mtab ]] && [[ ! -L "${EROOT}"etc/mtab ]]; then + ewarn "${EROOT}etc/mtab will be replaced with a" + ewarn "symbolic link to /proc/self/mounts on the next" + ewarn "reboot." + ewarn "Change the setting in ${EROOT}etc/conf.d/mtab" + ewarn "if you do not want this to happen." + fi + fi +} + +# >=OpenRC-0.11.3 requires udev-mount to be in the sysinit runlevel with udev. +migrate_udev_mount_script() { + if [ -e "${EROOT}"etc/runlevels/sysinit/udev -a \ + ! -e "${EROOT}"etc/runlevels/sysinit/udev-mount ]; then + add_boot_init udev-mount sysinit + fi + return 0 +} + +pkg_postinst() { + local LIBDIR=$(get_libdir) + + # Make our runlevels if they don't exist + if [[ ! -e "${EROOT}"etc/runlevels ]] || [[ -e "${EROOT}"etc/runlevels/.add_boot_init.created ]] ; then + einfo "Copying across default runlevels" + cp -RPp "${EROOT}"usr/share/${PN}/runlevels "${EROOT}"etc + rm -f "${EROOT}"etc/runlevels/.add_boot_init.created + else + if [[ ! -e "${EROOT}"etc/runlevels/sysinit/devfs ]] ; then + mkdir -p "${EROOT}"etc/runlevels/sysinit + cp -RPp "${EROOT}"usr/share/${PN}/runlevels/sysinit/* \ + "${EROOT}"etc/runlevels/sysinit + fi + if [[ ! -e "${EROOT}"etc/runlevels/shutdown/mount-ro ]] ; then + mkdir -p "${EROOT}"etc/runlevels/shutdown + cp -RPp "${EROOT}"usr/share/${PN}/runlevels/shutdown/* \ + "${EROOT}"etc/runlevels/shutdown + fi + if [[ ! -e "${EROOT}"etc/runlevels/nonetwork/local ]]; then + cp -RPp "${EROOT}"usr/share/${PN}/runlevels/nonetwork \ + "${EROOT}"etc/runlevels + fi + fi + + if use hppa; then + elog "Setting the console font does not work on all HPPA consoles." + elog "You can still enable it by running:" + elog "# rc-update add consolefont boot" + fi + + # Handle the conf.d/local.{start,stop} -> local.d transition + if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then + elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}" + elog "files to ${EROOT}etc/local.d" + mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start + mv "${EROOT}"etc/conf.d/local.stop "${EROOT}"etc/local.d/baselayout1.stop + chmod +x "${EROOT}"etc/local.d/*{start,stop} + fi + + if ! use varrun && use kernel_linux && [[ "${EROOT}" = "/" ]]; then + if ! "${EROOT}"$(get_libdir)/rc/sh/migrate-to-run.sh; then + ewarn "The dependency data could not be migrated to /run/openrc." + ewarn "This means you need to reboot your system." + fi + fi + + # update the dependency tree after touching all files #224171 + [[ "${EROOT}" = "/" ]] && "${EROOT}/${LIBDIR}"/rc/bin/rc-depend -u + + if ! use newnet && ! use netifrc; then + ewarn "You have emerged OpenRC without network support. This" + ewarn "means you need to SET UP a network manager such as" + ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd," + ewarn "net-misc/NetworkManager, or net-misc/badvpn." + ewarn "Or, you have the option of emerging openrc with the newnet" + ewarn "use flag and configuring /etc/conf.d/network and" + ewarn "/etc/conf.d/staticroute if you only use static interfaces." + ewarn + fi + + if use newnet && [ ! -e "${EROOT}"etc/runlevels/boot/network ]; then + ewarn "Please add the network service to your boot runlevel" + ewarn "as soon as possible. Not doing so could leave you with a system" + ewarn "without networking." + ewarn + fi +} |