debian/0000755000000000000000000000000012216274223007167 5ustar debian/xnbd-client.docs0000644000000000000000000000002512146433555012254 0ustar debian/README.Debian debian/xnbd-common.init0000644000000000000000000000245412216272213012277 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: xnbd xnbd-common # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: xNBD startup script # Description: start/stop xNBD services ### END INIT INFO # Author: Arno Töll # This script is more or less just a SysV init cascade to call approrpiate # commands on xnbd-register instead PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="xNBD network devices" NAME="xnbd-register" DAEMON=/usr/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME # This variable will be overwritten DAEMON_OPTS="" # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh . /lib/lsb/init-functions case "$1" in start|stop|status|restart|force-reload) CMD=$1 # Load kernel module [ "$CMD" = start ] && modprobe nbd # Don't handle force-reload separetely [ "$CMD" = "force-reload" ] && CMD="restart" [ "$VERBOSE" = no ] && DAEMON_OPTS="--quiet" $DAEMON "--$CMD" $DAEMON_OPTS case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/xnbd-server.manpages0000644000000000000000000000026512146433555013155 0ustar debian/tmp/usr/share/man/man8/xnbd-wrapper.8 debian/tmp/usr/share/man/man8/xnbd-server.8 debian/tmp/usr/share/man/man8/xnbd-wrapper-ctl.8 debian/tmp/usr/share/man/man1/xnbd-bgctl.1 debian/xnbd-client.install0000644000000000000000000000005612146433555012776 0ustar /usr/sbin/xnbd-watchdog /usr/sbin/xnbd-client debian/README.Debian0000644000000000000000000000104712146433555011241 0ustar xNBD for Debian ------------------------ * General usage hints and application scenarios can be found on [1]. * WARNING: The NBD kernel module is known to end up in a dead lock if you do not run it with the "deadline" scheduler. Default is "cfq" on Debian. Make sure you do echo deadline > /sys/block/$NBD_DEV/queue/scheduler if you plan to use NBD with $NBD_DEV being substituted by the NBD device you use. [1] https://bitbucket.org/hirofuchi/xnbd/wiki/Home -- Arno Toell Sat, 02 Jul 2011 13:08:22 +0100 debian/docs0000644000000000000000000000000712146433555010046 0ustar README debian/xnbd-common.install0000644000000000000000000000005712146433555013011 0ustar /etc/* /usr/sbin/xnbd-register /usr/lib/xnbd/* debian/gbp.conf0000644000000000000000000000013512146433555010614 0ustar [DEFAULT] pristine-tar = True builder=dpkg-buildpackage -i\.git -I.git -uc -us #cleaner=true debian/xnbd-client.manpages0000644000000000000000000000013212146433555013116 0ustar debian/tmp/usr/share/man/man1/xnbd-client.1 debian/tmp/usr/share/man/man1/xnbd-watchdog.1 debian/rules0000755000000000000000000000277212154574650010267 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 VERSION := $(shell dpkg-parsechangelog | perl -ne 'print $$1 if m/Version:\s*([\w\.\-\+\~]+)-\d+/') REPOSITORY_REV := $(shell echo "$(VERSION)" | perl -ne 'print $$1 if m/hg\d+-(\w+)/') CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) export CFLAGS LDFLAGS %: dh $@ --with python2,autoreconf override_dh_auto_configure: dh_auto_configure -- --libdir=/usr/lib/xnbd --disable-silent-rules override_dh_install: rm -f debian/tmp/usr/share/doc/xnbd/xnbd-*.html debian/tmp/usr/share/doc/xnbd/docbook-xsl.css # Debian does not want .la files rm -f debian/tmp/usr/lib/xnbd/libxnbd_internal.la dh_install --list-missing override_dh_installinit: # don't start upon installation/upgrade. We can't ship a feasible # default configuration. dh_installinit --no-start override_dh_installchangelogs: dh_installchangelogs debian/tmp/usr/share/doc/xnbd/ChangeLog get-orig-source: # Version generated by: hg log -r . --template '{latesttag}-hg{latesttagdistance}-{node|short}\n' hg clone https://bitbucket.org/hirofuchi/xnbd xnbd-$(VERSION)-hg cd xnbd-$(VERSION)-hg && hg archive -X .hg_archival.txt -X .hgtags -r $(REPOSITORY_REV) -t files ../xnbd-$(VERSION) mv -- xnbd-$(VERSION)/trunk/* xnbd-$(VERSION)/ rmdir xnbd-$(VERSION)/trunk/ tar jcfv xnbd_$(VERSION).orig.tar.bz2 xnbd-$(VERSION) rm -rf xnbd-$(VERSION) xnbd-$(VERSION)-hg debian/compat0000644000000000000000000000000212146433555010374 0ustar 8 debian/watch0000644000000000000000000000021412146433555010224 0ustar version=3 opts=dversionmangle=s/\+hg\d{8}$// \ https://bitbucket.org/hirofuchi/xnbd/downloads/xnbd-(\d+\.\d+.\d+)\.tar\.gz debian uupdate debian/xnbd-common.docs0000644000000000000000000000004512146433555012270 0ustar debian/tmp/usr/share/doc/xnbd/README debian/clean0000644000000000000000000000002712146433555010202 0ustar debian/xnbd-register.8 debian/xnbd-server.install0000644000000000000000000000013512146433555013024 0ustar /usr/sbin/xnbd-server /usr/sbin/xnbd-bgctl /usr/sbin/xnbd-wrapper /usr/sbin/xnbd-wrapper-ctl debian/copyright0000644000000000000000000000437312146433555011140 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=174 Upstream-Name: xNBD Upstream-Contact: Takahiro Hirofuchi Source: https://bitbucket.org/hirofuchi/xnbd/wiki/Home Files: debian/* Copyright: 2011 Arno Toell License: GPL-2+ Comment: Packaging for Debian was done by Arno Toell, and I hereby grant distribution of it under the same terms as xNBD itself. Files: trunk/doc/*.sgml Copyright: 2011 Arno Toell License: GPL-2 . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the e Apache License, Version 2.0 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: trunk/* Copyright: 2010 - 2011 National Institute of Advanced Industrial Science and Technology License: GPL-2+ License: GPL-2+ . 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 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the e Apache License, Version 2.0 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/patches/0000755000000000000000000000000012146433555010625 5ustar debian/patches/spelling-fix.patch0000644000000000000000000000062412146433555014251 0ustar --- a/trunk/doc/xnbd-client.1.sgml +++ b/trunk/doc/xnbd-client.1.sgml @@ -113,7 +113,7 @@ - + Use the provided value as block size. Default is 1024; allowed values are either 512, 1024, 2048 or 4096. debian/patches/series0000644000000000000000000000000012146433555012030 0ustar debian/xnbd-server.docs0000644000000000000000000000002512146433555012304 0ustar debian/README.Debian debian/source/0000755000000000000000000000000012146433555010476 5ustar debian/source/include-binaries0000644000000000000000000000036012146433555013635 0ustar debian/manpages/xnbd-wrapper-ctl.8.gz debian/manpages/xnbd-watchdog.1.gz debian/manpages/xnbd-bgctl.1.gz debian/manpages/xnbd-wrapper.8.gz debian/manpages/xnbd-register.8.gz debian/manpages/xnbd-client.1.gz debian/manpages/xnbd-server.8.gz debian/source/format0000644000000000000000000000001412146433555011704 0ustar 3.0 (quilt) debian/xnbd-common.manpages0000644000000000000000000000005612146433555013135 0ustar debian/tmp/usr/share/man/man8/xnbd-register.8 debian/control0000644000000000000000000000404712154575524010610 0ustar Source: xnbd Section: admin Priority: extra Maintainer: Arno Töll Build-Depends: debhelper (>= 8.0), libglib2.0-dev, asciidoc, libxml2-utils, docbook-xml, docbook-xsl, xsltproc, python-all-dev (>= 2.6.6-3~), dh-autoreconf Standards-Version: 3.9.4 Homepage: https://bitbucket.org/hirofuchi/xnbd/wiki/Home Vcs-Git: git://anonscm.debian.org/collab-maint/xnbd.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/xnbd.git Package: xnbd-server Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, xnbd-common (= ${binary:Version}) Description: Network Block Device server with support for live migration xNBD is a NBD (Network Block Device) server program, which is fully compatible with the NBD client driver of Linux kernel. It adds extended features to the traditional NBD server: . * Better performance * Support for distributed copy-on-write disks * Live storage migration for virtual machines. * IPv6 support. . This is the server side of the program Package: xnbd-client Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends}, xnbd-common (= ${binary:Version}) Description: Network Block Device client with support for live migration xNBD is a NBD (Network Block Device) server program, which is fully compatible with the NBD client driver of Linux kernel. It adds extended features to the traditional NBD server: . * Better performance * Support for distributed copy-on-write disks * Live storage migration for virtual machines. * IPv6 support. . This is the client side of the program Package: xnbd-common Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, lsb-base (>= 3.2-14), python (>= 2.7) | python-argparse, module-init-tools, ${python:Depends} Description: Network Block Device - common files xNBD is a NBD (Network Block Device) server program, which is fully compatible with the NBD client driver of Linux kernel. It adds extended features to the traditional NBD server. . This package contains common files and shared directories. debian/changelog0000644000000000000000000001165412216272343011051 0ustar xnbd (0.2.0~rc2-hg1-abf8cc7a1ab0-2) unstable; urgency=low * Fix "xnbd-common init script dies during start-up" and use the correct path. xndb-register was promoted to the upstream codebase and they decided to install it to /usr/sbin. Thus, the init script needs an adaption (Closes: #723559) -- Arno Töll Wed, 18 Sep 2013 11:38:57 +0200 xnbd (0.2.0~rc2-hg1-abf8cc7a1ab0-1) unstable; urgency=low * New upstream release * Refresh patches: - Drop patch fix-670521: Merged upstream - Drop patch fix-xnbd-path: The path is deprecated upstream and does not work anymore that way - Drop patch pelling-fix.patch: applied upstream - Drop CVE-2013-0265.patch: Obsoleted by new upstream release * Add build-depends to dh-autoreconf, upstream uses autotools now, but we build from hg trunk. * Remove xnbd-register from the Debian specific additions. It is included upstream now. * Convert xnbd-common to an architecture specific package, as we ship private libraries in it now. * Switch build-dependency from docbook to asciidoc. Upstream uses asciidoc now. * Push standards without additional changes. -- Arno Töll Sat, 08 Jun 2013 11:36:56 +0200 xnbd (0.1.0-pre-hg20-e75b93a47722-3) unstable; urgency=medium * Fix "Documentation Error: Option --blocksize mistyped" use correct spelling(Closes: #691842) * CVE-2013-0265: Fix symlink vulnerability spotted by Sebastian Pipping . Moreover, thanks Sebastian for providing a patch. -- Arno Töll Thu, 07 Feb 2013 22:45:10 +0100 xnbd (0.1.0-pre-hg20-e75b93a47722-2) unstable; urgency=low * Do a full source rebuild again, now that #670557 is fixed. -- Arno Töll Mon, 28 May 2012 19:16:30 +0200 xnbd (0.1.0-pre-hg20-e75b93a47722-1) unstable; urgency=low * New upstream snapshot * Refresh patches, drop install-xnbd-wrapper-ctl which was applied upstream. * Update my maintainer address and remove "DM-Upload-Allowed: Yes". I don't need that anymore. * Push standards version to 3.9.3 without further changes. * Fix "fails to start, claiming "glib thread not supported"" by adding a patch which drops obsolete macro calls which are triggered by the glib 2.32 transition (Closes: #670521) * Temporarily do NOT rebuild manpages from source because of #670557. -- Arno Töll Thu, 26 Apr 2012 19:49:52 +0200 xnbd (0.1.0-pre-hg17-c29967ffe2f3-1) unstable; urgency=low * New upstream release * Remove debian/xnbd-register.8 upon clean * Switch to new versioning scheme based on hg versions. This versioning scheme can be mapped automatically from a Debian version to a given upstream snapshot. Hence a get-orig-source target is provided now which can be used to retrieve orig.tar.bz2 tarballs. * Remove `wrapper-daemonize.patch': Merged upstream * Make package ready for dpkg 1.16.1 and inject build flags into the build process. This means, xnbd is now being built with -fstack-protector and other security related build flags. To achieve this, the Makefile has been rewritten and successively been merged upstream. * Add patch `install-xnbd-wrapper-ctl' which makes sure the upstream control helper is being installed. * Fix some smaller syntax error in the DEP-5 copyright file. * Fix a bug in xnbd-register to make sure the server instance is started first. This allows one to run both, server and client on the same machine, being started from the same configuration file. * Add `module-init-tools' to runtime dependencies to make sure, the command is available. -- Arno Töll Tue, 25 Oct 2011 00:57:12 +0200 xnbd (0.1.0-pre+hg20110702-1) unstable; urgency=low [ Arno Töll ] * New upstream release. * Update `README.Debian' to reflect the most recent status * Ship `xnbd-register' a Debian helper to restore xNBD devices at boot. This is a Debian specific improvement which is driven by a configuration file located in `/etc/xnbd.conf'. * Add `wrapper-daemonize.patch' which enables to run the `xnbd-wrapper' command in the background and to shutdown upon request. * Add `xnbd-common' package which contains startup wrapper for both, `xnbd-client' and `xnbd-server'. * Add patch `fix-xnbd-path' to reflect better the Debian installation layout. * Build depend on Python helpers. [ Sven Höxter ] * Add DM-Upload-Allowed: yes. -- Arno Töll Tue, 19 Jul 2011 21:09:03 +0200 xnbd (0.0.3+hg20110222-1) unstable; urgency=low * New upstream release * Adapt to changes as upstream now incorporates several Debian improvements (man pages, Makefile). * Fixes license issue with upstream code -- Arno Töll Tue, 03 May 2011 18:39:29 +0200 xnbd (0.0.3+hg20110210-1) unstable; urgency=low * Initial release (Closes: #612817) -- Arno Töll Thu, 10 Feb 2011 15:32:57 -0500