mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Add new port of mrouted, IPv4 DVMRP multicast routing daemon.
This commit is contained in:
parent
7cf3d9082d
commit
51a04cbd4c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174057
@ -304,6 +304,7 @@
|
||||
SUBDIR += mpich
|
||||
SUBDIR += mpich2
|
||||
SUBDIR += mping
|
||||
SUBDIR += mrouted
|
||||
SUBDIR += mrt
|
||||
SUBDIR += mrtg-ping-probe
|
||||
SUBDIR += msend
|
||||
|
35
net/mrouted/Makefile
Normal file
35
net/mrouted/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# New ports collection makefile for: mrouted
|
||||
# Date created: 28 September 2006
|
||||
# Whom: Bruce M Simpson <bms@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mrouted
|
||||
PORTVERSION= 3.9
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://ftp.research.att.com/pub/fenner/mrouted/ \
|
||||
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}beta3+IOS12
|
||||
|
||||
MAINTAINER= bms@FreeBSD.org
|
||||
COMMENT= Multicast routing daemon providing DVMRP for IPv4
|
||||
|
||||
USE_RC_SUBR= mrouted
|
||||
BUILD_ENV+= CFLAGS="-O2 -fno-strict-aliasing -DRSRR -Dlog=logit"
|
||||
|
||||
MAN8= map-mbone.8 mrouted.8 mrinfo.8
|
||||
|
||||
MROUTED_BINARIES= map-mbone mrouted mrinfo
|
||||
|
||||
PLIST_FILES= sbin/map-mbone sbin/mrouted sbin/mrinfo
|
||||
|
||||
do-install:
|
||||
.for i in ${MROUTED_BINARIES}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin/${i}
|
||||
.endfor
|
||||
.for i in ${MAN8}
|
||||
${INSTALL_MAN} ${WRKSRC}/${i} ${PREFIX}/man/man8
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/mrouted/distinfo
Normal file
3
net/mrouted/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (mrouted-3.9beta3+IOS12.tar.gz) = 15bb287b5af0cef4ec8e4ad3bd56740c
|
||||
SHA256 (mrouted-3.9beta3+IOS12.tar.gz) = fa9ad8150ca11044288162cf3056cca94ad737ee822b710994aa178eb0100908
|
||||
SIZE (mrouted-3.9beta3+IOS12.tar.gz) = 110167
|
21
net/mrouted/files/mrouted.in
Normal file
21
net/mrouted/files/mrouted.in
Normal file
@ -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"
|
19
net/mrouted/files/patch-Makefile
Normal file
19
net/mrouted/files/patch-Makefile
Normal file
@ -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
|
38
net/mrouted/files/patch-main.c
Normal file
38
net/mrouted/files/patch-main.c
Normal file
@ -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,
|
3
net/mrouted/pkg-descr
Normal file
3
net/mrouted/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
mrouted is an implementation of the DVMRP multicast routing protocol.
|
||||
It turns a UNIX workstation into a DVMRP multicast router with tunnel
|
||||
support, in order to cross non-multicast-aware routers.
|
Loading…
Reference in New Issue
Block a user