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