debian/0000755000000000000000000000000012144232010007153 5ustar debian/dirs0000644000000000000000000000003712144231660010051 0ustar etc/bash_completion.d usr/sbin debian/source/0000755000000000000000000000000012144231660010465 5ustar debian/source/format0000644000000000000000000000001412144231660011673 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012712144231660010216 0ustar version=3 opts=dversionmangle=s/~debian$// \ http://sf.net/mtx/mtx-([0-9\.]+)\.tar\.gz debian/copyright0000644000000000000000000000077012144231660011124 0ustar This package was debianized by Bdale Garbee bdale@gag.com on Sun, 10 Aug 1997 03:05:18 -0600. mtx was downloaded from http://mtx.sourceforge.net/ Copyright: Copyright 1997, 1998 Leonard Zubkoff Changes copyright 2000, 2001 Eric Green Changes copyright 2007-2008 by Robert Nelson GPL, version 2 On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/bash_completion0000644000000000000000000000201212144231660012251 0ustar # mtx completion by Jon Middleton # # $Id: bash_completion,v 1.1 2004-02-15 05:43:25 bdale Exp $ _mtx() { local cur prev options tapes drives COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} options="-f nobarcode invert noattach --version inquiry noattach \ inventory status load unload eepos first last next" tapes=$(mtx status | \ awk '/Storage Element [0-9]+:Full/ { printf "%s ", $3 }') tapes=${tapes//:Full} drives=$(mtx status | \ awk '/Data Transfer Element [0-9]+:(Full|Empty)/ { printf "%s ", $4 }') drives=${drives//:Full} drives=${drives//:Empty} if [ $COMP_CWORD -gt 1 ]; then case $prev in load) COMPREPLY=( $( compgen -W "$tapes" -- $cur ) ) ;; unload|first|last|next) COMPREPLY=( $( compgen -W "$drives" -- $cur ) ) ;; -f) true ;; *) true ;; esac else COMPREPLY=( $( compgen -W "$options" -- $cur ) ) fi return 0 } complete -F _mtx mtx debian/changelog0000644000000000000000000001517012144231677011053 0ustar mtx (1.3.12-8) unstable; urgency=low * Upload to unstable. -- Ivo De Decker Mon, 13 May 2013 20:40:38 +0200 mtx (1.3.12-7) experimental; urgency=low * Switch to debhelper 9. * Switch to source format 3.0 (quilt). * Don't build on hurd. Closes: #677616 * Update standards-version to 3.9.4 (no changes). -- Ivo De Decker Sun, 10 Mar 2013 18:42:35 +0100 mtx (1.3.12-6) unstable; urgency=low * Adopt this package. Closes: #701030 Thanks to Bdale for maintaining it all these years. * Update upstream URL. Closes: #701121 -- Ivo De Decker Tue, 26 Feb 2013 20:38:14 +0100 mtx (1.3.12-5) unstable; urgency=low * orphan this package -- Bdale Garbee Wed, 20 Feb 2013 10:26:00 -0700 mtx (1.3.12-4) unstable; urgency=low * add Vcs-Browser entry to the control file * change Build-Depends to use kfreebsd-any, closes: #634500 -- Bdale Garbee Sun, 20 Nov 2011 17:18:50 -0700 mtx (1.3.12-3) unstable; urgency=low * add Homepage field to control file, closes: #556747 -- Bdale Garbee Sat, 20 Mar 2010 01:39:17 -0600 mtx (1.3.12-2) unstable; urgency=low * patch from David Paleino to improve bash completions, closes: #522739 * switch to using dh_bash-completion -- Bdale Garbee Mon, 06 Apr 2009 10:20:08 -0600 mtx (1.3.12-1) unstable; urgency=low * new upstream version, closes: #500590 * clean up lintian warnings * incorporate two changes suggested by a patch from Adam Cécile (Le_Vert): * add debian/watch * move config.* update to configure target, yields a smaller diff that doesn't clash with git-buildpackage... already had autotools-dev build dep! -- Bdale Garbee Sun, 15 Feb 2009 10:17:54 -0700 mtx (1.3.11-1) unstable; urgency=low * new upstream version, closes: #425687, #425688 * don't let Makefile.in strip binaries, let dh_strip do it, closes: #437589 -- Bdale Garbee Tue, 15 Apr 2008 14:34:32 -0600 mtx (1.2.17rel-2) unstable; urgency=low * update config.sub and config.guess in rules clean target using the autotools-dev package, closes: #367467 -- Bdale Garbee Sat, 19 Aug 2006 18:44:54 -0600 mtx (1.2.17rel-1) unstable; urgency=low * new upstream version -- Bdale Garbee Wed, 28 Jun 2006 23:57:44 -0400 mtx (1.2.16rel-5) unstable; urgency=low * add build-deps needed for GNU/kFreeBSD, closes: #367467 * update debhelper build dependency -- Bdale Garbee Wed, 28 Jun 2006 23:42:00 -0400 mtx (1.2.16rel-4) unstable; urgency=medium * revert SG_SCSI_DEFAULT_TIMEOUT to 5 minutes since at least the Sony TLS-9000 takes more than a minute to load sometimes, closes: #229169 * remove 'previous' from command summary, since it's not actually implemented in the program, closes: #230041 * include bash_completion file from Jon Middleton, closes: #227456 -- Bdale Garbee Sat, 14 Feb 2004 22:36:23 -0700 mtx (1.2.16rel-3) unstable; urgency=low * apply patch from Torsten Werner that elminates hard-coding of the value of HZ, closes: #224147 -- Bdale Garbee Tue, 16 Dec 2003 10:04:26 -0700 mtx (1.2.16rel-2) unstable; urgency=low * apply patch from R.A.Owen that fixes the "staggered" output from the status command on some changers, closes: #129910 -- Bdale Garbee Tue, 9 Apr 2002 19:30:06 -0600 mtx (1.2.16rel-1) unstable; urgency=low * new upstream version, bug-fixing release, reportedly fixes timeout problem with some drives, closes: #113947 -- Bdale Garbee Mon, 4 Mar 2002 01:27:48 -0700 mtx (1.2.15-1) unstable; urgency=low * new upstream source * update standards version, rebuild rules file * man pages all included now, mtx-changer and other pieces from contrib provided as examples, though chg-mtx in the amanda package is probably a better choice for use with amanda, closes: #113728 * apply diffs to correct "spelling errors" (actually hyphenation) in the descriptions in the control file, closes: #125160 -- Bdale Garbee Sun, 30 Dec 2001 21:28:46 -0700 mtx (1.2.10-1) unstable; urgency=low * new upstream source -- Bdale Garbee Mon, 11 Dec 2000 17:34:13 -0700 mtx (1.0-10) frozen unstable; urgency=low * deliver mtx.doc, lost when the package was made FHS compliant, closes: #56276 Target frozen since including the documentation is worthwhile for potato, and there is no added risk. -- Bdale Garbee Wed, 9 Feb 2000 12:27:58 -0700 mtx (1.0-9) unstable; urgency=low * fix postinst/postrm scripts to be executable again -- Bdale Garbee Tue, 11 Jan 2000 23:00:17 -0700 mtx (1.0-8) unstable; urgency=low * update to latest standards revision, add Build-Depends * fix all the lintian errors that aren't intentional, override the two permissions warnings since they're precisely what is needed -- Bdale Garbee Fri, 7 Jan 2000 02:47:08 -0700 mtx (1.0-7) unstable; urgency=low * grab a local copy of scsi_ioctl.h from the 2.2.10 kernel source tree. This doesn't change often in any way we care about, and this is much simpler than having to reference a live kernel tree somewhere... * move to debhelper and CVS -- Bdale Garbee Sun, 20 Jun 1999 10:42:39 -0600 mtx (1.0-6) unstable; urgency=low * put mtx in group backup, setuid root, perms set so that only members of group backup can run mtx. This makes mtx compatible with amanda. -- Bdale Garbee Tue, 27 Jan 1998 15:06:13 -0700 mtx (1.0-5) unstable; urgency=low * explicit include path to find in the /usr/src/linux/include tree. closes bug 16877 -- Bdale Garbee Sun, 25 Jan 1998 23:02:46 -0700 mtx (1.0-4) unstable; urgency=low * actually install the mtx.doc file that's referenced in the man page /o\ -- Bdale Garbee Sun, 21 Sep 1997 02:38:50 -0600 mtx (1.0-3) unstable; urgency=low * libc6 -- Bdale Garbee Thu, 4 Sep 1997 02:56:39 -0600 mtx (1.0-2) unstable; urgency=low * Add an 'mtx-changer' wrapper script from the amanda-users mailing list to make this more useful with Amanda. * Hack mtx-changer to report 6 slots instead of 4, since I have an HP SureStore 12000e. Should make it configurable, someday. -- Bdale Garbee Sun, 10 Aug 1997 03:50:42 -0600 mtx (1.0-1) unstable; urgency=low * Initial Release. -- Bdale Garbee Sun, 10 Aug 1997 03:05:18 -0600 debian/control0000644000000000000000000000136612144231660010576 0ustar Source: mtx Section: admin Priority: extra Maintainer: Ivo De Decker Build-Depends: debhelper (>= 9), libcam-dev [kfreebsd-any], autotools-dev, bash-completion Standards-Version: 3.9.4 Homepage: http://sourceforge.net/projects/mtx/ Package: mtx # does not build on hurd: see http://bugs.debian.org/677616 Architecture: linux-any kfreebsd-any Depends: ${misc:Depends}, ${shlibs:Depends} Description: controls tape autochangers MTX can be used to manipulate tape auto-changers, also known as "jukeboxes", such that backup software can make use of the multiple tape capabilities of the auto-changer. In particular, this is necessary glue for using a backup system like Amanda with a DDS auto-changer like the HP Surestore 12000e. debian/compat0000644000000000000000000000000212144231660010363 0ustar 9 debian/examples0000644000000000000000000000001212144231660010717 0ustar contrib/* debian/rules0000755000000000000000000000020112144231660010236 0ustar #!/usr/bin/make -f %: dh $@ --with bash-completion,autotools_dev override_dh_auto_install: make install prefix=debian/mtx/usr debian/mtx.bash-completion0000644000000000000000000000203112144231660012777 0ustar # -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*- # ex: ts=8 sw=8 noet filetype=sh # # mtx completion by Jon Middleton _mtx() { local cur prev options tapes drives COMPREPLY=() cur=`_get_cword` prev=${COMP_WORDS[COMP_CWORD-1]} options="-f nobarcode invert noattach --version inquiry noattach \ inventory status load unload eepos first last next" tapes=$(mtx status | \ awk '/Storage Element [0-9]+:Full/ { printf "%s ", $3 }') tapes=${tapes//:Full} drives=$(mtx status | \ awk '/Data Transfer Element [0-9]+:(Full|Empty)/ { printf "%s ", $4 }') drives=${drives//:Full} drives=${drives//:Empty} if [ $COMP_CWORD -gt 1 ]; then case $prev in load) COMPREPLY=( $( compgen -W "$tapes" -- "$cur" ) ) ;; @(unload|first|last|next)) COMPREPLY=( $( compgen -W "$drives" -- "$cur" ) ) ;; *) true ;; esac else COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) fi return 0 } complete -F _mtx mtx