nbd: deleted unmaintained port

This commit is contained in:
Tim Biermann 2021-03-04 09:27:22 +00:00
parent d3d6a653d5
commit b66bbdee75
Signed by: tb
GPG Key ID: 42F8B4E30B673606
6 changed files with 0 additions and 148 deletions

View File

@ -1,21 +0,0 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/nbd-server/
-rw------- root/root etc/nbd-server/allow
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/nbd-server
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nbd-server
-rwxr-xr-x root/root usr/bin/nbd-trdump
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/nbd-client
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/nbd-server.1.gz
-rw-r--r-- root/root usr/share/man/man1/nbd-trdump.1.gz
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/nbd-server.5.gz
-rw-r--r-- root/root usr/share/man/man5/nbdtab.5.gz
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/nbd-client.8.gz

View File

@ -1,7 +0,0 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF392xEuSPb5ha7z7hH9GX91IhfSCurV5dsnS28C9UX/+SrJqh51hUeOxsb3pb69fUaGk11OVW6H4uHEwHDF2uIA4=
SHA256 (Pkgfile) = f09243a4de87ec2d7a85235c8c0b196f6eeac688218dc1347427845473115d82
SHA256 (.footprint) = 0e88e67180016a37294122c520245f8f6808a62dfc9ae5a4408bb8e9f2502e6b
SHA256 (nbd-server) = 1333ace24f4a52a649f9edcc0dab752bb214013f3be14a09dc75fd7e097abc18
SHA256 (allow) = 4a1342ede63a9f3f22fb5af4e79aac5ea29876f6f7252ec5ffe17dea9c06c5e4
SHA256 (nbd-3.21.tar.xz) = e7688af39d91733bbcd2db08062c44fe503d004e51528740139c44aff6a6bef9

View File

@ -1,28 +0,0 @@
# Description: Share or use block devices with the NBD-protocol
# URL: http://nbd.sourceforge.net/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: glib
name=nbd
version=3.21
release=1
source=(nbd-server allow \
http://downloads.sourceforge.net/project/nbd/nbd/$version/$name-$version.tar.xz)
build() {
cd $name-$version
sed -i 's|CFLAGS+=" |CFLAGS="$CFLAGS |g' configure
sed -i 's|LIBS+=" |LIBS="$LIBS |g' configure
./configure --prefix=/usr \
--sysconfdir=/etc
make
make DESTDIR=$PKG install
install -d $PKG/etc/nbd-server
install -D -m 600 $SRC/allow $PKG/etc/nbd-server/allow
install -D -m 755 $SRC/nbd-server $PKG/etc/rc.d/nbd-server
}

View File

@ -1,57 +0,0 @@
(Partially taken from the nbd-source)
You have to have support for CONFIG_BLK_DEV_NBD in your kernel.
Since there's a problem with nbd and the cfq I/O scheduler,
you may want to set it to deadline:
echo 'deadline' > /sys/block/nbd0/queue/scheduler
(repeat the above for nbd1, nbd2, etc, if you need more than one device)
Next, start the server. You can use a file or a block device for that, e.g.
nbd-server 1234 /home/wouter/nbd-export
Note that the filename must be an absolute path; i.e., something like
/path/to/file, not ../file. See the nbd-server manpage for details on
any available options.
Finally, you'll be able to start the client, e.g.
nbd-client 10.0.0.1 1234 /dev/nb0
nbd-client must be ran as root; the same is not true for nbd-server (but
do make sure that /var/run is writeable by the server that nbd-server
runs as; otherwise, you won't get a PID file, though the server will
keep running).
nbd-server can be configured by modifying
/etc/nbd-server/config, and should look something like this:
# This is a comment
[generic]
# The [generic] section is required, even if nothing is specified
# there.
# When either of these options are specified, nbd-server drops
# privileges to the given user and group after opening ports, but
# _before_ opening files.
user = nbd
group = nbd
[export1]
exportname = /export/nbd/export1-file
port = 12345
authfile = /export/nbd/export1-authfile
timeout = 30
filesize = 10000000
readonly = false
multifile = false
copyonwrite = false
prerun = dd if=/dev/zero of=%s bs=1k count=500
postrun = rm -f %s
[otherexport]
exportname = /export/nbd/experiment
port = 12346
# The other options are all optional.
extended documentation can be found in nbd-server(5)

View File

@ -1,7 +0,0 @@
# nbd-server access configuration file
# list of hosts allowed to connect to our exportet
#
#127.0.0.1
# CIDR notation is allowed also
#192.168.0.0/8

View File

@ -1,28 +0,0 @@
#!/bin/sh
#
# /etc/rc.d/nbd-server: start/stop nbd daemon
#
case $1 in
start)
/usr/bin/nbd-server -p /var/run/nbd-server.pid -l /etc/nbd-server/allow
;;
stop)
if [ -f /var/run/nbd-server.pid ]; then
kill `cat /var/run/nbd-server.pid`
rm -f /var/run/nbd-server.pid
else
killall -q /usr/sbin/nbd-server
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file