RELEASE=4.0
+PACKAGE=lxc
+LXCVER=1.1.1
+DEBREL=1
-SRCDIR=lxc
+SRCDIR=${PACKAGE}
SRCTAR=${SRCDIR}.tgz
-all: ${SRCTAR}
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+DEBS= \
+${PACKAGE}_${LXCVER}-${DEBREL}_amd64.deb \
+${PACKAGE}-dbg_${LXCVER}-${DEBREL}_amd64.deb
-:PHONY: download
+all: ${DEBS}
+ echo ${DEBS}
+
+deb ${DEBS}: ${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 ${DEBS}
+
+
+.PHONY: download
download ${SRCTAR}:
rm -rf ${SRCDIR} ${SRCTAR}
git clone git://github.com/lxc/lxc
tar czf ${SRCTAR}.tmp ${SRCDIR}
mv ${SRCTAR}.tmp ${SRCTAR}
+.PHONY: upload
+upload: ${DEBS}
+ 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/${PACKAGE}-dbg_*.deb
+ rm -f /pve/${RELEASE}/extra/Packages*
+ cp ${DEBS} /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
+ rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc
find . -name '*~' -exec rm {} ';'
+
+.PHONY: dinstall
+dinstall: ${DEBS}
+ dpkg -i ${DEBS}
--- /dev/null
+lxc (1.1.1-1) unstable; urgency=low
+
+ * Initial release for Proxmox VE
+
+ -- Proxmox Support Team <support@proxmox.com> Sat, 04 Apr 2015 14:43:25 +0200
--- /dev/null
+Source: lxc
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends: debhelper (>= 9), autotools-dev, libapparmor-dev, docbook2x
+Standards-Version: 3.9.5
+Homepage: https://linuxcontainers.org
+
+Package: lxc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+Description: Linux containers usersapce tools
+ Containers provides resource management through control groups and
+ resource isolation through namespaces. The linux containers, lxc, aims
+ to use these new functionalities to provide an userspace container
+ object which provides full resource isolation and resource control for
+ an applications or a system.
+
+Package: lxc-dbg
+Section: debug
+Architecture: any
+Depends: lxc (= ${binary:Version})
+Description: Debug symbols for LXC
+ This package contains the debug symbols for LXC.
--- /dev/null
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lxc
+Source: http://linuxcontainers.org
+
+Files: *
+Copyright: 1995-2013 Free Software Foundation, Inc.
+License: LGPL-2.1+
+ This program 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 program 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 program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU Lesser General Public License
+ can be found in /usr/share/common-licenses/LGPL-2.1 file.
+
+Files: debian/*
+Copyright: 2015 Proxmox Support Team <support@promxox.com>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package 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 General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
--- /dev/null
+var/cache/lxc
+var/lib/lxc
\ No newline at end of file
--- /dev/null
+usr/bin
+usr/sbin
+usr/share/man/man5
+usr/share/man/man7
+usr/share/man/man1
+usr/share/lxc
+usr/lib/*/*.so.*
+usr/lib/*/lxc/lxc-*
+usr/lib/*/lxc/rootfs
+lib/systemd
+etc
\ No newline at end of file
--- /dev/null
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+
+# main packaging script based on dh7 syntax
+%:
+ dh $@ --with autoreconf,autotools-dev,systemd
+
+override_dh_auto_configure:
+ dh_auto_configure -- \
+ --with-distro=debian \
+ --with-init-script=systemd \
+ --enable-apparmor \
+ --enable-doc \
+ --enable-api-docs \
+ --disable-rpath \
+ --disable-selinux \
+ --enable-bash \
+ --disable-cgmanager \
+ --disable-python \
+ --disable-lua \
+ --disable-examples \
+ --enable-configpath-log
+
+override_dh_strip:
+ dh_strip --dbg-package=lxc-dbg
+
+
+