--- /dev/null
+RELEASE=4.0
+
+PACKAGE=criu
+PKGVER=1.5.2
+DEBREL=1
+
+SRCDIR=criu
+SRCTAR=${SRCDIR}.tgz
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
+DEBS= \
+${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb \
+${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb
+
+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/criu.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} ${SRCTAR}.tmp
+ git clone https://github.com/xemul/${SRCDIR}
+ 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 *_${ARCH}.deb *.changes *.dsc
+ find . -name '*~' -exec rm {} ';'
+
+.PHONY: dinstall
+dinstall: ${DEBS}
+ dpkg -i ${DEBS}
--- /dev/null
+criu (1.5.2-1) unstable; urgency=low
+
+ * Initial release for Proxmox VE
+
+ -- Proxmox Support Team <support@proxmox.com> Thu, 07 May 2015 11:47:29 +0200
--- /dev/null
+Source: criu
+Section: admin
+Priority: optional
+Maintainer: Proxmox Support Team <support@proxmox.com>
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ libprotobuf-dev,
+ protobuf-c-compiler,
+ protobuf-compiler,
+ asciidoc
+Standards-Version: 3.9.5
+Homepage: http://www.criu.org/
+
+Package: criu
+Architecture: amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-ipaddr, python-protobuf
+Description: An utility to checkpoint and restore tasks
+ An utility to checkpoint/restore tasks. Using this tool, you can
+ freeze a running application (or part of it) and checkpoint it to
+ a hard drive as a collection of files. You can then use the files
+ to restore and run the application from the point it was frozen
+ at. The distinctive feature of the CRIU project is that it is
+ mainly implemented in user space.
+
+Package: criu-dbg
+Architecture: amd64
+Section: debug
+Priority: extra
+Depends: criu (= ${binary:Version}), ${misc:Depends}
+Description: An utility to checkpoint and restore tasks (debug)
+ An utility to checkpoint/restore tasks. Using this tool, you can
+ freeze a running application (or part of it) and checkpoint it to
+ a hard drive as a collection of files. You can then use the files
+ to restore and run the application from the point it was frozen
+ at. The distinctive feature of the CRIU project is that it is
+ mainly implemented in user space.
+ .
+ This package contains the debugging symbols.
--- /dev/null
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: criu
+Source: https://github.com/xemul/criu
+
+Files: *
+Copyright: 2011-2015, Parallels Inc.
+License: GPL-2
+
+Files: debian/*
+Copyright: 2015 Proxmox Server Solutions
+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
+etc/logrotate.d/criu-service
+bin/crit
+usr/sbin/criu
+usr/share/man/man8/criu.8
+usr/lib/systemd/system/criu.socket
+usr/lib/systemd/system/criu.service
+usr/lib/x86_64-linux-gnu
+usr/include/criu
+usr/lib/python2.7
--- /dev/null
+README
+debian/SOURCE
\ 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 FEATURE AREAS in dpkg-buildflags(1)
+export DEB_BUILD_MAINT_OPTIONS = hardening=-all
+
+# main packaging script based on dh7 syntax
+%:
+ dh $@ --with python2
+
+
+override_dh_strip:
+ dh_strip --dbg-package=criu-dbg
+
+
+override_dh_auto_test:
+ # this fails - disable and ignore for now
+
+override_dh_install:
+ #dh_install --exclude=.pyc --fail-missing
+ dh_install --exclude=.pyc --fail-missing
+
+override_dh_auto_install:
+ dh_auto_install -- PREFIX="/usr" LOGROTATEDIR="/etc/logrotate.d"
+
+ mv $(CURDIR)/debian/tmp/lib/python2.7 $(CURDIR)/debian/tmp/usr/lib/
+
+
+
+