diff -ruN bplay-0.95.orig/Makefile bplay-0.95/Makefile
--- bplay-0.95.orig/Makefile	Tue Apr  2 12:58:25 1996
+++ bplay-0.95/Makefile	Tue Jul  2 03:41:35 1996
@@ -3,7 +3,7 @@
 SRCS = bplay.c sndfunc.o shmbuf.c
 
 CC = gcc
-CFLAGS = -Wall -O2 -m486 # -DDEBUG # -DUSEBUFFLOCK
+CFLAGS = -Wall -O2 -g -DNOTSETUID # -DDEBUG # -DUSEBUFFLOCK
 LDFLAGS = 
 LIBS =
 
diff -ruN bplay-0.95.orig/bplay.1 bplay-0.95/bplay.1
--- bplay-0.95.orig/bplay.1	Tue Apr  2 12:30:10 1996
+++ bplay-0.95/bplay.1	Tue Jul  2 03:19:15 1996
@@ -66,6 +66,8 @@
 This program runs setuid root. This is required because it uses
 setpriority() to run at the highest possible priority, and also locks
 down the buffers it uses to avoid them being swapped out.
+.I This is a compile-time option which has not been enabled in the
+.I Debian version.
 .PP
 Currently, the buffers are not locked down, as this appears to be a
 surefire way to bring down the machine.
diff -ruN bplay-0.95.orig/bplay.c bplay-0.95/bplay.c
--- bplay-0.95.orig/bplay.c	Tue Apr  2 12:58:59 1996
+++ bplay-0.95/bplay.c	Tue Jul  2 03:09:18 1996
@@ -147,7 +147,7 @@
 		}
 	}
 
