Browse Source

Import Debian version 6-1

David Martínez Moreno 18 years ago
parent
commit
e640235178
10 changed files with 132 additions and 0 deletions
  1. 1 0
      debian/compat
  2. 15 0
      debian/control
  3. 24 0
      debian/copyright
  4. 39 0
      debian/rules
  5. 17 0
      debian/vblade.8
  6. 1 0
      debian/vblade.dirs
  7. 1 0
      debian/vblade.docs
  8. 2 0
      debian/vblade.install
  9. 23 0
      debian/vbladed.8
  10. 9 0
      vbladed

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+4

+ 15 - 0
debian/control

@@ -0,0 +1,15 @@
+Source: vblade
+Section: admin
+Priority: optional
+Maintainer: David Martínez Moreno <ender@debian.org>
+Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 4.2.28)
+
+Package: vblade
+Architecture: any
+Section: admin
+Priority: optional
+Depends: ${shlibs:Depends}
+Description: virtual AoE blade emulator
+ The vblade tool will allow an admin to export a local disk using the AOE
+ protocol, without the need of a real AOE-capable device.

+ 24 - 0
debian/copyright

@@ -0,0 +1,24 @@
+This package was debianized by David Martínez Moreno <ender@debian.org>
+on Mon, 25 Jul 2005 02:45:53 +0200.
+
+It was downloaded from: http://sourceforge.net/projects/aoetools/
+
+Copyright: Ed L. Cashin <ecashin@coraid.com>
+
+License:
+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; version 2 dated June, 1991.
+
+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 St, Fifth Floor, Boston, MA
+02110-1301, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.

+ 39 - 0
debian/rules

@@ -0,0 +1,39 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+	$(MAKE)
+	touch build-stamp
+
+binary-arch: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	dh_install
+	dh_installdocs
+	dh_installman debian/vblade.8 debian/vbladed.8
+	dh_installchangelogs NEWS
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep:
+	# do nothing
+
+binary: binary-arch binary-indep
+
+clean:
+	dh_testdir
+	dh_testroot
+	$(MAKE) clean
+	rm -f *-stamp
+	dh_clean

+ 17 - 0
debian/vblade.8

@@ -0,0 +1,17 @@
+.TH VBLADE 8 "2005-04-19"
+.SH NAME
+vblade \- set up and control virtual blade exports
+.SH SYNOPSIS
+Export a device:
+.sp
+.in +5
+.B vblade
+.I <shelf> <slot> <ethn> <device>
+.in -13
+.ad b
+.SH DESCRIPTION
+.B vblade
+is used to associate an AOE devices with regular files or block devices.
+
+Please refer to /usr/share/doc/vblade/README with details on how to use
+this command.

+ 1 - 0
debian/vblade.dirs

@@ -0,0 +1 @@
+usr/sbin

+ 1 - 0
debian/vblade.docs

@@ -0,0 +1 @@
+README

+ 2 - 0
debian/vblade.install

@@ -0,0 +1,2 @@
+vblade usr/sbin
+vbladed usr/sbin

+ 23 - 0
debian/vbladed.8

@@ -0,0 +1,23 @@
+.TH VBLADED 8 "2005-10-27"
+.SH NAME
+vbladed \- script to daemon virtual blade exports
+.SH SYNOPSIS
+Export a device:
+.sp
+.in +5
+.B vbladed
+.I <shelf> <slot> <ethn> <device>
+.in -13
+.ad b
+.SH DESCRIPTION
+.B vbladed
+really runs vblade with its same arguments, but logs any of its output
+into the syslog.
+
+Please refer to /usr/share/doc/vblade/README with details on how to use
+this command.
+.SH "SEE ALSO"
+.BR vblade (8)
+.SH AUTHOR
+David Martinez Moreno <ender@debian.org> wrote this man page for the Debian
+Project, but may be used by others.

+ 9 - 0
vbladed

@@ -3,4 +3,13 @@
 # output is directed to syslogd
 #
 
+# Although logging goes to syslog, let's going to
+# protect ourselves against the most common way or
+# calling vbladed: without arguments.
+if [ -z "$*" ]
+then
+    echo "usage: ./vblade <shelf> <slot> <ethn> <device>" >&2
+    exit 1
+fi
+
 sh -c "`dirname $0`/vblade - $* < /dev/null 2>&1 | logger -t vbladed" &