aboutsummaryrefslogtreecommitdiffstats
path: root/net/pim6sd
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2015-09-08 03:23:26 +0800
committerhrs <hrs@FreeBSD.org>2015-09-08 03:23:26 +0800
commit0761e7c855b1e3221303b4acd4f78d46edd95bed (patch)
tree52f8c2fd4d4da9321a533c1d5925c3f4040a6e48 /net/pim6sd
parent8c8205beb7672233d41d5269e7732225d2305753 (diff)
downloadfreebsd-ports-gnome-0761e7c855b1e3221303b4acd4f78d46edd95bed.tar.gz
freebsd-ports-gnome-0761e7c855b1e3221303b4acd4f78d46edd95bed.tar.zst
freebsd-ports-gnome-0761e7c855b1e3221303b4acd4f78d46edd95bed.zip
Rename and split net/mcast-tools into net/pim6-tools, net/pim6sd,
and net/pim6dd.
Diffstat (limited to 'net/pim6sd')
-rw-r--r--net/pim6sd/Makefile25
-rw-r--r--net/pim6sd/distinfo2
-rw-r--r--net/pim6sd/files/patch-configure.in39
-rw-r--r--net/pim6sd/files/patch-pim6sd-Makefile.am25
-rw-r--r--net/pim6sd/files/pim6sd.in25
-rw-r--r--net/pim6sd/pkg-descr5
-rw-r--r--net/pim6sd/pkg-plist4
7 files changed, 125 insertions, 0 deletions
diff --git a/net/pim6sd/Makefile b/net/pim6sd/Makefile
new file mode 100644
index 000000000000..0c91fb16394a
--- /dev/null
+++ b/net/pim6sd/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= pim6
+PORTVERSION= 2.1.0.a.23
+CATEGORIES= net ipv6
+MASTER_SITES= SF/mcast-tools
+PKGNAMESUFFIX= sd
+DISTNAME= mcast-tools-20061214
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= IPv6 PIM-SM and PIM-SSM multicast routing daemon
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= autoreconf
+USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX}
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= YACC=${YACC}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/pim6sd/pim6sd.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc
+
+.include <bsd.port.mk>
diff --git a/net/pim6sd/distinfo b/net/pim6sd/distinfo
new file mode 100644
index 000000000000..2ea786486bdf
--- /dev/null
+++ b/net/pim6sd/distinfo
@@ -0,0 +1,2 @@
+SHA256 (mcast-tools-20061214.tar.gz) = a34a8290983023df843874fa52386ebef79ebccb4b8155139212979326ca14f4
+SIZE (mcast-tools-20061214.tar.gz) = 395708
diff --git a/net/pim6sd/files/patch-configure.in b/net/pim6sd/files/patch-configure.in
new file mode 100644
index 000000000000..9a3ecf7b3eb8
--- /dev/null
+++ b/net/pim6sd/files/patch-configure.in
@@ -0,0 +1,39 @@
+--- configure.in.orig 2006-06-24 08:53:46 UTC
++++ configure.in
+@@ -5,7 +5,7 @@ AC_PREREQ(2.59)
+ AC_INIT(README)
+ AM_CONFIG_HEADER(include/config.h)
+ AM_INIT_AUTOMAKE(mcast-tools, 20050926)
+-SUBDIRS="mcastread mcastsend mfc mtrace6 pim6dd pim6sd pmsft"
++SUBDIRS="pim6sd"
+ AC_SUBST(SUBDIRS)
+
+ # Checks for programs.
+@@ -145,23 +145,17 @@ main ()
+ exit (1);
+ exit (0);
+ }],
+- [AC_DEFINE(HAVE_ROUTING_SOCKETS)
++ [AC_DEFINE([HAVE_ROUTING_SOCKETS],[1],[foo])
+ UK_METHOD=routesock.o
+ AC_MSG_RESULT(routing socket)],
+- [AC_DEFINE(HAVE_NETLINK)
++ [AC_DEFINE([HAVE_NETLINK],[1],[foo])
+ UK_METHOD=netlink.o
+ AC_MSG_RESULT(netlink)])
+ AC_SUBST(UK_METHOD)
+
+ dnl Checks for RFC3542
+-AC_CHECK_LIB([c], [inet6_opt_init], [AC_DEFINE(HAVE_RFC3542)], )
++AC_CHECK_LIB([c], [inet6_opt_init], [AC_DEFINE([HAVE_RFC3542],[1],[foo])], )
+
+ AC_CONFIG_FILES([Makefile
+- mcastread/Makefile
+- mcastsend/Makefile
+- mfc/Makefile
+- mtrace6/Makefile
+- pim6dd/Makefile
+- pim6sd/Makefile
+- pmsft/Makefile])
++ pim6sd/Makefile])
+ AC_OUTPUT
diff --git a/net/pim6sd/files/patch-pim6sd-Makefile.am b/net/pim6sd/files/patch-pim6sd-Makefile.am
new file mode 100644
index 000000000000..10c1dfc0d1da
--- /dev/null
+++ b/net/pim6sd/files/patch-pim6sd-Makefile.am
@@ -0,0 +1,25 @@
+--- pim6sd/Makefile.am.orig 2005-12-11 05:15:12 UTC
++++ pim6sd/Makefile.am
+@@ -1,13 +1,11 @@
+ SUBDIRS=.
+ sbin_PROGRAMS= pim6sd
+-sbin_SCRIPTS= pim6stat
+ pim6sd_SOURCES= mld6.c mld6_proto.c mld6v2.c mld6v2_proto.c inet6.c kern.c main.c config.c debug.c vers.c callout.c route.c vif.c timer.c mrt.c pim6.c pim6_proto.c rp.c crc.c trace.c cfparse.y cftoken.l routesock.c netlink.c
+-man1_MANS=pim6stat.1
+ man5_MANS=pim6sd.conf.5
+ man8_MANS=pim6sd.8
+ pim6sd_LIBS=@LIBS@ @LEXLIBS@
+ noinst_HEADERS=callout.h cfparse-defs.h cfparse.h config.h crc.h debug.h defs.h inet6.h kern.h mld6.h mld6_proto.h mld6v2.h mld6v2_proto.h mrt.h pathnames.h pim6.h pim6_proto.h pimd.h route.h routesock.h rp.h timer.h trace.h var.h vif.h vmbuf.h mroute6.h
+-EXTRA_DIST = ${man1_MANS} ${man5_MANS} ${man8_MANS} pim6sd.conf.sample ssm.conf.sample pim6stat BUGS.TODO BUGS.V6 LICENSE.mrouted LICENSE.pim6sd LICENSE.pimd README README.SSM README.first
++EXTRA_DIST = ${man1_MANS} ${man5_MANS} ${man8_MANS} pim6sd.conf.sample ssm.conf.sample BUGS.TODO BUGS.V6 LICENSE.mrouted LICENSE.pim6sd LICENSE.pimd README README.SSM README.first
+ DISTCLEANFILES = cftoken.c cfparse.c cfparse.h
+
+ # Config file parser (this is necessary because not all yacc generate y.tab.h)
+@@ -21,6 +19,6 @@ cftoken.c: cftoken.l
+ $(LEX) -ocftoken.c $<
+
+ cfparse.h cfparse.c: cfparse.y
+- $(YACC) -d $< && \
++ $(YACC) -d cfparse.y && \
+ mv y.tab.c cfparse.c && \
+ mv y.tab.h cfparse.h
diff --git a/net/pim6sd/files/pim6sd.in b/net/pim6sd/files/pim6sd.in
new file mode 100644
index 000000000000..57ae19096d26
--- /dev/null
+++ b/net/pim6sd/files/pim6sd.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+# $FreeBSD$
+#
+# PROVIDE: pim6sd
+# REQUIRE: netif routing
+# KEYWORD: nojail
+
+#
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# pim6sd_enable="YES"
+#
+
+. /etc/rc.subr
+
+name="pim6sd"
+rcvar="${name}_enable"
+command="%%PREFIX%%/sbin/${name}"
+required_files="%%PREFIX%%/etc/${name}.conf"
+extra_commands=reload
+
+load_rc_config $name
+: ${pim6sd_enable="NO"}
+run_rc_command "$1"
+
diff --git a/net/pim6sd/pkg-descr b/net/pim6sd/pkg-descr
new file mode 100644
index 000000000000..4b9eaee813bd
--- /dev/null
+++ b/net/pim6sd/pkg-descr
@@ -0,0 +1,5 @@
+An IPv6 multicast routing daemon, which supports PIM-SM
+(Protocol Independent Multicast Sparse-Mode Version 2), and
+PIM-SSM (Source-Specific Multicast using PIM-SM).
+
+WWW: http://mcast-tools.sourceforge.net/
diff --git a/net/pim6sd/pkg-plist b/net/pim6sd/pkg-plist
new file mode 100644
index 000000000000..6bb1481325e6
--- /dev/null
+++ b/net/pim6sd/pkg-plist
@@ -0,0 +1,4 @@
+@sample etc/pim6sd.conf.sample
+sbin/pim6sd
+man/man5/pim6sd.conf.5.gz
+man/man8/pim6sd.8.gz