Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 9b063951c3a466cd8112af3fefee03cd > files > 1

ip6sic-0.1-9.fc12.src.rpm

diff -ur ip6sic-0.1.orig/ip6sic.c ip6sic-0.1/ip6sic.c
--- ip6sic-0.1.orig/ip6sic.c	2003-10-01 14:58:15.000000000 -0400
+++ ip6sic-0.1/ip6sic.c	2006-07-11 22:44:07.000000000 -0400
@@ -641,7 +641,7 @@
         do_progress(0);
     
  exit_now:
-    fprintf(ttyout, " * %d packets sent (%lld bytes %lldMB) (%d retries)\n", i, total_bytes,
+    fprintf(ttyout, " * %d packets sent (%ju bytes %juMB) (%d retries)\n", i, total_bytes,
            total_bytes / (1024 * 1024), retries);
 
     if (save_pcap) {
diff -ur ip6sic-0.1.orig/configure ip6sic-0.1/configure
--- ip6sic-0.1.orig/configure	2003-09-03 13:46:15.000000000 -0400
+++ ip6sic-0.1/configure	2006-07-11 22:59:51.000000000 -0400
@@ -864,6 +864,10 @@
 	else
 	   PCAPLIB="-L$withval/lib -lpcap"
         fi
+     elif test -f /usr/include/pcap.h -a -f /usr/lib/libpcap.so; then
+        owd=`pwd`
+        PCAPINC="-I/usr/include"
+        PCAPLIB="-L/usr/lib -lpcap"
      else
         { echo "configure: error: pcap.h" 1>&2; exit 1; }
      fi
diff -ur ip6sic-0.1.orig/Makefile.in ip6sic-0.1/Makefile.in
--- ip6sic-0.1.orig/Makefile.in	2003-10-01 15:11:50.000000000 -0400
+++ ip6sic-0.1/Makefile.in	2006-07-11 23:19:48.000000000 -0400
@@ -1,6 +1,6 @@
 # $Id: Makefile.in,v 1.1.1.1 2003/09/03 17:46:15 taleck Exp $
 
-PREFIX ?= /usr/local
+PREFIX ?= /usr
 
 CC = @CC@
 INCLUDES = @DNETINC@ @PCAPINC@ @TCPDUMPINC@
@@ -45,8 +45,9 @@
 	( cd .. ; rm -f ip6sic-${VERSION} ; ln -s ip6sic/ ip6sic-${VERSION} ; \
 	  tar -czvf ip6sic-${VERSION}.tar.gz ip6sic-${VERSION}/*.[ch] ip6sic-${VERSION}/Makefile.in ip6sic-${VERSION}/configure.in ip6sic-${VERSION}/configure ip6sic-${VERSION}/README ip6sic-${VERSION}/LICENSE ip6sic-${VERSION}/install-sh ip6sic-${VERSION}/version.h.in )
 
-install: ${PROG} ${MAN}
-	${INSTALL} -m 0755 -d ${PREFIX}/bin
-	${INSTALL} -m 0755 -c ${PROG} ${PREFIX}/bin
-	${INSTALL} -m 0755 -c ${MAN} ${PREFIX}/man/man1
+install: ${PROGS} ${MAN}
+	${INSTALL} -m 0755 -d $(DESTDIR)${PREFIX}/bin
+	${INSTALL} -m 0755 -d $(DESTDIR)${PREFIX}/share/man/man1
+	${INSTALL} -m 0755 -c ${PROGS} $(DESTDIR)${PREFIX}/bin/
+	${INSTALL} -m 0755 -c ${MAN} $(DESTDIR)${PREFIX}/share/man/man1/