--- netkit-rusers-0.17.orig/debian/rusers.docs +++ netkit-rusers-0.17/debian/rusers.docs @@ -0,0 +1,2 @@ +BUGS +README --- netkit-rusers-0.17.orig/debian/control +++ netkit-rusers-0.17/debian/control @@ -0,0 +1,24 @@ +Source: netkit-rusers +Section: net +Priority: optional +Maintainer: Alberto Gonzalez Iniesta +Standards-Version: 3.7.2.2 +Build-Depends: debhelper (>= 4.1.16) + +Package: rusersd +Architecture: any +Depends: portmap, netbase, update-inetd, ${shlibs:Depends} +Description: Logged in users server + This is a server which returns information about users currently logged in to + the system. + +Package: rusers +Architecture: any +Depends: ${shlibs:Depends} +Description: Displays who is logged in to machines on local network + The rusers command produces output similar to who, but for the list of hosts + or all machines on the local network. For each host responding to the rusers + query, the hostname with the names of the users currently logged on is printed + on each line. The rusers command will wait for one minute to catch late + responders. + --- netkit-rusers-0.17.orig/debian/rusers.dirs +++ netkit-rusers-0.17/debian/rusers.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- netkit-rusers-0.17.orig/debian/rusersd.prerm +++ netkit-rusers-0.17/debian/rusersd.prerm @@ -0,0 +1,9 @@ +#!/bin/sh -e +# $Id: rusersd.prerm,v 1.1 1999/10/22 00:32:06 herbert Exp $ + +# If netbase is not installed, then we don't need to do the remove. +if command -v update-inetd >/dev/null 2>&1; then + update-inetd --disable rusersd +fi + +#DEBHELPER# --- netkit-rusers-0.17.orig/debian/copyright +++ netkit-rusers-0.17/debian/copyright @@ -0,0 +1,16 @@ +This package was split from netstd by Herbert Xu herbert@debian.org on +Fri, 15 Oct 1999 14:56:23 +1000. + +netstd was created by Peter Tobias tobias@et-inf.fho-emden.de on +Wed, 20 Jul 1994 17:23:21 +0200. + +It was downloaded from ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/. + +Copyright: + +Copyright (c) 1993 John Brezak +Copyright (c) 1985, 1991 The Regents of the University of California. + +The license can be found in /usr/share/common-licenses/BSD. + +$Id: copyright,v 1.2 2000/05/15 02:56:25 herbert Exp $ --- netkit-rusers-0.17.orig/debian/rules +++ netkit-rusers-0.17/debian/rules @@ -0,0 +1,75 @@ +#!/usr/bin/make -f +# GNU copyright 1997 to 1999 by Joey Hess. +# $Id: rules,v 1.4 2003/10/30 11:37:23 herbert Exp $ + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +#export DH_COMPAT=2 + +build: + dh_testdir + + if [ ! -f MCONFIG ]; then \ + ./configure; \ + sed -e 's/^CFLAGS=\(.*\)$$/CFLAGS= -g \1/' \ + MCONFIG > MCONFIG.new; \ + mv MCONFIG.new MCONFIG; \ + fi + $(MAKE) + +clean: + dh_testdir + dh_testroot + + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install rpc.rusersd/rusersd debian/rusersd/usr/sbin/rpc.rusersd + install rusers/rusers debian/rusers/usr/bin + cp rpc.rusersd/rpc.rusersd.8 debian/rusersd/usr/share/man/man8 + cp rusers/rusers.1 debian/rusers/usr/share/man/man1 + +# 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_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- netkit-rusers-0.17.orig/debian/rusersd.dirs +++ netkit-rusers-0.17/debian/rusersd.dirs @@ -0,0 +1,2 @@ +usr/sbin +usr/share/man/man8 --- netkit-rusers-0.17.orig/debian/rusersd.postinst +++ netkit-rusers-0.17/debian/rusersd.postinst @@ -0,0 +1,22 @@ +#!/bin/sh -e +# $Id: rusersd.postinst,v 1.1 1999/10/22 00:32:06 herbert Exp $ + +case "$1" in +abort-upgrade | abort-deconfigure | abort-remove) + update-inetd --enable rusersd + ;; +configure) + if [ -n "$2" ]; then + update-inetd --enable rusersd + else + update-inetd --remove "rusersd/2-3 dgram rpc/udp wait root /usr/sbin/tcpd /usr/sbin/rpc.rusersd" + update-inetd --group RPC --add "rusersd/2-3 dgram rpc/udp wait nobody /usr/sbin/tcpd /usr/sbin/rpc.rusersd" + fi + ;; +*) + printf "$0: incorrect arguments: $*\n" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- netkit-rusers-0.17.orig/debian/changelog +++ netkit-rusers-0.17/debian/changelog @@ -0,0 +1,75 @@ +netkit-rusers (0.17-7.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add missing Depends on 'update-inetd' to ensure the presence of + /usr/sbin/update-inetd in postinst script. (Closes: #502822) + + -- Chris Lamb Mon, 20 Oct 2008 22:44:30 +0100 + +netkit-rusers (0.17-7) unstable; urgency=low + + * The 'update-inetd' batch release. + * Moved to debhelper 4. + - Created debian/compat. + - debian/control. Updated debhelper dependency version. + * Added Depends on netbase (since we need update-inetd AND an inetd) + (Closes: #398556) + * Bumped Standards-Version to 3.7.2.2. + + -- Alberto Gonzalez Iniesta Sat, 18 Nov 2006 10:28:29 +0100 + +netkit-rusers (0.17-6) unstable; urgency=low + + * Patch rusers_proc.c so that num_users gets reset every time the + function rusers_num is called. + Thanks Christian Bac. (Closes: #278514) + * Changed maintainer email address. + + -- Alberto Gonzalez Iniesta Mon, 8 Nov 2004 12:45:46 +0100 + +netkit-rusers (0.17-5) unstable; urgency=low + + * New Maintainer. (Closes: #249711) + + -- Alberto Gonzalez Iniesta Wed, 19 May 2004 16:38:18 +0200 + +netkit-rusers (0.17-4) unstable; urgency=low + + * Removed netkit-rpc/libc build-dependency. + * Depend on debhelper >= 2. + * Removed netbase dependency. + * Removed netstd reference in control. + * Removed build-stamp/install-stamp. + * Fixed warning in rusers.c. + * Fixed warning in rup.c. + * Removed local err/warnx implementation. + + -- Herbert Xu Thu, 30 Oct 2003 22:36:30 +1100 + +netkit-rusers (0.17-3) unstable; urgency=low + + * Updated build-time dependency for rpc (closes: #113257). + * Updated use of time.h and sys/time.h. + + -- Herbert Xu Mon, 24 Sep 2001 20:58:00 +1000 + +netkit-rusers (0.17-2) unstable; urgency=low + + * Depend on portmap (closes: #72182). + * Added build-time dependencies. + + -- Herbert Xu Fri, 22 Sep 2000 19:06:12 +1100 + +netkit-rusers (0.17-1) unstable; urgency=low + + * New upstream release (closes: #68041). + + -- Herbert Xu Tue, 1 Aug 2000 20:10:03 +1000 + +netkit-rusers (0.11-1) unstable; urgency=low + + * Initial Release. + * Initialise fromlen (closes: #21544). + + -- Herbert Xu Fri, 15 Oct 1999 15:18:26 +1000 + --- netkit-rusers-0.17.orig/debian/rusersd.postrm +++ netkit-rusers-0.17/debian/rusersd.postrm @@ -0,0 +1,19 @@ +#!/bin/sh -e +# $Id: rusersd.postrm,v 1.1 1999/10/22 00:32:06 herbert Exp $ + +case "$1" in +abort-install | remove | abort-upgrade | upgrade | failed-upgrade | disappear) + ;; +purge) + # If netbase is not installed, then we don't need to do the remove. + if command -v update-inetd >/dev/null 2>&1; then + update-inetd --remove "rusersd .* /usr/sbin/rpc.rusersd" + fi + ;; +*) + echo "$0: incorrect arguments: $*" >&2 + exit 1 + ;; +esac + +#DEBHELPER# --- netkit-rusers-0.17.orig/debian/compat +++ netkit-rusers-0.17/debian/compat @@ -0,0 +1 @@ +4 --- netkit-rusers-0.17.orig/rusers/rusers.c +++ netkit-rusers-0.17/rusers/rusers.c @@ -44,6 +44,7 @@ #include #include #include +#include #include "../version.h" @@ -237,7 +238,7 @@ memset(&up, 0, sizeof(up)); memset(&addr, 0, sizeof(addr)); if (clnt_call(rusers_clnt, RUSERSPROC_NAMES, (xdrproc_t)xdr_void, NULL, - (xdrproc_t) xdr_utmpidlearr, &up, timeout) != RPC_SUCCESS) { + (xdrproc_t) xdr_utmpidlearr, (char *)&up, timeout) != RPC_SUCCESS) { clnt_perror(rusers_clnt, argv0); exit(1); } --- netkit-rusers-0.17.orig/rup/Makefile +++ netkit-rusers-0.17/rup/Makefile @@ -7,8 +7,6 @@ CFLAGS += -DGNU_LIBC -D_GNU_SOURCE endif -CFLAGS += -I. - #RPCGEN=../../netkit-base/rpcgen/rpcgen RPCGEN=rpcgen @@ -16,7 +14,7 @@ # the clean target. RSTATX=/usr/include/rpcsvc/rstat.x -rup: rup.o rstat_xdr.o err.o +rup: rup.o rstat_xdr.o $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ rup.o: ../version.h --- netkit-rusers-0.17.orig/rup/err.c +++ netkit-rusers-0.17/rup/err.c @@ -6,6 +6,7 @@ "$Id: err.c,v 1.1 1997/04/05 22:13:31 dholland Exp $"; #include +#include #include #include --- netkit-rusers-0.17.orig/rup/rup.c +++ netkit-rusers-0.17/rup/rup.c @@ -256,7 +256,7 @@ memset(&host_stat, 0, sizeof(host_stat)); if (clnt_call(rstat_clnt, RSTATPROC_STATS, (xdrproc_t) xdr_void, NULL, - (xdrproc_t) xdr_statstime, &host_stat, + (xdrproc_t) xdr_statstime, (char *)&host_stat, foo) != RPC_SUCCESS) { warnx("%s", clnt_sperror(rstat_clnt, host)); --- netkit-rusers-0.17.orig/rpc.rusersd/Makefile +++ netkit-rusers-0.17/rpc.rusersd/Makefile @@ -18,7 +18,7 @@ # the clean target. RUSERSX=/usr/include/rpcsvc/rusers.x -rusersd: rusersd.o rusers_proc.o rusers_xdr.o daemon.o +rusersd: rusersd.o rusers_proc.o rusers_xdr.o $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ install: rusersd --- netkit-rusers-0.17.orig/rpc.rusersd/rusers_proc.c +++ netkit-rusers-0.17/rpc.rusersd/rusers_proc.c @@ -31,7 +31,7 @@ #include #include -#include +#include #include #include #include @@ -217,7 +217,7 @@ struct utmp *uptr; (void)ign1; (void)ign2; - + num_users = 0; /* only use entries with both name and line fields */ setutent();