From 8e7012131cbf406a936efbbe688aec253bd742a0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 24 Nov 2010 11:41:13 +0000 Subject: [PATCH 1/1] 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 --- configure.ac | 1 + debian/.gitignore | 21 ++++ debian/changelog.in | 148 ++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 230 ++++++++++++++++++++++++++++++++++++++++ debian/copyright | 24 +++++ debian/docs | 2 + debian/guestfish.dirs | 2 + debian/guestfish.install | 2 + debian/guestmount.dirs | 2 + debian/guestmount.install | 2 + debian/libguestfs-dev.dirs | 2 + debian/libguestfs-dev.install | 8 ++ debian/libguestfs-doc.docs | 1 + debian/libguestfs-perl.examples | 1 + debian/libguestfs-perl.install | 4 + debian/libguestfs-tools.dirs | 2 + debian/libguestfs-tools.install | 2 + debian/libguestfs0.dirs | 5 + debian/libguestfs0.install | 7 ++ debian/patches/series | 0 debian/python-guestfs.install | 2 + debian/pyversions | 1 + debian/rules | 47 ++++++++ debian/shlibs.local | 1 + debian/watch | 3 + 26 files changed, 521 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog.in create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/guestfish.dirs create mode 100644 debian/guestfish.install create mode 100644 debian/guestmount.dirs create mode 100644 debian/guestmount.install create mode 100644 debian/libguestfs-dev.dirs create mode 100644 debian/libguestfs-dev.install create mode 100644 debian/libguestfs-doc.docs create mode 100644 debian/libguestfs-perl.examples create mode 100644 debian/libguestfs-perl.install create mode 100644 debian/libguestfs-tools.dirs create mode 100644 debian/libguestfs-tools.install create mode 100644 debian/libguestfs0.dirs create mode 100644 debian/libguestfs0.install create mode 100644 debian/patches/series create mode 100644 debian/python-guestfs.install create mode 100644 debian/pyversions create mode 100755 debian/rules create mode 100644 debian/shlibs.local create mode 100644 debian/watch diff --git a/configure.ac b/configure.ac index 85a1dfd..013a4e8 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 0000000..f743648 --- /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 0000000..79a8cd2 --- /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 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 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 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 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 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 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 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 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 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 Thu, 02 Jul 2009 21:49:44 +0200 + +libguestfs (1.0.41-1) unstable; urgency=low + + * New upstream release 1.0.41. + + -- Richard Jones Thu, 04 Jun 2009 16:10:38 +0100 + +libguestfs (1.0.31-1) unstable; urgency=low + + * Initial release (Closes: #530427) + + -- Richard Jones Sun, 24 May 2009 21:43:45 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1312415 --- /dev/null +++ b/debian/control @@ -0,0 +1,230 @@ +Source: libguestfs +Section: libs +Priority: extra +Maintainer: Debian Libvirt Maintainers +Uploaders: Richard Jones , Guido Günther +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 0000000..2717ae2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Richard Jones 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 + Red Hat Inc. + +Copyright: + + Copyright (C) 2009 Red Hat Inc. + +License: + + LGPL (v2+) + +The Debian packaging is: + + Copyright (C) 2009 Richard Jones + +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 0000000..724e084 --- /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 0000000..f57433a --- /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 0000000..3e54b26 --- /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 0000000..f57433a --- /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 0000000..35f65be --- /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 0000000..4418816 --- /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 0000000..6b172db --- /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 0000000..cf7cb60 --- /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 0000000..6754fb8 --- /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 0000000..e150164 --- /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 0000000..f57433a --- /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 0000000..df3975f --- /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 0000000..d45baaf --- /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 0000000..8bfccfa --- /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 0000000..e69de29 diff --git a/debian/python-guestfs.install b/debian/python-guestfs.install new file mode 100644 index 0000000..42ad304 --- /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 0000000..b3dc41e --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.5- diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1d6a904 --- /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 0000000..5aff60a --- /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 0000000..332e50f --- /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 -- 1.8.3.1