aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ipv6calc
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-01-30 21:02:46 +0000
committerPatrick Li <pat@FreeBSD.org>2002-01-30 21:02:46 +0000
commite40072a045a5cb01c1f10781297923b4f386bace (patch)
treeb0464584e8bab44822cb34ffcc5c53bdc83f6de3 /net-mgmt/ipv6calc
parent7451517e274f36ba9d05383ac18711804f4f6455 (diff)
downloadports-e40072a045a5cb01c1f10781297923b4f386bace.tar.gz
ports-e40072a045a5cb01c1f10781297923b4f386bace.zip
Notes
Diffstat (limited to 'net-mgmt/ipv6calc')
-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
7 files changed, 76 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