sys-apps/hardenedtmpfiles - 0.5.3 (KBrown-pub)

Search

Install

Install this version:

emerge -a =sys-apps/hardenedtmpfiles-0.5.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-apps/hardenedtmpfiles-0.5.3

Or alternatively:

emerge --autounmask-write -a =sys-apps/hardenedtmpfiles-0.5.3

Package Information

Description:
A standalone utility to process systemd-style tmpfiles.d files
Homepage:
https://github.com/KenjiBrown/hardenedtmpfiles
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
0.5.3 8 ~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 0
View Raw Ebuild
# 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
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-apps/hardenedtmpfiles | euse -E <flag> -p sys-apps/hardenedtmpfiles | euse -D <flag> -p sys-apps/hardenedtmpfiles

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

!<sys-apps/openrc-0.23
	!sys-apps/opentmpfiles
	selinux? ( sec-policy/selinux-base-policy )

Manifest for 0.5.3

Type File Size Source URLs
DIST hardenedtmpfiles-0.5.3.tar.gz 8092 bytes https://github.com/KenjiBrown/hardenedtmpfiles/archive/0.5.3.tar.gz