1 |
commit: 1b98a2d6dc52987a23e6fcc29cfddd39216c9cdb |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 25 02:06:00 2020 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 25 02:06:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b98a2d6 |
7 |
|
8 |
sys-apps/opentmpfiles: 0.3 bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/741216 |
11 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
12 |
|
13 |
sys-apps/opentmpfiles/Manifest | 1 + |
14 |
sys-apps/opentmpfiles/opentmpfiles-0.3.ebuild | 54 +++++++++++++++++++++++++++ |
15 |
2 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/opentmpfiles/Manifest b/sys-apps/opentmpfiles/Manifest |
18 |
index 9865ce6a8da..57e7b5941b4 100644 |
19 |
--- a/sys-apps/opentmpfiles/Manifest |
20 |
+++ b/sys-apps/opentmpfiles/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST opentmpfiles-0.1.1.tar.gz 5626 BLAKE2B 2b2d21bae0c8280f31ea1ad35cd857a94b3d |
22 |
DIST opentmpfiles-0.1.2.tar.gz 5614 BLAKE2B d49485535bc3b92ba7e9a2af511969b1793d94187a2600b3196314bef8de235fe7a640bb2b7f78f51727f94c18556fc27e7996ffccef71ff94e006b9f9a63810 SHA512 d86ba71e5fe96d7a8e1999e14b0b99c78e850c42fbfefd203916edca593d0269feaf2252aa01cc35a838906fc2909015430f72cde8370e2d5b1d478a11fe456d |
23 |
DIST opentmpfiles-0.1.3.tar.gz 5691 BLAKE2B 56d79f0279a46ed3b4e13f94a7f2c7d494df245a17b8533c48cff357c21db56485bd076e375f3b4e2c9a140a65e8ab472a8a1030bbee0853463f734c316f71e8 SHA512 fd0b10ebfeb621466edadede50ec6e8f415861ab3b14b833c75bd71f7296e9c091e59144d39e1f9efd342b6d97776cade5a692c941085e33e9651fd885da7121 |
24 |
DIST opentmpfiles-0.2.tar.gz 5711 BLAKE2B e1ee7820b2d184d18e63e7e9d93227bb301eb82be8c2b6021c7a1092f55a4ca2bb5dfb7494ff00c3b6debace1963f6c89011ff557f665f0a93c907bd759a4c6f SHA512 bc384cc9156ba6c54d3308ddad4d26b1877f020aa8558e82df2ed49ffa65e0fed5a49eaa11b27193bfe2ad11a4d7368f7cdbc225b820b309af3b299327ddb07b |
25 |
+DIST opentmpfiles-0.3.tar.gz 6831 BLAKE2B bed680dbbf3915086fcd9c47f8fadb25049b4b5f0687b623ece73ae2c40183ba10646c5bc32ec6c8a3d0c493f9a59f16de3d90cf17aa4add6caeead011c665c6 SHA512 02f12d03b75d3df84755dbea2fa27a075ae2b12eb34189aaa532b2b085fb1f455aaf6cc84d56eb7f299fd90922f704fcf0a585f983a7e14dbf843e2ab62de387 |
26 |
|
27 |
diff --git a/sys-apps/opentmpfiles/opentmpfiles-0.3.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..1bdbb4ca414 |
30 |
--- /dev/null |
31 |
+++ b/sys-apps/opentmpfiles/opentmpfiles-0.3.ebuild |
32 |
@@ -0,0 +1,54 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+inherit prefix |
38 |
+ |
39 |
+if [[ ${PV} = 9999* ]]; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/openrc/${PN}" |
42 |
+else |
43 |
+ SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz -> |
44 |
+ ${P}.tar.gz" |
45 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files" |
49 |
+HOMEPAGE="https://github.com/openrc/opentmpfiles" |
50 |
+ |
51 |
+LICENSE="BSD-2" |
52 |
+SLOT="0" |
53 |
+IUSE="selinux" |
54 |
+ |
55 |
+RDEPEND="!<sys-apps/openrc-0.23 |
56 |
+ selinux? ( sec-policy/selinux-base-policy )" |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ hprefixify tmpfiles |
61 |
+} |
62 |
+src_install() { |
63 |
+ emake DESTDIR="${ED}" install |
64 |
+ einstalldocs |
65 |
+ cd openrc |
66 |
+ for f in opentmpfiles-dev opentmpfiles-setup; do |
67 |
+ newconfd ${f}.confd ${f} |
68 |
+ newinitd ${f}.initd ${f} |
69 |
+ done |
70 |
+} |
71 |
+ |
72 |
+add_service() { |
73 |
+ local initd=$1 |
74 |
+ local runlevel=$2 |
75 |
+ |
76 |
+ elog "Auto-adding '${initd}' service to your ${runlevel} runlevel" |
77 |
+ mkdir -p "${EROOT}"etc/runlevels/${runlevel} |
78 |
+ ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd} |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ if [[ -z $REPLACING_VERSIONS ]]; then |
83 |
+ add_service opentmpfiles-dev sysinit |
84 |
+ add_service opentmpfiles-setup boot |
85 |
+ fi |
86 |
+} |