1 |
commit: 68549620265e97d963ebf5d969699b7ebd4eaead |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 13 03:36:10 2018 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 6 03:14:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68549620 |
7 |
|
8 |
sys-apps/opentmpfiles: support Prefix. |
9 |
|
10 |
Reported-By: Paul Preney, Horea Christian, Cyril de Vaucleroy |
11 |
Closes: https://bugs.gentoo.org/644484 |
12 |
|
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
|
15 |
sys-apps/opentmpfiles/opentmpfiles-0.1.3-r1.ebuild | 53 ++++++++++++++++++++++ |
16 |
1 file changed, 53 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/opentmpfiles/opentmpfiles-0.1.3-r1.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.1.3-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..cd2b8eff44b |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/opentmpfiles/opentmpfiles-0.1.3-r1.ebuild |
23 |
@@ -0,0 +1,53 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+inherit prefix |
29 |
+ |
30 |
+if [[ ${PV} = 9999* ]]; then |
31 |
+ inherit git-r3 |
32 |
+ EGIT_REPO_URI="https://github.com/openrc/${PN}" |
33 |
+else |
34 |
+ SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz -> |
35 |
+ ${P}.tar.gz" |
36 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
37 |
+fi |
38 |
+ |
39 |
+DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files" |
40 |
+HOMEPAGE="https://github.com/openrc/opentmpfiles" |
41 |
+ |
42 |
+LICENSE="BSD-2" |
43 |
+SLOT="0" |
44 |
+IUSE="selinux" |
45 |
+ |
46 |
+RDEPEND="!<sys-apps/openrc-0.23 |
47 |
+ selinux? ( sec-policy/selinux-base-policy )" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ hprefixify tmpfiles |
52 |
+} |
53 |
+src_install() { |
54 |
+ emake DESTDIR="${ED}" install |
55 |
+ einstalldocs |
56 |
+ cd openrc |
57 |
+ for f in opentmpfiles-dev opentmpfiles-setup; do |
58 |
+ newconfd ${f}.confd ${f} |
59 |
+ newinitd ${f}.initd ${f} |
60 |
+ done |
61 |
+} |
62 |
+ |
63 |
+add_service() { |
64 |
+ local initd=$1 |
65 |
+ local runlevel=$2 |
66 |
+ |
67 |
+ elog "Auto-adding '${initd}' service to your ${runlevel} runlevel" |
68 |
+ ln -snf /etc/init.d/${initd} "${EROOT}"etc/runlevels/${runlevel}/${initd} |
69 |
+} |
70 |
+ |
71 |
+pkg_postinst() { |
72 |
+ if [[ -z $REPLACING_VERSIONS ]]; then |
73 |
+ add_service opentmpfiles-dev sysinit |
74 |
+ add_service opentmpfiles-setup boot |
75 |
+ fi |
76 |
+} |