diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2006-09-28 21:29:10 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2006-09-28 21:29:10 +0000 |
commit | 51a04cbd4c5ca6dc3d46e787406c076ac671ff67 (patch) | |
tree | 4105192f5ff7380f4e849cf97330664c6fa9d21c /net/mrouted/files | |
parent | 7cf3d9082da0ecf9dc89a98fd65a7f036224b1bb (diff) | |
download | ports-51a04cbd4c5ca6dc3d46e787406c076ac671ff67.tar.gz ports-51a04cbd4c5ca6dc3d46e787406c076ac671ff67.zip |
Add new port of mrouted, IPv4 DVMRP multicast routing daemon.
Notes
Notes:
svn path=/head/; revision=174057
Diffstat (limited to 'net/mrouted/files')
-rw-r--r-- | net/mrouted/files/mrouted.in | 21 | ||||
-rw-r--r-- | net/mrouted/files/patch-Makefile | 19 | ||||
-rw-r--r-- | net/mrouted/files/patch-main.c | 38 |
3 files changed, 78 insertions, 0 deletions
diff --git a/net/mrouted/files/mrouted.in b/net/mrouted/files/mrouted.in new file mode 100644 index 000000000000..7bdc073aecda --- /dev/null +++ b/net/mrouted/files/mrouted.in @@ -0,0 +1,21 @@ +#!/bin/sh +# +# $NetBSD: mrouted,v 1.6 2002/03/22 04:33:59 thorpej Exp $ +# $FreeBSD$ +# + +# PROVIDE: mrouted +# REQUIRE: netif routing cleanvar +# KEYWORD: nojail + +. %%RC_SUBR%% + +name="mrouted" +rcvar=`set_rcvar` +command=%%PREFIX%%/sbin/${name} +pidfile="/var/run/${name}.pid" +required_files=%%PREFIX%%/etc/${name}.conf +extra_commands="reload" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/mrouted/files/patch-Makefile b/net/mrouted/files/patch-Makefile new file mode 100644 index 000000000000..1a2bce163acd --- /dev/null +++ b/net/mrouted/files/patch-Makefile @@ -0,0 +1,19 @@ +--- Makefile.orig Sun Mar 1 03:09:11 1998 ++++ Makefile Thu Sep 28 22:11:44 2006 +@@ -24,12 +24,13 @@ + # + # Uncomment the following three lines if you want to use RSRR (Routing + # Support for Resource Reservations), currently used by RSVP. +-#RSRRDEF= -DRSRR +-#RSRRC= rsrr.c +-#RSRRO= rsrr.o ++RSRRDEF= -DRSRR ++RSRRC= rsrr.c ++RSRRO= rsrr.o + # + LDFLAGS= + CFLAGS= -O ${MCAST_INCLUDE} ${SNMPDEF} ${RSRRDEF} ## SunOS, OSF1, FreeBSD, IRIX ++CFLAGS+= -O2 -fno-strict-aliasing -pipe -Dlog=logit + #CFLAGS= -O ${MCAST_INCLUDE} ${SNMPDEF} ${RSRRDEF} -DSYSV -DSUNOS5 ## Solaris 2.x + #LIB2=-lsocket -lnsl ## Solaris 2.x + #CFLAGS= -O ${MCAST_INCLUDE} ${SNMPDEF} ${RSRRDEF} -D__BSD_SOURCE -DRAW_INPUT_IS_RAW -DRAW_OUTPUT_IS_RAW -DIOCTL_OK_ON_RAW_SOCKET ## Linux diff --git a/net/mrouted/files/patch-main.c b/net/mrouted/files/patch-main.c new file mode 100644 index 000000000000..a45a764cb388 --- /dev/null +++ b/net/mrouted/files/patch-main.c @@ -0,0 +1,38 @@ +--- main.c.orig Sun Mar 1 01:49:00 1998 ++++ main.c Thu Sep 28 21:44:08 2006 +@@ -934,6 +934,7 @@ + static char fmt[211] = "warning - "; + char *msg; + struct timeval now; ++ time_t now_sec; + struct tm *thyme; + #ifdef RINGBUFFER + static int ringbufinit = 0; +@@ -953,6 +954,7 @@ + char *msg; + char tbuf[20]; + struct timeval now; ++ time_t now_sec; + struct tm *thyme; + #ifdef RINGBUFFER + static int ringbufinit = 0; +@@ -979,7 +981,8 @@ + ringbufinit = 1; + } + gettimeofday(&now,NULL); +- thyme = localtime(&now.tv_sec); ++ now_sec = now.tv_sec; ++ thyme = localtime(&now_sec); + sprintf(logmsg[logmsgno++], "%02d:%02d:%02d.%03ld %s err %d", + thyme->tm_hour, thyme->tm_min, thyme->tm_sec, + now.tv_usec / 1000, msg, syserr); +@@ -992,7 +995,8 @@ + */ + if (haveterminal && (debug || severity <= LOG_WARNING)) { + gettimeofday(&now,NULL); +- thyme = localtime(&now.tv_sec); ++ now_sec = now.tv_sec; ++ thyme = localtime(&now_sec); + if (!debug) + fprintf(stderr, "%s: ", progname); + fprintf(stderr, "%02d:%02d:%02d.%03ld %s", thyme->tm_hour, |