summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-24 11:41:13 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-09 16:41:40 +0000
commit8e7012131cbf406a936efbbe688aec253bd742a0 (patch)
treea9f4cc0cc6369fc4e84ec4eeb97e57b4a7993434
parentb5516dc9d4a1418ad683aa7f046aa7fa30152721 (diff)
downloadlibguestfs-8e7012131cbf406a936efbbe688aec253bd742a0.tar.gz
libguestfs-8e7012131cbf406a936efbbe688aec253bd742a0.tar.xz
libguestfs-8e7012131cbf406a936efbbe688aec253bd742a0.zip
Add debian/ directory (temporarily).
This was created initially from pkg-libvirt/libguestfs.git commit 680ff0b0e8c9133ef987e68392bd3990715f6891. This is a temporary measure to allow us to build Debian and Ubuntu packages more easily. When downstream packaging is being done on these distros we will remove this directory again. To build a Debian package, use this command: debuild -i -us -uc -b
-rw-r--r--configure.ac1
-rw-r--r--debian/.gitignore21
-rw-r--r--debian/changelog.in148
-rw-r--r--debian/compat1
-rw-r--r--debian/control230
-rw-r--r--debian/copyright24
-rw-r--r--debian/docs2
-rw-r--r--debian/guestfish.dirs2
-rw-r--r--debian/guestfish.install2
-rw-r--r--debian/guestmount.dirs2
-rw-r--r--debian/guestmount.install2
-rw-r--r--debian/libguestfs-dev.dirs2
-rw-r--r--debian/libguestfs-dev.install8
-rw-r--r--debian/libguestfs-doc.docs1
-rw-r--r--debian/libguestfs-perl.examples1
-rw-r--r--debian/libguestfs-perl.install4
-rw-r--r--debian/libguestfs-tools.dirs2
-rw-r--r--debian/libguestfs-tools.install2
-rw-r--r--debian/libguestfs0.dirs5
-rw-r--r--debian/libguestfs0.install7
-rw-r--r--debian/patches/series0
-rw-r--r--debian/python-guestfs.install2
-rw-r--r--debian/pyversions1
-rwxr-xr-xdebian/rules47
-rw-r--r--debian/shlibs.local1
-rw-r--r--debian/watch3
26 files changed, 521 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 85a1dfda..013a4e81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -807,6 +807,7 @@ AC_CONFIG_FILES([Makefile
cat/Makefile
df/Makefile
rescue/Makefile
+ debian/changelog
ocaml/META perl/Makefile.PL])
AC_OUTPUT
diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644
index 00000000..f7436485
--- /dev/null
+++ b/debian/.gitignore
@@ -0,0 +1,21 @@
+*.debhelper
+*.debhelper.log
+*.substvars
+changelog
+files
+guestfish/
+guestmount/
+libguestfs-dev/
+libguestfs-doc/
+libguestfs-perl/
+libguestfs-tools/
+libguestfs0-dbg/
+libguestfs0/
+python-guestfs/
+python-module-stampdir/
+stamp-makefile-install
+stamp-autotools
+stamp-autotools-files
+stamp-makefile-build
+stamp-patched
+tmp/ \ No newline at end of file
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644
index 00000000..79a8cd20
--- /dev/null
+++ b/debian/changelog.in
@@ -0,0 +1,148 @@
+libguestfs (@VERSION@-1) unstable; urgency=low
+
+ * release: New upstream version @VERSION@.
+
+ -- Richard W.M. Jones <rjones@redhat.com> Thu, 9 Dec 2010 12:00:00 +0000
+
+libguestfs (1.0.84-4) unstable; urgency=low
+
+ * [2c44147] Build-depend on aptitude since Ubuntu needs it.
+ * [d50fd25] New patch 0005-Check-for-service-and-use-it-if-it-s- there.patch
+ Check for service and use it if it's there
+ * [40dc6b0] New patch 0006-Check-for-grub-menu.lst-if-etc-grub.conf-
+ can-t-be-fo.patch Check for grub/menu.lst if /etc/grub.conf can't be found
+ * [465def2] New patch 0007-Debina-package-format-is-called-deb-not-
+ dpkg.patch Debina package format is called 'deb' not 'dpkg'
+ * [1b7efb4] New patch 0008-Add-application-listing-for-Debian.patch Add
+ application listing for Debian
+ * [5dd34c9] Add series file
+ * [647fd84] Don't remove gmo files (Closes: #571117)
+
+ -- Guido Günther <agx@sigxcpu.org> Wed, 24 Feb 2010 18:22:58 +0100
+
+libguestfs (1.0.84-3) unstable; urgency=low
+
+ * [307bd4e] Add hivex commands.
+ * [7fac596] Build and install fuse helper
+ * [09ea683] Include all virt-* tools including virt-win-reg
+ * [ae3ee70] New patch 0004-Disable-fuser-tests-if-dev-fuse-doesn-t-
+ exist.patch Disable fuse tests if /dev/fuse doesn't exist
+
+ -- Guido Günther <agx@sigxcpu.org> Sun, 21 Feb 2010 19:40:43 +0100
+
+libguestfs (1.0.84-2) unstable; urgency=low
+
+ * [0195df4] Add vendor detection for Ubuntu
+ * [2fa535e] {Build-,}Depend on bochsbios and vgabios These are only
+ recommends but needed to run qemu during the tests.
+ * [ee483bf] Reenable tests
+ * [67fd975] New patch 0003-scrub-now-available-on-Debian.patch scrub now
+ available on Debian
+ * [2e9c89d] New patch 0004-Adjust-error-output-for-regressions-
+ rhbz557655.patch Adjust error output for regressions/rhbz557655
+ * [c5d5f9e] Adjust install-kernel to new debirf version
+ * [9c1fbdf] Drop Hardcode-kernel-version.patch - superflous due to previous
+ commit.
+
+ -- Guido Günther <agx@sigxcpu.org> Sun, 21 Feb 2010 13:24:01 +0100
+
+libguestfs (1.0.84-1) unstable; urgency=low
+
+ [ Guido Günther ]
+ * [1149b4a] add missing modules for vfat
+
+ [ Laurent Léonard ]
+ * [397dbf3] Imported Upstream version 1.0.80
+ * [ca95c7a] Drop patch 0001-add-nls_base.ko-and-nls_cp437.ko-for-
+ vfat.patch. Fixed upstream.
+ * [344c7e6] Add dependency on mkisofs.
+
+ [ Guido Günther ]
+ * [5aa8061] Add missing build-deps needed for ./configure
+ * [f8a682d] Imported Upstream version 1.0.84
+ * [e35175c] No need to manually install virt-inspector anymore
+ * [de6ddf1] Depend on python-all-dev since libguestfs handles python
+ 2.6 too
+ * [a2be87e] don't use the host's MAC address
+ * [88b70ef] New patch 0001-Disable-checks-for-now.patch Disable checks for
+ now
+ * [2b59394] New patch 0002-Run-debirf-as-root.patch Run debirf as root
+ * [e798002] New patch 0003-Hardcode-kernel-version.patch Hardcode kernel
+ version
+ * [602fab3] reenable patch system
+
+ -- Guido Günther <agx@sigxcpu.org> Sat, 20 Feb 2010 14:11:50 +0100
+
+libguestfs (1.0.61-1) unstable; urgency=low
+
+ * [831bc5f] Imported Upstream version 1.0.61
+ * [b85412e] run checks but disable currently failing tests
+ * [21d7e00] add missing qemu build-dep
+ * [0636bb4] add missing build-dep for perl bindings
+ * [5585a82] add missing build-deps for perl based tools
+ * [e09005c] install virt-df and virt-cat
+ * [342f8e4] install Lib.pm for perl bindings
+
+ -- Guido Günther <agx@sigxcpu.org> Fri, 17 Jul 2009 22:32:07 +0200
+
+libguestfs (1.0.56-1) unstable; urgency=low
+
+ * [1b77dc8] Imported Upstream version 1.0.56
+ * [0ca461d] drop a all patches merged upstream or superfluous since
+ we're building from a released version now.
+ * [474dc39] no need to call autogen.sh
+ * [32c3d61] amke sure the symlinks get created in time
+
+ -- Guido Günther <agx@sigxcpu.org> Thu, 09 Jul 2009 16:44:21 +0200
+
+libguestfs (1.0.54+44git127ad3-3) unstable; urgency=low
+
+ * [a6e6cc7] add virt-inspector
+ * [1446178] build-dep on libaugeas-dev for augeas support in guestfsd
+ * [b3769ed] select kernel by architecture
+ * [103069f] speed up appliance startup
+ * [aa02c11] document changes and release 1.0.54+44git127ad3-3
+
+ -- Guido Günther <agx@sigxcpu.org> Sat, 04 Jul 2009 17:58:04 +0200
+
+libguestfs (1.0.54+44git127ad3-2) unstable; urgency=low
+
+ * [8f1cea9] add missing shlibs dependency
+ * [35663fe] shorten long descriptions a bit
+ * [1631e0e] add watch file
+ * [adebbd1] drop lib from python package name
+ * [a24e6b9] add perl bindings
+ * [cc2117e] don't run dh_makeshlibs on python lib to avoid ldconfig call
+ * [d361e06] add missing ${misc:Depends}, {perl:Depends} and tighten
+ dependency on libguestfs
+
+ -- Guido Günther <agx@sigxcpu.org> Fri, 03 Jul 2009 12:03:14 +0200
+
+libguestfs (1.0.54+44git127ad3-1) unstable; urgency=low
+
+ * [4cea8bd] Imported Upstream version 1.0.54+44git127ad3
+ * [c01721f] switch to cdbs:
+ * add doc package
+ * add debug package
+ * add python bindings
+ * drop README.Debian
+ * set maintainer to pkg-libvirt team
+ * [91fafca] don't call configure, leave this to cdbs and make autoconf copy
+ files instead of symlinking so dpkg-source can create a proper .diff.gz
+ * [13207b9] drop .gitignore
+ * [967d228] touch fakeroot.log to indicate the appliance has been built
+ * [3477d95] use AM_MAINTAINER_MODE
+
+ -- Guido Günther <agx@sigxcpu.org> Thu, 02 Jul 2009 21:49:44 +0200
+
+libguestfs (1.0.41-1) unstable; urgency=low
+
+ * New upstream release 1.0.41.
+
+ -- Richard Jones <rjones@redhat.com> Thu, 04 Jun 2009 16:10:38 +0100
+
+libguestfs (1.0.31-1) unstable; urgency=low
+
+ * Initial release (Closes: #530427)
+
+ -- Richard Jones <rjones@redhat.com> Sun, 24 May 2009 21:43:45 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..7f8f011e
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..13124155
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,230 @@
+Source: libguestfs
+Section: libs
+Priority: extra
+Maintainer: Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org>
+Uploaders: Richard Jones <rjones@redhat.com>, Guido Günther <agx@sigxcpu.org>
+Build-Depends: debhelper (>= 7), autotools-dev,
+ febootstrap (>= 3.2),
+ libreadline-dev, cdbs, libaugeas-dev, libhivex-dev, libvirt-dev,
+ libmagic-dev, libncurses5-dev, libpcre3-dev, libxml2-dev,
+ qemu-system (>= 0.13) | kvm (>= 0.13),
+# XXX how to say we need Linux >= 2.6.36?
+ mkisofs, pkg-config, quilt,
+# when building from git:
+ automake, autoconf, libtool, ocaml,
+# for python bindings:
+ python-all-dev, python-support,
+# for the perl bindings:
+ libtest-pod-coverage-perl, libextutils-command-perl,
+ libintl-perl, libtest-pod-perl,
+# for Perl virt tools
+ libsys-virt-perl, libwin-hivex-perl,
+# FUSE
+ libfuse-dev, fuse-utils
+Homepage: http://libguestfs.org
+Standards-Version: 3.8.2
+
+Package: libguestfs0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ febootstrap (>= 3.2),
+# These are needed for virtio-serial:
+ qemu-system (>= 0.13),
+# XXX how to say we need Linux >= 2.6.36?
+# For the supermin appliance (see appliance/packagelist):
+ bsdmainutils,
+ btrfs-tools,
+ cryptsetup,
+ diff,
+# gfs-tools,
+# gfs2-tools,
+ grub-pc,
+# hfsplus,
+ iproute,
+ libaugeas0,
+# nilfs2-tools,
+ ntfs-3g,
+ ntfsprogs,
+ reiserfsprogs,
+ udev,
+ vim-tiny,
+ xz-utils,
+ zfs-fuse,
+ binutils,
+ cpio,
+ dosfstools,
+ file,
+ jfsutils,
+ lsof,
+ lvm2,
+ module-init-tools,
+ net-tools,
+ parted,
+ procps,
+ scrub,
+ strace,
+ xfsprogs,
+ zerofree
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of
+ the guest. Also you can upload and download files and directories.
+
+Package: guestfish
+Section: devel
+Architecture: any
+Depends: libguestfs0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: libguestfs filesystem interactive shell
+ Guestfish is a shell and command-line tool for examining and modifying
+ virtual machine filesystems. It uses libguestfs and exposes all of the
+ functionality of the guestfs API, see guestfs(3).
+
+Package: guestmount
+Section: devel
+Architecture: any
+Depends: libguestfs0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: mount guest filesystem using libguestfs and FUSE
+ The guestmount program can be used to mount virtual machine filesystems
+ and other disk images on the host. It uses libguestfs for access to
+ the guest filesystem, and FUSE (the "filesystem in userspace") to make
+ it appear as a mountable device.
+
+Package: libguestfs-tools
+Section: devel
+Architecture: any
+Depends: libguestfs0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends},
+ libsys-virt-perl, libguestfs-perl (= ${binary:Version})
+Description: libguestfs virt tools
+ This package contains virt tools including virt-cat, virt-df, virt-edit,
+ virt-filesystems, virt-inspector, virt-ls, virt-make-fs, virt-rescue,
+ virt-resize, virt-tar and virt-win-reg.
+
+Package: libguestfs-dev
+Section: libdevel
+Architecture: any
+Depends: libguestfs0 (= ${binary:Version}), ${misc:Depends}
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the development headers.
+
+Package: libguestfs0-dbg
+Section: debug
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libguestfs0 (= ${binary:Version})
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the debugging symbols.
+
+Package: libguestfs-doc
+Section: doc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the documentation.
+
+Package: python-guestfs
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libguestfs0 (= ${binary:Version})
+Provides: python-libguestfs
+Conflicts: python-libguestfs
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the Python bindings.
+
+Package: libguestfs-perl
+Section: perl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libguestfs0 (= ${binary:Version}),
+ ${perl:Depends}
+Description: library for accessing and modifying guest disk images
+ libguestfs is a library for accessing and modifying guest disk images. Amongst
+ the things this is good for: making batch configuration changes to guests,
+ viewing and editing files inside guests, getting disk used/free statistics,
+ migrating between virtualization systems, performing partial backups,
+ performing partial guest clones, cloning guests and changing
+ registry/UUID/hostname info, and much else besides.
+ .
+ It uses Linux kernel and qemu code, and can access any type of guest
+ filesystem that Linux and qemu can, including but not limited to: ext2/3/4,
+ btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, qcow2,
+ vmdk.
+ .
+ libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, what
+ filesystem is in each LV, etc.). It can also run commands in the context of
+ the guest. Also you can upload and download files and directories.
+ .
+ This package contains the Perl bindings.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..2717ae28
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by Richard Jones <rjones@redhat.com> on
+Sun, 24 May 2009 21:43:45 +0100.
+
+It was downloaded from http://et.redhat.com/~rjones/libguestfs/
+
+Upstream Authors:
+
+ Richard W.M. Jones <rjones@redhat.com>
+ Red Hat Inc.
+
+Copyright:
+
+ Copyright (C) 2009 Red Hat Inc.
+
+License:
+
+ LGPL (v2+)
+
+The Debian packaging is:
+
+ Copyright (C) 2009 Richard Jones <rjones@redhat.com>
+
+and is licensed under the GPL version 3,
+see `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 00000000..724e0844
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README
+TODO
diff --git a/debian/guestfish.dirs b/debian/guestfish.dirs
new file mode 100644
index 00000000..f57433a2
--- /dev/null
+++ b/debian/guestfish.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1 \ No newline at end of file
diff --git a/debian/guestfish.install b/debian/guestfish.install
new file mode 100644
index 00000000..3e54b263
--- /dev/null
+++ b/debian/guestfish.install
@@ -0,0 +1,2 @@
+usr/bin/guestfish
+usr/share/man/man1/guestfish*
diff --git a/debian/guestmount.dirs b/debian/guestmount.dirs
new file mode 100644
index 00000000..f57433a2
--- /dev/null
+++ b/debian/guestmount.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1 \ No newline at end of file
diff --git a/debian/guestmount.install b/debian/guestmount.install
new file mode 100644
index 00000000..35f65be0
--- /dev/null
+++ b/debian/guestmount.install
@@ -0,0 +1,2 @@
+usr/bin/guestmount
+usr/share/man/man1/guestmount*
diff --git a/debian/libguestfs-dev.dirs b/debian/libguestfs-dev.dirs
new file mode 100644
index 00000000..44188162
--- /dev/null
+++ b/debian/libguestfs-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/debian/libguestfs-dev.install b/debian/libguestfs-dev.install
new file mode 100644
index 00000000..6b172dbf
--- /dev/null
+++ b/debian/libguestfs-dev.install
@@ -0,0 +1,8 @@
+usr/include/*
+usr/lib/lib*.a
+usr/lib/lib*.so
+usr/lib/*.la
+usr/lib/pkgconfig/*
+usr/share/man/man3/guestfs-examples.3*
+usr/share/man/man3/guestfs-ocaml.3*
+usr/share/man/man3/guestfs-python.3*
diff --git a/debian/libguestfs-doc.docs b/debian/libguestfs-doc.docs
new file mode 100644
index 00000000..cf7cb60e
--- /dev/null
+++ b/debian/libguestfs-doc.docs
@@ -0,0 +1 @@
+html/*
diff --git a/debian/libguestfs-perl.examples b/debian/libguestfs-perl.examples
new file mode 100644
index 00000000..6754fb84
--- /dev/null
+++ b/debian/libguestfs-perl.examples
@@ -0,0 +1 @@
+perl/examples/*
diff --git a/debian/libguestfs-perl.install b/debian/libguestfs-perl.install
new file mode 100644
index 00000000..e1501646
--- /dev/null
+++ b/debian/libguestfs-perl.install
@@ -0,0 +1,4 @@
+usr/man/man3/*.3pm /usr/share/man3/
+usr/lib/perl/*/Sys/*.pm /usr/lib/perl5/Sys/
+usr/lib/perl/*/Sys/Guestfs/*.pm /usr/lib/perl5/Sys/Guestfs/
+usr/lib/perl/*/auto/Sys/Guestfs/*.so /usr/lib/perl5/auto/Sys/Guestfs/
diff --git a/debian/libguestfs-tools.dirs b/debian/libguestfs-tools.dirs
new file mode 100644
index 00000000..f57433a2
--- /dev/null
+++ b/debian/libguestfs-tools.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1 \ No newline at end of file
diff --git a/debian/libguestfs-tools.install b/debian/libguestfs-tools.install
new file mode 100644
index 00000000..df3975f2
--- /dev/null
+++ b/debian/libguestfs-tools.install
@@ -0,0 +1,2 @@
+usr/bin/virt-*
+usr/share/man/man1/virt-*
diff --git a/debian/libguestfs0.dirs b/debian/libguestfs0.dirs
new file mode 100644
index 00000000..d45baaf2
--- /dev/null
+++ b/debian/libguestfs0.dirs
@@ -0,0 +1,5 @@
+usr/bin
+usr/lib
+usr/lib/guestfs
+usr/share/man/man1
+usr/share/man/man3 \ No newline at end of file
diff --git a/debian/libguestfs0.install b/debian/libguestfs0.install
new file mode 100644
index 00000000..8bfccfa5
--- /dev/null
+++ b/debian/libguestfs0.install
@@ -0,0 +1,7 @@
+usr/bin/libguestfs-test-tool
+usr/lib/lib*.so.*
+usr/lib/guestfs/*
+usr/lib/libguestfs/libguestfs-test-tool-helper
+usr/share/man/man1/libguestfs-test-tool*
+usr/share/man/man3/guestfs.3*
+usr/share/man/man3/libguestfs.3*
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/debian/patches/series
diff --git a/debian/python-guestfs.install b/debian/python-guestfs.install
new file mode 100644
index 00000000..42ad3044
--- /dev/null
+++ b/debian/python-guestfs.install
@@ -0,0 +1,2 @@
+usr/share/pyshared/*.py
+usr/share/pyshared/*.so
diff --git a/debian/pyversions b/debian/pyversions
new file mode 100644
index 00000000..b3dc41eb
--- /dev/null
+++ b/debian/pyversions
@@ -0,0 +1 @@
+2.5-
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..1d6a9048
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+
+DEB_PYTHON_SYSTEM=pysupport
+DEB_DH_INSTALL_SOURCEDIR = debian/tmp
+DEB_VENDOR=$(shell dpkg-vendor --query vendor)
+
+# Comment this to enable 'make check'
+DEB_BUILD_OPTIONS=nocheck
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+DEB_CONFIGURE_EXTRA_FLAGS := \
+ --with-java-home=no \
+ --disable-ruby \
+ --disable-haskell \
+ --disable-php \
+ --with-readline \
+ --with-python-installdir=/usr/share/pyshared
+
+DEB_DBG_PACKAGES = libguestfs0-dbg
+DEB_PYTHON_SETUP_CMD := /dev/null
+#DEB_DH_MAKESHLIBS_ARGS_python-guestfs = -X usr/lib/pyshared
+
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+debian/check-stamp:
+ for TEST in ${DEBIAN_SKIP_TEST}; do \
+ export $$TEST=1; \
+ done; \
+ make check
+ touch debian/check-stamp
+
+build/guestfish:: debian/check-stamp
+endif
+
+#install/python-guestfs::
+# rm -f debian/tmp/usr/lib/python*/*/libguestfsmod.so
+# for mod in debian/tmp/usr/lib/python*/*/libguestfsmod.so.0.0.0; do \
+# mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \
+# done
+
+clean::
+ rm -rf perl/blib/ perl/*.o
+ rm -f src/.pod2text.data
+ rm -f debian/check-stamp
diff --git a/debian/shlibs.local b/debian/shlibs.local
new file mode 100644
index 00000000..5aff60a7
--- /dev/null
+++ b/debian/shlibs.local
@@ -0,0 +1 @@
+libguestfs 1.0.31 libguestfs (>> 1.0.31-0), libguestfs (<< 1.0.31-99)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 00000000..332e50f1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+# format version number, currently 3; this line is compulsory!
+version=3
+http://libguestfs.org/download/libguestfs-([\d\.]*)\.tar\.gz