From ca6cc2b11156a8a4c020d24f6c177a9000a0a2f0 Mon Sep 17 00:00:00 2001 From: nra Date: Mon, 13 Aug 2001 20:11:46 +0000 Subject: Add net/cidr. PR 13068 by Stoned Elipot. RFC 1878 subnet calculator / helper --- net/cidr/Makefile | 14 ++++++++++++++ net/cidr/distinfo | 5 +++++ net/cidr/patches/patch-aa | 28 ++++++++++++++++++++++++++++ net/cidr/pkg/DESCR | 6 ++++++ net/cidr/pkg/PLIST | 3 +++ 5 files changed, 56 insertions(+) create mode 100644 net/cidr/Makefile create mode 100644 net/cidr/distinfo create mode 100644 net/cidr/patches/patch-aa create mode 100644 net/cidr/pkg/DESCR create mode 100644 net/cidr/pkg/PLIST (limited to 'net') diff --git a/net/cidr/Makefile b/net/cidr/Makefile new file mode 100644 index 00000000000..19353c0287e --- /dev/null +++ b/net/cidr/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/08/13 20:11:46 nra Exp $ +# + +DISTNAME= cidr-current +PKGNAME= cidr-2.3 +CATEGORIES= net +MASTER_SITES= http://home.netcom.com/~naym/cidr/ + +MAINTAINER= seb@pbox.org +COMMENT= RFC 1878 subnet calculator / helper + +WRKSRC= ${WRKDIR}/cidr-2.3 + +.include "../../mk/bsd.pkg.mk" diff --git a/net/cidr/distinfo b/net/cidr/distinfo new file mode 100644 index 00000000000..6e572fa52e0 --- /dev/null +++ b/net/cidr/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/08/13 20:11:46 nra Exp $ + +SHA1 (cidr-current.tar.gz) = c543bec86e5786d19e59e262a8d3004d4aad0a71 +Size (cidr-current.tar.gz) = 16898 bytes +SHA1 (patch-aa) = a3f79ba1297fd0eae212e1aa566993fa684107c9 diff --git a/net/cidr/patches/patch-aa b/net/cidr/patches/patch-aa new file mode 100644 index 00000000000..f5a6937c683 --- /dev/null +++ b/net/cidr/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/08/13 20:11:46 nra Exp $ + +--- Makefile.orig Sat Jun 17 14:26:22 2000 ++++ Makefile +@@ -1,10 +1,22 @@ + # Makefile for cidr + # 5/9/2000 + ++INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM) ++INSTALL_MAN = $(BSD_INSTALL_MAN) ++ ++BINDIR = $(PREFIX)/bin ++MANDIR = $(PREFIX)/man/man1 ++ + OBJS = cidr.o + ++all: cidr ++ + cidr: $(OBJS) +- gcc -Wall -o cidr cidr.c ++ $(CC) $(CFLAGS) -o cidr $(OBJS) + + clean: + rm $(OBJS) cidr ++ ++install: cidr ++ $(INSTALL_PROGRAM) cidr $(DESTDIR)$(BINDIR) ++ $(INSTALL_MAN) cidr.1 $(DESTDIR)$(MANDIR) diff --git a/net/cidr/pkg/DESCR b/net/cidr/pkg/DESCR new file mode 100644 index 00000000000..486dc316e44 --- /dev/null +++ b/net/cidr/pkg/DESCR @@ -0,0 +1,6 @@ +cidr is a tiny command-line tool for determining network and broadcast +addresses a la RFC 1878. It takes an IP address and netmask and +outputs the network address, broadcast address, and total number of +addresses for the corresponding subnet. The IP can be in binary, +decimal, hex, or dotted quad. The mask can be in binary, decimal, hex, +dotted quad, or prefix. diff --git a/net/cidr/pkg/PLIST b/net/cidr/pkg/PLIST new file mode 100644 index 00000000000..71a7b66e8a8 --- /dev/null +++ b/net/cidr/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/08/13 20:11:46 nra Exp $ +bin/cidr +man/man1/cidr.1 -- cgit v1.2.3