summaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/Manifest.gzbin51552 -> 51537 bytes
-rw-r--r--sys-apps/diffutils/Manifest2
-rw-r--r--sys-apps/diffutils/diffutils-3.11-r2.ebuild4
-rw-r--r--sys-apps/mawk/Manifest2
-rw-r--r--sys-apps/mawk/mawk-1.3.4_p20250131.ebuild2
-rw-r--r--sys-apps/openrc/Manifest4
-rw-r--r--sys-apps/openrc/openrc-0.55.1.ebuild164
-rw-r--r--sys-apps/openrc/openrc-0.60.1.ebuild162
8 files changed, 5 insertions, 335 deletions
diff --git a/sys-apps/Manifest.gz b/sys-apps/Manifest.gz
index 13d59ebda956..4a3ce72456ac 100644
--- a/sys-apps/Manifest.gz
+++ b/sys-apps/Manifest.gz
Binary files differ
diff --git a/sys-apps/diffutils/Manifest b/sys-apps/diffutils/Manifest
index 06fe9a18c298..c7812da3ad7c 100644
--- a/sys-apps/diffutils/Manifest
+++ b/sys-apps/diffutils/Manifest
@@ -7,5 +7,5 @@ DIST diffutils-3.11.tar.xz 1926052 BLAKE2B e3d78548d1fbee060a9e0a7ee93f4aebaa80a
DIST diffutils-3.11.tar.xz.sig 833 BLAKE2B 5b7f8d8b0ec2f1443270f9291acfd6ec7833268c5287d98225fb997efcfbbbec2e27f565226ae7d350576765689d7efd352b83c5a3ffca113963d9ec86b6a467 SHA512 81ac0cff6b9015758182e41688df70244f1ceac77835e0b06cb2c6c8ca89d93d1567010fed9b216bd65ebde8fcb89f162cc3112aa01f05b5b05f4a26f6fe69d7
EBUILD diffutils-3.10.ebuild 1664 BLAKE2B ebbccd0e9c7ebf06a925d30128bd8343cab3a30bc189811ec63fe3a9ab6fe29b015e3c86ded1c81660d502cf600a47fa5f09339bca748702f6db04d67d2aefc9 SHA512 1c51fda1f727bda5f89f3423ed892f7bb3edb1d84e8dcdc6fc95a755770a41c06cd8faa3be015fcb4f719223b295cbb79e789277bcdb74270e88564aa0db3cb4
EBUILD diffutils-3.11-r1.ebuild 1716 BLAKE2B afa228565f5a5acddb14e53f25ddf805802acbaf58836a48c0ac8039969e0ff47bfbef7b75c55d907fcbd21b41041389ad9b612e5f9010b7e6e5ace0f24a12b5 SHA512 c0cec3287b3c39d71e3f76a25b3910c197ab8aa3d4f76987e2dc849f66cf1bf0fd559499cea74d0106e5eadf32b5aeaadce16dbcd4087d6ca186600f42a3fa98
-EBUILD diffutils-3.11-r2.ebuild 1846 BLAKE2B 252f4a9d99c7a9f1935e2e7e13917bb6094644add027813dc6b0dcaa70bd729b53788244ab55451d3cb4859b9f5a07b7042e2b118178fb9e6d8d4bb3b456a543 SHA512 c5be9ada7118834b66cbae90cb68e76a2682cdf9209e37cbd81f402a113ecdbb615109674f8af278e071dfed67e028dbb2035addb36ebe8b86dbe22e24d0e3d4
+EBUILD diffutils-3.11-r2.ebuild 1860 BLAKE2B e80e6b394e696b5951f65e7e907fdffcf32b39d1467c66d11da4e57e3d55fe77028695996a33c670af972304c3310d8759c928d8917a40d95f2b205b6f19d526 SHA512 d32c1367b2309c49232adbbe2ad80f6fa9f707cdd9945ad5f7de3b331b963cbb3232924f3fe740c6635065531e61dd7e5738fe13ce1db3601600c9ae1ceeea87
MISC metadata.xml 403 BLAKE2B 009b73d59702ec89a6dc4e9ff8886ee77f0390961ea51aa5248d6f2fa3c9de0dd7fc8ba6844b0e38b7bae348dbb3b38cc8447f27371127976a5e5ae37aebbb34 SHA512 c0450fc2991ef0b1b56076a82fe88a8c860ac2a11aa78ac86cbaa29b049fdc6c69e11f9da3e9f90501f0a9567884e0bc47cf2b3b0a486cd173d1060b19f04a25
diff --git a/sys-apps/diffutils/diffutils-3.11-r2.ebuild b/sys-apps/diffutils/diffutils-3.11-r2.ebuild
index 22e8514a4f1f..bbc9da1b3960 100644
--- a/sys-apps/diffutils/diffutils-3.11-r2.ebuild
+++ b/sys-apps/diffutils/diffutils-3.11-r2.ebuild
@@ -44,8 +44,8 @@ PATCHES=(
src_prepare() {
default
- # Needed because of ${P}-diff-D-option-regression.patch
- #touch man/diff.1 || die
+ # Needed because of patches to avoid perl BDEPEND (affects Prefix too)
+ touch man/diff.1 || die
}
src_configure() {
diff --git a/sys-apps/mawk/Manifest b/sys-apps/mawk/Manifest
index 7ee78dfb4852..d2e4ca3bf727 100644
--- a/sys-apps/mawk/Manifest
+++ b/sys-apps/mawk/Manifest
@@ -3,5 +3,5 @@ DIST mawk-1.3.4-20240905.tgz.asc 729 BLAKE2B d4db8a008cac7e0a274de689ebef9fe5d7e
DIST mawk-1.3.4-20250131.tgz 433213 BLAKE2B 7a23051cfdb23f2451c23b357e895e49532c2211bac8d092d1fff9f7ea08dc43661d1d78eca2cff2b45998854eb0f64265c400e8f9cb7df83769cb98f96ba716 SHA512 100b1f5ee190d2841d5dee449c53601a6d32453e47b232de919f3489f6f7040d0c6d21f6c7d30df616b04abde2db9799c5eb16570c1f88dbc10fcd75c5838042
DIST mawk-1.3.4-20250131.tgz.asc 729 BLAKE2B 7432d1c06f0a5d9a4deec34bfb795f0b7b8e04d43e259b8baab5f033349bf331f94c3d541334ba886545855e682e7c7ec372e8f66585731b09ef3be44b426032 SHA512 0d8ac93bdafcd8915b0d2d2b675f8d5cf2aeba655cd04af4b4037336b74b320e02db360b7d18b796aedc09fbabc8a42e471766ea24219bad7a1cbff4f7679552
EBUILD mawk-1.3.4_p20240905.ebuild 1083 BLAKE2B dc1ad5be667f8fd30971f22e8e5b1a91661b1c71ce4381cd5b482fe9eaf9f490edf0270f3aae7e3a81a963714f6b6b89a89b22db42f949fb62ee1e2d21cc3562 SHA512 9d877d7c9aa8d937c83518cb351f0343d1bc390b4caf51a665e8986cab683b70fd3b2ee44d0500c047b6b404b8c3067a0c4ec5b387df339a2c4786a42be5e80f
-EBUILD mawk-1.3.4_p20250131.ebuild 1084 BLAKE2B 7f5fe53d5fc12528daf151a149ea26b2679ab1e66cde155065de076a06914d32cad3c65837f50e3eda0f7d2d2b3265154cc2a8e659a59c1903dae079a056ed5e SHA512 70f65bd18749176982fe397b8362344fb9ed6591457e75c9d003b7754c59728e32842b3ebe8c32cb286783f7a1c1997a29f779e1bc27cca5333deddc49864fc3
+EBUILD mawk-1.3.4_p20250131.ebuild 1083 BLAKE2B dc1ad5be667f8fd30971f22e8e5b1a91661b1c71ce4381cd5b482fe9eaf9f490edf0270f3aae7e3a81a963714f6b6b89a89b22db42f949fb62ee1e2d21cc3562 SHA512 9d877d7c9aa8d937c83518cb351f0343d1bc390b4caf51a665e8986cab683b70fd3b2ee44d0500c047b6b404b8c3067a0c4ec5b387df339a2c4786a42be5e80f
MISC metadata.xml 422 BLAKE2B 8bd344848b5247eb1858b7cd31d91a796671c321610b826e602d9350e59769a4e6612438d9bf89ee2d6d63c327729d88a9ccb538b162beb816fde2910d0a4d9a SHA512 9adcc3c3b54ee935d3363e874e76f9e9b1efee00faac94184a84d10a6600dad4f11da51d4567acabf63707ca55f9b3d5ac3df107c6de8b38cad1da9891e82086
diff --git a/sys-apps/mawk/mawk-1.3.4_p20250131.ebuild b/sys-apps/mawk/mawk-1.3.4_p20250131.ebuild
index c252e15c2781..c68cdcfb8aae 100644
--- a/sys-apps/mawk/mawk-1.3.4_p20250131.ebuild
+++ b/sys-apps/mawk/mawk-1.3.4_p20250131.ebuild
@@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-thomasdickey-20240114 )"
diff --git a/sys-apps/openrc/Manifest b/sys-apps/openrc/Manifest
index 1f05a483f5cf..c49daa8c7807 100644
--- a/sys-apps/openrc/Manifest
+++ b/sys-apps/openrc/Manifest
@@ -1,12 +1,8 @@
AUX openrc.logrotate 43 BLAKE2B 0587cd211767937fd6273e6b159271490443a94d80a54b5a20ef625a1959e77dbf38cd1756838337fb39a061c4ee19a39cccd2f5867fab9f04fb916a74029aaa SHA512 12bb6354e808fbf47bbab963de55ee7901738b4a912659982c57ef2777fff9a670e867fcb8ec316a76b151032c92dc89a950d7d1d835ef53f753a8f3b41d2cec
AUX start-stop-daemon.pam 63 BLAKE2B df39a1a12fe09dbbc0746eac67035d9e6d4a63323f6c937ef3888c70787354128e415b3c1c8bccccec0c987b3e789711cd1ddaba55e9b53a7f67b332c4ca9d5b SHA512 85cf440611b8f87f51bf24bdd9fa03639a75b950f00096d81b8826c21ae85ff9784b8c56b8ddb482e70f08bce933d4561b30750346d51fb2cef3be34acc065cb
-DIST openrc-0.55.1.tar.gz 249926 BLAKE2B 058c4105ee8198e854c6fd23a3074f6ca4470ffe1faf66ee948e088b859ca55d163e16390ad4dbdd97ff4c1e9bc829fe791e4d96c5ac31f30022dcf91d5179cf SHA512 a06018ef98870bf42f209cdbcb1c578864653929df3d5954ce27adb28fa11c8a2fe0374fe6e10b03a957f7f513b3d64a94800b40f5ab104695d1ed2bfc91615d
DIST openrc-0.56.tar.gz 250196 BLAKE2B 929fa18e2248a432095167ad5b07161103cc5c51cf72b945a4267de22304a66538105e4083bf413f1ffb7136194ef676d4f5e98f52dbef2dfdd92dda65960ec2 SHA512 d3533a12b1f54494492a54f20ddf943c669bc7c8e35e16cd5496d9d1819393ddd47af6ed0ae25f9e70b9980ca0f0a3d58ec057caa26f0f02df282ac00929997b
-DIST openrc-0.60.1.tar.gz 254915 BLAKE2B 435f09da5b20515c2fd7e9230a53008259099aabb9d83bade3d01deb628fc5306b9f2c6752c0fc1fa9393a499fc198fd6368378094f48d12a14730d158231481 SHA512 aa0be312ff5b1dc02c09dded0c52e7819947f6169c79b102090794a242db921eebca505b005bfe746d807b473d61479a357db9c80b854fddaef48a93dab2c2bb
DIST openrc-0.61.tar.gz 255879 BLAKE2B d009680e4c18981ff46218836abd9a8662b511c06d9856e994d403a89fe7bc2557f0bba8c8a13128f084895c0bc71c7646d13aa978fbfe76ba8b23d58bb0ac7e SHA512 64dd570fbb78a41e4e04f39a7b6fe729ddaaa0d3ea0cfdb0dd2f54ffbc6b11d327eb2d898f937f949b85de56ef70d044638423b195c4eec9557da30713b7da5a
-EBUILD openrc-0.55.1.ebuild 4504 BLAKE2B e2595b1a44e03e1521d36cf996b0f483c139534627a8217e6af4f42970464e4fd9aba76e97955012273340617e071f3e02e8358c6aa2d711138d32ccd9486c0e SHA512 cc1ff04277c473326134097a9ef86bf1287d88e76113d3d97c5aef3c5180c27a0cdaed6c0f24e8c0ab478570fdff2d611bdb4698e5147cd663a531b48d93b6b0
EBUILD openrc-0.56.ebuild 4412 BLAKE2B de11738b5d56f4db2769053c3b3ef91a76c12d0b83b78f04330275cb69fab7ef90006d2a9fcc7c37cadc6c7470567b06624cd47c44279e00dae0441e0af689b1 SHA512 0e5089ee0e15430e8922982d906102a0d0b3d6bc8f1b00ce41537eb7545634b00f8ca72ed3429c170a3e56223bd7287d17fe5d54e5e322f0ece70c5f8f6424e9
-EBUILD openrc-0.60.1.ebuild 4472 BLAKE2B a672501a2d5544e135203b102166fdcc805d8fbf71e65d0ec085d4772737196942773b723abfd3d8909967172d3e89efc2b68ed35a257d7847f7073ce9c9d794 SHA512 7b6ac24bf9611617211bfd59f03e9a72b8912e3d2f0543e6f772da53f5da455766b71b1d6ee1b73db2325aa1d168008af811133433e660996e519e3b13f72d39
EBUILD openrc-0.61.ebuild 4507 BLAKE2B 9ef5b417bb052eec9ab482690a0abbdc1decfaede5fff396bc53efb16bb35372af7c9a17c1874b230d03752d27fcf7106cbdd3c5efd4d8a80b553d5e13eab091 SHA512 26bed8da6a2296ef0b70273e43b2a811e8937f43a2abcbf22049cc42bcb8025e3e5e65b4ad40e0dac2276edd9fbb2b3214845b2d04aebcd8afb5514dbb6da40f
EBUILD openrc-9999.ebuild 4507 BLAKE2B 9ef5b417bb052eec9ab482690a0abbdc1decfaede5fff396bc53efb16bb35372af7c9a17c1874b230d03752d27fcf7106cbdd3c5efd4d8a80b553d5e13eab091 SHA512 26bed8da6a2296ef0b70273e43b2a811e8937f43a2abcbf22049cc42bcb8025e3e5e65b4ad40e0dac2276edd9fbb2b3214845b2d04aebcd8afb5514dbb6da40f
MISC metadata.xml 842 BLAKE2B 696a5ccdf7eca47ac64ee7f317817a06d93664bcbaa3e94cc4420cc9452c97781d69b6b259350a4c5caf681c2e3394019f9f208eec661c861f3f6e3f5c214542 SHA512 dee510e527b885c19b57f5831081d47a422c88d65b7d50dc5c3e74c0a439ddbd1d1d87e241734d08e35a7551b500ab25d01f7a6be73e36dccde576df59974f36
diff --git a/sys-apps/openrc/openrc-0.55.1.ebuild b/sys-apps/openrc/openrc-0.55.1.ebuild
deleted file mode 100644
index 5a2ce0f4655e..000000000000
--- a/sys-apps/openrc/openrc-0.55.1.ebuild
+++ /dev/null
@@ -1,164 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit meson pam
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="https://github.com/openrc/openrc/"
-
-if [[ ${PV} =~ ^9{4,}$ ]]; then
- EGIT_REPO_URI="https://github.com/OpenRC/${PN}.git"
- inherit git-r3
-else
- SRC_URI="https://github.com/OpenRC/openrc/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="audit bash caps debug pam newnet +netifrc selinux s6 +sysvinit sysv-utils unicode"
-
-COMMON_DEPEND="
- pam? ( sys-libs/pam )
- audit? ( sys-process/audit )
- caps? ( sys-libs/libcap )
- sys-process/psmisc
- selinux? (
- sys-apps/policycoreutils
- >=sys-libs/libselinux-2.6
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/os-headers"
-RDEPEND="${COMMON_DEPEND}
- bash? ( app-shells/bash )
- sysv-utils? (
- !sys-apps/systemd[sysv-utils(-)]
- !sys-apps/sysvinit
- )
- !sysv-utils? (
- sysvinit? ( >=sys-apps/sysvinit-2.86-r6[selinux?] )
- s6? ( sys-apps/s6-linux-init[sysv-utils(-)] )
- )
- virtual/tmpfiles
- selinux? (
- >=sec-policy/selinux-base-policy-2.20170204-r4
- >=sec-policy/selinux-openrc-2.20170204-r4
- )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_configure() {
- local emesonargs=(
- $(meson_feature audit)
- "-Dbranding=\"Gentoo Linux\""
- $(meson_feature caps capabilities)
- $(meson_use newnet)
- -Dos=Linux
- $(meson_use pam)
- $(meson_feature selinux)
- -Drootprefix="${EPREFIX}"
- -Dshell=$(usex bash /bin/bash /bin/sh)
- $(meson_use sysv-utils sysvinit)
- )
- # export DEBUG=$(usev debug)
- meson_src_configure
-}
-
-# 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}"
-}
-
-set_config_yes_no() {
- set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
- meson_install
-
- keepdir /lib/rc/tmp
-
- # 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}"/etc/runlevels/boot/consolefont
- fi
-
- # Support for logfile rotation
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/openrc.logrotate openrc
-
- if use pam; then
- # install gentoo pam.d files
- newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
- newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon
- fi
-
- # install documentation
- dodoc *.md
-}
-
-pkg_preinst() {
- # 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 /sbin/sulogin "#" test -e /sbin/sulogin
- return 0
-}
-
-pkg_postinst() {
- 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
-
- 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/connman,"
- ewarn " net-misc/NetworkManager, or net-vpn/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
-
- # added for 0.45 to handle seedrng/urandom switching (2022-06-07)
- for v in ${REPLACING_VERSIONS}; do
- [[ -x $(type rc-update) ]] || continue
- if ver_test $v -lt 0.45; then
- if rc-update show boot | grep -q urandom; then
- rc-update del urandom boot
- rc-update add seedrng boot
- fi
- fi
- done
-}
diff --git a/sys-apps/openrc/openrc-0.60.1.ebuild b/sys-apps/openrc/openrc-0.60.1.ebuild
deleted file mode 100644
index 0d8bd26defb3..000000000000
--- a/sys-apps/openrc/openrc-0.60.1.ebuild
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit eapi9-ver meson pam
-
-DESCRIPTION="OpenRC manages the services, startup and shutdown of a host"
-HOMEPAGE="https://github.com/openrc/openrc/"
-
-if [[ ${PV} =~ ^9{4,}$ ]]; then
- EGIT_REPO_URI="https://github.com/OpenRC/${PN}.git"
- inherit git-r3
-else
- SRC_URI="https://github.com/OpenRC/openrc/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-fi
-
-LICENSE="BSD-2"
-SLOT="0"
-IUSE="audit bash debug pam newnet +netifrc selinux s6 +sysvinit sysv-utils unicode"
-
-COMMON_DEPEND="
- sys-libs/libcap
- sys-process/psmisc
- pam? ( sys-libs/pam )
- audit? ( sys-process/audit )
- selinux? (
- sys-apps/policycoreutils
- >=sys-libs/libselinux-2.6
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/os-headers"
-RDEPEND="${COMMON_DEPEND}
- bash? ( app-shells/bash )
- sysv-utils? (
- !sys-apps/systemd[sysv-utils(-)]
- !sys-apps/sysvinit
- )
- !sysv-utils? (
- sysvinit? ( >=sys-apps/sysvinit-2.86-r6[selinux?] )
- s6? ( sys-apps/s6-linux-init[sysv-utils(-)] )
- )
- virtual/tmpfiles
- selinux? (
- >=sec-policy/selinux-base-policy-2.20170204-r4
- >=sec-policy/selinux-openrc-2.20170204-r4
- )
-"
-
-PDEPEND="netifrc? ( net-misc/netifrc )"
-
-src_configure() {
- local emesonargs=(
- --bindir=/bin
- --sbindir=/sbin
- $(meson_feature audit)
- "-Dbranding=\"Gentoo Linux\""
- $(meson_use newnet)
- -Dos=Linux
- $(meson_use pam)
- $(meson_feature selinux)
- -Dshell=$(usex bash /bin/bash /bin/sh)
- $(meson_use sysv-utils sysvinit)
- )
- # export DEBUG=$(usev debug)
- meson_src_configure
-}
-
-# 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}"
-}
-
-set_config_yes_no() {
- set_config "$1" "$2" YES NO "${@:3}"
-}
-
-src_install() {
- meson_install
-
- keepdir /lib/rc/tmp
-
- # 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}"/etc/runlevels/boot/consolefont
- fi
-
- # Support for logfile rotation
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/openrc.logrotate openrc
-
- if use pam; then
- # install gentoo pam.d files
- newpamd "${FILESDIR}"/start-stop-daemon.pam start-stop-daemon
- newpamd "${FILESDIR}"/start-stop-daemon.pam supervise-daemon
- pamd_mimic system-local-login openrc-user session
- fi
-
- # install documentation
- dodoc *.md
-}
-
-pkg_preinst() {
- # 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 /sbin/sulogin "#" test -e /sbin/sulogin
- return 0
-}
-
-pkg_postinst() {
- 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
-
- 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/connman,"
- ewarn " net-misc/NetworkManager, or net-vpn/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
-
- # added for 0.45 to handle seedrng/urandom switching (2022-06-07)
- if ver_replacing -lt 0.45 && ! [[ -x $(type rc-update) ]]; then
- if rc-update show boot | grep -q urandom; then
- rc-update del urandom boot
- rc-update add seedrng boot
- fi
- fi
-}