Gentoo Archives: gentoo-commits

From: Erik Mackdanz <stasibear@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/lxcfs/files/, sys-fs/lxcfs/
Date: Sat, 02 Apr 2016 16:02:51
Message-Id: 1459613026.1b09d9fca908fb94df2279400169be39b66a1e22.stasibear@gentoo
1 commit: 1b09d9fca908fb94df2279400169be39b66a1e22
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 16:03:46 2016 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 16:03:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b09d9fc
7
8 sys-fs/lxcfs: bump to 2.0
9
10 Package-Manager: portage-2.2.28
11
12 sys-fs/lxcfs/Manifest | 1 +
13 sys-fs/lxcfs/files/lxcfs-2.0.0.initd | 27 +++++++++++++++++
14 sys-fs/lxcfs/lxcfs-2.0.0.ebuild | 59 ++++++++++++++++++++++++++++++++++++
15 3 files changed, 87 insertions(+)
16
17 diff --git a/sys-fs/lxcfs/Manifest b/sys-fs/lxcfs/Manifest
18 index 8debc47..556cdef 100644
19 --- a/sys-fs/lxcfs/Manifest
20 +++ b/sys-fs/lxcfs/Manifest
21 @@ -1,3 +1,4 @@
22 DIST lxcfs-0.16.tar.gz 35307 SHA256 a43c303ec46f4f25b14b7973726b2dc04231a126763b9fe6e0b080d608c04086 SHA512 536b7b6109b2b9d508c37baa1e4824d0cac37eadc2c046f49db89e24adb5474d6a67410e3c0cbb970c73d2dfe7e3757a4ce08577018c2fdb787668ed31af3a03 WHIRLPOOL 718505531388f517b154aff3cca18d5526a9d18163e22e95a5cd496757f3261b2342d52f0de704d9fe7d41d5623099f3c41493cd17668fc74facf2987b27eea5
23 DIST lxcfs-0.17.tar.gz 40501 SHA256 bcfe14a1ab4b717af1750b04c891a70b59f167d166c2db74984610041c926745 SHA512 dbc38265a65056330e46b8cc56558c6d14e13102c5e6c65a446749f5370c25d70a3a008d22c64b7d435c60e31bbe3efba887fd4f98c0a62fb5ad60c15366b174 WHIRLPOOL af4c0b03ede15414b53670a1363fa240986252b0ad1de8b0e13f99150ef4b2d419f63b6f96e94015344665c118c8599e1e97fb94854be89fc884ba40b96ec2c0
24 +DIST lxcfs-2.0.0.tar.gz 48655 SHA256 4c03114a85aff530bf385b724b992470ffb97c6bf759d61900cb93f4d12c517d SHA512 44b35b6c275366f88e036ed1e136cb193b65024fcbdff250658d360fced14bec84a2bcfa9f8ca28af9205f38babdd5520cfa42a5521cf545c42df80eec40c1b8 WHIRLPOOL 8972fe4838a3ec157479a9bed9404ba51d7ea47efe7e37c2b9f872fcab6068daef6898ef143304868003748a50068cc5634041020d6b6ced0acca97ffd9d8d07
25 DIST lxcfs-2.0.0_beta2.tar.gz 44421 SHA256 4eacbbb51031ebd0776f050d7279b2076f7b4e156503f1bbe88e034f181e1d38 SHA512 d62bccc687873c060f299a726debc4642a0900f7e7a460b5c37dcb0b5d7cb75cd5b98ee03f129ccddbe62085510e1760db73010674333536f7126d01987262f4 WHIRLPOOL 470c6118a5560ff5fd447a409d136453b423d0b27a2f00652316b9415f68e08d349fc0e75edb1d312f7a25709bf96621574bd200c8fc92808a9e4eb59aada971
26
27 diff --git a/sys-fs/lxcfs/files/lxcfs-2.0.0.initd b/sys-fs/lxcfs/files/lxcfs-2.0.0.initd
28 new file mode 100644
29 index 0000000..a850214
30 --- /dev/null
31 +++ b/sys-fs/lxcfs/files/lxcfs-2.0.0.initd
32 @@ -0,0 +1,27 @@
33 +#!/sbin/runscript
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +DAEMON=/usr/bin/lxcfs
39 +PIDFILE=/run/lxcfs.pid
40 +
41 +start() {
42 + ebegin "Starting lxcfs"
43 +
44 + start-stop-daemon --start \
45 + --pidfile ${PIDFILE} \
46 + --exec ${DAEMON} \
47 + --background \
48 + --make-pidfile \
49 + -- \
50 + -f -o allow_other /var/lib/lxcfs
51 +
52 + eend $?
53 +}
54 +
55 +stop() {
56 + ebegin "Stopping lxcfs"
57 + start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
58 + eend $?
59 +}
60
61 diff --git a/sys-fs/lxcfs/lxcfs-2.0.0.ebuild b/sys-fs/lxcfs/lxcfs-2.0.0.ebuild
62 new file mode 100644
63 index 0000000..7cc6d80
64 --- /dev/null
65 +++ b/sys-fs/lxcfs/lxcfs-2.0.0.ebuild
66 @@ -0,0 +1,59 @@
67 +# Copyright 1999-2016 Gentoo Foundation
68 +# Distributed under the terms of the GNU General Public License v2
69 +# $Id$
70 +
71 +EAPI=5
72 +
73 +inherit eutils systemd vcs-snapshot versionator
74 +DESCRIPTION="FUSE filesystem for LXC"
75 +HOMEPAGE="https://linuxcontainers.org/lxcfs/introduction/"
76 +LICENSE="Apache-2.0"
77 +SLOT="0"
78 +
79 +if [[ ${PV} == "9999" ]] ; then
80 + EGIT_REPO_URI="https://github.com/lxc/lxcfs.git"
81 + EGIT_BRANCH="master"
82 + inherit git-r3
83 + SRC_URI=""
84 + KEYWORDS=""
85 +else
86 + # e.g. upstream is 2.0.0.beta2, we want 2.0.0_beta2
87 + UPSTREAM_PV=$(replace_version_separator 3 '.' )
88 + SRC_URI="https://github.com/lxc/lxcfs/archive/${PN}-${UPSTREAM_PV}.tar.gz -> ${P}.tar.gz"
89 + KEYWORDS="~amd64"
90 +fi
91 +
92 +#IUSE="test"
93 +
94 +# Omit all dbus. Upstream appears to require it because systemd, but
95 +# lxcfs makes no direct use of dbus.
96 +RDEPEND="
97 + dev-libs/glib:2
98 + sys-fs/fuse
99 + virtual/pam
100 +"
101 +DEPEND="
102 + sys-apps/help2man
103 + ${RDEPEND}
104 +"
105 +
106 +src_prepare() {
107 + ./bootstrap.sh || die "Failed to bootstrap configure files"
108 +}
109 +
110 +src_configure() {
111 + econf --localstatedir=/var
112 +}
113 +
114 +# Test suite fails for me
115 +# src_test() {
116 +# emake tests
117 +# tests/main.sh || die "Tests failed"
118 +# }
119 +
120 +src_install() {
121 + default
122 + dodir /var/lib/lxcfs
123 + newinitd "${FILESDIR}"/${P}.initd lxcfs
124 + systemd_dounit config/init/systemd/lxcfs.service
125 +}