ports/79612: New port: net/olsrd olsr.org OLSRD daemon
David Cornejo
dave at dogwood.com
Thu Apr 7 01:40:06 UTC 2005
>Number: 79612
>Category: ports
>Synopsis: New port: net/olsrd olsr.org OLSRD daemon
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 07 01:40:05 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: David Cornejo
>Release: FreeBSD 5.4-PRERELEASE i386
>Organization:
Dogwood Media
>Environment:
System: FreeBSD white.dogwood.com 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #8: Thu Mar 31 10:08:12 HST 2005 dave at white.dogwood.com:/usr/obj/usr/src/sys/WHITE i386
>Description:
The olsr.org OLSR daemon is an implementation of the Optimized Link
State Routing protocol. OLSR is a routing protocol for mobile ad-hoc
networks. The protocol is pro-active, table driven and utilizes a
technique called multipoint relaying for message flooding.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# olsrd
# olsrd/distinfo
# olsrd/Makefile
# olsrd/pkg-descr
# olsrd/pkg-plist
# olsrd/files
# olsrd/files/patch-Makefile
# olsrd/files/patch-src-defs.h
#
echo c - olsrd
mkdir -p olsrd > /dev/null 2>&1
echo x - olsrd/distinfo
sed 's/^X//' >olsrd/distinfo << 'END-of-olsrd/distinfo'
XMD5 (olsrd-0.4.9.tar.gz) = adf236fd4d7c38ad39186ed5bf1ba95d
XSIZE (olsrd-0.4.9.tar.gz) = 416910
END-of-olsrd/distinfo
echo x - olsrd/Makefile
sed 's/^X//' >olsrd/Makefile << 'END-of-olsrd/Makefile'
X# New ports collection makefile for: olsrd
X# Date created: 6 April 2005
X# Whom: dave at dogwood.com
X#
X# $FreeBSD$
X#
X
XPORTNAME= olsrd
XPORTVERSION= 0.4.9
XCATEGORIES= net
XMASTER_SITES= http://www.olsr.org/releases/0.4/
X
XMAINTAINER= dave at dogwood.com
XCOMMENT= OLSR routing daemon
X
X.if defined(WITH_MULTI_IF)
XBUILD_DEPENDS= libnet-devel:${PORTSDIR}/net/libnet-devel
X.endif
X
XUSE_GMAKE= yes
X
XMAN8= olsrd.8
XMAN5= olsrd.conf.5
XMANCOMPRESSED= yes
X
X.if defined(WITH_MULTI_IF)
XMAKE_ARGS+= OS=fbsd-ll
X.else
XMAKE_ARGS+= OS=fbsd
X.endif
X
X.include <bsd.port.mk>
END-of-olsrd/Makefile
echo x - olsrd/pkg-descr
sed 's/^X//' >olsrd/pkg-descr << 'END-of-olsrd/pkg-descr'
XFrom the website:
X
XThe olsr.org OLSR daemon is an implementation of the Optimized Link
XState Routing protocol. OLSR is a routing protocol for mobile ad-hoc
Xnetworks. The protocol is pro-active, table driven and utilizes a
Xtechnique called multipoint relaying for message flooding.
X
XWWW: http://www.olsr.org/
X
XDave
Xdave at dogwood.com
END-of-olsrd/pkg-descr
echo x - olsrd/pkg-plist
sed 's/^X//' >olsrd/pkg-plist << 'END-of-olsrd/pkg-plist'
Xsbin/olsrd
Xetc/olsrd.conf.default
END-of-olsrd/pkg-plist
echo c - olsrd/files
mkdir -p olsrd/files > /dev/null 2>&1
echo x - olsrd/files/patch-Makefile
sed 's/^X//' >olsrd/files/patch-Makefile << 'END-of-olsrd/files/patch-Makefile'
X*** Makefile.orig Thu Mar 31 08:39:24 2005
X--- Makefile Wed Apr 6 15:18:30 2005
X***************
X*** 47,53 ****
X CCWARNINGS = -Wall -Wmissing-prototypes -Wstrict-prototypes \
X -Wmissing-declarations -Wsign-compare
X
X! INSTALL_PREFIX ?=
X
X INCLUDES = -Isrc
X
X--- 47,55 ----
X CCWARNINGS = -Wall -Wmissing-prototypes -Wstrict-prototypes \
X -Wmissing-declarations -Wsign-compare
X
X! PREFIX?= /usr/local
X! INSTALL_PREFIX?= ${PREFIX}
X! CFGFILE?= ${INSTALL_PREFIX}/etc/olsrd.conf
X
X INCLUDES = -Isrc
X
X***************
X*** 84,90 ****
X
X SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
X HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
X! CFLAGS ?= $(CCWARNINGS) -O2 -g
X LIBS = -lm
X MAKEDEPEND = makedepend -f $(DEPFILE) -D__FreeBSD__ $(INCLUDES) $(SRCS)
X
X--- 86,92 ----
X
X SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
X HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
X! CFLAGS += -DOLSRD_GLOBAL_CONF_FILE=\"${CFGFILE}\"
X LIBS = -lm
X MAKEDEPEND = makedepend -f $(DEPFILE) -D__FreeBSD__ $(INCLUDES) $(SRCS)
X
X***************
X*** 96,102 ****
X
X SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
X HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
X! CFLAGS ?= -Wall -Wmissing-prototypes -O2 -g -DSPOOF -I/usr/local/include
X LIBS = -lm -L/usr/local/lib -lnet
X MAKEDEPEND = makedepend -f $(DEPFILE) -D__FreeBSD__ $(INCLUDES) $(SRCS)
X
X--- 98,104 ----
X
X SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
X HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
X! CFLAGS += -DSPOOF -I/usr/local/include -DOLSRD_GLOBAL_CONF_FILE=\"${CFGFILE}\"
X LIBS = -lm -L/usr/local/lib -lnet
X MAKEDEPEND = makedepend -f $(DEPFILE) -D__FreeBSD__ $(INCLUDES) $(SRCS)
X
X***************
X*** 292,299 ****
X
X install_bin:
X $(STRIP) olsrd
X! mkdir -p $(INSTALL_PREFIX)/usr/sbin
X! install -m 755 olsrd $(INSTALL_PREFIX)/usr/sbin
X
X install_olsrd: install_bin
X @echo ========= C O N F I G U R A T I O N - F I L E ============
X--- 294,301 ----
X
X install_bin:
X $(STRIP) olsrd
X! mkdir -p $(INSTALL_PREFIX)/sbin
X! install -m 755 olsrd $(INSTALL_PREFIX)/sbin
X
X install_olsrd: install_bin
X @echo ========= C O N F I G U R A T I O N - F I L E ============
X***************
X*** 303,317 ****
X @echo can be found at files/olsrd.conf.default.lq
X @echo ==========================================================
X mkdir -p $(INSTALL_PREFIX)/etc
X! cp -i files/olsrd.conf.default.rfc $(INSTALL_PREFIX)/etc/olsrd.conf
X @echo -------------------------------------------
X @echo Edit $(INSTALL_PREFIX)/etc/olsrd.conf before running olsrd!!
X @echo -------------------------------------------
X @echo Installing manpages olsrd\(8\) and olsrd.conf\(5\)
X! mkdir -p $(INSTALL_PREFIX)/usr/share/man/man8/
X! cp files/olsrd.8.gz $(INSTALL_PREFIX)/usr/share/man/man8/olsrd.8.gz
X! mkdir -p $(INSTALL_PREFIX)/usr/share/man/man5/
X! cp files/olsrd.conf.5.gz $(INSTALL_PREFIX)/usr/share/man/man5/olsrd.conf.5.gz
X
X #
X # PLUGINS
X--- 305,319 ----
X @echo can be found at files/olsrd.conf.default.lq
X @echo ==========================================================
X mkdir -p $(INSTALL_PREFIX)/etc
X! cp files/olsrd.conf.default.rfc $(INSTALL_PREFIX)/etc/olsrd.conf.default
X @echo -------------------------------------------
X @echo Edit $(INSTALL_PREFIX)/etc/olsrd.conf before running olsrd!!
X @echo -------------------------------------------
X @echo Installing manpages olsrd\(8\) and olsrd.conf\(5\)
X! mkdir -p $(INSTALL_PREFIX)/man/man8/
X! cp files/olsrd.8.gz $(INSTALL_PREFIX)/man/man8/olsrd.8.gz
X! mkdir -p $(INSTALL_PREFIX)/man/man5/
X! cp files/olsrd.conf.5.gz $(INSTALL_PREFIX)/man/man5/olsrd.conf.5.gz
X
X #
X # PLUGINS
END-of-olsrd/files/patch-Makefile
echo x - olsrd/files/patch-src-defs.h
sed 's/^X//' >olsrd/files/patch-src-defs.h << 'END-of-olsrd/files/patch-src-defs.h'
X*** src/defs.h.orig Thu Mar 31 19:14:22 2005
X--- src/defs.h Wed Apr 6 10:30:18 2005
X***************
X*** 64,71 ****
X--- 64,73 ----
X #define SOFTWARE_VERSION "olsr.org - " VERSION
X #define OLSRD_VERSION_DATE " *** " SOFTWARE_VERSION " (" __DATE__ ") ***\n"
X
X+ #ifndef OLSRD_GLOBAL_CONF_FILE
X #define OLSRD_CONF_FILE_NAME "olsrd.conf"
X #define OLSRD_GLOBAL_CONF_FILE "/etc/" OLSRD_CONF_FILE_NAME
X+ #endif
X
X #define HOPCNT_MAX 32 /* maximum hops number */
X #define MAXMESSAGESIZE 1500 /* max broadcast size */
END-of-olsrd/files/patch-src-defs.h
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list