]> git.proxmox.com Git - lxc.git/commitdiff
add basic debian files
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 4 Apr 2015 13:05:38 +0000 (15:05 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 4 Apr 2015 13:57:34 +0000 (15:57 +0200)
Makefile
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/docs [new file with mode: 0644]
debian/lxc.dirs [new file with mode: 0644]
debian/lxc.install [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index afe9c31967f1fcdfa5b09fd4e780f654e0956f4a..2e268e64facbba1c4d0960be90b63a9b9e043ab7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,56 @@
 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}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..d981821
--- /dev/null
@@ -0,0 +1,5 @@
+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
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..defa9f0
--- /dev/null
@@ -0,0 +1,24 @@
+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. 
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..d0f1874
--- /dev/null
@@ -0,0 +1,42 @@
+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".
+
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..e845566
--- /dev/null
@@ -0,0 +1 @@
+README
diff --git a/debian/lxc.dirs b/debian/lxc.dirs
new file mode 100644 (file)
index 0000000..3d17783
--- /dev/null
@@ -0,0 +1,2 @@
+var/cache/lxc
+var/lib/lxc
\ No newline at end of file
diff --git a/debian/lxc.install b/debian/lxc.install
new file mode 100644 (file)
index 0000000..cd54c17
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..249a3d3
--- /dev/null
@@ -0,0 +1,44 @@
+#!/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
+
+
+