[packages/ifmon] - new
qboosh
qboosh at pld-linux.org
Sun Feb 2 17:11:30 CET 2014
commit 265c3be4f90e77bc3788112155852f44c7ce37c0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 2 17:12:59 2014 +0100
- new
ifmon-verbose.patch | 43 +++++++++++++++++++++++++++++++++++++++
ifmon.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 101 insertions(+)
---
diff --git a/ifmon.spec b/ifmon.spec
new file mode 100644
index 0000000..78c746a
--- /dev/null
+++ b/ifmon.spec
@@ -0,0 +1,58 @@
+Summary: IFMon - interface monitor
+Summary(pl.UTF-8): IFMon - monitor interfejsów
+Name: ifmon
+Version: 2.2.1
+Release: 1
+License: GPL-like
+Group: X11/Applications/Graphics
+Source0: http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}.tar.bz2
+# Source0-md5: 01ddd0a36dbbbe778a69d0fbf1763f12
+Patch0: %{name}-verbose.patch
+URL: http://freecode.com/projects/interface-monitor
+BuildRequires: gtk+-devel >= 1.2.10
+BuildRequires: libstdc++-devel
+Requires: gtk+ >= 1.2.10
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+IFMon (Interface Monitor) displays the traffic, state, connection, and
+other information of a network interface as a small console window.
+The information for the network interface being monitored is obtained
+from the files in /proc to help simplify portability.
+
+%description -l pl.UTF-8
+IFMon (Interface Monitor) wyświetla informacje o ruchu, stanie,
+połączeniach oraz inne dotyczące interfejsu sieciowego w małym oknie
+konsoli. Informacje dotyczące monitorowanego interfejsu są pobierane z
+plików w /proc, co ma na celu ułatwienie przenośności.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+./configure Linux
+%{__make} \
+ CC="%{__cc}" \
+ CPP="%{__cc} %{rpmldflags}" \
+ CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -DPREFIX=\\\"%{_prefix}\\\" `gtk-config --cflags`" \
+ LIB_DIRS=
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ PREFIX=$RPM_BUILD_ROOT%{_prefix} \
+ MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
+ INSTBINFLAGS="-m755"
+
+bzip2 -d $RPM_BUILD_ROOT%{_mandir}/man1/*.bz2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README
+%attr(755,root,root) %{_bindir}/ifmon
+%{_mandir}/man1/ifmon.1*
diff --git a/ifmon-verbose.patch b/ifmon-verbose.patch
new file mode 100644
index 0000000..7f16b38
--- /dev/null
+++ b/ifmon-verbose.patch
@@ -0,0 +1,43 @@
+--- ifmon-2.2.1/Makefile.orig 2009-04-08 09:00:00.000000000 +0200
++++ ifmon-2.2.1/Makefile 2014-02-02 16:56:54.878541883 +0100
+@@ -37,7 +37,7 @@
+ #
+ all config:
+ @for subdir in $(ALL_SRC_DIRS); do \
+- $(MAKE) -s -C $$subdir -f Makefile $@ || exit 1; \
++ $(MAKE) -C $$subdir -f Makefile $@ || exit 1; \
+ done
+ @echo "To install, type \"su\" (to gain root privileges)\
+ and then type \"make install\"."
+@@ -47,7 +47,7 @@
+ #
+ install:
+ @for subdir in $(ALL_SRC_DIRS); do \
+- $(MAKE) -s -C $$subdir -f Makefile $@ || exit 1; \
++ $(MAKE) -C $$subdir -f Makefile $@ || exit 1; \
+ done
+ @echo "Installation done."
+
+@@ -56,5 +56,5 @@
+ #
+ clean:
+ @for subdir in $(ALL_SRC_DIRS); do \
+- $(MAKE) -s -C $$subdir -f Makefile $@; \
++ $(MAKE) -C $$subdir -f Makefile $@; \
+ done
+--- ifmon-2.2.1/ifmon/Makefile.orig 2009-04-08 09:00:00.000000000 +0200
++++ ifmon-2.2.1/ifmon/Makefile 2014-02-02 16:57:44.751873123 +0100
+@@ -51,11 +51,9 @@
+ OBJ_C = $(SRC_C:.c=.o)
+ OBJ_CPP = $(SRC_CPP:.cpp=.o)
+ .c.o:
+- @echo "Compiling module $*.o"
+- @+$(CC) -c $*.c $(INC_DIRS) $(CFLAGS)
++ $(CC) -c $*.c $(INC_DIRS) $(CFLAGS)
+ .cpp.o:
+- @echo "Compiling module $*.o"
+- @+$(CPP) -c $*.cpp $(INC_DIRS) $(CFLAGS) $(CPPFLAGS)
++ $(CPP) -c $*.cpp $(INC_DIRS) $(CFLAGS) $(CPPFLAGS)
+
+
+ $(BIN): prebuild config modules postbuild
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ifmon.git/commitdiff/265c3be4f90e77bc3788112155852f44c7ce37c0
More information about the pld-cvs-commit
mailing list