diff options
author | lawrance <lawrance@FreeBSD.org> | 2005-05-07 21:55:51 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2005-05-07 21:55:51 +0800 |
commit | 377794aefca0506198b96e829d8525c3c25ce8f1 (patch) | |
tree | e9632235e5c52dde96294adce6f58e857e0f50ad /net/olsrd | |
parent | f7505772b1772e18c96f25fea584246c82a7a175 (diff) | |
download | freebsd-ports-gnome-377794aefca0506198b96e829d8525c3c25ce8f1.tar.gz freebsd-ports-gnome-377794aefca0506198b96e829d8525c3c25ce8f1.tar.zst freebsd-ports-gnome-377794aefca0506198b96e829d8525c3c25ce8f1.zip |
Add rcng startup script. Add a port knob message.
PR: ports/79844
Submitted by: David Cornejo <dave@dogwood.com>
Approved by: clement (mentor)
Diffstat (limited to 'net/olsrd')
-rw-r--r-- | net/olsrd/Makefile | 15 | ||||
-rw-r--r-- | net/olsrd/files/olsrd.sh.in | 20 |
2 files changed, 35 insertions, 0 deletions
diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile index 82b0d7c0d87c..a7e27df9391f 100644 --- a/net/olsrd/Makefile +++ b/net/olsrd/Makefile @@ -7,6 +7,7 @@ PORTNAME= olsrd PORTVERSION= 0.4.9 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.olsr.org/releases/0.4/ @@ -22,6 +23,7 @@ BUILD_DEPENDS+= libnet-config:${PORTSDIR}/net/libnet-devel USE_BISON= yes USE_GMAKE= yes +USE_RC_SUBR= olsrd.sh MAN8= olsrd.8 MAN5= olsrd.conf.5 MANCOMPRESSED= yes @@ -38,4 +40,17 @@ MAKE_ARGS+= OS=fbsd IGNORE= needs ieee80211.h headers .endif +.if !defined(WITH_MULTI_IF) +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} " To enable multiple interface support make with" + @${ECHO_MSG} " WITH_MULTI_IF defined" + @${ECHO_MSG} "" +.endif + +post-install: + @${ECHO_MSG} "" + @${ECHO_MSG} " Set olsrd_enable=\"YES\" in /etc/rc.conf to enable" + @${ECHO_MSG} "" + .include <bsd.port.post.mk> diff --git a/net/olsrd/files/olsrd.sh.in b/net/olsrd/files/olsrd.sh.in new file mode 100644 index 000000000000..691ff2633d06 --- /dev/null +++ b/net/olsrd/files/olsrd.sh.in @@ -0,0 +1,20 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: olsrd +# REQUIRE: NETWORKING SERVERS + +. %%RC_SUBR%% + +name="olsrd" +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/olsrd +command_args="-d 0" + +olsrd_enable=${olsrd_enable:-"NO"} + +load_rc_config $name +run_rc_command "$1" + |