mirror of
https://github.com/KenjiBrown/without-systemd.git
synced 2026-04-07 05:00:05 -04:00
hardenedtmpfiles 0.4
This commit is contained in:
3
sys-apps/hardenedtmpfiles/Manifest
Normal file
3
sys-apps/hardenedtmpfiles/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
DIST hardenedtmpfiles-0.4.tar.gz 7651 BLAKE2B 3e2c31c125d0dc6d24f79ae4a341029743894aca688b5d8435083b4028b37ac67fa93349d10697ea3bf088e96c9fb73de0ba338a5d8ad84de3279fd12763a7fc SHA512 93847188a178b233c068a70d0a1974110f1496bb1b22618106cc95479774650665bd8f73e9fd366c7dd946c0fceec0de2cecfbde2e0518292cf9a037db0f2b5a
|
||||
EBUILD hardenedtmpfiles-0.4.ebuild 1399 BLAKE2B 8c7d6f2c92fd378c4f222caf7d4826b5541488b1c464e30e670aae695a79ec3d2fd3d7520b757a24d7c103449a9fef1f8d066e79f7b3078c577c524501830d1a SHA512 aae5809a6c46fba48169eb2ad8291a140dcd5ec9b6603d8a219907de31543150a3608112a50e62050ea7928afc58c86b1928f2d8a19f37b834dbbdab20c51a84
|
||||
MISC metadata.xml 351 BLAKE2B 758c1e90d003145d7f5a3eaadc796d1e9de90ee5296b8101011cbfe3a8bf7db3dc661b30d7cc24a054f591db32314fb084bde072e98f8bf4d9ed50d727436937 SHA512 ef87ae06ae87b0d08a54a263de575bdac3b74296385a43d3eee483640cb194b30df1d9d56a884ca5b9a31e61af0c215a0921a8bea9c83ef9120bf064c3d8568a
|
||||
54
sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.4.ebuild
Normal file
54
sys-apps/hardenedtmpfiles/hardenedtmpfiles-0.4.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
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
|
||||
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
|
||||
}
|
||||
11
sys-apps/hardenedtmpfiles/metadata.xml
Normal file
11
sys-apps/hardenedtmpfiles/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>sandino@sandino.net</email>
|
||||
<name>Sandino Araico Sánchez</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">KenjiBrown/hardenedtmpfiles</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user