diff options
author | pav <pav@FreeBSD.org> | 2005-04-09 06:22:36 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-04-09 06:22:36 +0800 |
commit | 93307c444260f384e2d5193193e4d32fb87d77e7 (patch) | |
tree | 9b3170fa3729c3a2be43bcea60a857c20aa04d29 /net/olsrd | |
parent | be3cb38e9409d4647539275e53678d27de5fc347 (diff) | |
download | freebsd-ports-gnome-93307c444260f384e2d5193193e4d32fb87d77e7.tar.gz freebsd-ports-gnome-93307c444260f384e2d5193193e4d32fb87d77e7.tar.zst freebsd-ports-gnome-93307c444260f384e2d5193193e4d32fb87d77e7.zip |
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.
PR: ports/79612
Submitted by: David Cornejo <dave@dogwood.com>
Diffstat (limited to 'net/olsrd')
-rw-r--r-- | net/olsrd/Makefile | 41 | ||||
-rw-r--r-- | net/olsrd/distinfo | 2 | ||||
-rw-r--r-- | net/olsrd/files/patch-Makefile | 65 | ||||
-rw-r--r-- | net/olsrd/files/patch-src-defs.h | 13 | ||||
-rw-r--r-- | net/olsrd/pkg-descr | 11 | ||||
-rw-r--r-- | net/olsrd/pkg-plist | 2 |
6 files changed, 134 insertions, 0 deletions
diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile new file mode 100644 index 000000000000..82b0d7c0d87c --- /dev/null +++ b/net/olsrd/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: olsrd +# Date created: 6 April 2005 +# Whom: dave@dogwood.com +# +# $FreeBSD$ +# + +PORTNAME= olsrd +PORTVERSION= 0.4.9 +CATEGORIES= net +MASTER_SITES= http://www.olsr.org/releases/0.4/ + +MAINTAINER= dave@dogwood.com +COMMENT= OLSR routing daemon + +BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend + +.if defined(WITH_MULTI_IF) +BUILD_DEPENDS+= libnet-config:${PORTSDIR}/net/libnet-devel +.endif + +USE_BISON= yes +USE_GMAKE= yes + +MAN8= olsrd.8 +MAN5= olsrd.conf.5 +MANCOMPRESSED= yes + +.if defined(WITH_MULTI_IF) +MAKE_ARGS+= OS=fbsd-ll +.else +MAKE_ARGS+= OS=fbsd +.endif + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 502000 +IGNORE= needs ieee80211.h headers +.endif + +.include <bsd.port.post.mk> diff --git a/net/olsrd/distinfo b/net/olsrd/distinfo new file mode 100644 index 000000000000..8f78d05c333a --- /dev/null +++ b/net/olsrd/distinfo @@ -0,0 +1,2 @@ +MD5 (olsrd-0.4.9.tar.gz) = adf236fd4d7c38ad39186ed5bf1ba95d +SIZE (olsrd-0.4.9.tar.gz) = 416910 diff --git a/net/olsrd/files/patch-Makefile b/net/olsrd/files/patch-Makefile new file mode 100644 index 000000000000..be266a57d769 --- /dev/null +++ b/net/olsrd/files/patch-Makefile @@ -0,0 +1,65 @@ +--- Makefile.orig Thu Mar 31 20:39:24 2005 ++++ Makefile Sat Apr 9 00:09:42 2005 +@@ -47,7 +47,9 @@ + CCWARNINGS = -Wall -Wmissing-prototypes -Wstrict-prototypes \ + -Wmissing-declarations -Wsign-compare + +-INSTALL_PREFIX ?= ++PREFIX?= /usr/local ++INSTALL_PREFIX?= ${PREFIX} ++CFGFILE?= ${INSTALL_PREFIX}/etc/olsrd.conf + + INCLUDES = -Isrc + +@@ -84,7 +86,7 @@ + + SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c) + HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h) +-CFLAGS ?= $(CCWARNINGS) -O2 -g ++CFLAGS += -DOLSRD_GLOBAL_CONF_FILE=\"${CFGFILE}\" + LIBS = -lm + MAKEDEPEND = makedepend -f $(DEPFILE) -D__FreeBSD__ $(INCLUDES) $(SRCS) + +@@ -96,8 +98,8 @@ + + SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c) + HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h) +-CFLAGS ?= -Wall -Wmissing-prototypes -O2 -g -DSPOOF -I/usr/local/include +-LIBS = -lm -L/usr/local/lib -lnet ++CFLAGS += -DSPOOF -I${LOCALBASE}/include -DOLSRD_GLOBAL_CONF_FILE=\"${CFGFILE}\" ++LIBS = -lm -L${LOCALBASE}/lib -lnet + MAKEDEPEND = makedepend -f $(DEPFILE) -D__FreeBSD__ $(INCLUDES) $(SRCS) + + all: cfgparser olsrd +@@ -292,8 +294,8 @@ + + install_bin: + $(STRIP) olsrd +- mkdir -p $(INSTALL_PREFIX)/usr/sbin +- install -m 755 olsrd $(INSTALL_PREFIX)/usr/sbin ++ mkdir -p $(INSTALL_PREFIX)/sbin ++ install -m 755 olsrd $(INSTALL_PREFIX)/sbin + + install_olsrd: install_bin + @echo ========= C O N F I G U R A T I O N - F I L E ============ +@@ -303,15 +305,15 @@ + @echo can be found at files/olsrd.conf.default.lq + @echo ========================================================== + mkdir -p $(INSTALL_PREFIX)/etc +- cp -i files/olsrd.conf.default.rfc $(INSTALL_PREFIX)/etc/olsrd.conf ++ cp files/olsrd.conf.default.rfc $(INSTALL_PREFIX)/etc/olsrd.conf.default + @echo ------------------------------------------- + @echo Edit $(INSTALL_PREFIX)/etc/olsrd.conf before running olsrd!! + @echo ------------------------------------------- + @echo Installing manpages olsrd\(8\) and olsrd.conf\(5\) +- mkdir -p $(INSTALL_PREFIX)/usr/share/man/man8/ +- cp files/olsrd.8.gz $(INSTALL_PREFIX)/usr/share/man/man8/olsrd.8.gz +- mkdir -p $(INSTALL_PREFIX)/usr/share/man/man5/ +- cp files/olsrd.conf.5.gz $(INSTALL_PREFIX)/usr/share/man/man5/olsrd.conf.5.gz ++ mkdir -p $(INSTALL_PREFIX)/man/man8/ ++ cp files/olsrd.8.gz $(INSTALL_PREFIX)/man/man8/olsrd.8.gz ++ mkdir -p $(INSTALL_PREFIX)/man/man5/ ++ cp files/olsrd.conf.5.gz $(INSTALL_PREFIX)/man/man5/olsrd.conf.5.gz + + # + # PLUGINS diff --git a/net/olsrd/files/patch-src-defs.h b/net/olsrd/files/patch-src-defs.h new file mode 100644 index 000000000000..ef89636bb19e --- /dev/null +++ b/net/olsrd/files/patch-src-defs.h @@ -0,0 +1,13 @@ +--- src/defs.h.orig Fri Apr 1 07:14:22 2005 ++++ src/defs.h Sat Apr 9 00:08:01 2005 +@@ -64,8 +64,10 @@ + #define SOFTWARE_VERSION "olsr.org - " VERSION + #define OLSRD_VERSION_DATE " *** " SOFTWARE_VERSION " (" __DATE__ ") ***\n" + ++#ifndef OLSRD_GLOBAL_CONF_FILE + #define OLSRD_CONF_FILE_NAME "olsrd.conf" + #define OLSRD_GLOBAL_CONF_FILE "/etc/" OLSRD_CONF_FILE_NAME ++#endif + + #define HOPCNT_MAX 32 /* maximum hops number */ + #define MAXMESSAGESIZE 1500 /* max broadcast size */ diff --git a/net/olsrd/pkg-descr b/net/olsrd/pkg-descr new file mode 100644 index 000000000000..b5d2b671c1f5 --- /dev/null +++ b/net/olsrd/pkg-descr @@ -0,0 +1,11 @@ +From the website: + +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. + +WWW: http://www.olsr.org/ + +Dave +dave@dogwood.com diff --git a/net/olsrd/pkg-plist b/net/olsrd/pkg-plist new file mode 100644 index 000000000000..e73637036074 --- /dev/null +++ b/net/olsrd/pkg-plist @@ -0,0 +1,2 @@ +sbin/olsrd +etc/olsrd.conf.default |