aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/ipv6calc/Makefile31
-rw-r--r--net-mgmt/ipv6calc/distinfo1
-rw-r--r--net-mgmt/ipv6calc/files/patch-Makefile.in25
-rw-r--r--net-mgmt/ipv6calc/files/patch-ipv6calc.h.in10
-rw-r--r--net-mgmt/ipv6calc/pkg-comment1
-rw-r--r--net-mgmt/ipv6calc/pkg-descr7
-rw-r--r--net-mgmt/ipv6calc/pkg-plist1
-rw-r--r--net/Makefile1
-rw-r--r--net/ipv6calc/Makefile31
-rw-r--r--net/ipv6calc/distinfo1
-rw-r--r--net/ipv6calc/files/patch-Makefile.in25
-rw-r--r--net/ipv6calc/files/patch-ipv6calc.h.in10
-rw-r--r--net/ipv6calc/pkg-comment1
-rw-r--r--net/ipv6calc/pkg-descr7
-rw-r--r--net/ipv6calc/pkg-plist1
15 files changed, 153 insertions, 0 deletions
diff --git a/net-mgmt/ipv6calc/Makefile b/net-mgmt/ipv6calc/Makefile
new file mode 100644
index 000000000000..55465de8bcc8
--- /dev/null
+++ b/net-mgmt/ipv6calc/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: ipv6calc
+# Date created: 30 January 2002
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ipv6calc
+PORTVERSION= 0.34
+CATEGORIES= net ipv6
+MASTER_SITES= ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/
+
+MAINTAINER= edwin@mavetju.org
+
+LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext \
+ gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+
+post-extract:
+.for junk in config.h config.log Makefile config.status ipv6calc.h \
+ config.cache
+ @${RM} ${WRKSRC}/${junk}
+.endfor
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/ipv6calc ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/ipv6calc/distinfo b/net-mgmt/ipv6calc/distinfo
new file mode 100644
index 000000000000..aa7c41937637
--- /dev/null
+++ b/net-mgmt/ipv6calc/distinfo
@@ -0,0 +1 @@
+MD5 (ipv6calc-0.34.tar.gz) = 220977ee0bb2ff4202e86b97ac917731
diff --git a/net-mgmt/ipv6calc/files/patch-Makefile.in b/net-mgmt/ipv6calc/files/patch-Makefile.in
new file mode 100644
index 000000000000..9e3975727279
--- /dev/null
+++ b/net-mgmt/ipv6calc/files/patch-Makefile.in
@@ -0,0 +1,25 @@
+--- Makefile.in.orig Thu Jan 24 17:01:10 2002
++++ Makefile.in Wed Jan 30 15:47:31 2002
+@@ -8,11 +8,9 @@
+
+ # Compiler and Linker Options
+ #COPTS = -O2 -Wall -g # old one
+-COPTS = -O2 -Wall -g -ansi # ANSI compatible
++COPTS = -ansi -I${LOCALBASE}/include # ANSI compatible
+
+-CFLAGS = $(COPTS)
+-
+-CC = gcc
++CFLAGS += $(COPTS)
+
+ #OBJS = ipv6calc.o addr_to_compressed.o addr_to_uncompressed.o addr_to_fulluncompressed.o addr_to_ifinet6.o addr_to_ip6int.o ifinet6_to_compressed.o libipv6calc.o addr_to_base85.o librfc1924.o base85_to_addr.o librfc1884.o libmac.o libeui64.o mac_to_eui64.o eui64_to_privacy.o librfc3041.o showinfo.o ipv6types.o
+ OBJS = ipv6calc.o addr_to_compressed.o addr_to_uncompressed.o addr_to_fulluncompressed.o addr_to_ifinet6.o addr_to_ip6int.o ifinet6_to_compressed.o libipv6calc.o addr_to_base85.o librfc1924.o base85_to_addr.o librfc1884.o libmac.o libeui64.o mac_to_eui64.o eui64_to_privacy.o librfc3041.o showinfo.o libipv6addr.o
+@@ -25,7 +23,7 @@
+ $(OBJS): ipv6calc.h libipv6addr.h librfc1884.h
+
+ ipv6calc: $(OBJS)
+- $(CC) -o ipv6calc $(OBJS) -lcrypto
++ $(CC) -o ipv6calc $(OBJS) -lcrypto -lgnugetopt -L${LOCALBASE}/lib
+
+ distclean:
+ make clean
diff --git a/net-mgmt/ipv6calc/files/patch-ipv6calc.h.in b/net-mgmt/ipv6calc/files/patch-ipv6calc.h.in
new file mode 100644
index 000000000000..86d563f6f5a4
--- /dev/null
+++ b/net-mgmt/ipv6calc/files/patch-ipv6calc.h.in
@@ -0,0 +1,10 @@
+--- ipv6calc.h.in.orig Wed Jan 30 19:22:13 2002
++++ ipv6calc.h.in Wed Jan 30 19:25:11 2002
+@@ -20,6 +20,7 @@
+ #define PROGRAM_COPYRIGHT "(P) & (C) 2001-2002 by Peter Bieringer <pb@bieringer.de>\n published under GNU GPL"
+
+ /* global includes */
++#include <sys/types.h>
+ #include <netinet/in.h>
+
+ /*** global definitions ***/
diff --git a/net-mgmt/ipv6calc/pkg-comment b/net-mgmt/ipv6calc/pkg-comment
new file mode 100644
index 000000000000..c3df37aaf205
--- /dev/null
+++ b/net-mgmt/ipv6calc/pkg-comment
@@ -0,0 +1 @@
+Convert, change and calculate with IPv6 addresses
diff --git a/net-mgmt/ipv6calc/pkg-descr b/net-mgmt/ipv6calc/pkg-descr
new file mode 100644
index 000000000000..0c818c2a12bd
--- /dev/null
+++ b/net-mgmt/ipv6calc/pkg-descr
@@ -0,0 +1,7 @@
+ipv6calc will do some format changes and calculations for you
+
+Intention:
+* This utility can be used by the IPv6 enabled initscripts for
+ better duplicate address detection on setup of IPv6 addresses.
+
+WWW: http://www.bieringer.de/linux/IPv6/tools/
diff --git a/net-mgmt/ipv6calc/pkg-plist b/net-mgmt/ipv6calc/pkg-plist
new file mode 100644
index 000000000000..61643d9952e6
--- /dev/null
+++ b/net-mgmt/ipv6calc/pkg-plist
@@ -0,0 +1 @@
+bin/ipv6calc
diff --git a/net/Makefile b/net/Makefile
index 066bd698f0dd..b83a128b1134 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -176,6 +176,7 @@
SUBDIR += ipfw-graph
SUBDIR += iplog
SUBDIR += ipsorc
+ SUBDIR += ipv6calc
SUBDIR += ipw
SUBDIR += isc-dhcp3
SUBDIR += isic
diff --git a/net/ipv6calc/Makefile b/net/ipv6calc/Makefile
new file mode 100644
index 000000000000..55465de8bcc8
--- /dev/null
+++ b/net/ipv6calc/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: ipv6calc
+# Date created: 30 January 2002
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ipv6calc
+PORTVERSION= 0.34
+CATEGORIES= net ipv6
+MASTER_SITES= ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/
+
+MAINTAINER= edwin@mavetju.org
+
+LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext \
+ gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+
+post-extract:
+.for junk in config.h config.log Makefile config.status ipv6calc.h \
+ config.cache
+ @${RM} ${WRKSRC}/${junk}
+.endfor
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/ipv6calc ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/net/ipv6calc/distinfo b/net/ipv6calc/distinfo
new file mode 100644
index 000000000000..aa7c41937637
--- /dev/null
+++ b/net/ipv6calc/distinfo
@@ -0,0 +1 @@
+MD5 (ipv6calc-0.34.tar.gz) = 220977ee0bb2ff4202e86b97ac917731
diff --git a/net/ipv6calc/files/patch-Makefile.in b/net/ipv6calc/files/patch-Makefile.in
new file mode 100644
index 000000000000..9e3975727279
--- /dev/null
+++ b/net/ipv6calc/files/patch-Makefile.in
@@ -0,0 +1,25 @@
+--- Makefile.in.orig Thu Jan 24 17:01:10 2002
++++ Makefile.in Wed Jan 30 15:47:31 2002
+@@ -8,11 +8,9 @@
+
+ # Compiler and Linker Options
+ #COPTS = -O2 -Wall -g # old one
+-COPTS = -O2 -Wall -g -ansi # ANSI compatible
++COPTS = -ansi -I${LOCALBASE}/include # ANSI compatible
+
+-CFLAGS = $(COPTS)
+-
+-CC = gcc
++CFLAGS += $(COPTS)
+
+ #OBJS = ipv6calc.o addr_to_compressed.o addr_to_uncompressed.o addr_to_fulluncompressed.o addr_to_ifinet6.o addr_to_ip6int.o ifinet6_to_compressed.o libipv6calc.o addr_to_base85.o librfc1924.o base85_to_addr.o librfc1884.o libmac.o libeui64.o mac_to_eui64.o eui64_to_privacy.o librfc3041.o showinfo.o ipv6types.o
+ OBJS = ipv6calc.o addr_to_compressed.o addr_to_uncompressed.o addr_to_fulluncompressed.o addr_to_ifinet6.o addr_to_ip6int.o ifinet6_to_compressed.o libipv6calc.o addr_to_base85.o librfc1924.o base85_to_addr.o librfc1884.o libmac.o libeui64.o mac_to_eui64.o eui64_to_privacy.o librfc3041.o showinfo.o libipv6addr.o
+@@ -25,7 +23,7 @@
+ $(OBJS): ipv6calc.h libipv6addr.h librfc1884.h
+
+ ipv6calc: $(OBJS)
+- $(CC) -o ipv6calc $(OBJS) -lcrypto
++ $(CC) -o ipv6calc $(OBJS) -lcrypto -lgnugetopt -L${LOCALBASE}/lib
+
+ distclean:
+ make clean
diff --git a/net/ipv6calc/files/patch-ipv6calc.h.in b/net/ipv6calc/files/patch-ipv6calc.h.in
new file mode 100644
index 000000000000..86d563f6f5a4
--- /dev/null
+++ b/net/ipv6calc/files/patch-ipv6calc.h.in
@@ -0,0 +1,10 @@
+--- ipv6calc.h.in.orig Wed Jan 30 19:22:13 2002
++++ ipv6calc.h.in Wed Jan 30 19:25:11 2002
+@@ -20,6 +20,7 @@
+ #define PROGRAM_COPYRIGHT "(P) & (C) 2001-2002 by Peter Bieringer <pb@bieringer.de>\n published under GNU GPL"
+
+ /* global includes */
++#include <sys/types.h>
+ #include <netinet/in.h>
+
+ /*** global definitions ***/
diff --git a/net/ipv6calc/pkg-comment b/net/ipv6calc/pkg-comment
new file mode 100644
index 000000000000..c3df37aaf205
--- /dev/null
+++ b/net/ipv6calc/pkg-comment
@@ -0,0 +1 @@
+Convert, change and calculate with IPv6 addresses
diff --git a/net/ipv6calc/pkg-descr b/net/ipv6calc/pkg-descr
new file mode 100644
index 000000000000..0c818c2a12bd
--- /dev/null
+++ b/net/ipv6calc/pkg-descr
@@ -0,0 +1,7 @@
+ipv6calc will do some format changes and calculations for you
+
+Intention:
+* This utility can be used by the IPv6 enabled initscripts for
+ better duplicate address detection on setup of IPv6 addresses.
+
+WWW: http://www.bieringer.de/linux/IPv6/tools/
diff --git a/net/ipv6calc/pkg-plist b/net/ipv6calc/pkg-plist
new file mode 100644
index 000000000000..61643d9952e6
--- /dev/null
+++ b/net/ipv6calc/pkg-plist
@@ -0,0 +1 @@
+bin/ipv6calc