summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2005-03-06 00:59:29 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2005-03-06 00:59:29 +0000
commitc67b6c57611036317232896e8bc7066ab6bd5dd4 (patch)
treea51cb018f4f9b154d5bca54d1817ef70383e74f7 /sys-block
parentMarked ppc stable. (diff)
downloadgentoo-2-c67b6c57611036317232896e8bc7066ab6bd5dd4.tar.gz
gentoo-2-c67b6c57611036317232896e8bc7066ab6bd5dd4.tar.bz2
gentoo-2-c67b6c57611036317232896e8bc7066ab6bd5dd4.zip
Moved from sys-apps/nbd to sys-block/nbd.
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/nbd/ChangeLog64
-rw-r--r--sys-block/nbd/Manifest21
-rw-r--r--sys-block/nbd/files/digest-nbd-2.6.01
-rw-r--r--sys-block/nbd/files/digest-nbd-2.7.12
-rw-r--r--sys-block/nbd/files/digest-nbd-2.7.22
-rw-r--r--sys-block/nbd/files/docbook2man.patch16
-rw-r--r--sys-block/nbd/files/nbd-client.899
-rw-r--r--sys-block/nbd/files/nbd-server.1125
-rw-r--r--sys-block/nbd/metadata.xml5
-rw-r--r--sys-block/nbd/nbd-2.6.0.ebuild36
-rw-r--r--sys-block/nbd/nbd-2.7.1.ebuild44
-rw-r--r--sys-block/nbd/nbd-2.7.2.ebuild44
12 files changed, 459 insertions, 0 deletions
diff --git a/sys-block/nbd/ChangeLog b/sys-block/nbd/ChangeLog
new file mode 100644
index 000000000000..ee4a839b0fdb
--- /dev/null
+++ b/sys-block/nbd/ChangeLog
@@ -0,0 +1,64 @@
+# ChangeLog for sys-apps/nbd
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/nbd/ChangeLog,v 1.1 2005/03/06 00:59:29 ciaranm Exp $
+
+*nbd-2.7.1 (06 Mar 2005)
+
+ 06 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> +metadata.xml,
+ +files/docbook2man.patch, +files/nbd-client.8, +files/nbd-server.1,
+ +nbd-2.6.0.ebuild, +nbd-2.7.1.ebuild, +nbd-2.7.2.ebuild:
+ Moved from sys-apps/nbd to sys-block/nbd.
+
+*nbd-2.7.2 (03 Nov 2004)
+
+ 03 Nov 2004; Mike Frysinger <vapier@gentoo.org> +nbd-2.7.2.ebuild:
+ Version bump.
+
+ 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> nbd-2.7.1.ebuild:
+ Masked nbd-2.7.1.ebuild stable for ppc
+
+ 13 Aug 2004; Rob Holland <tigger@gentoo.org> nbd-2.7.1.ebuild:
+ Actually install the manual pages, not the output of docbook2man.
+
+ 05 Jul 2004; Mike Frysinger <vapier@gentoo.org> nbd-2.7.1.ebuild:
+ Include the nbd.h file from linux-2.6.7 to work around older linux-headers
+ #56102 by Pieter De Wit.
+
+*nbd-2.7.1 (20 Jun 2004)
+
+ 20 Jun 2004; Mike Frysinger <vapier@gentoo.org> +nbd-2.7.1.ebuild:
+ Version bump #54483 by Ryan Earl.
+
+*nbd-2.6.0 (02 May 2004)
+
+ 02 May 2004; Mike Frysinger <vapier@gentoo.org> :
+ Version bump #49587 by Redeeman.
+
+*nbd-2.0-r1 (04 Apr 2004)
+
+ 04 Apr 2004; Mike Frysinger <vapier@gentoo.org> :
+ Fix src_install() and install manpages.
+
+*nbd-2.0 (20 Apr 2003)
+
+ 20 Apr 2003; Arcady Genkin <agenkin@gentoo.org> :
+ Version bump.
+ The project is now hosted at SF.
+
+*nbd-14 (18 Feb 2002)
+
+ 02 Aug 2002; Seemant Kulleen <seemant@gentoo.org> nbd-14.ebuild :
+
+ Typo fix, submitted by: bm78ac@gmx.de (Ralf Miunske) in bug #5910.
+
+ 21 Jul 2002; Mark Guertin <gerk@gentoo.org>:
+ updated keywords (-ppc), this relies on x86 kernel
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> nbd-14.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 18 Feb 2002; Chris Houser <chouser@gentoo.org> :
+
+ This is the first ebuild for nbd, the Linux Network Block Device client and
+ server userland utilities. To use these, you will need to have NBD compiled
+ into your kernel.
diff --git a/sys-block/nbd/Manifest b/sys-block/nbd/Manifest
new file mode 100644
index 000000000000..cba62960bad9
--- /dev/null
+++ b/sys-block/nbd/Manifest
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 d118369aab2133fb99716c7b6eb39b57 ChangeLog 1821
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 244cde1f3935f9d803cd60f6dfffcb48 nbd-2.6.0.ebuild 791
+MD5 163865fa3877aba4bf0c0e39d123e011 nbd-2.7.1.ebuild 989
+MD5 41a54a5f6af729d92bf3d959b89893e9 nbd-2.7.2.ebuild 989
+MD5 f897737fcb8999f6281a2df960b05119 files/nbd-client.8 3095
+MD5 df04bcd5d2490ea5fc2bfffdddd74172 files/nbd-server.1 4432
+MD5 d958e9b80c8885d0368dfe2fe4b3ad37 files/digest-nbd-2.6.0 60
+MD5 61d64bd0afc3756d1b8848e9204f6bb8 files/digest-nbd-2.7.1 127
+MD5 3c92585e853a1de0f617fc02554655a4 files/docbook2man.patch 585
+MD5 55671361131ffc00d6ab74e8bebbecbd files/digest-nbd-2.7.2 127
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBiOgcHTu7gpaalycRAmlCAKCdbP9EqQDX5R+9Dmrrwi6M9U2MQQCgtZGm
+MNLV0xjpHVoUfLfGyABW7tU=
+=r+bc
+-----END PGP SIGNATURE-----
diff --git a/sys-block/nbd/files/digest-nbd-2.6.0 b/sys-block/nbd/files/digest-nbd-2.6.0
new file mode 100644
index 000000000000..6ab12551cd66
--- /dev/null
+++ b/sys-block/nbd/files/digest-nbd-2.6.0
@@ -0,0 +1 @@
+MD5 97ee3120f321628b86f5c0fe77f89255 nbd-2.6.0.tar.gz 88774
diff --git a/sys-block/nbd/files/digest-nbd-2.7.1 b/sys-block/nbd/files/digest-nbd-2.7.1
new file mode 100644
index 000000000000..151708262897
--- /dev/null
+++ b/sys-block/nbd/files/digest-nbd-2.7.1
@@ -0,0 +1,2 @@
+MD5 54bc2b6069e752f89974ec46f96ff547 nbd-2.7.1.tar.gz 124724
+MD5 3e45be16d413bda30b23bf7dd30c48d7 nbd-linux-include.h.bz2 1248
diff --git a/sys-block/nbd/files/digest-nbd-2.7.2 b/sys-block/nbd/files/digest-nbd-2.7.2
new file mode 100644
index 000000000000..579511831d4f
--- /dev/null
+++ b/sys-block/nbd/files/digest-nbd-2.7.2
@@ -0,0 +1,2 @@
+MD5 4cfe5713737ce81d619898602bb142a4 nbd-2.7.2.tar.gz 124883
+MD5 3e45be16d413bda30b23bf7dd30c48d7 nbd-linux-include.h.bz2 1248
diff --git a/sys-block/nbd/files/docbook2man.patch b/sys-block/nbd/files/docbook2man.patch
new file mode 100644
index 000000000000..a4e5f2d0394a
--- /dev/null
+++ b/sys-block/nbd/files/docbook2man.patch
@@ -0,0 +1,16 @@
+--- Makefile.in.orig 2004-08-13 13:53:05.222620328 +0000
++++ Makefile.in 2004-08-13 13:53:39.057476648 +0000
+@@ -639,9 +639,11 @@
+ uninstall-sbinPROGRAMS
+
+ nbd-server.1: nbd-server.1.sgml
+- docbook-to-man nbd-server.1.sgml > nbd-server.1
++ docbook2man nbd-server.1.sgml
++ mv NBD-SERVER.1 nbd-server.1
+ nbd-client.8: nbd-client.8.sgml
+- docbook-to-man nbd-client.8.sgml > nbd-client.8
++ docbook2man nbd-client.8.sgml
++ mv NBD-CLIENT.8 nbd-client.8
+ dist-hook:
+ rm -Rf `find $(distdir) -name 'CVS' -type d -print`
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/sys-block/nbd/files/nbd-client.8 b/sys-block/nbd/files/nbd-client.8
new file mode 100644
index 000000000000..1186212369ff
--- /dev/null
+++ b/sys-block/nbd/files/nbd-client.8
@@ -0,0 +1,99 @@
+.\" This manpage has been automatically generated by docbook2man
+.\" from a DocBook document. This tool can be found at:
+.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
+.\" Please send any bug reports, improvements, comments, patches,
+.\" etc. to Steve Cheng <steve@ggi-project.org>.
+.TH "NBD-CLIENT" "8" "04 April 2004" "" ""
+.SH NAME
+nbd-client \- connect to a server running nbd-server(1), to use its exported block device
+.SH SYNOPSIS
+
+\fBnbd-client\fR [ \fBbs=\fIblocksize\fB\fR ] \fB\fIhost\fB\fR \fB\fIport\fB\fR \fB\fInbd-device\fB\fR [ \fB-swap\fR ]
+
+
+\fBnbd-client\fR \fB-d \fInbd-device\fB\fR
+
+.SH "DESCRIPTION"
+.PP
+This manual page documents briefly the
+\fBnbd-client\fR command.
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+With \fBnbd-client\fR, you can connect to a
+server running \fBnbd-server\fR, thus using raw
+diskspace from that server as a blockdevice on the local
+client.
+.PP
+To do this, support from the Linux Kernel is necessary, in
+the form of the Network Block Device (NBD). When you have that,
+either in the kernel, or as a module, you can connect to an NBD
+server and use its exported file through a block special file with
+major mode 43.
+.SH "OPTIONS"
+.PP
+The following options are supported:
+.TP
+\fBbs=\fIblocksize\fB\fR
+Use a blocksize of "blocksize". Default is 1024;
+allowed values are either 512, 1024, 2048 or 4096
+.TP
+\fBhost\fR
+The hostname of the machine running
+\fBnbd-server\fR.
+.TP
+\fBport\fR
+The TCP port on which \fBnbd-server\fR is
+running at the server.
+.TP
+\fBnbd-device\fR
+The block special file this nbd-client should connect
+to.
+.TP
+\fB-swap\fR
+Specifies that this NBD device will be used as
+swapspace. If you intend to do that, please use this
+option to prevent deadlocks. You'll need a special kernel
+patch, available at NBD's homepage:
+http://atrey.karlin.mff.cuni.cz/~pavel
+.SH "EXAMPLES"
+.PP
+Some examples of nbd-client usage:
+.TP 0.2i
+\(bu
+To connect to a server running on port 2000 at host
+"server.domain.com", using the client's block special file
+"/dev/nd0":
+
+\fBnbd-client 2000 server.domain.com
+/dev/nd0\fR
+.TP 0.2i
+\(bu
+To connect to a server running on port 2001 at host
+"swapserver.domain.com", using the client's block special
+file "/dev/nd1", for swap purposes:
+
+\fBnbd-client 2001 swapserver.domain.com /dev/nd1
+-swap\fR
+.TP 0.2i
+\(bu
+To disconnect the above connection again (after making
+sure the block special file is not in use anymore):
+
+\fBnbd-client -d /dev/nd1\fR
+.SH "SEE ALSO"
+.PP
+nbd-server (1).
+.SH "AUTHOR"
+.PP
+The NBD kernel module and the NBD tools have been written by
+Pavel Macheck (pavel@ucw.cz).
+.PP
+This manual page was written by Wouter Verhelst (<wouter@debian.org>) for
+the Debian GNU/Linux system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under the
+terms of the GNU Free Documentation License,
+Version 1.1 or any later version published by the Free Software
+Foundation; with no Invariant Sections, no Front-Cover Texts and
+no Back-Cover Texts.
diff --git a/sys-block/nbd/files/nbd-server.1 b/sys-block/nbd/files/nbd-server.1
new file mode 100644
index 000000000000..b0da337fe7f7
--- /dev/null
+++ b/sys-block/nbd/files/nbd-server.1
@@ -0,0 +1,125 @@
+.\" This manpage has been automatically generated by docbook2man
+.\" from a DocBook document. This tool can be found at:
+.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
+.\" Please send any bug reports, improvements, comments, patches,
+.\" etc. to Steve Cheng <steve@ggi-project.org>.
+.TH "NBD-SERVER" "1" "04 April 2004" "" ""
+.SH NAME
+nbd-server \- serve a file as a block device to other computers running the GNU/Linux(tm) or GNU/Hurd Operating System
+.SH SYNOPSIS
+
+\fBnbd-server\fR [ \fB-c \fIthis\fB\fR ] \fB\fIport\fB\fR \fB\fIfilename\fB\fR [ \fB\fIsize\fB\fR ] [ \fB-r\fR ] [ \fB-m\fR ] [ \fB-c\fR ]
+
+.SH "DESCRIPTION"
+.PP
+This manual page documents the
+\fBnbd-server\fR command.
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.
+.PP
+\fBnbd-server\fR is the server for the Linux
+Network Block Device (NBD). With NBD, a client can use a file,
+exported over the network from a server, as a block device. It can
+then be used for whatever purpose a normal block device (harddisk,
+CD-ROM, ...) can be used for.
+.PP
+NBD can be usefull for diskless clients that need swapspace,
+but you can also create a filesystem on it and use it as though it
+were a local filesystem.
+.PP
+\fBnbd-server\fR implements some security
+through a file called "nbd_server.allow" in the current directory.
+This file must list the IP-addresses of clients that are allowed
+to connect. If it does not exist, all clients are able to connect.
+If the file is empty, no clients can connect.
+.SH "OPTIONS"
+.TP
+\fBport \fR
+The port the server should listen to. A valid port is
+any number between 1 and 65536; if 0 is used, nbd-server
+will listen on stdin (so that nbd-server can be ran from
+inetd)
+.TP
+\fBfilename\fR
+The filename of the file that should be exported. This
+can be any file, including "real" blockdevices (i.e. a file
+from /dev). If the filename includes the literal string
+"%s", then this %s will be substituded with the IP-address
+of the client trying to connect.
+.TP
+\fBsize\fR
+The size of the block device at the client side. This
+is especially usefull in conjunction with the -m
+option
+
+Can optionally be followed by one of K,k,M or
+m, in which case the size will be multiplied by 1024 (K
+or k) or 1048576 (M or m)
+.TP
+\fB-r\fR
+Export the file read-only. If a client tries to write
+to a read-only exported file, it will receive an error, but
+the connection will stay up.
+.TP
+\fB-m\fR
+Work with multiple files. This can be used to export
+blockdevices that are larger than the maximum allowed
+filesize on a given filesystem; i.e. when the filesystem
+does not allow files larger than 2GB (which is true for
+Linux 2.2 and below), you can use this option to store the
+data in multiple files and export a larger filesystem, if
+needed.
+.TP
+\fB-c\fR
+Copy on write. When this option is provided,
+write-operations are not done to the exported file, but to a
+separate file. This separate file is removed when the
+connection is closed, which means that serving this way will
+make nbd-server slow down (especially on large block devices
+with lots of writes), and that after disconnecting and
+reconnecting the client or the server, all changes are
+lost.
+.SH "EXAMPLES"
+.PP
+Some examples of nbd-server usage:
+.TP 0.2i
+\(bu
+To export a file /export/nbd/exp-bl-dev on port 2000:
+
+\fBnbd-server 2000 /export/nbd/exp-bl-dev\fR
+.TP 0.2i
+\(bu
+To export a the same file read-only:
+
+\fBnbd-server 2000 /export/nbd/exp-bl-dev -r\fR
+.TP 0.2i
+\(bu
+To export the same file read-write, but make sure
+changes are lost after restarting the client or the
+server:
+
+\fBnbd-server 2000 /export/nbd/exp-bl-dev
+-c\fR
+.SH "FILES"
+.TP
+\fB\fInbd_server.allow\fB\fR
+This file, which must be in the directory where
+nbd-server is invoked, can contain a list of IP-addresses
+for hosts that may connect to the server. Wildcards are
+not allowed.
+.SH "SEE ALSO"
+.PP
+nbd-client (8).
+.SH "AUTHOR"
+.PP
+The NBD kernel module and the NBD tools were written by
+Pavel Machek (pavel@ucw.cz)
+.PP
+This manual page was written by Wouter Verhelst (<wouter@debian.org>) for
+the Debian GNU/Linux system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU Free Documentation
+License, Version 1.1 or any later version published by the Free
+Software Foundation; with no Invariant Sections, no Front-Cover
+Texts and no Back-Cover Texts.
diff --git a/sys-block/nbd/metadata.xml b/sys-block/nbd/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/sys-block/nbd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>
diff --git a/sys-block/nbd/nbd-2.6.0.ebuild b/sys-block/nbd/nbd-2.6.0.ebuild
new file mode 100644
index 000000000000..dc88081a73db
--- /dev/null
+++ b/sys-block/nbd/nbd-2.6.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/nbd/nbd-2.6.0.ebuild,v 1.1 2005/03/06 00:59:29 ciaranm Exp $
+
+DESCRIPTION="Userland client/server for kernel network block device"
+HOMEPAGE="http://nbd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/nbd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc amd64"
+IUSE=""
+
+DEPEND="virtual/libc"
+
+S=${WORKDIR}/${PN}-2.6
+
+src_unpack() {
+ unpack ${A}
+ sed -i "s:-O2:${CFLAGS}:" ${S}/gznbd/Makefile
+}
+
+src_compile() {
+ econf || die
+ emake || die
+ emake -C gznbd || die
+}
+
+src_install() {
+ dodir /usr/bin
+ make install prefix=${D}/usr || die
+ dobin gznbd/gznbd || die
+
+ doman ${FILESDIR}/nbd-client.8 ${FILESDIR}/nbd-server.1
+ dodoc README
+}
diff --git a/sys-block/nbd/nbd-2.7.1.ebuild b/sys-block/nbd/nbd-2.7.1.ebuild
new file mode 100644
index 000000000000..97b617a553f4
--- /dev/null
+++ b/sys-block/nbd/nbd-2.7.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/nbd/nbd-2.7.1.ebuild,v 1.1 2005/03/06 00:59:29 ciaranm Exp $
+
+inherit eutils
+
+DESCRIPTION="Userland client/server for kernel network block device"
+HOMEPAGE="http://nbd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/nbd/${P}.tar.gz
+ mirror://gentoo/nbd-linux-include.h.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="virtual/libc
+ app-text/docbook-sgml-utils"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i "s:-O2:${CFLAGS}:" gznbd/Makefile
+ epatch ${FILESDIR}/docbook2man.patch
+ if [ -z "`grep NBD_CMD_DISC ${ROOT}/usr/include/linux/nbd.h`" ] ; then
+ mkdir linux
+ mv ../nbd-linux-include.h linux/nbd.h
+ fi
+}
+
+src_compile() {
+ econf \
+ --enable-lfs \
+ --enable-syslog \
+ || die
+ emake || die
+ emake -C gznbd || die
+}
+
+src_install() {
+ make install DESTDIR=${D} || die
+ dobin gznbd/gznbd || die
+ dodoc README
+}
diff --git a/sys-block/nbd/nbd-2.7.2.ebuild b/sys-block/nbd/nbd-2.7.2.ebuild
new file mode 100644
index 000000000000..01f05aa873a2
--- /dev/null
+++ b/sys-block/nbd/nbd-2.7.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/nbd/nbd-2.7.2.ebuild,v 1.1 2005/03/06 00:59:29 ciaranm Exp $
+
+inherit eutils
+
+DESCRIPTION="Userland client/server for kernel network block device"
+HOMEPAGE="http://nbd.sourceforge.net/"
+SRC_URI="mirror://sourceforge/nbd/${P}.tar.gz
+ mirror://gentoo/nbd-linux-include.h.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="virtual/libc
+ app-text/docbook-sgml-utils"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i "s:-O2:${CFLAGS}:" gznbd/Makefile
+ epatch ${FILESDIR}/docbook2man.patch
+ if [ -z "`grep NBD_CMD_DISC ${ROOT}/usr/include/linux/nbd.h`" ] ; then
+ mkdir linux
+ mv ../nbd-linux-include.h linux/nbd.h
+ fi
+}
+
+src_compile() {
+ econf \
+ --enable-lfs \
+ --enable-syslog \
+ || die
+ emake || die
+ emake -C gznbd || die
+}
+
+src_install() {
+ make install DESTDIR=${D} || die
+ dobin gznbd/gznbd || die
+ dodoc README
+}