1 |
commit: 38e69f3759e3753fe58175b42862b9f96de138dd |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 21:48:38 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 22:17:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e69f37 |
7 |
|
8 |
sys-apps/opentmpfiles: 0.1 version bump (initial release) |
9 |
|
10 |
This code is taken from OpenRC, so I have added the appropriate ~arch keywords. |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
sys-apps/opentmpfiles/Manifest | 1 + |
15 |
sys-apps/opentmpfiles/opentmpfiles-0.1.ebuild | 45 +++++++++++++++++++++++++++ |
16 |
2 files changed, 46 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/opentmpfiles/Manifest b/sys-apps/opentmpfiles/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000..8594bea |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/opentmpfiles/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST opentmpfiles-0.1.tar.gz 5592 SHA256 0c7a52d6394dcbe78dd5b4f8fba6fcc66b207389b9a9b85e61a0ab8e9e375bb7 SHA512 f89e0b996a282ba39f5db7d5cf8e3b72672ba2a9f6013512b7169da9886d9d1d00d4de7c68aefdf2afcf24063283183c37a40864b89d25f68484b022fce58773 WHIRLPOOL 307e6094c0e74ceeb15fe84b09e5ea28b47584eb98a7384b9fa18e66ee7d2c2cc6e574fd2142d6373ff0cf8b302f266a2f277f74d6609d213daf0e92198caba4 |
25 |
|
26 |
diff --git a/sys-apps/opentmpfiles/opentmpfiles-0.1.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..011fa7a |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/opentmpfiles/opentmpfiles-0.1.ebuild |
31 |
@@ -0,0 +1,45 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+if [[ ${PV} = 9999* ]]; then |
39 |
+ inherit git-r3 |
40 |
+ EGIT_REPO_URI="git://github.com/openrc/${PN}" |
41 |
+else |
42 |
+ SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz -> |
43 |
+ ${P}.tar.gz" |
44 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files" |
48 |
+HOMEPAGE="https://github.com/openrc/opentmpfiles" |
49 |
+ |
50 |
+LICENSE="BSD-2" |
51 |
+SLOT="0" |
52 |
+IUSE="" |
53 |
+ |
54 |
+RDEPEND="!<sys-apps/openrc-0.23" |
55 |
+ |
56 |
+src_install() { |
57 |
+ default |
58 |
+ cd openrc |
59 |
+ for f in opentmpfiles-dev opentmpfiles-setup; do |
60 |
+ newconfd ${f}.confd ${f} |
61 |
+ newinitd ${f}.initd ${f} |
62 |
+ done |
63 |
+} |
64 |
+ |
65 |
+add_service() { |
66 |
+ local initd=$1 |
67 |
+ local runlevel=$2 |
68 |
+ |
69 |
+ elog "Auto-adding '${initd}' service to your ${runlevel} runlevel" |
70 |
+ ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd} |
71 |
+} |
72 |
+ |
73 |
+pkg_postinst() { |
74 |
+ add_service opentmpfiles-dev sysinit |
75 |
+ add_service opentmpfiles-setup boot |
76 |
+} |