aboutsummaryrefslogtreecommitdiff
path: root/sys-apps
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/hardenedtmpfiles/Manifest1
-rw-r--r--sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-apps/hardenedtmpfiles/Manifest b/sys-apps/hardenedtmpfiles/Manifest
new file mode 100644
index 0000000..bf01c11
--- /dev/null
+++ b/sys-apps/hardenedtmpfiles/Manifest
@@ -0,0 +1 @@
+DIST hardenedtmpfiles-0.5.3.tar.gz 8092 BLAKE2B 8aa2abdfbf7e6cbd3e1cc5adcef086acf6b71f07d59e2a3528ced05f6fe87adcc7d4dce40c5b769e6e50593a1d5a63f692bb53b6376c2b0e42c5f01de4dd2986 SHA512 b1a88519e69bae0015f9bced3e785bedb6328abc6f044748cc6a9a54868daa60ae00aa1353098b05484b455e92d9d57671ac4ba97fb66f9c3a3c795e70459121
diff --git a/sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild b/sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild
new file mode 100644
index 0000000..70c39be
--- /dev/null
+++ b/sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit prefix
+
+if [[ ${PV} = 9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/KenjiBrown/${PN}"
+else
+ SRC_URI="https://github.com/KenjiBrown/${PN}/archive/${PV}.tar.gz ->
+ ${P}.tar.gz"
+ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k mips ppc ppc64 riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files"
+HOMEPAGE="https://github.com/KenjiBrown/hardenedtmpfiles"
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="selinux"
+
+RDEPEND="!<sys-apps/openrc-0.23
+ !sys-apps/opentmpfiles
+ selinux? ( sec-policy/selinux-base-policy )"
+
+src_prepare() {
+ default
+ hprefixify tmpfiles
+}
+src_install() {
+ emake DESTDIR="${ED}" install
+ einstalldocs
+ cd openrc
+ for f in opentmpfiles-dev opentmpfiles-setup; do
+ newconfd ${f}.confd ${f}
+ newinitd ${f}.initd ${f}
+ done
+}
+
+add_service() {
+ local initd=$1
+ local runlevel=$2
+
+ elog "Auto-adding '${initd}' service to your ${runlevel} runlevel"
+ mkdir -p "${EROOT}"etc/runlevels/${runlevel}
+ ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd}
+}
+
+pkg_postinst() {
+ if [[ -z $REPLACING_VERSIONS ]]; then
+ add_service opentmpfiles-dev sysinit
+ add_service opentmpfiles-setup boot
+ fi
+}