1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Add knob to install ip6addrctl.conf which support Teredo prefix

This commit is contained in:
Munechika SUMIKAWA 2011-01-05 05:02:23 +00:00
parent f3bf2457f0
commit 896c2eb91a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267404
4 changed files with 26 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= miredo
PORTVERSION= 1.2.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net ipv6
MASTER_SITES= http://www.remlab.net/files/miredo/archive/
@ -21,6 +21,8 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
USE_LDCONFIG= yes
OPTIONS= POLICYTABLE "Install policy table to support teredo" off
MAN1= teredo-mire.1
MAN5= miredo-server.conf.5 miredo.conf.5
MAN8= miredo-server.8 miredo.8 miredo-checkconf.8
@ -38,4 +40,14 @@ CONFIGURE_ARGS+= --disable-nls
PLIST_SUB= NLS="@comment "
.endif
.include <bsd.port.options.mk>
post-install:
.if defined(WITH_POLICYTABLE)
$(INSTALL_DATA) $(FILESDIR)/ip6addrctl.conf /etc
PLIST_SUB+= POLICYTABLE=""
.else
PLIST_SUB+= POLICYTABLE="@comment "
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,2 @@
MD5 (miredo-1.2.2.tar.bz2) = a04a40c4b42869968e00495636ff6d82
SHA256 (miredo-1.2.2.tar.bz2) = c0f597e3272975544c4d6f6296494ab17ff1e2dbdf58bd28d54e7fe1be365f9a
SIZE (miredo-1.2.2.tar.bz2) = 529200

View File

@ -0,0 +1,11 @@
# Revised default policy table to support teredo defined in the below draft
# http://tools.ietf.org/id/draft-ietf-6man-rfc3484-revise-01.txt
::1/128 60 0
fc00::/7 50 1
::/0 40 2
::ffff:0:0/96 30 3
2002::/16 20 4
2001::/32 10 5
::/96 1 10
fec::/16 1 11
3ffe::/16 1 12

View File

@ -29,3 +29,5 @@ etc/miredo/client-hook
@dirrm include/libtun6
@dirrm include/libteredo
@dirrm lib/miredo
%%POLICYTABLE%%@cwd /
%%POLICYTABLE%%/etc/ip6addrctl.conf