RFC 1878 subnet calculator / helper; Jonas Eriksson <je@sekure.net>
This commit is contained in:
parent
e6277c07e0
commit
f5246e15f0
27
net/cidr/Makefile
Normal file
27
net/cidr/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/08/23 17:23:35 jakob Exp $
|
||||
# Date created: 2000-08-11
|
||||
# Whom: Jonas Eriksson <je@sekure.net>
|
||||
|
||||
PKGNAME= cidr-2.3
|
||||
DISTNAME= cidr-current
|
||||
CATEGORIES= net
|
||||
|
||||
MASTER_SITES= http://home.netcom.com/~naym/cidr/
|
||||
|
||||
HOMEPAGE= http://home.netcom.com/~naym/cidr.html
|
||||
|
||||
MAINTAINER= je@sekure.net
|
||||
|
||||
ALL_TARGET= cidr
|
||||
WRKSRC= ${WRKDIR}/${PKGNAME}
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/cidr ${PREFIX}/bin/cidr
|
||||
${INSTALL_MAN} ${WRKSRC}/cidr.1 ${PREFIX}/man/man1/cidr.1
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/cidr/files/md5
Normal file
3
net/cidr/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (cdr-current.tar.gz) = 59b4c94b2a721a0e47973d0f79d72d91
|
||||
RMD160 (cidr-current.tar.gz) = 6b66fbef5ba855bd2a2d9cb6efeb5d731a3d9876
|
||||
SHA1 (cidr-current.tar.gz) = 95500b582ea885ce4977df12736a19b166eb92e2
|
1
net/cidr/pkg/COMMENT
Normal file
1
net/cidr/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
RFC 1878 subnet calculator / helper
|
17
net/cidr/pkg/DESCR
Normal file
17
net/cidr/pkg/DESCR
Normal file
@ -0,0 +1,17 @@
|
||||
This is the README for cidr, a program to calculate CIDR network and broadcast
|
||||
addresses for a given IP and mask. I wrote this primarily to aid myself
|
||||
in reconfiguring my home LAN, where I often change IP addresses and subnet
|
||||
ranges, because I find it difficult to remember the appropriate network
|
||||
and broadcast address for a given /N subnet. The proper addresses are
|
||||
found in the subnet tables in RFC 1878.
|
||||
|
||||
The program takes an IP and netmask and outputs the network address,
|
||||
broadcast address, and total number of addresses for the corresponding
|
||||
subnet. The IP address can be in binary, decimal, hexadecimal, or
|
||||
dotted-quad form, and the mask can be in binary, decimal, hex, dotted-quad,
|
||||
or prefix. I decided to have the program accept those forms of input
|
||||
primarily as a learning tool, since I thought it would be interesting to
|
||||
see how bitwise changes in an IP address affect the dotted-quad form of
|
||||
that address.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
3
net/cidr/pkg/PLIST
Normal file
3
net/cidr/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2000/08/23 17:23:35 jakob Exp $
|
||||
bin/cidr
|
||||
man/man1/cidr.1
|
Loading…
x
Reference in New Issue
Block a user