debian/0000755000000000000000000000000011751672064007177 5ustar debian/postinst0000644000000000000000000000076611723245633011013 0ustar #!/bin/sh set -e case "$1" in configure) if ! dpkg-statoverride --list /usr/bin/nwrite >/dev/null then dpkg-statoverride --update --add root tty 2755 /usr/bin/nwrite fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac update-alternatives --install /usr/bin/write write /usr/bin/nwrite 50 \ --slave /usr/share/man/man1/write.1.gz write.1.gz /usr/share/man/man1/nwrite.1.gz #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000011723406656010627 5ustar debian/patches/01-conglomeration.patch0000644000000000000000000002745411723406656015122 0ustar From: Unknown Subject: Needs to be broken out (FIXME) diff -Naur nwrite-1.9.2.orig/Makefile.in nwrite-1.9.2/Makefile.in --- nwrite-1.9.2.orig/Makefile.in 1998-07-09 20:50:06.000000000 +0000 +++ nwrite-1.9.2/Makefile.in 2006-09-10 09:38:41.000000000 +0000 @@ -7,6 +7,11 @@ # # The makefile should be generated automatically with the correct # options by the configure script - see the INSTALL file for details +# +################################################################### +# 20021103 - slight tweaks +# this thing is hopelessly outdated... :) +################################################################### ################## Configuration Section################## # Choose your compiler and other options @@ -54,20 +59,22 @@ install: Makefile installbin installman$(MANGZ) installrc installbin: nwrite - -mv $(BIN)/nwrite $(BIN)/nwrite.old + # this is unnecessary - there is no old file + #-mv $(BIN)/nwrite $(BIN)/nwrite.old $(INSTALL) -c $(INSTALLFLAGS) nwrite $(BIN)/nwrite - strip $(BIN)/nwrite + # this is also unnecessary, debhelper does this for us + #strip $(BIN)/nwrite installman: nwrite.1 - -\rm $(MAN)/cat1/nwrite.1 - $(INSTALL) -c -m 644 nwrite.1 $(MAN)/cat1/nwrite.1 + #-\rm $(MAN)/man1/nwrite.1 + $(INSTALL) -c -m 644 nwrite.1 $(prefix)/$(MAN)/man1/nwrite.1 installman-gz: installman - -\rm $(MAN)/cat1/nwrite.1.gz - gzip $(MAN)/cat1/nwrite.1 + #-\rm $(MAN)/cat1/nwrite.1.gz + #gzip $(MAN)/cat1/nwrite.1 installrc: nwrite.rc - $(INSTALL) -c -m 644 nwrite.rc $(SYSTEM_NWRITERC) + $(INSTALL) -c -m 644 nwrite.rc debian/nwrite/$(SYSTEM_NWRITERC) Makefile: Makefile.in sh ./config.status @@ -79,7 +86,7 @@ autoheader nwrite.1: nwrite.1.in - -\rm nwrite.1 + #-\rm nwrite.1 sed -e "s%SYSTEM_NWRITERC%$(SYSTEM_NWRITERC)%" nwrite.1.in > nwrite.1 clean: diff -Naur nwrite-1.9.2.orig/configure.in nwrite-1.9.2/configure.in --- nwrite-1.9.2.orig/configure.in 1998-07-09 20:43:53.000000000 +0000 +++ nwrite-1.9.2/configure.in 2006-09-10 09:38:41.000000000 +0000 @@ -64,7 +64,7 @@ if test "$nwrite_cv_sys_tty_world_writable" = "yes" ; then INSTALLFLAGS="-m 755" - AC_DEFINE(TTYS_WORLD_WRITABLE, TRUE) + AC_DEFINE(TTYS_WORLD_WRITABLE, FALSE) else INSTALLFLAGS="-g tty -m 755" AC_DEFINE(TTYS_WORLD_WRITABLE, FALSE) diff -Naur nwrite-1.9.2.orig/nwrite.1.in nwrite-1.9.2/nwrite.1.in --- nwrite-1.9.2.orig/nwrite.1.in 1998-07-09 20:48:11.000000000 +0000 +++ nwrite-1.9.2/nwrite.1.in 2006-09-10 09:38:41.000000000 +0000 @@ -1,111 +1,122 @@ - -NWRITE(1) UNIX Programmer's Manual NWRITE(1) - - -NAME - nwrite - enhanced write - -SYNOPSIS - nwrite [-i minutes] [-a] user[.ttyname] [user[.ttyname] ...] - -DESCRIPTION - - nwrite copies lines from your terminal to the terminals of one - or more users. When called, it begins copying lines you type - to the recipient's terminal(tty). Before sending the first line - of text, nwrite prepends the message - - Message from on [to user [users ...]] at