Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 16:58:24 GMT
From:      Janos Mohacsi <janos.mohacsi@dante.org.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/36208: New port: ipv6socket_scrub 1.0
Message-ID:  <200203221658.g2MGwOr16991@budapest.dante.org.uk>

next in thread | raw e-mail | index | archive | help

>Number:         36208
>Category:       ports
>Synopsis:       New port: ipv6socket_scrub 1.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 22 09:00:05 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Janos Mohacsi
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
DANTE
>Environment:
System: FreeBSD budapest.dante.org.uk 4.4-STABLE FreeBSD 4.4-STABLE #1: Sun Oct 21 13:05:36 BST 2001 janos@budapest.dante.org.uk:/usr/src/sys/compile/BUDAPEST i386


>Description:
	New port that checks IPv6 portability of C source code. Mainly imported from NetBSD.
>How-To-Repeat:
	Apply this shar.
>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ipv6socket_scrub
#	ipv6socket_scrub/pkg-plist
#	ipv6socket_scrub/pkg-descr
#	ipv6socket_scrub/pkg-comment
#	ipv6socket_scrub/files
#	ipv6socket_scrub/files/patch-aa
#	ipv6socket_scrub/files/patch-ab
#	ipv6socket_scrub/Makefile
#	ipv6socket_scrub/distinfo
#
echo c - ipv6socket_scrub
mkdir -p ipv6socket_scrub > /dev/null 2>&1
echo x - ipv6socket_scrub/pkg-plist
sed 's/^X//' >ipv6socket_scrub/pkg-plist << 'END-of-ipv6socket_scrub/pkg-plist'
Xbin/ipv6socket_scrub
END-of-ipv6socket_scrub/pkg-plist
echo x - ipv6socket_scrub/pkg-descr
sed 's/^X//' >ipv6socket_scrub/pkg-descr << 'END-of-ipv6socket_scrub/pkg-descr'
XSun IPv6socket_scrub program
X============================
X
XThe ipv6socket_scrub utility searches  recursively  through
Xthe  current directory  (the  default) or any specified
Xdirectory or file to find IPv4 socket code that may be a 
Xcandidate for modification when porting to the IPv6 socket API. 
XThe utility is designed to run from a Solaris machine.
X
XWWW: http://www.sun.com/solaris/ipv6
END-of-ipv6socket_scrub/pkg-descr
echo x - ipv6socket_scrub/pkg-comment
sed 's/^X//' >ipv6socket_scrub/pkg-comment << 'END-of-ipv6socket_scrub/pkg-comment'
XChecks IPv6 portability of C source code
END-of-ipv6socket_scrub/pkg-comment
echo c - ipv6socket_scrub/files
mkdir -p ipv6socket_scrub/files > /dev/null 2>&1
echo x - ipv6socket_scrub/files/patch-aa
sed 's/^X//' >ipv6socket_scrub/files/patch-aa << 'END-of-ipv6socket_scrub/files/patch-aa'
X--- ipv6socket_scrub.c.orig	Fri Oct 15 05:51:40 1999
X+++ ipv6socket_scrub.c	Mon Feb  5 11:26:41 2001
X@@ -32,4 +32,5 @@
X #include <stdlib.h>
X #include <stdio.h>
X+#include <string.h>
X #include <pwd.h>
X #include <sys/types.h>
X@@ -309,5 +310,5 @@
X                                -e 's/#.*else/_#_else/' \
X                                %s | \
X-                  /usr/ccs/lib/cpp -BP 2>&1 | \
X+                  /usr/bin/cpp -P 2>&1 | \
X                   /usr/bin/sed -e 's/_#_include/#include/' \
X                                -e 's/_#_end/#end/' \
X@@ -665,6 +666,6 @@
X 
X   if ((stat("/usr/bin/sed", &statbuff) == -1) ||
X-     stat("/usr/ccs/lib/cpp", &statbuff) == -1) {
X-         fprintf (stderr, "\nCannot find /usr/bin/sed and/or /usr/ccs/lib/cpp -BP.\n Terminating...\n");
X+     stat("/usr/bin/cpp", &statbuff) == -1) {
X+         fprintf (stderr, "\nCannot find /usr/bin/sed and/or /usr/bin/cpp -P.\n Terminating...\n");
X          exit (2);
X 
X@@ -1344,5 +1345,5 @@
X 
X       if (check_file (buf,ignore_conf,pri_conf,sec_conf,fo1,fo2,tmpfile)) {
X-         fprintf (stderr, "\nCannot process file %s.  Cannot find /usr/bin/sed and/or /usr/ccs/lib/cpp -BP.\n Terminating...\n",buf);
X+         fprintf (stderr, "\nCannot process file %s.  Cannot find /usr/bin/sed and/or /usr/bin/cpp -P.\n Terminating...\n",buf);
X          unlink(tmpfile);
X          exit (2);
END-of-ipv6socket_scrub/files/patch-aa
echo x - ipv6socket_scrub/files/patch-ab
sed 's/^X//' >ipv6socket_scrub/files/patch-ab << 'END-of-ipv6socket_scrub/files/patch-ab'
X--- Makefile.orig	Wed Oct 13 18:01:46 1999
X+++ Makefile	Sun Nov 28 23:26:42 1999
X@@ -1,5 +1,5 @@
X CC	= cc
X-CFLAGS	= -xO3
X+CFLAGS	= -O3
X LDFLAGS	=
X 
X PROG	= ipv6socket_scrub
END-of-ipv6socket_scrub/files/patch-ab
echo x - ipv6socket_scrub/Makefile
sed 's/^X//' >ipv6socket_scrub/Makefile << 'END-of-ipv6socket_scrub/Makefile'
X# New ports collection makefile for:    IPv6socket_scrub
X# Date created:         22.03.2002
X# Whom: Janos Mohacsi <janos.mohacsi@dante.org.uk>
X#
X# $FreeBSD$
X
XPORTNAME=	ipv6socket_scrub
XPORTVERSION=    1.0
XCATEGORIES=	devel ipv6
XMASTER_SITES=	#http://www.sun.com/solaris/ipv6
XDISTNAME=	IPv6socket_scrub
XEXTRACT_SUFX=	.tar
X
XMAINTAINER=	Janos.Mohacsi@dante.org.uk
X
XMAN1=		ipv6socket_scrub.1
X
XWRKSRC=			${WRKDIR}/${DISTNAME}/src
XRESTRICTED=		"not redistributable, license agreement required"
XNO_CDROM=	${RESTRICTED}
XNO_PACKAGE=	${RESTRICTED}
X
Xdo-fetch:
X	@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
X	${ECHO} '======================================================='; \
X	${ECHO} 'You need to sign the agreement on http://www.sun.com/solaris/ipv6'; \
X	${ECHO} 'and fetch on your own.'; \
X	${ECHO} 'Once ${DISTFILES} has been downloaded, move it to '; \
X	${ECHO} '${DISTDIR} and then restart this build '; \
X	${ECHO} '======================================================='; \
X	fi
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/ipv6socket_scrub ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/../Docs/man/man1/ipv6socket_scrub.1 \
X		${PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-ipv6socket_scrub/Makefile
echo x - ipv6socket_scrub/distinfo
sed 's/^X//' >ipv6socket_scrub/distinfo << 'END-of-ipv6socket_scrub/distinfo'
XMD5 (IPv6socket_scrub.tar) = 5e61107af752b3e97ace852c481e45b7
END-of-ipv6socket_scrub/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203221658.g2MGwOr16991>