--- /dev/null
+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}
--- /dev/null
+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
+
--- /dev/null
+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.
--- /dev/null
+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'.
--- /dev/null
+/var/lib/lxcfs
--- /dev/null
+[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
--- /dev/null
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@ --with autotools_dev,autoreconf,systemd