mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
New port: devel/libcidr
libcidr is a library that provides a number of functions to input, output, manipulate, compare, multilate, and otherwise play with, IP addresses and netblocks. It supports both IPv4 and IPv6, and provides sufficiently diverse functions to be useful for everything from log processes to network client and server programs. It parses addresses in a wide variety of common formats. It also provides a plethora of options for formatting them on the output as well. It can compare them in various ways and give you some useful statistics about the netblocks in which tey reside. WWW: http://www.over-yonder.net/~fullermd/projects/libcidr Feature safe: yes
This commit is contained in:
parent
625c09ddd3
commit
a408548c55
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294068
@ -801,6 +801,7 @@
|
||||
SUBDIR += lexi
|
||||
SUBDIR += lfc
|
||||
SUBDIR += lfcxml
|
||||
SUBDIR += libcidr
|
||||
SUBDIR += libIDL
|
||||
SUBDIR += libPropList
|
||||
SUBDIR += libXGP
|
||||
|
37
devel/libcidr/Makefile
Normal file
37
devel/libcidr/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# New ports collection makefile for: libcidr
|
||||
# Date created: Mar 31 2012
|
||||
# Whom: Ryan Steinmetz <zi@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= libcidr
|
||||
DISTVERSION= 1.1
|
||||
CATEGORIES= devel dns
|
||||
MASTER_SITES= http://www.over-yonder.net/~fullermd/projects/${PORTNAME}/ \
|
||||
http://mirrors.rit.edu/zi/
|
||||
|
||||
MAINTAINER= zi@FreeBSD.org
|
||||
COMMENT= A library to handle manipulating CIDR netblocks
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_LDCONFIG= yes
|
||||
MAKE_ENV+= DOCDIR=${DOCSDIR} EXDIR=${EXAMPLESDIR}
|
||||
|
||||
MAN3= libcidr.3.gz
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|CC = cc|CC = ${CC}|g' \
|
||||
${WRKSRC}/src/Makefile.inc
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
|
||||
-e 's|LIBDIR|CIDRLIBDIR|g' ${WRKSRC}/Makefile
|
||||
|
||||
.if defined(NOPORTDOCS)
|
||||
MAKE_ENV+= NO_DOCS=yes
|
||||
.endif
|
||||
|
||||
.if defined(NOPORTEXAMPLES)
|
||||
MAKE_ENV+= NO_EXAMPLES=yes
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/libcidr/distinfo
Normal file
2
devel/libcidr/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libcidr-1.1.tar.bz2) = 773c33c9f3182a47a5dc2eb54afdf6b57493d8cb8b5c72a5f38daa62e181a03f
|
||||
SIZE (libcidr-1.1.tar.bz2) = 164461
|
10
devel/libcidr/files/patch-src__cidr_inaddr.c
Normal file
10
devel/libcidr/files/patch-src__cidr_inaddr.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- ./src/cidr_inaddr.c.orig 2012-04-01 00:29:13.000000000 -0400
|
||||
+++ ./src/cidr_inaddr.c 2012-04-01 00:29:27.000000000 -0400
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <arpa/inet.h>
|
||||
/* netinet/in.h is pulled in by libcidr.h */
|
||||
|
||||
#include <libcidr.h>
|
13
devel/libcidr/pkg-descr
Normal file
13
devel/libcidr/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
libcidr is a library that provides a number of functions to input, output,
|
||||
manipulate, compare, multilate, and otherwise play with, IP addresses and
|
||||
netblocks.
|
||||
|
||||
It supports both IPv4 and IPv6, and provides sufficiently diverse functions
|
||||
to be useful for everything from log processes to network client and server
|
||||
programs. It parses addresses in a wide variety of common formats. It also
|
||||
provides a plethora of options for formatting them on the output as well.
|
||||
|
||||
It can compare them in various ways and give you some useful statistics
|
||||
about the netblocks in which tey reside.
|
||||
|
||||
WWW: http://www.over-yonder.net/~fullermd/projects/libcidr
|
22
devel/libcidr/pkg-plist
Normal file
22
devel/libcidr/pkg-plist
Normal file
@ -0,0 +1,22 @@
|
||||
lib/libcidr.so
|
||||
lib/libcidr.so.0
|
||||
bin/cidrcalc
|
||||
include/libcidr.h
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libcidr-big.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libcidr.dvi
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libcidr.pdf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libcidr.ps
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libcidr.rtf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/libcidr.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/codelibrary-html.css
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile.inc
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cidrcalc/cidrcalc.c
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cidrcalc/Makefile
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/acl/acl.c
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/acl/acl.example
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/acl/Makefile
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/cidrcalc
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/acl
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user