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/, sys-fs/lxcfs/files/
Date: Thu, 28 Jan 2016 16:49:22
Message-Id: 1453999790.df4932ee6d37ceb18153bc065d50e2b1f44ec7b4.stasibear@gentoo
1 commit: df4932ee6d37ceb18153bc065d50e2b1f44ec7b4
2 Author: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 16:49:50 2016 +0000
4 Commit: Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 16:49:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df4932ee
7
8 sys-fs/lxcfs: bump to 0.17
9
10 Adds a PAM module
11
12 Package-Manager: portage-2.2.27
13
14 sys-fs/lxcfs/Manifest | 1 +
15 sys-fs/lxcfs/files/lxcfs-0.17.initd | 27 +++++++++++++++++
16 sys-fs/lxcfs/files/lxcfs-0.17.service | 13 ++++++++
17 sys-fs/lxcfs/lxcfs-0.17.ebuild | 57 +++++++++++++++++++++++++++++++++++
18 4 files changed, 98 insertions(+)
19
20 diff --git a/sys-fs/lxcfs/Manifest b/sys-fs/lxcfs/Manifest
21 index 2352b2f..71c4754 100644
22 --- a/sys-fs/lxcfs/Manifest
23 +++ b/sys-fs/lxcfs/Manifest
24 @@ -1,3 +1,4 @@
25 DIST lxcfs-0.12.tar.gz 34700 SHA256 89fc1caf3787b99dc26dc4b6b35fe216aad09b35c46e4be1d75c0e136f53702c SHA512 0145fe6252990bc14e6db32ab05337df9899c0e4d02ced35a5693da49aa84b4932f3c3bf58422a6d3c12c35a5db73169c4ab79448c928caae61996b0c92b908e WHIRLPOOL 940c9c2dd32547cb1a2a98423e03b3a9b7e8bae00775b45a8bdd7a99ee05ffa9bdf24e863ca65944abef2526d11b6b5532299aabc4ae50c97f42b3c2187ada5b
26 DIST lxcfs-0.13.tar.gz 35046 SHA256 a0280b1080c95062d75fa0a3f0e743849c7cd8a88b49ff8323a665cbac75224a SHA512 bca32de4857dbcafeca0d206fd202223b35aa5918ffee9d88486cec0d7c686e9b258918204f340f666fb3ac5d382ee84706db4f5268e98c8153e4ccc5de12595 WHIRLPOOL d074d482461e8f98d55f9919eabd98cc6c015fce7f731bb99122c7b16bf40faa37a7c3ffbe2e7aa7375a0313c00e508d79863f1a60e53ab584696fe5abaec5dc
27 DIST lxcfs-0.16.tar.gz 35307 SHA256 a43c303ec46f4f25b14b7973726b2dc04231a126763b9fe6e0b080d608c04086 SHA512 536b7b6109b2b9d508c37baa1e4824d0cac37eadc2c046f49db89e24adb5474d6a67410e3c0cbb970c73d2dfe7e3757a4ce08577018c2fdb787668ed31af3a03 WHIRLPOOL 718505531388f517b154aff3cca18d5526a9d18163e22e95a5cd496757f3261b2342d52f0de704d9fe7d41d5623099f3c41493cd17668fc74facf2987b27eea5
28 +DIST lxcfs-0.17.tar.gz 40501 SHA256 bcfe14a1ab4b717af1750b04c891a70b59f167d166c2db74984610041c926745 SHA512 dbc38265a65056330e46b8cc56558c6d14e13102c5e6c65a446749f5370c25d70a3a008d22c64b7d435c60e31bbe3efba887fd4f98c0a62fb5ad60c15366b174 WHIRLPOOL af4c0b03ede15414b53670a1363fa240986252b0ad1de8b0e13f99150ef4b2d419f63b6f96e94015344665c118c8599e1e97fb94854be89fc884ba40b96ec2c0
29
30 diff --git a/sys-fs/lxcfs/files/lxcfs-0.17.initd b/sys-fs/lxcfs/files/lxcfs-0.17.initd
31 new file mode 100755
32 index 0000000..a850214
33 --- /dev/null
34 +++ b/sys-fs/lxcfs/files/lxcfs-0.17.initd
35 @@ -0,0 +1,27 @@
36 +#!/sbin/runscript
37 +# Copyright 1999-2015 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +DAEMON=/usr/bin/lxcfs
42 +PIDFILE=/run/lxcfs.pid
43 +
44 +start() {
45 + ebegin "Starting lxcfs"
46 +
47 + start-stop-daemon --start \
48 + --pidfile ${PIDFILE} \
49 + --exec ${DAEMON} \
50 + --background \
51 + --make-pidfile \
52 + -- \
53 + -f -o allow_other /var/lib/lxcfs
54 +
55 + eend $?
56 +}
57 +
58 +stop() {
59 + ebegin "Stopping lxcfs"
60 + start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
61 + eend $?
62 +}
63
64 diff --git a/sys-fs/lxcfs/files/lxcfs-0.17.service b/sys-fs/lxcfs/files/lxcfs-0.17.service
65 new file mode 100644
66 index 0000000..ff737c7
67 --- /dev/null
68 +++ b/sys-fs/lxcfs/files/lxcfs-0.17.service
69 @@ -0,0 +1,13 @@
70 +[Unit]
71 +Description=FUSE filesystem for LXC
72 +ConditionVirtualization=!container
73 +Before=lxc.service
74 +
75 +[Service]
76 +ExecStart=/usr/bin/lxcfs -f -o allow_other /var/lib/lxcfs
77 +KillMode=none
78 +Restart=on-failure
79 +ExecStop=/usr/bin/fusermount -u /var/lib/lxcfs
80 +
81 +[Install]
82 +WantedBy=multi-user.target
83
84 diff --git a/sys-fs/lxcfs/lxcfs-0.17.ebuild b/sys-fs/lxcfs/lxcfs-0.17.ebuild
85 new file mode 100644
86 index 0000000..21f896c
87 --- /dev/null
88 +++ b/sys-fs/lxcfs/lxcfs-0.17.ebuild
89 @@ -0,0 +1,57 @@
90 +# Copyright 1999-2016 Gentoo Foundation
91 +# Distributed under the terms of the GNU General Public License v2
92 +# $Id$
93 +
94 +EAPI=5
95 +
96 +inherit eutils systemd vcs-snapshot
97 +DESCRIPTION="FUSE filesystem for LXC"
98 +HOMEPAGE="https://linuxcontainers.org/lxcfs/introduction/"
99 +LICENSE="Apache-2.0"
100 +SLOT="0"
101 +
102 +if [[ ${PV} == "9999" ]] ; then
103 + EGIT_REPO_URI="https://github.com/lxc/lxcfs.git"
104 + EGIT_BRANCH="master"
105 + inherit git-r3
106 + SRC_URI=""
107 + KEYWORDS=""
108 +else
109 + SRC_URI="https://github.com/lxc/lxcfs/archive/${P}.tar.gz"
110 + KEYWORDS="~amd64"
111 +fi
112 +
113 +#IUSE="test"
114 +
115 +# Omit all dbus. Upstream appears to require it because systemd, but
116 +# lxcfs makes no direct use of dbus.
117 +RDEPEND="
118 + dev-libs/glib:2
119 + sys-fs/fuse
120 + virtual/pam
121 +"
122 +DEPEND="
123 + sys-apps/help2man
124 + ${RDEPEND}
125 +"
126 +
127 +src_prepare() {
128 + ./bootstrap.sh || die "Failed to bootstrap configure files"
129 +}
130 +
131 +src_configure() {
132 + econf --localstatedir=/var
133 +}
134 +
135 +# Test suite fails for me
136 +# src_test() {
137 +# emake tests
138 +# tests/main.sh || die "Tests failed"
139 +# }
140 +
141 +src_install() {
142 + default
143 + dodir /var/lib/lxcfs
144 + newinitd "${FILESDIR}"/${P}.initd lxcfs
145 + systemd_newunit "${FILESDIR}/${P}.service" lxcfs.service
146 +}