--- workbone-2.31.orig/Makefile +++ workbone-2.31/Makefile @@ -9,7 +9,7 @@ WARN := -Wall -Wmissing-prototypes #WARN := -Wall -Wmissing-prototypes -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \ # -Wstrict-prototypes -Wnested-externs -Wformat -bindir := /usr/local/bin +bindir := /usr/bin mandir := /usr/man/man1 mangrp := daemon manown := daemon @@ -41,8 +41,9 @@ workbone.o: workbone.c workbone.h install: workbone - install -c -m755 $(binown) $(srcdir)/workbone $(bindir) - install -c -m644 -o $(manown) -g $(mangrp) $(srcdir)/workbone.1 $(mandir) + install -d -m755 $(binown) $(DESTDIR)/$(bindir) + install -c -m755 $(binown) $(srcdir)/workbone $(DESTDIR)/$(bindir)/ +#install -c -m644 -o $(manown) -g $(mangrp) $(srcdir)/workbone.1 $(DESTDIR)/$(mandir) clean: rm -f workbone workbone.doc workbone.1.Z *.o core *~ erro --- workbone-2.31.orig/hardware.c +++ workbone-2.31/hardware.c @@ -19,6 +19,7 @@ #include #include #include +#include # ifdef linux # include # else --- workbone-2.31.orig/workbone.c +++ workbone-2.31/workbone.c @@ -20,6 +20,7 @@ #include #include +#include #include #include #include @@ -161,6 +162,7 @@ control_panel (); /* delay while CD drive initializes itself */ +#if 0 if (!fastin) for (dly = 6; dly > -1; dly--) { @@ -168,6 +170,7 @@ fflush (stdout); sleep (1); } +#endif printf (MTAB3 " \r"); fflush (stdout); sss = cd_status (); --- workbone-2.31.orig/debian/substvars +++ workbone-2.31/debian/substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 --- workbone-2.31.orig/debian/README.debian +++ workbone-2.31/debian/README.debian @@ -0,0 +1,14 @@ +workbone for DEBIAN +---------------------- + +Workbone for Debian is a nice CD player. I've created a login called +cdplay that has workman as its shell. That way I can enjoy the +benefits of workman without the security hassle of leaving a virtual +console open. + +Stephen Pitts , Tue, 29 Oct 1996 18:27:01 -0600 + +Workbone no longer has a delay at startup. This was annoying and seems to +serve no purpose with modern cdroms. + +Martin Mitchell --- workbone-2.31.orig/debian/changelog +++ workbone-2.31/debian/changelog @@ -0,0 +1,39 @@ +workbone (2.31-5) unstable; urgency=low + + * Libc6 compile. + * Remove startup delay. (#10958) + * New maintainer. + + -- Martin Mitchell Tue, 11 Nov 1997 02:17:24 +1100 + +workbone (2.31-4) unstable; urgency=low + + * Added a postinst to let you know if you have a /dev/cdrom + * Closed all pending bugs + + -- Stephen Pitts Sat, 16 Nov 1996 13:27:57 -0600 + +workbone (2.31-3) unstable; urgency=low + + * Changed architecture from i386 to any + + -- Stephen Pitts Mon, 11 Nov 1996 20:02:03 -0600 + +workbone (2.31-2) unstable; urgency=low + + * Workbone was installed as /usr/bin instead of in /usr/bin. Whoops! + + -- Stephen Pitts Fri, 8 Nov 1996 20:39:05 -0600 + +workbone (2.31-1) unstable; urgency=low + + * Version number incremented because of questionable handling of epoch + by dpkg/dselect + * New maintainer + * Package rebuilt from upstream sources using deb-make! + + -- Stephen Pitts Tue, 29 Oct 1996 18:27:01 -0600 + +Local variables: +mode: debian-changelog +End: --- workbone-2.31.orig/debian/control +++ workbone-2.31/debian/control @@ -0,0 +1,14 @@ +Source: workbone +Section: sound +Priority: optional +Maintainer: Martin Mitchell +Standards-Version: 2.3.0.1 + +Package: workbone +Architecture: any +Depends: ${shlibs:Depends} +Suggests: cdtool +Description: A simple text-based CD player + Workbone is a simple, curses-based CD player that is controled by + the num-lock keys. The cdtool package can be used to determine the + contents of a CD before playing it. --- workbone-2.31.orig/debian/copyright +++ workbone-2.31/debian/copyright @@ -0,0 +1,9 @@ +This package was debianized by Stephen Pitts pitts2@memphisonline.com on +Tue, 29 Oct 1996 18:27:01 -0600. + +It was downloaded from ftp.cc.gatech.edu:/pub/linux/apps/sounds/ + +Copyright: + +workbone is copyrighted under the GNU General Public License, +version 2. A copy can be found in /usr/doc/copyright/GPL. --- workbone-2.31.orig/debian/rules +++ workbone-2.31/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f +# Sample debian.rules file - for GNU Hello (1.3). +# Copyright 1994,1995 by Ian Jackson. +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified + +package=workbone +STRIP=strip + +build: + $(checkdir) + make CFLAGS="-O2 -g" + + touch build + +clean: + $(checkdir) + -rm -f build + make clean + -rm -rf *~ debian/tmp debian/*~ debian/files* + +binary-indep: checkroot build + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build + $(checkdir) + -rm -rf debian/tmp + install -d debian/tmp/DEBIAN debian/tmp/usr/man/man1 debian/tmp/usr/doc/workbone + make install DESTDIR=debian/tmp + $(STRIP) debian/tmp/usr/bin/workbone + install -m 0644 workbone.1 debian/tmp/usr/man/man1 + gzip -9v debian/tmp/usr/man/man1/* + cp INSTALL README debian/README.debian debian/changelog debian/tmp/usr/doc/workbone + gzip -9v debian/tmp/usr/doc/workbone/* + cp debian/copyright debian/tmp/usr/doc/workbone + install -m 0755 debian/postinst debian/tmp/DEBIAN + dpkg-shlibdeps debian/tmp/usr/bin/workbone + dpkg-gencontrol + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot --- workbone-2.31.orig/debian/postinst +++ workbone-2.31/debian/postinst @@ -0,0 +1,5 @@ +#! /bin/sh +if [ ! -e /dev/cdrom ] +then +echo "Please link /dev/cdrom to your CDROM device before running workbone." +fi