debian/0000775000000000000000000000000012232330656007172 5ustar debian/dirs0000664000000000000000000000007012217561357010062 0ustar usr/bin usr/share/man/man1 usr/share/man/man5 etc/pam.d debian/source/0000775000000000000000000000000012217547250010475 5ustar debian/source/options0000664000000000000000000000002712217547250012112 0ustar diff-ignore tar-ignore debian/source/format0000664000000000000000000000001412217547250011703 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000052712217561357011140 0ustar This package was debianized by Rene Engelhard on Tue, 9 Jul 2002 22:38:31 +0200. It was downloaded from http://unbeatenpath.net/software/away/ Upstream Author: Cameron Moore Copyright: GPL (on Debian systems, you can find the full text of the GPL under /usr/share/common-licenses/GPL) debian/changelog0000664000000000000000000000627212232330655011052 0ustar away (0.9.5+ds-0+nmu2) unstable; urgency=low * Non-maintainer upload - d/p/01_fix_makefile: $LIBS need to come after $SRC while linking to fix building with ld --as-needed (Closes: #634323) -- Andreas Moog Fri, 25 Oct 2013 00:42:40 +0100 away (0.9.5+ds-0+nmu1) unstable; urgency=low * Non-maintainer upload fo remove build-dependency on dbs (closes: #576038); upload this NMU to DELAYED/10 queue. * Switch to upstream tarball, using “ds” for “debian source” as a suffix since dak wouldn't appreciate different tarballs having the same name. * Switch to the '3.0 (quilt)' source format. * Use debhelper v9 and its tiny rules format. * Fix 01_fix_makefile to properly handle CFLAGS, CPPFLAGS, LDFLAGS, and DESTDIR variables. * Bump Standards-Version to 3.9.4. * Remove an article from short package description (lintian). -- Robert Luberda Sun, 22 Sep 2013 15:09:09 +0200 away (0.9.5-3) unstable; urgency=low * use common-{account,auth,session} (closes: #344394) -- Rene Engelhard Sat, 31 Dec 2005 15:22:49 +0100 away (0.9.5-2) unstable; urgency=low * added patch from upstream enhancing security at locked terminal and typing in password (it was possible to enter something before the safe password: prompt appeared), this could have been lead to show the password on the screen... -- Rene Engelhard Tue, 8 Oct 2002 16:12:46 +0200 away (0.9.5-1) unstable; urgency=low * new upstream release - removed the following patches because they are included upstream now + 02_use_pam_unix_passwd + 03_fixes_when_no_mailbox + 04_remove_sighup * updated Standards-Version: (3.5.2 to 3.5.7) * some cleanups -- Rene Engelhard Thu, 5 Sep 2002 17:38:32 +0200 away (0.9.4.0-2) unstable; urgency=low * debian/rules cleanup * minor improvements on description * new maintainer email * added patch which removes SIGHUP from signal handling, that fixes the problem that away lingers and need to killed manually if the user's terminal is disconnected abruptly (thanks Seth Stone ) -- Rene Engelhard Tue, 13 Aug 2002 23:04:43 +0200 away (0.9.4.0-1) unstable; urgency=low * moved to use dbs (use a fake new upstream to get the new orig.tar.gz in) * fixed busyloop if no mailbox is found and change the warning about mailbox not found to not appear everytime the mail should be checked because that is annoying (closes: #154354) -- Rene Engelhard Sat, 27 Jul 2002 17:32:19 +0200 away (0.9.4-2) unstable; urgency=low * fixed Makefile to copy away.pam _not_ to /etc/pam.d/away.pam. It belongs to /etc/away/away (closes: #153277) * removed absolute path from /etc/pam/away * using dh_installpam to install the pam file -- Rene Engelhard Wed, 17 Jul 2002 22:08:37 +0200 away (0.9.4-1) unstable; urgency=low * Initial Release. (closes: #152451) * fixed upstream /etc/pam.d/away.pam to use the right .so (pwdb -> unix_passwd) -- Rene Engelhard Wed, 10 Jul 2002 21:13:41 +0200 debian/control0000664000000000000000000000164412232330101010563 0ustar Source: away Section: utils Priority: optional Maintainer: Rene Engelhard Build-Depends: debhelper (>> 9), libpam0g-dev Standards-Version: 3.9.4 Package: away Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libpam-modules Description: Terminal locking program Away is a simple program that locks your terminal, checks for new mail in any given number of mailboxes, and lets others know why you are inactive. . Away puts the message specified why your are away into the output of the 'w' command, so that users looking for you can see that and why you are away (and not only idle for some time) . Away will also notify you if you have new mail. By default Away only checks for mail in a user's $MAIL file, but by using the awayrc file, a user can configure any given number of mailboxes to be checked. . Away also uses PAM to lock your terminal in the way xlock locks an X11 session. debian/rules0000775000000000000000000000004012217564574010257 0ustar #!/usr/bin/make -f %: dh "$@" debian/patches/0000775000000000000000000000000012232330052010607 5ustar debian/patches/01_fix_makefile0000664000000000000000000000232212232330052013454 0ustar Index: away-0.9.5+ds/Makefile =================================================================== --- away-0.9.5+ds.orig/Makefile 2013-10-23 18:51:49.605855513 +0200 +++ away-0.9.5+ds/Makefile 2013-10-23 18:52:08.809856145 +0200 @@ -2,29 +2,31 @@ # files and paths SHELL = /bin/sh -PREFIX = /usr/local +PREFIX = /usr BINARY = away SRC = $(BINARY).c # compiler CC = gcc -CFLAGS = -O2 -Wall -D_REENTRANT -LIBS = -lpthread -lpam -lpam_misc +CFLAGS := -g -Wall -D_REENTRANT $(CFLAGS) $(CPPFLAGS) +LIBS = $(LDFLAGS) -lpthread -lpam -lpam_misc # alias away all: $(BINARY) # away $(BINARY): $(SRC) - $(CC) $(CFLAGS) $(LIBS) $(SRC) -o $(BINARY) + $(CC) $(CFLAGS) $(SRC) $(LIBS) -o $(BINARY) # @strip $(BINARY) # make install install: $(BINARY) - cp $(BINARY) $(PREFIX)/bin/ - cp doc/away.1 $(PREFIX)/man/man1/ - cp doc/awayrc.5 $(PREFIX)/man/man5/ - cp data/away.pam /etc/pam.d/away + cp $(BINARY) $(DESTDIR)/$(PREFIX)/bin/ + cp doc/away.1 $(DESTDIR)/$(PREFIX)/share/man/man1/ + cp doc/awayrc.5 $(DESTDIR)/$(PREFIX)/share/man/man5/ + cp data/away.pam $(DESTDIR)/etc/pam.d/away + mkdir -p $(DESTDIR)/usr/share/doc/away/examples/ + cp data/awayrc $(DESTDIR)/usr/share/doc/away/examples/ # Clean up clean: debian/patches/05_ehance_security0000664000000000000000000000174212217561357014235 0ustar diff -ruN away-0.9.5-old/away.c away-0.9.5/away.c --- away-0.9.5-old/away.c 2002-08-22 07:23:39.000000000 +0200 +++ away-0.9.5/away.c 2002-10-08 15:55:50.000000000 +0200 @@ -234,9 +234,23 @@ /* Stall */ void stall(void) { + struct termios old, new; + printf("\n You went away at %.20s", make_time()); printf("\n\n -- Press [Enter] to come back online --\n"); + + /* save term state */ + tcgetattr(0, &old); + new = old; + + /* turn off echo */ + new.c_lflag &= ~ECHO; + tcsetattr(0, TCSANOW, &new); getchar(); + + /* reset term */ + tcsetattr(0, TCSANOW, &old); + printf("\n"); } /* Get Current Time */ diff -ruN away-0.9.5-old/away.h away-0.9.5/away.h --- away-0.9.5-old/away.h 2002-08-12 02:33:03.000000000 +0200 +++ away-0.9.5/away.h 2002-10-08 15:51:03.000000000 +0200 @@ -58,6 +58,7 @@ #include #include #include +#include /* Default conf file name */ char *rcfile = ".awayrc"; debian/patches/06_common_pam_files0000664000000000000000000000056012217564775014377 0ustar diff -ruN away-0.9.5-old/data/away.pam away-0.9.5/data/away.pam --- away-0.9.5-old/data/away.pam 2002-08-11 07:24:50.000000000 +0200 +++ away-0.9.5/data/away.pam 2005-12-31 15:24:44.000000000 +0100 @@ -1,2 +1,4 @@ -#%PAM-1.0 -auth required pam_unix.so +# The standard Unix authentication modules +@include common-auth +@include common-account +@include common-session debian/patches/series0000664000000000000000000000006712217564775012057 0ustar 01_fix_makefile 05_ehance_security 06_common_pam_files debian/docs0000664000000000000000000000003112217562326010043 0ustar AUTHORS BUGS README TODO debian/compat0000664000000000000000000000000212217563007010371 0ustar 9 debian/away.postinst0000664000000000000000000000257712217561357011762 0ustar #! /bin/sh # postinst script for away # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. case "$1" in configure) # remove obsolete away.pam if found; the right name is away if [ -e /etc/pam.d/away.pam ]; then rm /etc/pam.d/away.pam; fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0