summaryrefslogtreecommitdiff
path: root/sys-apps/config-site
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-06 23:55:40 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-06 23:55:40 +0000
commitf704f050bfdcc3bad4cd597edcce143ca6133848 (patch)
tree6609b8b496dac33c04e8d52c2d80580e46f15cf2 /sys-apps/config-site
parent47223eb70974998c84966981d9e4fc2be27b3f8a (diff)
gentoo auto-resync : 06:03:2023 - 23:55:39
Diffstat (limited to 'sys-apps/config-site')
-rw-r--r--sys-apps/config-site/Manifest3
-rw-r--r--sys-apps/config-site/config-site-0.ebuild24
-rw-r--r--sys-apps/config-site/files/config.site.in10
-rw-r--r--sys-apps/config-site/metadata.xml7
4 files changed, 44 insertions, 0 deletions
diff --git a/sys-apps/config-site/Manifest b/sys-apps/config-site/Manifest
new file mode 100644
index 000000000000..e44cbf0adb5b
--- /dev/null
+++ b/sys-apps/config-site/Manifest
@@ -0,0 +1,3 @@
+AUX config.site.in 311 BLAKE2B 95398d6619e4a02f9a19af7f99e6cd5fa838260b19c97639ae4c98b04d31ef6d255f55d42a3dcf85096b2cbbd701aa87096b61aae0e2df475686a4db70f495fc SHA512 1d23537502b172ee31bd23612dc1ef20ec8c08936c45945d0fbfa0b1d7ddf28fd94a17d8aceeb20e8aeac98b2aa44ec31d4f06e854fc42a97b215211b143d7a8
+EBUILD config-site-0.ebuild 591 BLAKE2B c9aff526bc6221e6e0cb1ff45e5d56f8f9f8944941c76ec42b4b25a26326eeb0a0ea0e396628df549bb5126f7f4037a2d512f0fa679ab19b7b21cd725d38acb0 SHA512 562268105ba346522ce9daeb037c325ec5d8999a5538771f999e10dc61b140018deabedf952fe9c25a46fa9114361a7012103a6c190ba054bc892150e57ae2ba
+MISC metadata.xml 224 BLAKE2B c45ace8978f3aa10354a0e478d1a80fd14c3087658eadaf6416466352c86edf88364681414e4da48f1ec1ee43c260133e682d1658f780e3b9d5ad216d18c5354 SHA512 60d0518e98897d48c04d19ec8ce9b0612560d4899f94ee1b5ee8a48de297f9a7c8fc3cc58112a1a495cd6f4d74580a8c76cf23eeb1312490d247a6aea3be8aa5
diff --git a/sys-apps/config-site/config-site-0.ebuild b/sys-apps/config-site/config-site-0.ebuild
new file mode 100644
index 000000000000..79fa9a781017
--- /dev/null
+++ b/sys-apps/config-site/config-site-0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="config.site to load dropins from config.site.d"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="!<sys-devel/crossdev-20230209-r1"
+
+src_configure() {
+ sed -e "s|@datarootdir@|${EPREFIX}/usr/share|" \
+ "${FILESDIR}/config.site.in" > config.site || die
+}
+
+src_install() {
+ insinto /usr/share
+ doins config.site
+}
diff --git a/sys-apps/config-site/files/config.site.in b/sys-apps/config-site/files/config.site.in
new file mode 100644
index 000000000000..1e732cf28aaa
--- /dev/null
+++ b/sys-apps/config-site/files/config.site.in
@@ -0,0 +1,10 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+for script in "@datarootdir@/config.site.d"/*.conf; do
+ test -f "${script}" || continue
+ test -r "${script}" || continue
+ echo "${0##*/}: loading site script ${script}"
+ . "${script}" || break
+done
+unset script
diff --git a/sys-apps/config-site/metadata.xml b/sys-apps/config-site/metadata.xml
new file mode 100644
index 000000000000..65e1fc82d859
--- /dev/null
+++ b/sys-apps/config-site/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>