-#if 1
+#ifndef NOTSETUID
 	/* This program is either set-uid or run by root (I hope...) */
 	if (setpriority(PRIO_PROCESS, 0, -20) == -1)
 		fprintf(stderr, "%s: setpriority: %s: continuing anyway\n",
diff -ruN bplay-0.95.orig/debian.Changelog bplay-0.95/debian.Changelog
--- bplay-0.95.orig/debian.Changelog	Thu Jan  1 01:00:00 1970
+++ bplay-0.95/debian.Changelog	Tue Jul  2 03:37:26 1996
@@ -0,0 +1,5 @@
+bplay (0.95-1); priority=LOW
+
+  * Initial Debian release.
+
+ -- Ian Jackson <ian@chiark.chu.cam.ac.uk>  Tue, 2 Jul 1996 03:37:21 +0100
diff -ruN bplay-0.95.orig/debian.README bplay-0.95/debian.README
--- bplay-0.95.orig/debian.README	Thu Jan  1 01:00:00 1970
+++ bplay-0.95/debian.README	Tue Jul  2 03:29:21 1996
@@ -0,0 +1,30 @@
+This is Debian/GNU Linux's prepackaged version of David Monro's bplay
+audio play/record program.
+
+This package was put together by me, Ian Jackson
+<ijackson@gnu.ai.mit.edu>, from David Monro's sources, which I
+obtained from sunsite.unc.edu:/pub/Linux/apps/sound/players.  The
+changes were very minimal - merely adding support for the Debian
+package maintenance scheme, by adding various debian.* files, and
+disabling a feature that required the program to be installed setuid
+root.
+
+
+Program Copyright (C)1996 David Monro.
+Modifications for Debian GNU/Linux Copyright (C)1996 Ian Jackson.
+
+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; either version 2, or (at your option)
+any later version.
+
+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 with
+your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with the
+Debian GNU/Linux hello source package as the file COPYING.  If not,
+write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+MA 02139, USA.
diff -ruN bplay-0.95.orig/debian.changestemplate bplay-0.95/debian.changestemplate
--- bplay-0.95.orig/debian.changestemplate	Thu Jan  1 01:00:00 1970
+++ bplay-0.95/debian.changestemplate	Tue Jul  2 03:40:28 1996
@@ -0,0 +1,15 @@
+Date: =d
+Format: 1.5
+Distribution: unstable
+Source: bplay
+Binary: bplay
+Architecture: source =a
+Version: =v
+Maintainer: Ian Jackson <ian@chiark.chu.cam.ac.uk>
+Description:
+ bplay - Buffered audio file player/recorder
+Changes:=c
+Files:
+ =f:bplay_=v_=a.deb optional text
+ =f:bplay_=v.tar.gz optional text
+ =f:bplay_=v.diff.gz optional text
diff -ruN bplay-0.95.orig/debian.control bplay-0.95/debian.control
--- bplay-0.95.orig/debian.control	Thu Jan  1 01:00:00 1970
+++ bplay-0.95/debian.control	Tue Jul  2 03:24:40 1996
@@ -0,0 +1,16 @@
+Package: bplay
+Version: =
+Architecture: =
+Maintainer: Ian Jackson <ian@chiark.chu.cam.ac.uk>
+Depends: libc5
+Description: Buffered audio file player/recorder
+ The bplay package provides a simple command-line utility for playing
+ and recording audio files in raw sample, VOC and WAV formats.
+ .
+ To use this program you need a soundcard of some kind and the
+ appropriate driver configured into your kernel.
+ .
+ When run the program creates two processes which share a memory
+ buffer.  It does reading/writing on the disk and the sound device
+ simultaneously, in order to be less liable to `pause' because the
+ disk is too slow or too busy.
diff -ruN bplay-0.95.orig/debian.mkchanges bplay-0.95/debian.mkchanges
--- bplay-0.95.orig/debian.mkchanges	Thu Jan  1 01:00:00 1970
+++ bplay-0.95/debian.mkchanges	Tue Jul  2 03:29:25 1996
@@ -0,0 +1,36 @@
+#!/usr/bin/perl
+# Usage:
+#  perl debian.mkchanges <version> <debian.changestemplate >thing.changes
+
+$x=time; sub z { $_[1]+$_[2]*60; }; @l=localtime($x); $od=1440;
+$d=&z(@l)-&z(gmtime($x)); $d+=$od; $d%=$od; $s=$d>$od/2?($d=$od-$d,'-'):'+';
+$date=sprintf("%s, %d %s %d %02d:%02d:%02d %s%02d%02d",
+ (Sun,Mon,Tue,Wed,Thu,Fri,Sat)[$l[6]], $l[3],
+ (Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec)[$l[4]], $l[5]+1900,
+ $l[2],$l[1],$l[0], $s,$d/60,$d%60);
+
+($version)=@ARGV;
+chop($arch=`dpkg --print-architecture`);
+
+open(Z,"debian.Changelog");
+while(<Z>) { $changes.=$_; last if m/^ --/; }
+close(Z); $changes =~ s/^/ /g; $changes =~ s/^/\n/; $changes =~ s/\n$//;
+
+chdir("..");
+
+while (<STDIN>) {
+    s/=a/$arch/g;
+    s/=v/$version/g;
+    if (m/^ =f:(\S+) (\S+) (\S+)$/) {
+        ($file,$sec,$pri)=($1,$2,$3);
+        $!=0; chop($md5sum=`md5sum <$file`); $? && die "$file: $? $!";
+        $!=0; $size=`ls -l $file`; $? && die "$file: $? $!";
+        $size =~ m/^\S+\s+\d+\s+\S+\s+\S+\s+(\d+)\s/ || die "$file: `$size'";
+        $size= $1;
+        $_= " $md5sum $size $sec $pri $file\n";
+    } else {
+        s/=c/$changes/ || s/=d/$date/g;
+    }
+    print || die $!;
+}
+close(STDOUT) || die $!;
diff -ruN bplay-0.95.orig/debian.rules bplay-0.95/debian.rules
--- bplay-0.95.orig/debian.rules	Thu Jan  1 01:00:00 1970
+++ bplay-0.95/debian.rules	Tue Jul  2 03:41:51 1996
@@ -0,0 +1,67 @@
+#!/usr/bin/make -f
+# Copyright 1994,1995,1996 by Ian Jackson.
+
+package=bplay
+version=0.95
+debian=1
+arch=$(shell dpkg --print-architecture)
+
+# The next section may have to be extensively modified
+
+build:
+	$(checkdir)
+	$(MAKE)
+	touch build
+
+clean:
+	$(checkdir)
+	-rm -f build
+	-$(MAKE) -i clean
+	-rm -rf debian-tmp *~ ./#*#
+
+binary:		checkroot build
+	-rm -rf debian-tmp
+	mkdir debian-tmp debian-tmp/DEBIAN
+	install -d debian-tmp/usr/{doc/copyright,doc/bplay,bin,man/man1}
+	sed -e '2s/=/$(version)-$(debian)/; 3s/=/$(arch)/;' \
+	    debian.control > debian-tmp/DEBIAN/control
+	cp bplay debian-tmp/usr/bin
+	strip debian-tmp/usr/bin/bplay
+	cp bplay.1 debian-tmp/usr/man/man1
+	ln -s bplay debian-tmp/usr/bin/brec
+	ln -s bplay.1 debian-tmp/usr/man/man1/brec.1
+	cp README debian-tmp/usr/doc/bplay/README
+	cp debian.README debian-tmp/usr/doc/copyright/$(package)
+	chown -R root.root debian-tmp
+	chmod -R g-ws debian-tmp
+	dpkg --build debian-tmp
+	mv debian-tmp.deb ../$(package)_$(version)-$(debian)_$(arch).deb
+
+changes:
+	perl debian.mkchanges "$(version)-$(debian)" <debian.changestemplate \
+	 | pgp-auto -fast >../$(package)_$(version)-$(debian)_$(arch).changes
+	echo
+
+define checkdir
+	test -f $(package).c
+endef
+
+# Below here is fairly generic really
+
+source:		clean
+	chmod +x debian.rules
+	cd .. && \
+	tar cf $(package)_$(version)-$(debian).tar $(package)-$(version) && \
+	gzip -9vf $(package)_$(version)-$(debian).tar
+ 
+diff:		clean
+	cd .. && \
+	(diff -ruN $(package)-$(version).orig $(package)-$(version) \
+	 >$(package)_$(version)-$(debian).diff; [ $$? = 1 ]) && \
+	gzip -9vf $(package)_$(version)-$(debian).diff
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+.PHONY: binary source diff clean checkroot
