Compare commits
62 commits
epel8-play
...
rawhide
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e05e25f19 | ||
|
|
2febda3d1d | ||
|
|
7d5e84cbae | ||
|
|
fae3020e41 | ||
|
|
996010d0f3 | ||
|
|
aaa55d6e87 | ||
|
|
181b5b191e | ||
|
|
4571701570 | ||
|
|
81a1d0dc39 | ||
|
|
0f77025f84 | ||
|
|
e0e8eb42f7 | ||
|
|
bf9767962d | ||
|
|
f3dc18929c | ||
|
|
4c4ba115c4 | ||
|
|
20ab84c90e | ||
|
|
bca4d0c356 | ||
|
|
57532078fe | ||
|
|
1ac5ffe46e | ||
|
|
bc45c8b5ad | ||
|
|
5f05b98a21 | ||
|
|
5c0b53f010 | ||
|
|
9dc01970e3 | ||
|
|
e55bc62da3 | ||
|
|
6d57e270ee | ||
|
|
7782f4f470 | ||
|
|
83d0980c03 | ||
|
|
c3da70aa38 | ||
|
|
98b63e17f9 | ||
|
|
af52db5915 | ||
|
|
f83c729809 | ||
|
|
0838f0ed19 | ||
|
|
e687773062 | ||
|
|
c17ad91967 | ||
|
|
1677804c8d | ||
| c59f767003 | |||
|
|
6c9a32515f | ||
|
|
fbb05c40f1 | ||
|
|
0019572b30 | ||
|
|
b4c174adf8 | ||
|
|
cccde33bac | ||
|
|
9363210a15 | ||
|
|
64a92fe6ed | ||
|
|
6499db58af | ||
|
|
bf133fc3a5 | ||
|
|
364399da48 | ||
|
|
ba5d314f44 | ||
|
|
35a8a59d07 | ||
|
|
fb4e371fbf | ||
|
|
d13c10f4fc | ||
|
|
17ce536a15 | ||
|
|
3d6a11f37c | ||
|
|
bfd46f1828 | ||
|
|
4fb5297623 | ||
|
|
ed14e28cde | ||
|
|
18e00b3c4d | ||
|
|
14b59ba446 | ||
|
|
2c1e00a221 | ||
|
|
18d0bee2e7 | ||
|
|
b267bfe1f2 | ||
|
|
0891de1020 | ||
|
|
f8277ec271 | ||
|
|
1d3b651fb2 |
7 changed files with 268 additions and 21 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/whowatch-1.4.tar.gz
|
||||
/whowatch-1.8.5.tar.gz
|
||||
/whowatch-1.8.6.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# 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/Rootx && { 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
1
sources
|
|
@ -0,0 +1 @@
|
|||
SHA512 (whowatch-1.8.6.tar.gz) = 49aa45b0a88a41c98fb7b548f0f098004c8bcca9ec078e977fcec8bc109c9beab25989003bfff4b3dc38a9d62d69378f64441753a1cca62729d2013d2ed73cb0
|
||||
36
whowatch-configure-c99.patch
Normal file
36
whowatch-configure-c99.patch
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
Avoid claling the undeclared exit function. Implicit function
|
||||
declarations were removed from the C language in 1999, and future
|
||||
compilers will refuse to compile calls to undeclared functions.
|
||||
|
||||
Submitted upstream: <https://github.com/mtsuszycki/whowatch/pull/12>
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 81d5eb056f2e59d0..4455e5a0211eeb61 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -5354,8 +5354,8 @@ fd_set rfds;
|
||||
struct timeval tv = {1, 0};
|
||||
FD_ZERO(&rfds); FD_SET(0,&rfds);
|
||||
select(1,&rfds,0,0,&tv);
|
||||
-if(tv.tv_sec == 0) exit(0);
|
||||
-else exit(1);
|
||||
+if(tv.tv_sec == 0) return 0;
|
||||
+else return 1;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 64fad6e1023bd541..7be34fd802e608cf 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -103,8 +103,8 @@ fd_set rfds;
|
||||
struct timeval tv = {1, 0};
|
||||
FD_ZERO(&rfds); FD_SET(0,&rfds);
|
||||
select(1,&rfds,0,0,&tv);
|
||||
-if(tv.tv_sec == 0) exit(0);
|
||||
-else exit(1);
|
||||
+if(tv.tv_sec == 0) return 0;
|
||||
+else return 1;
|
||||
}
|
||||
]])],[AC_MSG_RESULT(yes); AC_DEFINE([RETURN_TV_IN_SELECT],[1],[define if select() modifies the time value])],[AC_MSG_RESULT(no)],[AC_MSG_RESULT(no)])
|
||||
|
||||
35
whowatch-gcc15-fixes.patch
Normal file
35
whowatch-gcc15-fixes.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
diff -ur a/src/proctree.h b/src/proctree.h
|
||||
--- a/src/proctree.h 2018-04-11 07:10:50.000000000 +0100
|
||||
+++ b/src/proctree.h 2025-01-25 18:55:39.018468480 +0000
|
||||
@@ -19,7 +19,6 @@
|
||||
};
|
||||
|
||||
int update_tree(void del(void*));
|
||||
-int update_tree();
|
||||
struct proc_t* find_by_pid(int pid);
|
||||
struct proc_t* tree_start(int root, int start);
|
||||
struct proc_t* tree_next();
|
||||
diff -ur a/src/whowatch.c b/src/whowatch.c
|
||||
--- a/src/whowatch.c 2018-04-11 07:10:50.000000000 +0100
|
||||
+++ b/src/whowatch.c 2025-01-25 19:05:36.133313903 +0000
|
||||
@@ -222,7 +222,7 @@
|
||||
size_changed = 0;
|
||||
}
|
||||
|
||||
-static void winch_handler()
|
||||
+static void winch_handler(int i)
|
||||
{
|
||||
size_changed++;
|
||||
}
|
||||
diff -ur a/src/whowatch.h b/src/whowatch.h
|
||||
--- a/src/whowatch.h 2018-04-11 07:10:50.000000000 +0100
|
||||
+++ b/src/whowatch.h 2025-01-25 19:00:56.018861138 +0000
|
||||
@@ -164,7 +164,7 @@
|
||||
void curses_end();
|
||||
|
||||
/* proctree.c */
|
||||
-int update_tree();
|
||||
+int update_tree(void del(void*));
|
||||
|
||||
/* plist.c */
|
||||
void delete_tree_line(void *line);
|
||||
193
whowatch.spec
Normal file
193
whowatch.spec
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
Summary: Display information about users currently logged on
|
||||
Name: whowatch
|
||||
Version: 1.8.6
|
||||
Release: 23%{?dist}
|
||||
License: GPL-2.0-only
|
||||
URL: http://wizard.ae.krakow.pl/~mike/
|
||||
|
||||
Source0: https://github.com/mtsuszycki/whowatch/archive/whowatch-%{version}.tar.gz
|
||||
Patch0: whowatch-configure-c99.patch
|
||||
|
||||
# Submitted upstream: https://github.com/mtsuszycki/whowatch/pull/13
|
||||
Patch1: whowatch-gcc15-fixes.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: ncurses-devel
|
||||
|
||||
%description
|
||||
Whowatch is an interactive who-like program that displays information about the
|
||||
users currently logged on to the machine, in real time. Besides standard
|
||||
information (login name, tty, host, user's process), the type of the connection
|
||||
(ie. telnet or ssh) is shown. You can toggle display between users' command or
|
||||
idle time. You can watch processes tree, navigate in it and send INT and KILL
|
||||
signals.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
# Avoid regenerating configure script because whowatch-configure-c99.patch
|
||||
# updates it directly.
|
||||
touch aclocal.m4 Makefile.in src/config.h.in
|
||||
%configure
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__install} -d -m0755 %{buildroot}%{_mandir}/man1/ \
|
||||
%{buildroot}%{_bindir}
|
||||
%makeinstall
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog PLUGINS.readme README TODO
|
||||
%doc %{_mandir}/man1/whowatch.1*
|
||||
%license COPYING
|
||||
%{_bindir}/whowatch
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 25 2025 Richard Fearn <richardfearn@gmail.com> - 1.8.6-20
|
||||
- Fix FTBFS (bug #2341538)
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Dec 27 2022 Richard Fearn <richardfearn@gmail.com> - 1.8.6-14
|
||||
- Use SPDX license identifier
|
||||
|
||||
* Sat Nov 26 2022 Florian Weimer <fweimer@redhat.com> - 1.8.6-13
|
||||
- Port configure script to C99
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sun Feb 02 2020 Richard Fearn <richardfearn@gmail.com> - 1.8.6-7
|
||||
- Use %%license
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jan 05 2019 Richard Fearn <richardfearn@gmail.com> - 1.8.6-3
|
||||
- Don't remove buildroot in %%install section
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sat Apr 14 2018 Richard Fearn <richardfearn@gmail.com> - 1.8.6-1
|
||||
- Update to 1.8.6 (bug #1567514)
|
||||
|
||||
* Sat Feb 24 2018 Richard Fearn <richardfearn@gmail.com> - 1.8.5-13
|
||||
- Add BuildRequires: gcc
|
||||
(see https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Sat Sep 16 2017 Richard Fearn <richardfearn@gmail.com> 1.8.5-11
|
||||
- Remove unnecessary Group: tag, BuildRoot: tag, and %%clean section
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Mar 03 2016 Richard Fearn <richardfearn@gmail.com> 1.8.5-7
|
||||
- Fix incorrect FSF address in COPYING
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.5-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Thu Jan 28 2016 Richard Fearn <richardfearn@gmail.com> - 1.8.5-5
|
||||
- Remove unnecessary %%defattr
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sun Feb 23 2014 Richard Fearn <richardfearn@gmail.com> - 1.8.5-1
|
||||
- Update to 1.8.5 (rhbz#1068965)
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Sat Mar 05 2011 Adrian Reber <adrian@lisas.de> - 1.4-9
|
||||
- fix error in patch:
|
||||
"/usr/bin/patch: **** rejecting target file name with ".." component: ../process.c"
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4-5
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* 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