diff options
-rw-r--r-- | README.html | 61 | ||||
-rw-r--r-- | metadata/layout.conf | 1 | ||||
-rw-r--r-- | profiles/repo_name | 1 | ||||
-rw-r--r-- | sys-apps/opentmpfiles/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/opentmpfiles/metadata.xml | 15 | ||||
-rw-r--r-- | sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild | 55 | ||||
-rw-r--r-- | virtual/tmpfiles/Manifest | 2 | ||||
-rw-r--r-- | virtual/tmpfiles/metadata.xml | 13 | ||||
-rw-r--r-- | virtual/tmpfiles/tmpfiles-0-r2.ebuild | 14 |
9 files changed, 165 insertions, 0 deletions
diff --git a/README.html b/README.html new file mode 100644 index 0000000..f2a791e --- /dev/null +++ b/README.html @@ -0,0 +1,61 @@ +<h1>opentmpfiles</h1> +<p> + This is an overlay voor the Gentoo Linux distribution, it provides ebuilds for + opentmpfiles which is about to be removed from the official repository in + favor of a systemd version. +</p> +<h2>Why this overlay?</h2> +<p> + Gentoo can be -if you want- a systemd-free distro, it is one of the things i + like about it. Opentmpfiles is Gentoo's implementation of tmpfiles and it is + about to be replaced by the systemd version of tmpfiles. There has been + <a href="https://forums.gentoo.org/viewtopic-t-1138687.html">quite some + discussion</a> about that and I created this overlay to keep opentmpfiles. +</p> +<h2>What is in this overlay?</h2> +<p> + This overlay provides two packages: +</p> +<ul> + <li>virtual/tmpfiles, modified to only have opentmpfiles</li> + <li>sys-apps/opentmpfiles, only modified to have an additional SRC_URI</li> +</ul> +<h2>How to use this overlay?</h2> +<p> + First you'll have to clone this overlay on a place you like, a common place + these days is <b>/var/db/repos</b>. So cd into that directory and use + <b>git clone https://code.pa4wdh.nl.eu.org/gentoo/opentmpfiles</b>, this will + create a directory called opentmpfiles with the overlay in it. +</p> +<p> + Next you have to make portage aware of the repo, for that you'll have to + create a config file under <b>/etc/portage/repos.conf</b>. Create a file + called <b>opentmpfiles.conf</b> and give it these contents: +</p> +<pre> +[opentmpfiles] +location = /var/db/repos/opentmpfiles +sync-type = git +sync-uri = https://code.pa4wdh.nl.eu.org/gentoo/opentmpfiles +</pre> +<p> + If you placed the overlay on a different place than <b>/var/db/repos</b> make + sure to adapt the <b>location</b> line to your needs. +</p> +<p> + In the official Gentoo repository the package sys-apps/opentmpfiles is still + masked, so you still have to unmask it to be able to use it. Add + sys-apps/opentmpfiles to /etc/portage/package.unmask to do that. +</p> +<h2>What can i do with this?</h2> +<p> + This overlay will help you to keep opentmpfiles, eliminating an other systemd + component from your system. +</p> +<p> + If you have any feedback on this overlay, you're quite likely to find me on + the <a href="https://forums.gentoo.org">Gentoo forums</a>. +</p> +<p> + Have fun! +</p> diff --git a/metadata/layout.conf b/metadata/layout.conf new file mode 100644 index 0000000..d43e61c --- /dev/null +++ b/metadata/layout.conf @@ -0,0 +1 @@ +masters = gentoo diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..6eac199 --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +opentmpfiles diff --git a/sys-apps/opentmpfiles/Manifest b/sys-apps/opentmpfiles/Manifest new file mode 100644 index 0000000..3147d0b --- /dev/null +++ b/sys-apps/opentmpfiles/Manifest @@ -0,0 +1,3 @@ +DIST opentmpfiles-0.2.tar.gz 5711 BLAKE2B e1ee7820b2d184d18e63e7e9d93227bb301eb82be8c2b6021c7a1092f55a4ca2bb5dfb7494ff00c3b6debace1963f6c89011ff557f665f0a93c907bd759a4c6f SHA512 bc384cc9156ba6c54d3308ddad4d26b1877f020aa8558e82df2ed49ffa65e0fed5a49eaa11b27193bfe2ad11a4d7368f7cdbc225b820b309af3b299327ddb07b +EBUILD opentmpfiles-0.2.ebuild 1437 BLAKE2B 3f79381bb031c46df9123a53313ea23471a145d08d48a821c373e8d232aa59c75131c2f42e8092a5a34fd21afd96e4608673121eb4e6611d8f35e476fa73c2bd SHA512 ce42fb5cbd88a53fb8093d8551470aefd50ddd61f6e5ebab40e7c7e43c870f83ba80c550d0ae48ba57e31e479d6f4761312f78433a4fe39359aa1e6c637d7a84 +MISC metadata.xml 445 BLAKE2B 4aad5dcfe48ca38a0de24e7c5a1fa53ec639827f9caa2f03c71fb2c054d74de487cda2eb7c8efccd20d5012955163bd9cef7f73f892a14e8ffd63bb73878dd90 SHA512 9dd3d1e30ceff27dbe6b5250ca0915d31957f94f830236b385d2cfcf2e28806d8fac23220148d7a7cfd09f73136e0bc728e1c289da77f939faff2c2d5c55dd6b diff --git a/sys-apps/opentmpfiles/metadata.xml b/sys-apps/opentmpfiles/metadata.xml new file mode 100644 index 0000000..e38bd1f --- /dev/null +++ b/sys-apps/opentmpfiles/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <maintainer type="project"> + <email>openrc@gentoo.org</email> + <name>Gentoo OpenRC Team</name> + </maintainer> + <upstream> + <remote-id type="github">openrc/opentmpfiles</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild new file mode 100644 index 0000000..021301a --- /dev/null +++ b/sys-apps/opentmpfiles/opentmpfiles-0.2.ebuild @@ -0,0 +1,55 @@ +# 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/openrc/${PN}" +else + SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz -> + ${P}.tar.gz + https://code.pa4wdh.nl.eu.org/distfiles/${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/openrc/opentmpfiles" + +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 +} diff --git a/virtual/tmpfiles/Manifest b/virtual/tmpfiles/Manifest new file mode 100644 index 0000000..d744db3 --- /dev/null +++ b/virtual/tmpfiles/Manifest @@ -0,0 +1,2 @@ +EBUILD tmpfiles-0-r2.ebuild 444 BLAKE2B 725598051dbd9b2cef3bdd04a3a9c4e4182065cebf7c72b65b1d4cecc1f901d21a85ff5d81610cdbf724be07e6357a622233ebd6f2b23dd44cbc23c96b34f353 SHA512 c426ad83023c567c3a595647827c73700c8dd741b3d2e4b0cafa9de9adf51359b6a9f7971a7df41c90a7964a829083d2c80d8e818770cc3d0ab9650db58a6c21 +MISC metadata.xml 384 BLAKE2B 19518050a59e37d153d1cdeab3a6382be06f92310cdb206caee2bb99be68da0fe11f9eb73566d39de39da81faf1f6698399bcc31aa124f05ce94159e44585e5a SHA512 d77fe711ec2dbaed1da39947d529ee0ac42173651c58f6be46c98f59811185646cb41ff6c4e308d424f0697dd37e4645d79e6d288f9e2d2fcb18720dece7ade6 diff --git a/virtual/tmpfiles/metadata.xml b/virtual/tmpfiles/metadata.xml new file mode 100644 index 0000000..73e2043 --- /dev/null +++ b/virtual/tmpfiles/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <maintainer type="person"> + <email>gyakovlev@gentoo.org</email> + <name>Georgy Yakovlev</name> + </maintainer> + <stabilize-allarches/> +</pkgmetadata> diff --git a/virtual/tmpfiles/tmpfiles-0-r2.ebuild b/virtual/tmpfiles/tmpfiles-0-r2.ebuild new file mode 100644 index 0000000..c88d1d9 --- /dev/null +++ b/virtual/tmpfiles/tmpfiles-0-r2.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Virtual to select between different tmpfiles.d handlers" +SLOT="0" +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" + +RDEPEND=" + || ( + sys-apps/opentmpfiles + )" + |