Since we have a new BSD licensed network calculator in net/ipcalc, we don't
need this outdated and unmaintained software anymore. discussed on ports@ ok jcs@, ckuethe@, mbalmer@, xsa@
This commit is contained in:
parent
2469f0718c
commit
a29c872610
@ -1,26 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2004/11/28 11:50:35 alek Exp $
|
||||
|
||||
COMMENT= "RFC 1878 subnet calculator / helper"
|
||||
|
||||
PKGNAME= cidr-2.3
|
||||
DISTNAME= cidr-current
|
||||
CATEGORIES= net
|
||||
|
||||
MASTER_SITES= ${MASTER_SITES_BACKUP}
|
||||
|
||||
ALL_TARGET= cidr
|
||||
WRKDIST= ${WRKDIR}/${PKGNAME}
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/cidr ${PREFIX}/bin/cidr
|
||||
${INSTALL_MAN} ${WRKSRC}/cidr.1 ${PREFIX}/man/man1/cidr.1
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,4 +0,0 @@
|
||||
MD5 (cidr-current.tar.gz) = 59b4c94b2a721a0e47973d0f79d72d91
|
||||
RMD160 (cidr-current.tar.gz) = 6b66fbef5ba855bd2a2d9cb6efeb5d731a3d9876
|
||||
SHA1 (cidr-current.tar.gz) = 95500b582ea885ce4977df12736a19b166eb92e2
|
||||
SIZE (cidr-current.tar.gz) = 16808
|
@ -1,29 +0,0 @@
|
||||
$OpenBSD: patch-cidr_c,v 1.1 2004/06/16 18:07:53 david Exp $
|
||||
--- cidr.c.orig 2000-06-20 18:10:55.000000000 -0500
|
||||
+++ cidr.c 2004-06-16 12:46:55.000000000 -0500
|
||||
@@ -154,14 +154,14 @@ int main(int argc, char *argv[])
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
- strncpy(ip[2],argv[1],18);
|
||||
+ strlcpy(ip[2],argv[1],19);
|
||||
|
||||
|
||||
holdaddress=strtok(ip[2],sep);
|
||||
if(holdaddress==NULL)
|
||||
invalid(1);
|
||||
|
||||
- strncpy(ip[0],holdaddress,strlen(holdaddress));
|
||||
+ strlcpy(ip[0],holdaddress,strlen(holdaddress)+1);
|
||||
if(ip[0]==NULL)
|
||||
invalid(1);
|
||||
|
||||
@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
|
||||
if(holdprefix==NULL)
|
||||
invalid(1);
|
||||
|
||||
- strncpy(ip[1],holdprefix,strlen(holdprefix));
|
||||
+ strlcpy(ip[1],holdprefix,strlen(holdprefix)+1);
|
||||
if(ip[1]==NULL)
|
||||
invalid(1);
|
||||
|
@ -1,15 +0,0 @@
|
||||
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.
|
@ -1,3 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2004/09/15 18:17:39 espie Exp $
|
||||
bin/cidr
|
||||
@man man/man1/cidr.1
|
Loading…
Reference in New Issue
Block a user