mirror of
https://github.com/KenjiBrown/without-systemd.git
synced 2026-04-07 05:00:05 -04:00
sys-apps/tmpfilesd-9999: New ebuild
This commit is contained in:
4
sys-apps/tmpfilesd/Manifest
Normal file
4
sys-apps/tmpfilesd/Manifest
Normal file
@@ -0,0 +1,4 @@
|
||||
AUX tmpfilesd-dev.initd 326 BLAKE2B 26bdb25b009e5dc827ffe7bac8cedbbeec769fe5cafb548ee3954cff9aa9c0e929a3016e46ae9031e3f41c36a383b8e1fbc41ef2fef8ba982d0fded4376dacaa SHA512 aa071f44c059b3e91991de06a33117ce06cbbedd4b743481c19815fd4279019422790b642ca41ff08240cef11e42c3b16d20984c31a47bff62d0e75ed6dee600
|
||||
AUX tmpfilesd-setup.initd 309 BLAKE2B d1826d2ef6e8ac0e189ec5bc352d435b34aa1b7052b73bea214260da839f40d27aacb9181d423ef0ba73c47b7719af26baf34921dea9794b8174882d104805c8 SHA512 290e786fa684c148ba24b7768c611e55c8992462064bbeffc6fd5e71045bb67ab61e67c6e175c58478a35dcb6020990179060aecbeb9bea0458bde7be3c30d80
|
||||
EBUILD tmpfilesd-9999.ebuild 1008 BLAKE2B a408cfbe97f3e7f59fae2e46edfb0083ba2f10060b0bad6d63bf944cf947a63d1d4786ecbee5e013d314e565ec35323a0542e1ad5d67d00b979935ad2a7cc9e1 SHA512 5c8c8c5bcdb1d1f92626bbaea8a7023834e6577ed7e9de8b664924d050dd254881484eca5d7d152f05921bc7a433dbb1be6142fbfe00da5913ae3f948d9acb57
|
||||
MISC metadata.xml 338 BLAKE2B 924465e40fbfba90989180d6b963eeb53c84dffe507da0cdb6f8274917b4392299ebbe910c7772c4baf07200816a72ad5168e9142cc23ea6ab27a008130e7ce4 SHA512 191c4613d18a73a3cb89e33ee0986c6a1479f4dd8d7ed6a476fe8bd32a9eef6a6e0e1572969e31a752ce4105434519f2b205ddcfac2811e3beaacebfcef4988b
|
||||
20
sys-apps/tmpfilesd/files/tmpfilesd-dev.initd
Normal file
20
sys-apps/tmpfilesd/files/tmpfilesd-dev.initd
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Released under the MIT license.
|
||||
|
||||
description="Create Static Devices Nodes in /dev"
|
||||
|
||||
depend()
|
||||
{
|
||||
provide tmpfiles-dev tmpfiles.dev
|
||||
use dev-mount
|
||||
before dev
|
||||
keyword -prefix -vserver
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "${description}"
|
||||
tmpfilesd --prefix=/dev --create --boot
|
||||
eend $?
|
||||
}
|
||||
18
sys-apps/tmpfilesd/files/tmpfilesd-setup.initd
Normal file
18
sys-apps/tmpfilesd/files/tmpfilesd-setup.initd
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Released under MIT license.
|
||||
|
||||
description="Create Volatile Files and Directories"
|
||||
|
||||
depend()
|
||||
{
|
||||
provide tmpfiles-setup tmpfiles.setup
|
||||
need localmount
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "${description}"
|
||||
tmpfilesd --create --remove --boot --exclude-prefix=/dev
|
||||
eend $?
|
||||
}
|
||||
11
sys-apps/tmpfilesd/metadata.xml
Normal file
11
sys-apps/tmpfilesd/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">juur/tmpfilesd</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
46
sys-apps/tmpfilesd/tmpfilesd-9999.ebuild
Normal file
46
sys-apps/tmpfilesd/tmpfilesd-9999.ebuild
Normal file
@@ -0,0 +1,46 @@
|
||||
# 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/juur/${PN}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="systemd-tmpfiles replacement; includes support for sysvinit style enviroments"
|
||||
HOMEPAGE="https://github.com/juur/tmpfilesd"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install
|
||||
einstalldocs
|
||||
cd misc
|
||||
insinto /etc/cron.d
|
||||
doins tmpfilesd.cron
|
||||
for f in tmpfilesd-dev tmpfilesd-setup; do
|
||||
newconfd tmpfilesd.sysconfig ${f}
|
||||
newinitd "${FILESDIR}/${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 tmpfilesd-dev sysinit
|
||||
add_service tmpfilesd-setup boot
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user