*** empty log message ***
This commit is contained in:
parent
bfd46f1828
commit
3d6a11f37c
5 changed files with 89 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -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)
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
0870155e8b75b99f9954e76fb20f9528 whowatch-1.4.tar.gz
|
||||
11
whowatch-1.4.patch
Normal file
11
whowatch-1.4.patch
Normal file
|
|
@ -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;
|
||||
56
whowatch.spec
Normal file
56
whowatch.spec
Normal file
|
|
@ -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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue