summaryrefslogtreecommitdiff
path: root/net/cidr
diff options
context:
space:
mode:
authornra <nra>2001-08-13 20:11:46 +0000
committernra <nra>2001-08-13 20:11:46 +0000
commit821ca997e2a79d95b4014574420a8ed0c217f074 (patch)
treee2da71cc0996c11aa2fac3a27946ad4771e4e50d /net/cidr
parentff3ab0299faf7853996be7fb09392686e2562c8e (diff)
downloadpkgsrc-821ca997e2a79d95b4014574420a8ed0c217f074.tar.gz
Add net/cidr. PR 13068 by Stoned Elipot.
RFC 1878 subnet calculator / helper
Diffstat (limited to 'net/cidr')
-rw-r--r--net/cidr/Makefile14
-rw-r--r--net/cidr/distinfo5
-rw-r--r--net/cidr/patches/patch-aa28
-rw-r--r--net/cidr/pkg/DESCR6
-rw-r--r--net/cidr/pkg/PLIST3
5 files changed, 56 insertions, 0 deletions
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