aboutsummaryrefslogtreecommitdiff
path: root/lang/gnustep-base
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-12-23 22:15:34 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-12-23 22:15:34 +0000
commit515eedb8f752585810db6c2ea8c3bb52e0990ba4 (patch)
tree38b0a9e800ef97e16bbfbb38b5d019588c6a3ad2 /lang/gnustep-base
parent7155542038b8b409839d291a48f6e100e49eeef1 (diff)
downloadports-515eedb8f752585810db6c2ea8c3bb52e0990ba4.tar.gz
ports-515eedb8f752585810db6c2ea8c3bb52e0990ba4.zip
Notes
Diffstat (limited to 'lang/gnustep-base')
-rw-r--r--lang/gnustep-base/files/GNUstep.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/gnustep-base/files/GNUstep.sh b/lang/gnustep-base/files/GNUstep.sh
index b76c3eac6432..b5672dec2f4e 100644
--- a/lang/gnustep-base/files/GNUstep.sh
+++ b/lang/gnustep-base/files/GNUstep.sh
@@ -2,22 +2,23 @@
PREFIX=%%PREFIX%%
IFFILE=${PREFIX}/etc/gdomap_if
-PIDFILE=/var/run/gdomap.pid
-GNUSTEP_SYSTEM_ROOT=${PREFIX}/GNUstep/System
+PIDFILE="/var/run/gdomap.pid"
+GNUSTEP_SYSTEM_ROOT="${PREFIX}/GNUstep/System"
case "$1" in
start)
if [ -e ${GNUSTEP_SYSTEM_ROOT}/Makefiles/GNUstep.sh ]; then
. ${GNUSTEP_SYSTEM_ROOT}/Makefiles/GNUstep.sh
- if [ -x ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/gdomap ]; then
- rm -f ${PIDFILE}
- ${GNUSTEP_SYSTEM_ROOT}/Tools/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/gdomap -a ${IFFILE} -I ${PIDFILE}
- echo -n ' GNUstep'
- fi
+ rm -f ${PIDFILE}
+ opentool gdomap -a ${IFFILE} -I ${PIDFILE}
+ opentool gdnc
+ echo -n ' GNUstep'
fi
;;
stop)
[ -r ${PIDFILE} ] && kill $(cat ${PIDFILE}) && echo -n ' GNUstep'
+ killall gdnc
+ rm -f ${PIDFILE}
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2