diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2fbccd7 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: whowatch +# $Id$ +NAME := whowatch +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/dead.package b/dead.package deleted file mode 100644 index e69de29..0000000 diff --git a/sources b/sources new file mode 100644 index 0000000..5caf0bd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +0870155e8b75b99f9954e76fb20f9528 whowatch-1.4.tar.gz diff --git a/whowatch-1.4.patch b/whowatch-1.4.patch new file mode 100644 index 0000000..f7aff2f --- /dev/null +++ b/whowatch-1.4.patch @@ -0,0 +1,11 @@ +--- process.c 2000-06-06 15:46:12.000000000 +0530 ++++ ../process.c 2007-09-24 23:36:02.000000000 +0530 +@@ -74,7 +74,7 @@ + memset(z, 0, sizeof *z); + check_line(l); + z->line = l++; +- (struct process *) p->priv = z; ++ p->priv = z; + z->proc = p; + if (*current){ + z->next = *current; diff --git a/whowatch.spec b/whowatch.spec new file mode 100644 index 0000000..772848d --- /dev/null +++ b/whowatch.spec @@ -0,0 +1,56 @@ +Summary: Display information about users currently logged on +Name: whowatch +Version: 1.4 +Release: 4%{?dist} +License: GPLv2 +Group: Applications/System +URL: http://wizard.ae.krakow.pl/~mike/ + +Source0: http://wizard.ae.krakow.pl/~mike/download/whowatch-%{version}.tar.gz +Patch0: %{name}-%{version}.patch +BuildRoot:%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: ncurses-devel + +%description +Whowatch is an interactive console utility that displays informations about +the users currently logged on to the machine, in real time. Besides standard +information (login, tty, host, user's process) you can see type of login +(ie. ssh, telnet). You can also see selected user's processes tree or all +system processes tree. In the process tree mode there is ability to send +INT or KILL signal to selected process. + +%prep + +%setup -q +%patch0 -p0 + +%build +%configure +%{__make} %{?_smp_mflags} + +%install +%{__rm} -rf %{buildroot} +%{__install} -d -m0755 %{buildroot}%{_mandir}/man1/ \ + %{buildroot}%{_bindir} +#%makeinstall + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING KEYS README TODO +%doc %{_mandir}/man1/whowatch.1* +%{_bindir}/whowatch + +%changelog +* Mon Sep 24 2007 Subhodip Biswas <440volt.tux@gmail.com> - 1.4-4 +- fixed broken patch +* Mon Sep 24 2007 Subhodip Biswas <440volt.tux@gmail.com> - 1.4-3 +- fixed issues regarding patch +* Mon Sep 24 2007 Subhodip Biswas <440volt.tux@gmail.com> - 1.4-2 +- fixed few issues +* Sat Sep 22 2007 Subhodip Biswas <440volt.tux@gmail.com> - 1.4-1 +-Initial packaging. +