]> git.proxmox.com Git - criu.git/commitdiff
Initial commit
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 7 May 2015 10:08:51 +0000 (12:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 May 2015 11:25:13 +0000 (13:25 +0200)
Makefile [new file with mode: 0644]
criu.tgz [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/criu.install [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..eef1d1b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+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}
diff --git a/criu.tgz b/criu.tgz
new file mode 100644 (file)
index 0000000..77b7523
Binary files /dev/null and b/criu.tgz differ
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..8143d2a
--- /dev/null
@@ -0,0 +1,5 @@
+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
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..191bb21
--- /dev/null
@@ -0,0 +1,39 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..442729b
--- /dev/null
@@ -0,0 +1,26 @@
+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".
diff --git a/debian/criu.install b/debian/criu.install
new file mode 100644 (file)
index 0000000..ad9803c
--- /dev/null
@@ -0,0 +1,9 @@
+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
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..70f2e10
--- /dev/null
@@ -0,0 +1,2 @@
+README
+debian/SOURCE
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..5f54435
--- /dev/null
@@ -0,0 +1,32 @@
+#!/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/
+
+
+
+