aboutsummaryrefslogtreecommitdiffstats
path: root/net/radvd
diff options
context:
space:
mode:
authorfarrokhi <farrokhi@FreeBSD.org>2017-01-09 22:50:52 +0800
committerfarrokhi <farrokhi@FreeBSD.org>2017-01-09 22:50:52 +0800
commit3a7816c852fc63190a181f1981e0d779d4149f3d (patch)
treef034e0caed83dd9b3d0c9ee0da0e9e952b70636a /net/radvd
parent7e5fe1f1886b2b29c5f37d6f499826b7a412018f (diff)
downloadfreebsd-ports-gnome-3a7816c852fc63190a181f1981e0d779d4149f3d.tar.gz
freebsd-ports-gnome-3a7816c852fc63190a181f1981e0d779d4149f3d.tar.zst
freebsd-ports-gnome-3a7816c852fc63190a181f1981e0d779d4149f3d.zip
Update net/radvd to 2.15
Reviewed by: bapt Approved by: bapt Differential Revision: https://reviews.freebsd.org/D9091
Diffstat (limited to 'net/radvd')
-rw-r--r--net/radvd/Makefile6
-rw-r--r--net/radvd/distinfo5
-rw-r--r--net/radvd/files/patch-device-bsd44.c13
-rw-r--r--net/radvd/pkg-plist2
4 files changed, 15 insertions, 11 deletions
diff --git a/net/radvd/Makefile b/net/radvd/Makefile
index 67bd9661a70e..0caa4b16e157 100644
--- a/net/radvd/Makefile
+++ b/net/radvd/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= radvd
-PORTVERSION= 1.15
+PORTVERSION= 2.15
CATEGORIES= net ipv6
MASTER_SITES= http://www.litech.org/radvd/dist/
@@ -16,10 +16,10 @@ CONFIGURE_ARGS= --program-transform-name=
USES= gmake pkgconfig
USE_RC_SUBR= radvd
-PORTDOCS= CHANGES-1 COPYRIGHT INTRO.html README TODO
+PORTDOCS= CHANGES COPYRIGHT INTRO.html README TODO
post-install:
- ${INSTALL_DATA} ${WRKSRC}/radvd.conf.example ${STAGEDIR}${PREFIX}/etc
+ ${INSTALL_DATA} ${WRKSRC}/radvd.conf.example ${STAGEDIR}${PREFIX}/etc/radvd.conf.sample
${INSTALL} -d ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S.^.${WRKSRC}/.} ${STAGEDIR}${DOCSDIR}
diff --git a/net/radvd/distinfo b/net/radvd/distinfo
index d8db20718ca8..0657a78f1e3f 100644
--- a/net/radvd/distinfo
+++ b/net/radvd/distinfo
@@ -1,2 +1,3 @@
-SHA256 (radvd-1.15.tar.gz) = ba2e16bf0b2ac0030aacb0927304603f7ebbd317fdf30a24ee6f9ba06428391d
-SIZE (radvd-1.15.tar.gz) = 185528
+TIMESTAMP = 1483864860
+SHA256 (radvd-2.15.tar.gz) = 83dd770595e6182757fd652cfc46ee462b73d8d34ba0848a1d481c4d51143607
+SIZE (radvd-2.15.tar.gz) = 214256
diff --git a/net/radvd/files/patch-device-bsd44.c b/net/radvd/files/patch-device-bsd44.c
index baccf2a6edaa..957c08e5aaf0 100644
--- a/net/radvd/files/patch-device-bsd44.c
+++ b/net/radvd/files/patch-device-bsd44.c
@@ -1,13 +1,16 @@
---- device-bsd44.c.orig 2014-07-21 07:21:42 UTC
+
+$FreeBSD$
+
+--- device-bsd44.c.orig 2015-11-19 13:58:52 UTC
+++ device-bsd44.c
-@@ -171,6 +171,24 @@ int setup_linklocal_addr(struct Interfac
+@@ -116,6 +116,24 @@ int update_device_info(int sock, struct
- int setup_allrouters_membership(struct Interface *iface)
+ int setup_allrouters_membership(int sock, struct Interface *iface)
{
+ struct ipv6_mreq mreq;
+
+ memset(&mreq, 0, sizeof(mreq));
-+ mreq.ipv6mr_interface = iface->if_index;
++ mreq.ipv6mr_interface = iface->props.if_index;
+
+ /* all-routers multicast address */
+ if (inet_pton(AF_INET6, "ff02::2",
@@ -18,7 +21,7 @@
+
+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP,
+ &mreq, sizeof(mreq)) < 0) {
-+ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->Name);
++ flog(LOG_ERR, "can't join ipv6-allrouters on %s", iface->props.name);
+ return (-1);
+ }
+
diff --git a/net/radvd/pkg-plist b/net/radvd/pkg-plist
index 2bc2a0149136..afb350296cb2 100644
--- a/net/radvd/pkg-plist
+++ b/net/radvd/pkg-plist
@@ -1,4 +1,4 @@
-etc/radvd.conf.example
+@sample etc/radvd.conf.sample
sbin/radvd
sbin/radvdump
man/man5/radvd.conf.5.gz