summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-03-03 12:40:56 -0500
committerMike Gilbert <floppym@gentoo.org>2023-03-06 13:01:55 -0500
commitb5a24272500b660e7f71352a5f4eb8779e0adfc3 (patch)
tree4d32142b6fabdd8fdda858dbc0a3922aa17531e5 /sys-apps/config-site
parentdev-python/sqlalchemy: Bump to 2.0.5 (diff)
downloadgentoo-b5a24272500b660e7f71352a5f4eb8779e0adfc3.tar.gz
gentoo-b5a24272500b660e7f71352a5f4eb8779e0adfc3.tar.bz2
gentoo-b5a24272500b660e7f71352a5f4eb8779e0adfc3.zip
sys-apps/config-site: new package, add 0
Closes: https://github.com/gentoo/gentoo/pull/29911 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/config-site')
-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
3 files changed, 41 insertions, 0 deletions
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>