summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2002-04-22 13:14:50 +0000
committersumikawa <sumikawa@FreeBSD.org>2002-04-22 13:14:50 +0000
commit339d91699389cdb6ffb695d38c02fc187919cc81 (patch)
tree2742e2ef8d88e41353e221bc0bcdf727ec9775bb
parent3caa226c1ade651e54302ac2e850413542562c11 (diff)
downloadFreeBSD-ports-339d91699389cdb6ffb695d38c02fc187919cc81.zip
FreeBSD-ports-339d91699389cdb6ffb695d38c02fc187919cc81.tar.gz
The ipv6socket_scrub utility searches recursively through
the current directory (the default) or any specified directory or file to find IPv4 socket code that may be a candidate for modification when porting to the IPv6 socket API. The utility is designed to run from a Solaris machine. WWW: http://www.sun.com/solaris/ipv6 PR: ports/36208 Submitted by: Janos Mohacsi <janos.mohacsi@dante.org.uk>
-rw-r--r--net/Makefile1
-rw-r--r--net/ipv6socket_scrub/Makefile38
-rw-r--r--net/ipv6socket_scrub/distinfo1
-rw-r--r--net/ipv6socket_scrub/files/patch-aa31
-rw-r--r--net/ipv6socket_scrub/files/patch-ab9
-rw-r--r--net/ipv6socket_scrub/pkg-comment1
-rw-r--r--net/ipv6socket_scrub/pkg-descr10
-rw-r--r--net/ipv6socket_scrub/pkg-plist1
8 files changed, 92 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 0c7e76e..40eca77 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -187,6 +187,7 @@
SUBDIR += iplog
SUBDIR += ipsorc
SUBDIR += ipv6calc
+ SUBDIR += ipv6socket_scrub
SUBDIR += ipw
SUBDIR += isc-dhcp3
SUBDIR += isic
diff --git a/net/ipv6socket_scrub/Makefile b/net/ipv6socket_scrub/Makefile
new file mode 100644
index 0000000..72fcd27
--- /dev/null
+++ b/net/ipv6socket_scrub/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: IPv6socket_scrub
+# Date created: 22.03.2002
+# Whom: Janos Mohacsi <janos.mohacsi@dante.org.uk>
+#
+# $FreeBSD$
+
+PORTNAME= ipv6socket_scrub
+PORTVERSION= 1.0
+CATEGORIES= devel ipv6
+MASTER_SITES= #http://www.sun.com/solaris/ipv6
+DISTNAME= IPv6socket_scrub
+EXTRACT_SUFX= .tar
+
+MAINTAINER= Janos.Mohacsi@dante.org.uk
+
+MAN1= ipv6socket_scrub.1
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+RESTRICTED= "not redistributable, license agreement required"
+NO_CDROM= ${RESTRICTED}
+NO_PACKAGE= ${RESTRICTED}
+
+do-fetch:
+ @if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
+ ${ECHO} '======================================================='; \
+ ${ECHO} 'You need to sign the agreement on http://www.sun.com/solaris/ipv6'; \
+ ${ECHO} 'and fetch on your own.'; \
+ ${ECHO} 'Once ${DISTFILES} has been downloaded, move it to '; \
+ ${ECHO} '${DISTDIR} and then restart this build '; \
+ ${ECHO} '======================================================='; \
+ fi
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ipv6socket_scrub ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/../Docs/man/man1/ipv6socket_scrub.1 \
+ ${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/net/ipv6socket_scrub/distinfo b/net/ipv6socket_scrub/distinfo
new file mode 100644
index 0000000..9c6176d
--- /dev/null
+++ b/net/ipv6socket_scrub/distinfo
@@ -0,0 +1 @@
+MD5 (IPv6socket_scrub.tar) = 5e61107af752b3e97ace852c481e45b7
diff --git a/net/ipv6socket_scrub/files/patch-aa b/net/ipv6socket_scrub/files/patch-aa
new file mode 100644
index 0000000..80e51f0
--- /dev/null
+++ b/net/ipv6socket_scrub/files/patch-aa
@@ -0,0 +1,31 @@
+--- ipv6socket_scrub.c.orig Fri Oct 15 05:51:40 1999
++++ ipv6socket_scrub.c Mon Feb 5 11:26:41 2001
+@@ -32,4 +32,5 @@
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <pwd.h>
+ #include <sys/types.h>
+@@ -309,5 +310,5 @@
+ -e 's/#.*else/_#_else/' \
+ %s | \
+- /usr/ccs/lib/cpp -BP 2>&1 | \
++ /usr/bin/cpp -P 2>&1 | \
+ /usr/bin/sed -e 's/_#_include/#include/' \
+ -e 's/_#_end/#end/' \
+@@ -665,6 +666,6 @@
+
+ if ((stat("/usr/bin/sed", &statbuff) == -1) ||
+- stat("/usr/ccs/lib/cpp", &statbuff) == -1) {
+- fprintf (stderr, "\nCannot find /usr/bin/sed and/or /usr/ccs/lib/cpp -BP.\n Terminating...\n");
++ stat("/usr/bin/cpp", &statbuff) == -1) {
++ fprintf (stderr, "\nCannot find /usr/bin/sed and/or /usr/bin/cpp -P.\n Terminating...\n");
+ exit (2);
+
+@@ -1344,5 +1345,5 @@
+
+ if (check_file (buf,ignore_conf,pri_conf,sec_conf,fo1,fo2,tmpfile)) {
+- fprintf (stderr, "\nCannot process file %s. Cannot find /usr/bin/sed and/or /usr/ccs/lib/cpp -BP.\n Terminating...\n",buf);
++ fprintf (stderr, "\nCannot process file %s. Cannot find /usr/bin/sed and/or /usr/bin/cpp -P.\n Terminating...\n",buf);
+ unlink(tmpfile);
+ exit (2);
diff --git a/net/ipv6socket_scrub/files/patch-ab b/net/ipv6socket_scrub/files/patch-ab
new file mode 100644
index 0000000..e6241f6
--- /dev/null
+++ b/net/ipv6socket_scrub/files/patch-ab
@@ -0,0 +1,9 @@
+--- Makefile.orig Wed Oct 13 18:01:46 1999
++++ Makefile Sun Nov 28 23:26:42 1999
+@@ -1,5 +1,5 @@
+ CC = cc
+-CFLAGS = -xO3
++CFLAGS = -O3
+ LDFLAGS =
+
+ PROG = ipv6socket_scrub
diff --git a/net/ipv6socket_scrub/pkg-comment b/net/ipv6socket_scrub/pkg-comment
new file mode 100644
index 0000000..6b8bbb7
--- /dev/null
+++ b/net/ipv6socket_scrub/pkg-comment
@@ -0,0 +1 @@
+Checks IPv6 portability of C source code
diff --git a/net/ipv6socket_scrub/pkg-descr b/net/ipv6socket_scrub/pkg-descr
new file mode 100644
index 0000000..262db4edd
--- /dev/null
+++ b/net/ipv6socket_scrub/pkg-descr
@@ -0,0 +1,10 @@
+Sun IPv6socket_scrub program
+============================
+
+The ipv6socket_scrub utility searches recursively through
+the current directory (the default) or any specified
+directory or file to find IPv4 socket code that may be a
+candidate for modification when porting to the IPv6 socket API.
+The utility is designed to run from a Solaris machine.
+
+WWW: http://www.sun.com/solaris/ipv6
diff --git a/net/ipv6socket_scrub/pkg-plist b/net/ipv6socket_scrub/pkg-plist
new file mode 100644
index 0000000..88d5910
--- /dev/null
+++ b/net/ipv6socket_scrub/pkg-plist
@@ -0,0 +1 @@
+bin/ipv6socket_scrub
OpenPOWER on IntegriCloud