rpms/ifstatus/EL-4 ifstatus-1.1.0-fedora.patch, NONE, 1.1 ifstatus-1.1.0-gcc44.patch, NONE, 1.1 ifstatus.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Adam Miller maxamillion at fedoraproject.org
Tue Apr 14 20:53:37 UTC 2009


Author: maxamillion

Update of /cvs/extras/rpms/ifstatus/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22745/EL-4

Modified Files:
	.cvsignore sources 
Added Files:
	ifstatus-1.1.0-fedora.patch ifstatus-1.1.0-gcc44.patch 
	ifstatus.spec import.log 
Log Message:
Initial package of ifstatus for fedora



ifstatus-1.1.0-fedora.patch:

--- NEW FILE ifstatus-1.1.0-fedora.patch ---
Patch by Robert Scheck <robert at fedoraproject.org> for ifstatus >= 1.1.0,
which honors $RPM_OPT_FLAGS by default and allows to override all makefile
variables. Using of variables as been also corrected at missing points.

--- ifstatus/Makefile			2005-07-13 03:22:03.000000000 +0200
+++ ifstatus/Makefile.fedora		2009-04-14 00:48:26.000000000 +0200
@@ -3,7 +3,7 @@
 
 GCC = g++
 LDFLAGS = -lncurses
-CFLAGS = -O2 -Wall
+CFLAGS = -O2 -Wall $(RPM_OPT_FLAGS)
 
 BIN = ifstatus
 OBJ = BorderDecorator.o\
@@ -23,9 +23,10 @@
 	Window.o
 	
 
-INSTDIR = /usr/local/bin
-INSTALL=/usr/bin/install
-INSTALL_PARMS=-o 0 -g 0 -s -m 0755
+MKDIR := mkdir -p
+INSTDIR := /usr/local/bin
+INSTALL := /usr/bin/install
+INSTALL_PARMS := -o 0 -g 0 -s -m 0755
 
 all : ifstatus printdone
 
@@ -38,7 +39,8 @@
 clean:
 	rm -f ${BIN} *.o core *~ 
 install:
-	$(INSTALL) $(INSTALL_PARMS) ifstatus /usr/local/bin
+	$(MKDIR) $(DESTDIR)$(INSTDIR)
+	$(INSTALL) $(INSTALL_PARMS) $(BIN) $(DESTDIR)$(INSTDIR)
 
 
 

ifstatus-1.1.0-gcc44.patch:

--- NEW FILE ifstatus-1.1.0-gcc44.patch ---
Patch by Robert Scheck <robert at fedoraproject.org> for ifstatus >= 1.1.0,
which adds a few missing #include lines to not violate the C++ standards
and to build successfully with G++ version 4.3 and 4.4.

--- ifstatus/IFStatus.cc		2006-01-17 00:18:46.000000000 +0100
+++ ifstatus/IFStatus.cc.gcc44		2009-04-14 00:42:04.000000000 +0200
@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include "Main.h"
 #include "IFStatus.h"
 #include "Graph.h"
--- ifstatus/GraphDecorator.cc		2006-01-17 01:00:59.000000000 +0100
+++ ifstatus/GraphDecorator.cc.gcc44	2009-04-14 00:41:38.000000000 +0200
@@ -21,7 +21,8 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
- 
+
+#include <cstdlib> 
 #include "GraphDecorator.h"
 #include "Config.h"
 
--- ifstatus/Interface.cc		2006-01-17 02:48:27.000000000 +0100
+++ ifstatus/Interface.cc.gcc44		2009-04-14 00:42:23.000000000 +0200
@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include "Interface.h"
 #include "Config.h"
 
--- ifstatus/Config.cc			2005-02-26 12:54:51.000000000 +0100
+++ ifstatus/Config.cc.gcc44		2009-04-14 00:40:13.000000000 +0200
@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include "Main.h"
 #include "Config.h"
 #include "Util.h"
--- ifstatus/Email.cc			2005-02-26 12:54:51.000000000 +0100
+++ ifstatus/Email.cc.gcc44		2009-04-14 00:40:44.000000000 +0200
@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include "Email.h"
 #include "Config.h"
 
--- ifstatus/Interfaces.cc		2006-01-16 23:45:33.000000000 +0100
+++ ifstatus/Interfaces.cc.gcc44	2009-04-14 00:42:45.000000000 +0200
@@ -22,6 +22,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include "Interfaces.h"
 #include "Config.h"
 #include "Util.h"


--- NEW FILE ifstatus.spec ---
Name:           ifstatus
Version:        1.1.0
Release:        4%{?dist}
Summary:        Command line real time interface graphs using ncurses

Group:          Applications/Internet
License:        GPLv2+
URL:            http://ifstatus.sourceforge.net/
Source0:        http://ifstatus.sourceforge.net/download/%{name}-v%{version}.tar.gz
Patch0:         ifstatus-1.1.0-gcc44.patch
Patch1:         ifstatus-1.1.0-fedora.patch

BuildRoot:      %{_tmppath}/%{name}-v%{version}-%{release}-buildroot

BuildRequires:  ncurses-devel

%description
IFStatus was developed for Linux users that are usually in console mode. 
It is a simple, easy to use program for displaying commonly needed / wanted 
statistics in real time about ingoing and outgoing traffic of multiple 
network interfaces that is usually hard to find, with a simple and 
effecient view. It is the substitute for PPPStatus and EthStatus projects. 

%prep
%setup -q -n %{name}
%patch0 -p1 -b .gcc44
%patch1 -p1 -b .fedora

%build
# The Makefile of the upstream project is non-automake and can't handle 
# the %{?smp_mflags}
make


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTDIR=%{_sbindir} INSTALL_PARMS="-m 0755"

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_sbindir}/%{name}

%changelog
* Tue Apr 14 2009 Adam Miller <maxamillion [AT] gmail.com> - 1.1.0-4
- Typo in the Summary field.

* Mon Apr 13 2009 Adam Miller <maxamillion [AT] gmail.com> - 1.1.0-3
- Fixed rpm group tag to match similar utilities
- Fixed build for gcc44

* Mon Apr 13 2009 Adam Miller <maxamillion [AT] gmail.com> - 1.1.0-2
- Fixed rpm Group tag

* Mon Apr 13 2009 Adam Miller <maxamillion [AT] gmail.com> - 1.1.0-1
- First build of ifstatus


--- NEW FILE import.log ---
ifstatus-1_1_0-4:EL-4:ifstatus-1.1.0-4.src.rpm:1239742370


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ifstatus/EL-4/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	14 Apr 2009 16:18:50 -0000	1.1
+++ .cvsignore	14 Apr 2009 20:53:06 -0000	1.2
@@ -0,0 +1 @@
+ifstatus-v1.1.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ifstatus/EL-4/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	14 Apr 2009 16:18:50 -0000	1.1
+++ sources	14 Apr 2009 20:53:07 -0000	1.2
@@ -0,0 +1 @@
+f4d413f880754fd6677290160f8bc5d7  ifstatus-v1.1.0.tar.gz




More information about the scm-commits mailing list