Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/opentmpfiles/
Date: Wed, 08 Mar 2017 23:47:38
Message-Id: 1489016825.debdb21e8ecba94baceaa164a5302b0633ad9011.williamh@gentoo
1 commit: debdb21e8ecba94baceaa164a5302b0633ad9011
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 8 23:41:30 2017 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 8 23:47:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=debdb21e
7
8 sys-apps/opentmpfiles: 0.1.3 version bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 sys-apps/opentmpfiles/Manifest | 1 +
13 sys-apps/opentmpfiles/opentmpfiles-0.1.3.ebuild | 47 +++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/sys-apps/opentmpfiles/Manifest b/sys-apps/opentmpfiles/Manifest
17 index b2902bc3701..53c2fd325de 100644
18 --- a/sys-apps/opentmpfiles/Manifest
19 +++ b/sys-apps/opentmpfiles/Manifest
20 @@ -1,3 +1,4 @@
21 DIST opentmpfiles-0.1.1.tar.gz 5626 SHA256 903cdf8eca5ff9577b10fb569cf5f01a132d2c02769ba3536ecf1ba23b05e184 SHA512 9b8bc74c642c42e4591cc98df096f2d74d14acc5e795f49026b37401c795861ffcdf8d505f6e62980bab1cc4ee2b182668bcd5d4f4cea0984b46662643d6a0d5 WHIRLPOOL a2223a5a101b70442e8ac3fa393c93724589738bfe3d899c9843d1f8cfa42db602212771f58e8387083e7e4929dde4b2dc5439eaaf7e071be3e21b6284b81962
22 DIST opentmpfiles-0.1.2.tar.gz 5614 SHA256 63f05adca95ea63fa555d371e8a5d74fe633088893be3a63bff2cdabb7b6bb3b SHA512 d86ba71e5fe96d7a8e1999e14b0b99c78e850c42fbfefd203916edca593d0269feaf2252aa01cc35a838906fc2909015430f72cde8370e2d5b1d478a11fe456d WHIRLPOOL ca349478cb0f0ca565c007b8315e7970c84d628edaf7088e53037679cafb46513cb284ac8c30cb383245368185a6ad6e27cd11c36f7c4c299a774fca856b0e4c
23 +DIST opentmpfiles-0.1.3.tar.gz 5691 SHA256 1fdd4587c62d815296fb4162002cf001e3ed7aae8727d9b4360f527169e6b3be SHA512 fd0b10ebfeb621466edadede50ec6e8f415861ab3b14b833c75bd71f7296e9c091e59144d39e1f9efd342b6d97776cade5a692c941085e33e9651fd885da7121 WHIRLPOOL c91f644a77655267fb8f783c0a11913f442ab9f9c22135d0ccf30dddce544014a083bc1c01e7f20c13630134adf2c51af6c633e7df16e09055c1b48775624e85
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.3.ebuild b/sys-apps/opentmpfiles/opentmpfiles-0.1.3.ebuild
27 new file mode 100644
28 index 00000000000..7688bed5e9d
29 --- /dev/null
30 +++ b/sys-apps/opentmpfiles/opentmpfiles-0.1.3.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +if [[ ${PV} = 9999* ]]; then
38 + inherit git-r3
39 + EGIT_REPO_URI="git://github.com/openrc/${PN}"
40 +else
41 + SRC_URI="https://github.com/openrc/${PN}/archive/${PV}.tar.gz ->
42 + ${P}.tar.gz"
43 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
44 +fi
45 +
46 +DESCRIPTION="A standalone utility to process systemd-style tmpfiles.d files"
47 +HOMEPAGE="https://github.com/openrc/opentmpfiles"
48 +
49 +LICENSE="BSD-2"
50 +SLOT="0"
51 +IUSE="selinux"
52 +
53 +RDEPEND="!<sys-apps/openrc-0.23
54 + selinux? ( sec-policy/selinux-base-policy )"
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 + if [[ -z $REPLACING_VERSIONS ]]; then
75 + add_service opentmpfiles-dev sysinit
76 + add_service opentmpfiles-setup boot
77 + fi
78 +}