pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/chksniff
Module Name: pkgsrc
Committed By: nia
Date: Fri Oct 11 06:58:02 UTC 2024
Modified Files:
pkgsrc/net/chksniff: distinfo
pkgsrc/net/chksniff/patches: patch-aa
Added Files:
pkgsrc/net/chksniff/patches: patch-src_chksniff.c
Log Message:
chksniff: Resolve various compilation problems.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/net/chksniff/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/chksniff/patches/patch-aa
cvs rdiff -u -r0 -r1.1 pkgsrc/net/chksniff/patches/patch-src_chksniff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/chksniff/distinfo
diff -u pkgsrc/net/chksniff/distinfo:1.5 pkgsrc/net/chksniff/distinfo:1.6
--- pkgsrc/net/chksniff/distinfo:1.5 Tue Oct 26 11:05:27 2021
+++ pkgsrc/net/chksniff/distinfo Fri Oct 11 06:58:02 2024
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:05:27 nia Exp $
+$NetBSD: distinfo,v 1.6 2024/10/11 06:58:02 nia Exp $
BLAKE2s (chksniff-0.2.tar.gz) = f8f3b7becaf3fd74a27b10235d0c907589b96491be2bea427e3209fb8a1bbbaf
SHA512 (chksniff-0.2.tar.gz) = 74f8974094c2077b1441d06d0f948974ee79f64127edf8670c02b32776e2f87dce6ca02746bd408b79ea8f518c3ce7d26c56c8ba260958052346641cdd90eec5
Size (chksniff-0.2.tar.gz) = 28419 bytes
-SHA1 (patch-aa) = 00392a03d68fecea9a9eb4427a77b0093af70adc
+SHA1 (patch-aa) = 96bf20318c41e8b3d77302857d73742c58f2ef35
+SHA1 (patch-src_chksniff.c) = d4091af046503d077a8fa6cbb60ddc6aa782ad94
Index: pkgsrc/net/chksniff/patches/patch-aa
diff -u pkgsrc/net/chksniff/patches/patch-aa:1.2 pkgsrc/net/chksniff/patches/patch-aa:1.3
--- pkgsrc/net/chksniff/patches/patch-aa:1.2 Mon Mar 2 17:40:03 2009
+++ pkgsrc/net/chksniff/patches/patch-aa Fri Oct 11 06:58:02 2024
@@ -1,6 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2009/03/02 17:40:03 joerg Exp $
+$NetBSD: patch-aa,v 1.3 2024/10/11 06:58:02 nia Exp $
---- src/Makefile.in.orig 2003-04-06 13:22:35.000000000 -0700
+Don't hardcode gcc. Use LDFLAGS for linking.
+
+--- src/Makefile.in.orig 2003-04-06 20:22:35.000000000 +0000
+++ src/Makefile.in
@@ -1,4 +1,4 @@
-CC=gcc
@@ -8,7 +10,14 @@ $NetBSD: patch-aa,v 1.2 2009/03/02 17:40
CFLAGS=@CFLAGS@
INC=-I../include
INSDIR=@prefix@/bin
-@@ -12,7 +12,7 @@ chksniff.o: chksniff.c
+@@ -6,13 +6,13 @@ LIBS=@LIBS@
+ OBJS=chksniff.o
+
+ all: $(OBJS)
+- $(CC) $(CFLAGS) $(INC) $(OBJS) -o chksniff $(LIBS)
++ $(CC) $(LDFLAGS) $(INC) $(OBJS) -o chksniff $(LIBS)
+
+ chksniff.o: chksniff.c
$(CC) $(CFLAGS) $(INC) -c chksniff.c
install:
Added files:
Index: pkgsrc/net/chksniff/patches/patch-src_chksniff.c
diff -u /dev/null pkgsrc/net/chksniff/patches/patch-src_chksniff.c:1.1
--- /dev/null Fri Oct 11 06:58:02 2024
+++ pkgsrc/net/chksniff/patches/patch-src_chksniff.c Fri Oct 11 06:58:02 2024
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_chksniff.c,v 1.1 2024/10/11 06:58:02 nia Exp $
+
+Resolve problems with implicit function declarations
+and missing SIOCGIFCONF.
+
+--- src/chksniff.c.orig 2003-04-06 20:28:03.000000000 +0000
++++ src/chksniff.c
+@@ -2,10 +2,13 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <errno.h>
++#include <string.h>
++#include <arpa/inet.h>
+ #include <netinet/in.h>
+ #include <netdb.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
++#include <sys/sockio.h>
+ #include <sys/ioctl.h>
+
+ #if defined (__linux__)
Home |
Main Index |
Thread Index |
Old Index