aboutsummaryrefslogtreecommitdiff
path: root/sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-22 19:58:35 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-22 19:58:35 +0000
commit693f72fe913fb6b221c59ed1a419ac29b2ee9a61 (patch)
tree050e46498ec1e61316b69aa66e7db285351edfac /sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild
parent6f5a9953a88a0c03f05f3176254da8e14160faf7 (diff)
add hardenedtmpfiles and update glide-bin
Diffstat (limited to 'sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild')
-rw-r--r--sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.5.3-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
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
+}