diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2001-08-24 02:27:46 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2001-08-24 02:27:46 +0800 |
commit | 820a2955711205fc84c1f2e37491a41c48223421 (patch) | |
tree | 2185c7d7a5cbcd00d5dfb98d9b65782a4113f372 /mail/drac/files | |
parent | 9826b0e547d132acea1e2b7c4742646fb2479bb5 (diff) | |
download | freebsd-ports-gnome-820a2955711205fc84c1f2e37491a41c48223421.tar.gz freebsd-ports-gnome-820a2955711205fc84c1f2e37491a41c48223421.tar.zst freebsd-ports-gnome-820a2955711205fc84c1f2e37491a41c48223421.zip |
Add dracd.sh startup script
Make the rpc.dracd daemon detach upon start
Bump PORTREVISION
PR: 29474
Submitted by: maintainer
Diffstat (limited to 'mail/drac/files')
-rw-r--r-- | mail/drac/files/dracd.sh | 20 | ||||
-rw-r--r-- | mail/drac/files/patch-aa | 9 |
2 files changed, 26 insertions, 3 deletions
diff --git a/mail/drac/files/dracd.sh b/mail/drac/files/dracd.sh new file mode 100644 index 000000000000..902ccdf7ae9c --- /dev/null +++ b/mail/drac/files/dracd.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +case "$1" in +start) + [ -x ${PREFIX}/sbin/rpc.dracd ] && ${PREFIX}/sbin/rpc.dracd && echo -n ' dracd' + ;; +stop) + killall rpc.dracd >/dev/null 2>&1 && echo -n ' dracd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 diff --git a/mail/drac/files/patch-aa b/mail/drac/files/patch-aa index 3887bad3723d..ad90fdf1290b 100644 --- a/mail/drac/files/patch-aa +++ b/mail/drac/files/patch-aa @@ -1,5 +1,5 @@ --- Makefile.orig Mon Nov 20 16:35:16 2000 -+++ Makefile Sun Apr 29 20:38:47 2001 ++++ Makefile Mon Aug 6 00:28:52 2001 @@ -5,9 +5,10 @@ # Paths @@ -14,7 +14,7 @@ # OS-Dependant settings -@@ -33,20 +34,32 @@ +@@ -33,20 +34,35 @@ # -DCIDR_KEY # keys in CIDR format # -DTERM_KD # keys and data nul-terminated @@ -32,6 +32,9 @@ +.else +DEFS= $(RPCFLAGS) -DFLOCK_LOCK -DGETHOST -DDASH_C +.endif ++.if defined(WITH_FOREGROUND) ++DEFS+= -DRPC_SVC_FG ++.endif # Compiler flags CC = cc @@ -49,7 +52,7 @@ -#RPCGENFLAGS = -C +TSTLIBS = -L. -ldrac +#RPCGENFLAGS = -+RPCGENFLAGS = -C ++RPCGENFLAGS = -C -I # Man sections MANLIB = 3 |