]> git.pld-linux.org Git - packages/bcount.git/commitdiff
- initial
authorkolodko <kolodko@pld-linux.org>
Sat, 29 May 2004 23:51:33 +0000 (23:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bcount-ncurses.patch -> 1.1
    bcount.spec -> 1.1

bcount-ncurses.patch [new file with mode: 0644]
bcount.spec [new file with mode: 0644]

diff --git a/bcount-ncurses.patch b/bcount-ncurses.patch
new file mode 100644 (file)
index 0000000..dfe4817
--- /dev/null
@@ -0,0 +1,36 @@
+diff -urN bcount-1.0test2.orig/src/bclient.h bcount-1.0test2/src/bclient.h
+--- bcount-1.0test2.orig/src/bclient.h 2003-06-01 19:23:43.000000000 +0200
++++ bcount-1.0test2/src/bclient.h      2004-05-26 19:18:37.011309584 +0200
+@@ -26,7 +26,7 @@
+ #include <sys/types.h>
+ #include <arpa/inet.h>
+-#include <curses.h>
++#include <ncurses/curses.h>
+ #include <getopt.h>
+ #include <netdb.h>
+ #include <sys/time.h>
+diff -urN bcount-1.0test2.orig/src/bcount.h bcount-1.0test2/src/bcount.h
+--- bcount-1.0test2.orig/src/bcount.h  2003-08-07 23:20:10.000000000 +0200
++++ bcount-1.0test2/src/bcount.h       2004-05-26 19:18:50.843206816 +0200
+@@ -26,7 +26,7 @@
+ #include <sys/stat.h>
+-#include <curses.h>
++#include <ncurses/curses.h>
+ #include <fcntl.h>
+ #include <sys/time.h>
+ #include <pwd.h>
+diff -urN bcount-1.0test2.orig/src/bserver.h bcount-1.0test2/src/bserver.h
+--- bcount-1.0test2.orig/src/bserver.h 2003-06-01 19:23:51.000000000 +0200
++++ bcount-1.0test2/src/bserver.h      2004-05-26 19:18:57.368214864 +0200
+@@ -26,7 +26,7 @@
+ #include <sys/wait.h>
+-#include <curses.h>
++#include <ncurses/curses.h>
+ #include <fcntl.h>
+ #include "programs_version.h"
+ #include "includes.h"
diff --git a/bcount.spec b/bcount.spec
new file mode 100644 (file)
index 0000000..77d2a9d
--- /dev/null
@@ -0,0 +1,47 @@
+Summary:       Bytes counter
+Summary(pl):   Licznik bajtów
+Name:          bcount
+Version:       1.0test2
+Release:       0.1
+License:       GPL
+Group:         Networking/Utilities            
+Source0:       http://www.deth.org.pl/~alex/bcount/%{name}-%{version}.tar.gz
+# Source0-md5: af92076cb4dbb870b991b677d0ad3bc2
+Patch0:                %{name}-ncurses.patch
+URL:           http://www.deth.org.pl/~alex/bcount/
+BuildRequires: ncurses-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Bytes Counter displays detailed information about the number of bytes
+and packets that have been transferred over a network interface.
+
+%description -l pl
+Bcount jest licznikiem pokazuj±cym informacjê o bajtach i pakietach
+przechodz±cych przez interfejs sieciowy.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_sbindir},/var/log}
+install bcount $RPM_BUILD_ROOT%{_sbindir}
+
+:> $RPM_BUILD_ROOT/var/log/bcount.log
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO README.protocol
+%doc README.log README.ethx README.fuckyou
+%attr(755,root,root) %{_sbindir}/*
+%attr(640,root,root) %ghost /var/log/bcount.log
This page took 0.044255 seconds and 4 git commands to generate.