]> git.proxmox.com Git - lxcfs.git/commitdiff
initial import
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 6 Apr 2015 13:55:29 +0000 (15:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Apr 2015 08:34:28 +0000 (10:34 +0200)
Makefile [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/lxcfs.service [new file with mode: 0644]
debian/manpages [new file with mode: 0644]
debian/rules [new file with mode: 0755]
lxcfs.tgz [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..ee77d5c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,52 @@
+RELEASE=4.0
+
+PACKAGE=lxcfs
+PKGVER=0.7
+DEBREL=pve1
+
+SRCDIR=${PACKAGE}
+SRCTAR=${SRCDIR}.tgz
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
+DEB=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb
+
+all: ${DEB}
+
+deb ${DEB}: ${SRCTAR}
+       rm -rf ${SRCDIR}
+       tar xf ${SRCTAR}
+       cp -a debian ${SRCDIR}/debian
+       echo "git clone git://git.proxmox.com/git/lxc.git\\ngit checkout ${GITVERSION}" >  ${SRCDIR}/debian/SOURCE
+       cd ${SRCDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
+       #lintian ${DEB}
+
+
+.PHONY: download
+download ${SRCTAR}:
+       rm -rf ${SRCDIR} ${SRCTAR}
+       git clone git://github.com/lxc/lxcfs
+       tar czf ${SRCTAR}.tmp ${SRCDIR}
+       mv ${SRCTAR}.tmp ${SRCTAR}
+
+.PHONY: upload
+upload: ${DEB}
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
+       mkdir -p /pve/${RELEASE}/extra
+       rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
+       rm -f /pve/${RELEASE}/extra/Packages*
+       cp ${DEB} /pve/${RELEASE}/extra
+       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+
+distclean: clean
+
+.PHONY: clean
+clean:
+       rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc 
+       find . -name '*~' -exec rm {} ';'
+
+.PHONY: dinstall
+dinstall: ${DEB}
+       dpkg -i ${DEB}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..21e4d42
--- /dev/null
@@ -0,0 +1,6 @@
+lxcfs (0.7-pve1) unstable; urgency=low
+
+  * assemble package for Proxmox VE
+ -- Proxmox Support Team <support@proxmox.com>  Mon, 06 Apr 2015 15:59:54 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..a0f6c51
--- /dev/null
@@ -0,0 +1,17 @@
+Source: lxcfs
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 9), autotools-dev, dh-autoreconf, help2man,
+  pkg-config, libcgmanager-dev, libfuse-dev, dh-systemd
+Standards-Version: 3.9.5
+Homepage: https://linuxcontainers.org
+
+Package: lxcfs
+Architecture: any
+Depends: cgmanager, ${shlibs:Depends}, ${misc:Depends}
+Description: LXC userspace filesystem
+ LXCFS is a simple userspace filesystem designed to workaround some current
+ limitations of the Linux kernel. The main driver for this work was the
+ need to run systemd based containers as a regular unprivileged user
+ while still allowing systemd inside the container to interact with cgroups. 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..22585a9
--- /dev/null
@@ -0,0 +1,48 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lxcfs
+Upstream-Contact: lxc-devel@lists.linuxcontainers.org
+Source: https://linuxcontainers.org/lxcfs/downloads
+
+Files: *
+Copyright: 2014-2015 Canonical Ltd.
+License: Apache-2
+
+Files: cgmanager.c cgmanager.h
+Copyright: 2014-2015 Canonical Ltd.
+           2007-2008 IBM Corp.
+License: LGPL-2.1+
+
+License: Apache-2
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache License 2.0 can
+ be found in "/usr/share/common-licenses/Apache-2.0"
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the full text of the GNU Lesser General Public
+ License version 2.1 can be found in the file
+ `/usr/share/common-licenses/LGPL-2.1'.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..298dbbc
--- /dev/null
@@ -0,0 +1 @@
+/var/lib/lxcfs
diff --git a/debian/lxcfs.service b/debian/lxcfs.service
new file mode 100644 (file)
index 0000000..b8e1f71
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=FUSE filesystem for LXC
+ConditionVirtualization=!container
+Before=lxc.service
+After=cgmanager.service
+Requires=cgmanager.service
+
+[Service]
+ExecStart=/usr/bin/lxcfs -f -s -o allow_other /var/lib/lxcfs/
+KillMode=process
+Restart=on-failure
+ExecStopPost=-/bin/fusermount -u /var/lib/lxcfs
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/manpages b/debian/manpages
new file mode 100644 (file)
index 0000000..ae99e28
--- /dev/null
@@ -0,0 +1 @@
+lxcfs.1
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..60d76ba
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+       dh $@  --with autotools_dev,autoreconf,systemd
diff --git a/lxcfs.tgz b/lxcfs.tgz
new file mode 100644 (file)
index 0000000..32a4828
Binary files /dev/null and b/lxcfs.tgz differ