Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2000 15:15:52 +0000
From:      mike@urgle.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23005: New port - netmask-2.3.3 - Tool for generating terse netmasks.
Message-ID:  <E13yF9E-000LYN-00@lindt.urgle.com>

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

>Number:         23005
>Category:       ports
>Synopsis:       New port - netmask-2.3.3 - Tool for generating terse netmasks.
>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:   Tue Nov 21 07:20:04 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mike Bristow
>Release:        FreeBSD {3.3-STABLE-19991109, 4.2-BETA-20001108T111811, 5.0-CURRENT-20001118T124935} i386
>Organization:
>Environment:

>Description:

This is a handy tool for generating terse netmasks in several common
formats.  If you've ever maintained a firewall with more than a few rules
in it, you might use netmask to clean up and generalize sloppy rules left by
the netadmin before you.  It will also convert netmasks from one format
to another for the day you change your firewall software.


>How-To-Repeat:


>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:
#
#	net/netmask/
#	net/netmask/Makefile
#	net/netmask/pkg-comment
#	net/netmask/pkg-descr
#	net/netmask/distinfo
#	net/netmask/files
#	net/netmask/files/patch-aa
#	net/netmask/files/patch-ab
#	net/netmask/pkg-plist
#
echo c - net/netmask/
mkdir -p net/netmask/ > /dev/null 2>&1
echo x - net/netmask/Makefile
sed 's/^X//' >net/netmask/Makefile << 'END-of-net/netmask/Makefile'
X# New ports collection makefile for: netmask
X# Date created:		19 Novemver 2000
X# Whom:			Mike Bristow <mike@urgle.com>
X# $FreeBSD$
X
XPORTNAME=	netmask
XPORTVERSION=	2.3.3
XCATEGORIES=     net
XMASTER_SITES=	http://ftp.debian.org/debian/dists/potato/main/source/net/
XDISTNAME=	netmask_2.3.3
X
XMAINTAINER=	Mike Bristow <mike@urgle.com>
X
XLIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
X
XWRKSRC=                ${WRKDIR}/${PORTNAME}-${PORTVERSION}
XUSE_AUTOMAKE=	yes
XCONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
X		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
X
XUSE_GMAKE=	yes
X
XMAN1=		netmask.1
X
X.include <bsd.port.mk>
END-of-net/netmask/Makefile
echo x - net/netmask/pkg-comment
sed 's/^X//' >net/netmask/pkg-comment << 'END-of-net/netmask/pkg-comment'
XTool for generating terse netmasks in several common formats.
END-of-net/netmask/pkg-comment
echo x - net/netmask/pkg-descr
sed 's/^X//' >net/netmask/pkg-descr << 'END-of-net/netmask/pkg-descr'
XThis is a handy tool for generating terse netmasks in several common
Xformats.  If you've ever maintained a firewall with more than a few rules
Xin it, you might use netmask to clean up and generalize sloppy rules left by
Xthe netadmin before you.  It will also convert netmasks from one format
Xto another for the day you change your firewall software.
END-of-net/netmask/pkg-descr
echo x - net/netmask/distinfo
sed 's/^X//' >net/netmask/distinfo << 'END-of-net/netmask/distinfo'
XMD5 (netmask_2.3.3.tar.gz) = feea81712136bd200c3f87ab40b509b8
END-of-net/netmask/distinfo
echo c - net/netmask/files
mkdir -p net/netmask/files > /dev/null 2>&1
echo x - net/netmask/files/patch-aa
sed 's/^X//' >net/netmask/files/patch-aa << 'END-of-net/netmask/files/patch-aa'
X--- netmask.c.orig	Mon Nov 20 00:22:41 2000
X+++ netmask.c	Mon Nov 20 00:22:58 2000
X@@ -17,15 +17,15 @@
X    along with this program; if not, write to the Free Software
X    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
X 
X+#include <sys/types.h>
X+#include <sys/socket.h>
X+#include <netinet/in.h>
X #include <arpa/inet.h>
X #include <getopt.h>
X #include <netdb.h>
X-#include <netinet/in.h>
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
X-#include <sys/socket.h>
X-#include <sys/types.h>
X #include "errors.h"
X 
X struct addrmask {
END-of-net/netmask/files/patch-aa
echo x - net/netmask/files/patch-ab
sed 's/^X//' >net/netmask/files/patch-ab << 'END-of-net/netmask/files/patch-ab'
X--- netmask.texi.orig	Mon Nov 20 00:39:20 2000
X+++ netmask.texi	Mon Nov 20 00:39:33 2000
X@@ -3,6 +3,11 @@
X @setfilename netmask.info
X @settitle Generating Optimized Network Masks
X @finalout
X+@dircategory Miscellaneous
X+@direntry 
X+* netmask: (netmask).		Tool for generating terse netmasks.
X+@end direntry
X+
X @setchapternewpage odd
X @c %**end of header
X 
END-of-net/netmask/files/patch-ab
echo x - net/netmask/pkg-plist
sed 's/^X//' >net/netmask/pkg-plist << 'END-of-net/netmask/pkg-plist'
Xbin/netmask
X@unexec install-info --delete %D/info/netmask.info %D/info/dir
Xinfo/netmask.info
X@exec install-info %D/info/netmask.info %D/info/dir
END-of-net/netmask/pkg-plist
exit


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


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?E13yF9E-000LYN-00>