aboutsummaryrefslogtreecommitdiff
path: root/net/netmask
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-12-19 10:29:26 +0000
committerWill Andrews <will@FreeBSD.org>2000-12-19 10:29:26 +0000
commitfdd85c0497f81fb41ac3f672a6244d74943603ec (patch)
treeecb00bdc45cae05721b4b16f789b8c247d77840f /net/netmask
parentd105b85d048fcf5e9773b1e82d3d8b89f9a7950a (diff)
downloadports-fdd85c0497f81fb41ac3f672a6244d74943603ec.tar.gz
ports-fdd85c0497f81fb41ac3f672a6244d74943603ec.zip
Notes
Diffstat (limited to 'net/netmask')
-rw-r--r--net/netmask/Makefile25
-rw-r--r--net/netmask/distinfo1
-rw-r--r--net/netmask/files/patch-aa21
-rw-r--r--net/netmask/files/patch-ab14
-rw-r--r--net/netmask/pkg-comment1
-rw-r--r--net/netmask/pkg-descr5
-rw-r--r--net/netmask/pkg-plist4
7 files changed, 71 insertions, 0 deletions
diff --git a/net/netmask/Makefile b/net/netmask/Makefile
new file mode 100644
index 000000000000..1b21c29cb1e9
--- /dev/null
+++ b/net/netmask/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: netmask
+# Date created: 19 Novemver 2000
+# Whom: Mike Bristow <mike@urgle.com>
+# $FreeBSD$
+
+PORTNAME= netmask
+PORTVERSION= 2.3.3
+CATEGORIES= net
+MASTER_SITES= http://ftp.debian.org/debian/dists/potato/main/source/net/
+DISTNAME= netmask_${PORTVERSION}
+
+MAINTAINER= mike@urgle.com
+
+LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
+USE_AUTOMAKE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+
+USE_GMAKE= yes
+
+MAN1= netmask.1
+
+.include <bsd.port.mk>
diff --git a/net/netmask/distinfo b/net/netmask/distinfo
new file mode 100644
index 000000000000..5a8c0e7cf0f8
--- /dev/null
+++ b/net/netmask/distinfo
@@ -0,0 +1 @@
+MD5 (netmask_2.3.3.tar.gz) = feea81712136bd200c3f87ab40b509b8
diff --git a/net/netmask/files/patch-aa b/net/netmask/files/patch-aa
new file mode 100644
index 000000000000..f6142c16da70
--- /dev/null
+++ b/net/netmask/files/patch-aa
@@ -0,0 +1,21 @@
+--- netmask.c.orig Mon Nov 20 00:22:41 2000
++++ netmask.c Mon Nov 20 00:22:58 2000
+@@ -17,15 +17,15 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <getopt.h>
+ #include <netdb.h>
+-#include <netinet/in.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <sys/socket.h>
+-#include <sys/types.h>
+ #include "errors.h"
+
+ struct addrmask {
diff --git a/net/netmask/files/patch-ab b/net/netmask/files/patch-ab
new file mode 100644
index 000000000000..df6d8e0d8b12
--- /dev/null
+++ b/net/netmask/files/patch-ab
@@ -0,0 +1,14 @@
+--- netmask.texi.orig Mon Nov 20 00:39:20 2000
++++ netmask.texi Mon Nov 20 00:39:33 2000
+@@ -3,6 +3,11 @@
+ @setfilename netmask.info
+ @settitle Generating Optimized Network Masks
+ @finalout
++@dircategory Miscellaneous
++@direntry
++* netmask: (netmask). Tool for generating terse netmasks.
++@end direntry
++
+ @setchapternewpage odd
+ @c %**end of header
+
diff --git a/net/netmask/pkg-comment b/net/netmask/pkg-comment
new file mode 100644
index 000000000000..abf8d5a8043c
--- /dev/null
+++ b/net/netmask/pkg-comment
@@ -0,0 +1 @@
+Tool for generating terse netmasks in several common formats.
diff --git a/net/netmask/pkg-descr b/net/netmask/pkg-descr
new file mode 100644
index 000000000000..8222dcbf0534
--- /dev/null
+++ b/net/netmask/pkg-descr
@@ -0,0 +1,5 @@
+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.
diff --git a/net/netmask/pkg-plist b/net/netmask/pkg-plist
new file mode 100644
index 000000000000..3fa9b282b0a5
--- /dev/null
+++ b/net/netmask/pkg-plist
@@ -0,0 +1,4 @@
+bin/netmask
+@unexec install-info --delete %D/info/netmask.info %D/info/dir
+info/netmask.info
+@exec install-info %D/info/netmask.info %D/info/dir