--- lsscsi-0.14.orig/Makefile +++ lsscsi-0.14/Makefile @@ -1,8 +1,11 @@ SHELL = /bin/sh -PREFIX=/usr/local +# PREFIX and MANDIR changed for Debian +#PREFIX=/usr/local +PREFIX=/usr INSTDIR=$(DESTDIR)/$(PREFIX)/bin -MANDIR=$(DESTDIR)/$(PREFIX)/man +#MANDIR=$(DESTDIR)/$(PREFIX)/man +MANDIR=$(DESTDIR)/$(PREFIX)/share/man CC = gcc LD = gcc --- lsscsi-0.14.orig/debian/changelog +++ lsscsi-0.14/debian/changelog @@ -0,0 +1,8 @@ +lsscsi (0.14-1) unstable; urgency=low + + * Initial Release. + * Standard dh_make single package, minor Makefile variable changes, + no other changes needed. (upstream knows how to use DESTDIR) + + -- Matt Taggart Wed, 2 Feb 2005 00:27:11 -0800 + --- lsscsi-0.14.orig/debian/compat +++ lsscsi-0.14/debian/compat @@ -0,0 +1 @@ +4 --- lsscsi-0.14.orig/debian/control +++ lsscsi-0.14/debian/control @@ -0,0 +1,15 @@ +Source: lsscsi +Section: admin +Priority: optional +Maintainer: Matt Taggart +Build-Depends: debhelper (>= 4.0.0), libsysfs-dev +Standards-Version: 3.6.1 + +Package: lsscsi +Architecture: any +Depends: ${shlibs:Depends} +Description: list all SCSI devices (or hosts) currently on system + Uses information in sysfs (linux kernels 2.6.0 and later) to list all + scsi devices (or hosts) currently attached to the system. Options can + be used to control the amount and form of information provided for each + device. --- lsscsi-0.14.orig/debian/rules +++ lsscsi-0.14/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/lsscsi.sgml > lsscsi.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/lsscsi. + $(MAKE) install DESTDIR=$(CURDIR)/debian/lsscsi + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGELOG + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- lsscsi-0.14.orig/debian/copyright +++ lsscsi-0.14/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Matt Taggart on +Wed, 2 Feb 2005 00:27:11 -0800. + +It was downloaded from http://sg.torque.net/scsi/lsscsi.html + +Copyright: Copyright (C) 2002-2004 D. Gilbert + +Upstream Author: Doug Gilbert + +License: + + This package 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 package 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 package; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + 02111-1307, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- lsscsi-0.14.orig/debian/docs +++ lsscsi-0.14/debian/docs @@ -0,0 +1 @@ +README