summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-05-21 12:52:44 +0000
committerzuntum <zuntum>2001-05-21 12:52:44 +0000
commitb4457f8f287e6083ce34e3ec41a090d428f03332 (patch)
tree0b3782870a29ab5d82aa3b4e760927b4019537a4
parentc383525f2e28f2d17445abfc4278cab9f0860679 (diff)
downloadpkgsrc-b4457f8f287e6083ce34e3ec41a090d428f03332.tar.gz
Initial import of ipcalc-0.33 - IP Calculator written in perl
ipcalc takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values.
-rw-r--r--net/ipcalc/Makefile28
-rw-r--r--net/ipcalc/distinfo4
-rw-r--r--net/ipcalc/pkg/DESCR4
-rw-r--r--net/ipcalc/pkg/PLIST2
4 files changed, 38 insertions, 0 deletions
diff --git a/net/ipcalc/Makefile b/net/ipcalc/Makefile
new file mode 100644
index 00000000000..bbcb14fb6d4
--- /dev/null
+++ b/net/ipcalc/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/21 12:52:44 zuntum Exp $
+#
+
+DISTNAME= ipcalc.pl
+PKGNAME= ipcalc-0.33
+CATEGORIES= net
+MASTER_SITES= http://jodies.cx/
+EXTRACT_SUFX= #
+
+MAINTAINER= zuntum@netbsd.org
+HOMEPAGE= http://jodies.de/ipcalc/
+COMMENT= IP Calculator
+
+EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
+WRKSRC= ${WRKDIR}
+
+USE_PERL5= YES
+NO_BUILD= YES
+
+post-patch:
+ ${SED} "s,/usr/bin/perl,${LOCALBASE}/bin/perl," \
+ ${WRKSRC}/ipcalc.pl > ${WRKSRC}/ipcalc.pl.done
+ ${MV} ${WRKSRC}/ipcalc.pl.done ${WRKSRC}/ipcalc.pl
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/ipcalc.pl ${PREFIX}/bin/ipcalc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ipcalc/distinfo b/net/ipcalc/distinfo
new file mode 100644
index 00000000000..841edc94d3e
--- /dev/null
+++ b/net/ipcalc/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/21 12:52:44 zuntum Exp $
+
+SHA1 (ipcalc.pl) = 77fa3f14d86b9f6158a919bea063036c0dff7f1f
+Size (ipcalc.pl) = 11996 bytes
diff --git a/net/ipcalc/pkg/DESCR b/net/ipcalc/pkg/DESCR
new file mode 100644
index 00000000000..2e60bd181d4
--- /dev/null
+++ b/net/ipcalc/pkg/DESCR
@@ -0,0 +1,4 @@
+ipcalc takes an IP address and netmask and calculates the resulting broadcast,
+network, Cisco wildcard mask, and host range. By giving a second netmask, you
+can design sub- and supernetworks. It is also intended to be a teaching tool
+and presents the results as easy-to-understand binary values.
diff --git a/net/ipcalc/pkg/PLIST b/net/ipcalc/pkg/PLIST
new file mode 100644
index 00000000000..4fdb5cb9f7c
--- /dev/null
+++ b/net/ipcalc/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/21 12:52:44 zuntum Exp $
+bin/ipcalc