summaryrefslogtreecommitdiff
path: root/net/ssmping/patches
diff options
context:
space:
mode:
authoris <is>2007-10-11 19:35:26 +0000
committeris <is>2007-10-11 19:35:26 +0000
commit44bc554bc5294059f91dae1370f1f131050ca981 (patch)
treed2a8f63870528c600bfeba92f9c39e93275afc63 /net/ssmping/patches
parent56ff33994d3b34c3c3e59457ee34d3326a93eddf (diff)
downloadpkgsrc-44bc554bc5294059f91dae1370f1f131050ca981.tar.gz
Diagnostic tools for Internet multicast: source specific multicast
and any-source multicast pinger, mcfirst (wait for first packet from a multicast group), and the ssmping answerer ssmpingd.
Diffstat (limited to 'net/ssmping/patches')
-rw-r--r--net/ssmping/patches/patch-aa45
-rw-r--r--net/ssmping/patches/patch-ab13
2 files changed, 58 insertions, 0 deletions
diff --git a/net/ssmping/patches/patch-aa b/net/ssmping/patches/patch-aa
new file mode 100644
index 00000000000..ba49977ec0e
--- /dev/null
+++ b/net/ssmping/patches/patch-aa
@@ -0,0 +1,45 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/10/11 19:35:26 is Exp $
+
+--- Makefile.orig 2006-06-04 10:16:04.000000000 +0200
++++ Makefile
+@@ -2,21 +2,28 @@ PREFIX ?= /usr/local
+
+ all: ssmping asmping ssmpingd mcfirst
+
+-OBJ = ssmpngcl.o ssmpingc.o
++OBJ = ssmpngcl.o ssmpingc.o joinch.o joingrp.o
++
++ssmping: $(OBJ)
++ $(CC) $(CFLAGS) $(OBJ) -o ssmping ssmping.c
++
++asmping: $(OBJ)
++ $(CC) $(CFLAGS) $(OBJ) -o asmping asmping.c
+
+-ssmping: $(OBJ) joinch.o
+-asmping: $(OBJ) joingrp.o
+-mcfirst: $(OBJ) joinch.o joingrp.o
+ ssmpingd: $(OBJ)
++ $(CC) $(CFLAGS) $(OBJ) -o ssmpingd ssmpingd.c
++
++mcfirst: $(OBJ)
++ $(CC) $(CFLAGS) $(OBJ) -o mcfirst mcfirst.c
+
+ install: ssmping asmping ssmpingd mcfirst
+- install -D ssmping $(DESTDIR)$(PREFIX)/bin/ssmping
+- install -D asmping $(DESTDIR)$(PREFIX)/bin/asmping
+- install -D ssmpingd $(DESTDIR)$(PREFIX)/bin/ssmpingd
+- install -D mcfirst $(DESTDIR)$(PREFIX)/bin/mcfirst
+- install -D ssmping.1 $(DESTDIR)$(PREFIX)/man/man1/ssmping.1
+- install -D asmping.1 $(DESTDIR)$(PREFIX)/man/man1/asmping.1
+- install -D mcfirst.1 $(DESTDIR)$(PREFIX)/man/man1/mcfirst.1
++ install -m 755 ssmping $(PREFIX)/bin/ssmping
++ install -m 755 asmping $(PREFIX)/bin/asmping
++ install -m 755 ssmpingd $(PREFIX)/sbin/ssmpingd
++ install -m 755 mcfirst $(PREFIX)/bin/mcfirst
++ install -m 644 ssmping.1 $(PREFIX)/man/man1/ssmping.1
++ install -m 644 asmping.1 $(PREFIX)/man/man1/asmping.1
++ install -m 644 mcfirst.1 $(PREFIX)/man/man1/mcfirst.1
+
+ clean:
+- rm -f $(OBJ) joinch.o joingrp.o ssmping asmping ssmpingd mcfirst
++ rm -f $(OBJ) ssmping asmping ssmpingd mcfirst
diff --git a/net/ssmping/patches/patch-ab b/net/ssmping/patches/patch-ab
new file mode 100644
index 00000000000..4d4581566ac
--- /dev/null
+++ b/net/ssmping/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/10/11 19:35:26 is Exp $
+
+--- ssmping.c.orig 2006-06-13 22:26:44.000000000 +0200
++++ ssmping.c
+@@ -22,7 +22,7 @@ int main(int argc, char **argv) {
+ uint16_t size;
+ uint32_t intface;
+ struct sockaddr_storage name, ucaddr, mcaddr, grpaddr;
+- size_t namelen;
++ socklen_t namelen;
+ #ifdef WIN32
+ WORD wVersionRequested;
+ WSADATA wsaData;