+++ /dev/null
-blktap for Debian
------------------
-
-<possible notes regarding this package - if none, delete this file>
-
- -- Jon Ludlam <jonathan.ludlam@eu.citrix.com> Thu, 07 Jul 2011 00:41:03 +0100
+++ /dev/null
-blktap for Debian
------------------
-
-<this file describes information about the source package, see Debian policy
-manual section 4.14. You WILL either need to modify or delete this file>
-
-
-
-
+++ /dev/null
-/etc
-/usr
-/lib
-blktap (0.1-1) unstable; urgency=low
+blktap (1.0.0-1) unstable; urgency=low
- * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+ * Initial release. (Closes: #XXXXXX)
- -- Jon Ludlam <jonathan.ludlam@eu.citrix.com> Thu, 07 Jul 2011 00:41:03 +0100
+ -- Thomas Goirand <zigo@debian.org> Thu, 21 Jul 2011 17:08:44 +0000
Source: blktap
-Section: unknown
+Section: libs
Priority: extra
-Maintainer: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
-Build-Depends: debhelper (>= 8.0.0), uuid-dev, libaio-dev
+Maintainer: Thomas Goirand <zigo@debian.org>
+Build-Depends: debhelper (>= 8)
Standards-Version: 3.9.2
-Homepage: <insert the upstream URL, if relevant>
-#Vcs-Git: git://git.debian.org/collab-maint/blktap.git
-#Vcs-Browser: http://git.debian.org/?p=collab-maint/blktap.git;a=summary
+Vcs-Browser: http://git.gplhost.com/gitweb/?p=sbox.git
+Vcs-Git: http://git.gplhost.com/sbox.git
+Homepage: http://www.gplhost.com/software-sbox.html
-Package: blktap
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: <insert up to 60 chars description>
- <insert long description, indented with spaces>
+Package: libvhd1.0
+Architecture: i386
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Xen API blktap shared library
+ libvhd1
-Package: blktap-doc
-Architecture: all
-Description: documentation for blktap
- <insert long description, indented with spaces>
+Package: blktap-dev
+Section: devel
+Architecture: i386
+Depends: ${misc:Depends}, ${shlibs:Depends}, libvhd1.0 (= ${binary:Version}), libvhdio1.0 (= ${binary:Version})
+Description: Xen API blktap shared library (development files)
+ blktap-dev
+
+Package: blktap-utils
+Section: utils
+Architecture: i386
+Depends: ${misc:Depends}, ${shlibs:Depends}, libvhd1.0 (= ${binary:Version}), libvhdio1.0 (= ${binary:Version})
+Description: Xen API blktap shared library (binary utils)
+ blktap-utils
+
+Package: libvhdio1.0
+Architecture: i386
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Xen API blktap shared library (shared library)
+ libvhdio1
-Format: http://dep.debian.net/deps/dep5
-Upstream-Name: blktap
-Source: <url://example.com>
-
-Files: *
-Copyright: <years> <put author's name and email here>
- <years> <likewise for another author>
-License: <special license>
- <Put the license of the package here indented by 1 space>
- <This follows the format of Description: lines in control file>
- .
- <Including paragraphs>
-
-# If you want to use GPL v2 or later for the /debian/* files use
-# the following clauses, or change it to suit. Delete these two lines
-Files: debian/*
-Copyright: 2011 Jon Ludlam <jonathan.ludlam@eu.citrix.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".
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
+stub
#!/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 $@
+
+build: build-arch build-indep
+build-arch: build
+build-indep: build
+build-stamp:
+ $(MAKE) USE_SYSTEM_LIBRARIES=y DESTDIR=$(CURDIR)/debian/libvhd1.0
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ $(MAKE) clean
+ dh_clean
+ rm -rf debian/libvhd1.0etc debian/libvhd1.0usr debian/libvhd1.0lib
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ $(MAKE) install USE_SYSTEM_LIBRARIES=y DESTDIR=$(CURDIR)/debian/libvhd1.0
+
+ # Move stuff in libvhdio
+ mkdir -p $(CURDIR)/debian/libvhdio1.0/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/lib/libvhdio.so.1.0 $(CURDIR)/debian/libvhdio1.0/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/lib/libvhdio.so.1.0.0 $(CURDIR)/debian/libvhdio1.0/usr/lib
+
+ # Move stuff in the -dev packages
+ mkdir -p $(CURDIR)/debian/blktap-dev/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/lib/libvhd.a $(CURDIR)/debian/blktap-dev/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/lib/libvhd.so $(CURDIR)/debian/blktap-dev/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/lib/libvhdio.a $(CURDIR)/debian/blktap-dev/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/lib/libvhdio.so $(CURDIR)/debian/blktap-dev/usr/lib
+ mv $(CURDIR)/debian/libvhd1.0/usr/include $(CURDIR)/debian/blktap-dev/usr
+
+ # Move things in the blktap-utils package
+ mkdir -p $(CURDIR)/debian/blktap-utils/usr
+ mv $(CURDIR)/debian/libvhd1.0/usr/sbin $(CURDIR)/debian/blktap-utils/usr
+
+binary-indep: build install
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install