Add Debian package.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 19 Jul 2010 21:57:56 +0000 (21:57 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 19 Jul 2010 21:57:56 +0000 (21:57 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2898 94cd875c-1c1d-0410-91d2-eb244daf1a30

Makefile.am
contrib/Makefile-files
contrib/make-deb-manifest [new file with mode: 0755]
debian/Makefile-files [new file with mode: 0644]
debian/changelog.in [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/rules [new file with mode: 0755]

index 76910b2..e4c1187 100644 (file)
@@ -233,6 +233,7 @@ include $(top_srcdir)/gentoo/Makefile-files
 if HAVE_PYTHON
 include $(top_srcdir)/python/Makefile-files
 endif
+include $(top_srcdir)/debian/Makefile-files
 
 include $(top_srcdir)/m4/gpgsig.am
 include $(top_srcdir)/m4/validate.am
index aafacf2..5beec6f 100644 (file)
@@ -37,6 +37,7 @@ EXTRA_DIST +=                         $(contrib_subst_SRCS) \
                                        contrib/yum-3.2.0-chroot.patch \
                                        contrib/yum-3.2.1-chroot.patch \
                                        contrib/yum-3.2.4-chroot.patch \
-                                       contrib/make-manifest
+                                       contrib/make-manifest \
+                                       contrib/make-deb-manifest
 
 contrib/manifest.dat:                  contrib/.manifest.dat.pathsubst.stamp
diff --git a/contrib/make-deb-manifest b/contrib/make-deb-manifest
new file mode 100755 (executable)
index 0000000..17ccd1b
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/bash
+
+# Copyright (C) 2010 Daniel Hokka Zakrisson <daniel@hozac.com>
+#  
+# This program 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; version 2 of the License.
+#  
+# 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 General Public License for more details.
+#  
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+## Usage: make-deb-manifest <basename> <destdir> <datfile>
+
+name=$2/$1
+dest=$2
+data=$3
+
+getname() {
+    if test $1 = "lib"; then
+       fullname="$dest/libvserver0"
+    elif test $1 = "devel"; then
+       fullname="$dest/libvserver0-dev"
+    elif test $1 = "base"; then
+       fullname="$name"
+    else
+       fullname="$name-$1"
+    fi
+}
+
+for i in {core,build,legacy,sysv,lib,devel,base}; do
+    getname $i
+    echo -n >${fullname}.install
+    rm -f ${fullname}.conffiles
+done
+
+DESTDIR=debian/tmp
+while read style file; do
+    test "$file" || continue
+    case "$style" in
+       (\#*)   continue;;
+    esac
+    getname $style
+    set -- $file
+    if test "$2"; then
+       file="$2"
+       for i in ${DESTDIR}$file; do
+           echo "${i#${DESTDIR}}" >>${fullname}.conffiles
+       done
+    fi
+    for i in ${DESTDIR}$file; do
+       i=${i#${DESTDIR}}
+        echo "$i ${i%/*}" >>${fullname}.install
+    done
+done < $data
diff --git a/debian/Makefile-files b/debian/Makefile-files
new file mode 100644 (file)
index 0000000..aa91cd9
--- /dev/null
@@ -0,0 +1,33 @@
+## $Id$  -*- makefile -*-
+
+## Copyright (C) 2010 Daniel Hokka Zakrisson <daniel@hozac.com>
+##  
+## This program 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, 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 General Public License for more details.
+##  
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+##  
+
+
+EXTRA_DIST +=  debian/rules \
+               debian/control \
+               debian/compat \
+               debian/copyright \
+               debian/docs \
+               debian/changelog.in \
+               debian/changelog
+
+CLEANFILES +=  debian/changelog
+
+DEB_CL_DATE = $(shell date '+%a, %d %b %Y %H:%M:%S %z')
+debian/changelog: debian/changelog.in
+       $(SED) "s/@"PACKAGE_VERSION"@/$(PACKAGE_VERSION)/g;s/@"DATE"@/$(DEB_CL_DATE)/g" $< > $@
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644 (file)
index 0000000..43fea51
--- /dev/null
@@ -0,0 +1,5 @@
+util-vserver (@PACKAGE_VERSION@-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Daniel Hokka Zakrisson <daniel@hozac.com>  @DATE@
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..72c6cf2
--- /dev/null
@@ -0,0 +1,87 @@
+Source: util-vserver
+Section: net
+Priority: optional
+Maintainer: Daniel Hokka Zakrisson <daniel@hozac.com>
+Build-Depends: debhelper (>= 7), gawk, dietlibc-dev, net-tools, vlan, iptables, wget, procps, module-init-tools, libnss3-dev, po-debconf, e2fslibs-dev, pkg-config, python2.6-dev
+Standards-Version: 3.8.4
+Homepage: http://savannah.nongnu.org/projects/util-vserver/
+
+Package: util-vserver
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver-core, util-vserver-lib, util-vserver-sysv, coreutils, diffutils, sed
+Description: utilities for managing Linux-VServer guests
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: libvserver0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: dynamic libraries for util-vserver
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: util-vserver-core
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-linux
+Description: core utilities of util-vserver
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: util-vserver-build
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver, wget, binutils, tar
+Description: tools which can be used to build vservers
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: util-vserver-sysv
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver, make, diffutils
+Description: initscripts for util-vserver
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: util-vserver-legacy
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, util-vserver
+Description: legacy scripts for util-vserver
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: libvserver0-dev
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver-lib, pkg-config
+Description: headers and libraries needed to develop vserver based applications
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
+
+Package: util-vserver-python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, util-vserver-lib
+Description: python-bindings for util-vserver
+ util-vserver provides the components and a framework to setup virtual
+ servers.  A virtual server runs inside a linux server. It is nevertheless
+ highly independent. As such, you can run various services with normal
+ configuration. The various vservers can't interact with each other and
+ can't interact with services in the main server.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..eb2d234
--- /dev/null
@@ -0,0 +1,41 @@
+This work was packaged for Debian by:
+
+    Daniel Hokka Zakrisson <daniel@hozac.com> on Wed, 14 Jul 2010 22:42:52 +0000
+
+It was downloaded from:
+
+    http://svn.linux-vserver.org/svn/util-vserver
+
+Upstream Author(s):
+
+    Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+    Daniel Hokka Zakrisson <daniel@hozac.com>
+
+Copyright:
+
+    Copyright (C) 2002-2010 Enrico Scholz
+    Copyright (C) 2006-2010 Daniel Hokka Zakrisson
+
+License:
+
+    This program 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; version 2.
+
+    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 General Public License
+    for more details.
+
+    You should have received a copy of the GNU General Public License with
+    your Debian GNU system, in /usr/share/common-licenses/GPL, or with the
+    Debian GNU source package as the file GNUGPL.TXT.  If not, write to the
+    Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+    MA 02110-1301, USA.
+
+The Debian packaging is:
+
+    Copyright (C) 2010 Daniel Hokka Zakrisson <daniel@hozac.com>
+
+and is licensed under the GPL version 2,
+see "/usr/share/common-licenses/GPL-2".
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..50bd824
--- /dev/null
@@ -0,0 +1,2 @@
+NEWS
+README
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..3124d86
--- /dev/null
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+
+%:
+       dh $@
+
+override_dh_auto_configure:
+       dh_auto_configure -- --with-initrddir=/etc/init.d --enable-release \
+               --enable-apis=NOLEGACY --with-initscripts=sysv
+
+override_dh_auto_test:
+
+override_dh_auto_install:
+       dh_auto_install
+       contrib/make-deb-manifest util-vserver debian contrib/manifest.dat files