From 861d0e3106b03abfdf91a7d0c8b501d0e317d0c0 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Aug 25 2007 13:59:53 +0000 Subject: - updated to 1.2.3 - adapted daemon patch - fixed some rpmlint warnings/errors --- diff --git a/.cvsignore b/.cvsignore index 8b7a788..1e47517 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -bwbar-1.2.2.tar.gz +bwbar-1.2.3.tar.bz2 diff --git a/bwbar b/bwbar index 4a70017..2923c0e 100644 --- a/bwbar +++ b/bwbar @@ -3,7 +3,7 @@ # Starting bwbar as daemon # Author: Adrian Reber # -# chkconfig: 2345 50 01 +# chkconfig: - 50 01 # # description: start bwbar as daemon # processname: bwbar @@ -57,6 +57,9 @@ case "$1" in restart) restart ;; + reload) + restart + ;; status) status bwbar ;; diff --git a/bwbar.daemon.patch b/bwbar.daemon.patch index 5f965eb..0bf309e 100644 --- a/bwbar.daemon.patch +++ b/bwbar.daemon.patch @@ -43,13 +43,15 @@ first = 1; lbin = 0; lbout = 0; -- +- + + if ( daemon_mode == 1) { + if ( fork() != 0) + return 0; + } + + gettimeofday(&t_last, NULL); + while ( 1 ) { /**** Begin code that obtains bandwidth data ****/ diff --git a/bwbar.spec b/bwbar.spec index 54bee2b..b4a3521 100644 --- a/bwbar.spec +++ b/bwbar.spec @@ -1,11 +1,11 @@ Summary: Generate a readout of the current bandwidth use Name: bwbar -Version: 1.2.2 -Release: 5 +Version: 1.2.3 +Release: 1 -License: GPL +License: GPLv2+ Group: System Environment/Base -Source0: http://www.kernel.org/pub/software/web/bwbar/bwbar-1.2.2.tar.gz +Source0: http://www.kernel.org/pub/software/web/bwbar/bwbar-1.2.3.tar.bz2 Source1: bwbar Source2: bwbar.8 Patch0: bwbar.daemon.patch @@ -66,10 +66,15 @@ fi %doc README %{_bindir}/%{name} %{_mandir}/man8/* -%config(noreplace) %{_initrddir}/%{name} +%{_initrddir}/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %changelog +* Sat Aug 25 2007 Adrian Reber - 1.2.3-1 +- updated to 1.2.3 +- adapted daemon patch +- fixed some rpmlint warnings/errors + * Mon Sep 11 2006 Adrian Reber - 1.2.2-5 - rebuilt diff --git a/sources b/sources index 97bdd0c..a0cdd45 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6dd176df1851e60863d488e86406003d bwbar-1.2.2.tar.gz +97aace07131693d62f751fba204b51a1 bwbar-1.2.3.tar.bz2