diff options
Diffstat (limited to 'net/dhcprelay/files')
-rw-r--r-- | net/dhcprelay/files/dhcprelay.sh.in | 36 | ||||
-rw-r--r-- | net/dhcprelay/files/patch-Makefile | 15 |
2 files changed, 51 insertions, 0 deletions
diff --git a/net/dhcprelay/files/dhcprelay.sh.in b/net/dhcprelay/files/dhcprelay.sh.in new file mode 100644 index 000000000000..d58f30f06bdf --- /dev/null +++ b/net/dhcprelay/files/dhcprelay.sh.in @@ -0,0 +1,36 @@ +#! /bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/net/dhcprelay/files/Attic/dhcprelay.sh.in,v 1.1 2005-11-15 11:26:44 edwin Exp $ +# +# PROVIDE: dhcprelay +# REQUIRE: DAEMON +# KEYWORD: FreeBSD +# +# Add the following line to /etc/rc.conf to enable dhcrelay: +# +# dhcprelay_enable="YES" +# + +# override these variables in /etc/rc.conf +dhcprelay_enable=${dhcprelay_enable:-"NO"} +dhcprelay_server=${dhcprelay_server:-} # dhcprelay server(s) +dhcprelay_ifaces=${dhcprelay_ifaces:-} # ethernet interface(s) + +dhcprelay_precmd () +{ + rc_flags="${rc_flags} ${dhcprelay_ifaces} ${dhcprelay_servers}" +} + +. %%RC_SUBR%% + +name=dhcprelay +rcvar=$(set_rcvar) +pidfile=/var/run/${name}.pid +command=/usr/local/bin/${name} + +start_precmd=${name}_precmd + +echo $rc_flags + +load_rc_config ${name} +run_rc_command "$1" diff --git a/net/dhcprelay/files/patch-Makefile b/net/dhcprelay/files/patch-Makefile new file mode 100644 index 000000000000..386be9f2f16b --- /dev/null +++ b/net/dhcprelay/files/patch-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig Tue Nov 15 18:25:30 2005 ++++ Makefile Tue Nov 15 18:25:59 2005 +@@ -1,8 +1,10 @@ ++all: dhcprelay ++ + dhcprelay: dhcprelay.o +- gcc -g -o $@ -Wall -L/usr/local/lib -lpcap -ldnet $> ++ gcc -g -o $@ -Wall -L${LOCALBASE}/lib -lpcap -ldnet $> + + dhcprelay.o: dhcprelay.c +- gcc -g -c -o $@ -Wall -I/usr/local/include $< ++ gcc -g -c -o $@ -Wall -I${LOCALBASE}/include $< + + clean: + rm -f dhcprelay.o dhcprelay dhcprelay.core |