Correction of paths for BSDs
authorUlrich Wilkens <mail@uwilkens.de>
Thu, 30 Aug 2012 00:12:16 +0000 (02:12 +0200)
committerJon Trulson <jon@radscan.com>
Thu, 30 Aug 2012 02:39:02 +0000 (20:39 -0600)
13 files changed:
cde/.gitignore
cde/osf/xmbind/0040.xmbind
cde/programs/dtcm/server/log.h
cde/programs/dtimsstart/0020.dtims [deleted file]
cde/programs/dtimsstart/0020.dtims.src [new file with mode: 0755]
cde/programs/dtimsstart/Imakefile
cde/programs/dtlogin/config/Xservers.src
cde/programs/dtlogin/config/Xsession.src
cde/programs/dtlogin/config/Xsetup.src
cde/programs/dtlogin/config/Xstartup.src
cde/programs/dtsearchpath/0010.dtpaths.src
cde/programs/dtsearchpath/0030.dttmpdir.src
cde/programs/dtsearchpath/Imakefile

index b7b872c65fd9f40c3360571a619dd17976a1031e..3d34ffab8029af20a16c6d162e660c3bb7caf5b1 100644 (file)
@@ -91,6 +91,7 @@ programs/dthelp/dthelpgen/dthelpgen
 programs/dthelp/dthelpprint/dthelpprint
 programs/dthelp/dthelpview/dthelpview
 programs/dticon/dticon
+programs/dtimsstart/0020.dtims
 programs/dtimsstart/dtimsstart
 programs/dtlogin/dtchooser
 programs/dtlogin/dtgreet
@@ -528,6 +529,7 @@ programs/dthelp/parser/pass2/util/fclndir
 programs/dtinfo/clients/dtinfo_start/dtinfo_start
 programs/dtinfo/clients/dtinfo_start/dtinfo_start.opnums
 programs/dtinfo/dtinfo/install/lib/fonts/dtinfo.bdf
+programs/dtinfo/dtinfo/install/lib/fonts/dtinfo.pcf.gz
 programs/dtinfo/dtinfo/install/lib/fonts/dtinfo.pcf.Z
 programs/dtinfo/dtinfo/src/Agents/Agents.d
 programs/dtinfo/dtinfo/src/Agents/Agents.h
@@ -1073,6 +1075,8 @@ programs/dtwm/sys.dtwmrc
 # programs/fontaliases
 programs/fontaliases/freebsd/C/dtinfo.bdf
 programs/fontaliases/freebsd/C/dtinfo.pcf
+programs/fontaliases/freebsd/C/dtinfo.pcf.gz
+programs/fontaliases/freebsd/C/dtinfo.pcf.Z
 programs/fontaliases/freebsd/C/fonts.dir
 
 # programs/ksh93
index 1fbcd57c779854b9b12afef370abeaa15c4861da..6aec74fd1c27ea96927d3233eb4ad3b1f57fa165 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/ksh
+#!/bin/sh
 #####################################################################
 ###  File:              0040.xmbind
 ###
index 451050769fb4ee23d62835b5e4e860be5d02f580..c93d5f10c88e85c86318dba91d39458ed9a196f2 100644 (file)
 #define _DtCMS_DEFAULT_BAK     ".calbak"
 #define _DtCMS_DEFAULT_TMP     ".caltmp"
 #define _DtCMS_DEFAULT_DEL     ".caldel"
+#if defined(CSRG_BASED)
+#define        _DtCMS_DEFAULT_DIR      "/var/spool/calendar"
+#else
 #define        _DtCMS_DEFAULT_DIR      "/usr/spool/calendar"
+#endif
 #define        _DtCMS_DEFAULT_MODE     (S_IRUSR|S_IRGRP|S_IWGRP)
 
 typedef enum {
diff --git a/cde/programs/dtimsstart/0020.dtims b/cde/programs/dtimsstart/0020.dtims
deleted file mode 100755 (executable)
index 0cdc0f3..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/usr/bin/ksh
-#####################################################################
-###  File:              0020.dtims
-###
-###  Default Location:  /usr/dt/config/Xsession.d/
-###
-###  Purpose:           Start desktop input method server if required
-###
-###  Description:
-###                     This script is invoked by means of the Xsession file
-###                     at user login. It starts an input method server as
-###                     required for selected locales.
-###
-###  Invoked by:        /usr/dt/bin/Xsession
-###
-###  Product:           @(#)Common Desktop Environment 1.0
-###
-###  Note:
-###
-###    The /usr/dt/config/Xsession.d/0020.dtims file is a
-###    factory-default file and will be unconditionally overwritten upon
-###    subsequent installation. To customize input method server startup
-###    behavior, copy this file to the configuration directory,
-###    /etc/dt/config/Xsession.d and customize that version
-###    of the file.
-###
-###    The value of DTSTARTIMS determines whether this file,
-###    /usr/dt/config/Xsession.d/0020.dtims, will start
-###    the specified input method server. Should an input method server
-###    be started from /etc/dt/config/Xsession.d/0020.dtims
-###    or should an input method server not be desired, unset DTSTARTIMS
-###    to prevent this file from starting one.
-###
-###    The general logic of this file is:
-###
-###    if [ "$DTSTARTIMS" = "True" ]
-###    then
-###      <start input method server>
-###      unset DTSTARTIMS
-###    fi
-###
-###  Revision:          $XConsortium: 0020.dtims /main/2 1996/07/18 14:23:41 drk $
-###
-###  (c) Copyright 1993, 1994 Hewlett-Packard Company
-###  (c) Copyright 1993, 1994 International Business Machines Corp.
-###  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
-###  (c) Copyright 1993, 1994 Novell, Inc.
-###
-#####################################################################
-
-if [ "$DTSTARTIMS" = "True" ]
-then
-
-#
-# Start HP platform IM (Input Method) server for Asian locales.
-#
-
-  if [[ -z "${CDE_IMS_PID:-}" ]]
-  then
-
-    case "$LANG" in
-      ja_JP*    | japanese*     | \
-      ko_KR*    | korean*       | \
-      zh_TW*    | chinese-t*    | \
-      zh_CN*    | chinese-s*    )
-
-        DTIMS_SCRIPT=0020.dtims
-        DTIMS_CMD="/usr/dt/bin/dtimsstart -env -shell ksh"
-
-        if [[ -x "${DTIMS_CMD%% *}" ]]; then
-
-          # execute DTIMS_CMD and 'eval' its output
-          Log "$DTIMS_SCRIPT: \"${DTIMS_CMD%% *}\" started."
-          eval ` $DTIMS_CMD `
-
-          #  set CDE_IMS_PID to 0 (IMS started, but its pid is unknown.)
-          CDE_IMS_PID=0
-        else
-          Log "$DTIMS_SCRIPT: \"${DTIMS_CMD%% *}\" not found."
-        fi
-
-        unset DTIMS_CMD DTIMS_SCRIPT
-        ;;
-    esac
-    unset DTSTARTIMS
-
-  fi
-
-fi
-
-##########################         eof       #####################
diff --git a/cde/programs/dtimsstart/0020.dtims.src b/cde/programs/dtimsstart/0020.dtims.src
new file mode 100755 (executable)
index 0000000..9ddddad
--- /dev/null
@@ -0,0 +1,92 @@
+XCOMM !KORNSHELL
+XCOMM ####################################################################
+XCOMM ##  File:              0020.dtims
+XCOMM ##
+XCOMM ##  Default Location:  /usr/dt/config/Xsession.d/
+XCOMM ##
+XCOMM ##  Purpose:           Start desktop input method server if required
+XCOMM ##
+XCOMM ##  Description:
+XCOMM ##                     This script is invoked by means of the Xsession file
+XCOMM ##                     at user login. It starts an input method server as
+XCOMM ##                     required for selected locales.
+XCOMM ##
+XCOMM ##  Invoked by:        /usr/dt/bin/Xsession
+XCOMM ##
+XCOMM ##  Product:           @(#)Common Desktop Environment 1.0
+XCOMM ##
+XCOMM ##  Note:
+XCOMM ##
+XCOMM ##    The /usr/dt/config/Xsession.d/0020.dtims file is a
+XCOMM ##    factory-default file and will be unconditionally overwritten upon
+XCOMM ##    subsequent installation. To customize input method server startup
+XCOMM ##    behavior, copy this file to the configuration directory,
+XCOMM ##    /etc/dt/config/Xsession.d and customize that version
+XCOMM ##    of the file.
+XCOMM ##
+XCOMM ##    The value of DTSTARTIMS determines whether this file,
+XCOMM ##    /usr/dt/config/Xsession.d/0020.dtims, will start
+XCOMM ##    the specified input method server. Should an input method server
+XCOMM ##    be started from /etc/dt/config/Xsession.d/0020.dtims
+XCOMM ##    or should an input method server not be desired, unset DTSTARTIMS
+XCOMM ##    to prevent this file from starting one.
+XCOMM ##
+XCOMM ##    The general logic of this file is:
+XCOMM ##
+XCOMM ##    if [ "$DTSTARTIMS" = "True" ]
+XCOMM ##    then
+XCOMM ##      <start input method server>
+XCOMM ##      unset DTSTARTIMS
+XCOMM ##    fi
+XCOMM ##
+XCOMM ##  Revision:          $XConsortium: 0020.dtims /main/2 1996/07/18 14:23:41 drk $
+XCOMM ##
+XCOMM ##  (c) Copyright 1993, 1994 Hewlett-Packard Company
+XCOMM ##  (c) Copyright 1993, 1994 International Business Machines Corp.
+XCOMM ##  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
+XCOMM ##  (c) Copyright 1993, 1994 Novell, Inc.
+XCOMM ##
+XCOMM ####################################################################
+#define HASH #
+
+if [ "$DTSTARTIMS" = "True" ]
+then
+
+XCOMM
+XCOMM Start HP platform IM (Input Method) server for Asian locales.
+XCOMM
+
+  if [[ -z "${CDE_IMS_PID:-}" ]]
+  then
+
+    case "$LANG" in
+      ja_JP*    | japanese*     | \
+      ko_KR*    | korean*       | \
+      zh_TW*    | chinese-t*    | \
+      zh_CN*    | chinese-s*    )
+
+        DTIMS_SCRIPT=0020.dtims
+        DTIMS_CMD="/usr/dt/bin/dtimsstart -env -shell ksh"
+
+        if [[ -x "${DTIMS_CMD%% *}" ]]; then
+
+          HASH execute DTIMS_CMD and 'eval' its output
+          Log "$DTIMS_SCRIPT: \"${DTIMS_CMD%% *}\" started."
+          eval ` $DTIMS_CMD `
+
+          HASH  set CDE_IMS_PID to 0 (IMS started, but its pid is unknown.)
+          CDE_IMS_PID=0
+        else
+          Log "$DTIMS_SCRIPT: \"${DTIMS_CMD%% *}\" not found."
+        fi
+
+        unset DTIMS_CMD DTIMS_SCRIPT
+        ;;
+    esac
+    unset DTSTARTIMS
+
+  fi
+
+fi
+
+XCOMM #########################         eof       #####################
index 5b571c0877c95af26149d4e23763a64987a56f1e..a299def68a555ce6db98545878df964fbb8c84a5 100644 (file)
@@ -25,6 +25,13 @@ EXTRA_CCOPTIONS = -xF
 EXTRA_DEFINES = -DANSICPP
 #endif /* RsArchitecture */
 
+CPP_TARGETS = 0020.dtims
+AllTarget($(CPP_TARGETS))
+
+LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
+                    -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+                   -DKORNSHELL=$(KORNSHELL)
+
 PROGRAMS=dtimsstart 
 
 SRCS = action.c        env.c           file.c \
@@ -36,3 +43,5 @@ OBJS =        action.o        env.o           file.o \
        start.o         util.o          win.o
 
 ComplexProgramTarget($(PROGRAMS))
+
+CppSourceFile(0020.dtims,0020.dtims.src,$(LOCAL_CPP_DEFINES),)
index f87fefd23fc53192d538a9f97a9057c4acf507da..7aa7aea03a099d8053930c58ec5bb68813b2aff1 100644 (file)
@@ -113,6 +113,10 @@ XCOMM   *  Local local@console /usr/bin/X11/X :0
    :0  Local local@console /usr/bin/X11/X :0
 #elif defined (linux)
    :0  Local local_uid@tty1 root /usr/bin/X :0 
+#elif defined (__OpenBSD__)
+   :0   Local local@console /usr/X11R6/bin/X :0
+#elif defined (__FreeBSD__)
+   :0   Local local@console /usr/local/bin/X :0
 #else
    *   Local local@console /usr/bin/X11/X :0
 #endif
index fc62821fa19c3e51a3e41a2526bf9d23e223de9b..6504d839d4f0df693ba76c8082f24a691fad6e1c 100644 (file)
@@ -79,6 +79,22 @@ XCOMM ##########################################################################
 #  define cpp_HELLO "$DT_BINPATH/dthello -file /usr/dt/copyright &"
 #endif
 
+#ifdef __FreeBSD__
+#  define cpp_MAIL "/var/mail/$USER"
+#  define cpp_XINITUSER "$HOME/.xinitrc"
+#  define cpp_XDMSYS "/usr/local/lib/X11/xdm/Xsession"
+#  undef cpp_HELLO
+#  define cpp_HELLO "$DT_BINPATH/dthello -file /usr/dt/copyright &"
+#endif
+
+#ifdef __OpenBSD__
+#  define cpp_MAIL "/var/mail/$USER"
+#  define cpp_XINITUSER "$HOME/.xinitrc"
+#  define cpp_XDMSYS "/etc/X11/xdm/Xsession"
+#  undef cpp_HELLO
+#  define cpp_HELLO "$DT_BINPATH/dthello -file /usr/dt/copyright &"
+#endif
+
 
 #if 0
 /*
index 953dd961e752fac31f5d0bb2b45a837478d63810..3060ad85d38d5e4f941f8c042af2348cd9fc6a88 100644 (file)
@@ -56,8 +56,12 @@ fi
 
 #ifdef sun
   XDIR=/usr/openwin/bin
-#elif defined(CSRG_BASED) || defined(linux)
+#elif defined(linux)
   XDIR=/usr/bin
+#elif defined(__OpenBSD__)
+  XDIR=/usr/X11R6/bin
+#elif defined(__FreeBSD__)
+  XDIR=/usr/local/bin
 #else
   XDIR=/usr/bin/X11
 #endif
index f3766d30699aba674af9a9de13d7b71941855d8b..15af0bad260f8bd46221a1cf36514c145000ef58 100644 (file)
@@ -57,8 +57,16 @@ if [ "$DTXSERVERLOCATION" = "local" ]
 then
   if [[ ! -z "$ITE" && "$ITE" != "??" && -a "/dev/$ITE" ]]
   then
+#if defined (__OpenBSD__)
+        /sbin/chown $USER /dev/$ITE
+        /bin/chgrp $USER_GID /dev/$ITE
+#elif defined (__FreeBSD__)
+        /usr/sbin/chown $USER /dev/$ITE
+        /usr/bin/chgrp $USER_GID /dev/$ITE
+#else
         /bin/chown $USER /dev/$ITE
         /bin/chgrp $USER_GID  /dev/$ITE
+#endif
   fi
 fi
 
index afcd362f4114ec190c6d0b6b8fc6e6f42dec95cc..f29685a0b3fc3166e08fed16cdd77798d08e6046 100644 (file)
@@ -1,4 +1,4 @@
-XCOMM!/bin/ksh
+XCOMM !KORNSHELL
 XCOMM ####################################################################
 XCOMM ##  File:              0010.dtpaths
 XCOMM ##
index 509966cd9cc6f951f18eaac6a5c0e9231e98cdde..a2472e3b81f3aff18e4414616ace47d0008ba11c 100644 (file)
@@ -1,4 +1,4 @@
-XCOMM!/bin/ksh
+XCOMM !KORNSHELL
 XCOMM ####################################################################
 XCOMM ##  File:              0030.dttmpdir
 XCOMM ##
index e116f4d46cd59d5ac880416388873c685e5eec7d..331e3091f4e2d3ab0890226f38175cd91ed6547c 100644 (file)
@@ -12,7 +12,8 @@ CPP_TARGETS = 0010.dtpaths 0030.dttmpdir
 AllTarget($(CPP_TARGETS))
 
 LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-                    -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
+                    -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
+                    -DKORNSHELL=$(KORNSHELL)
 
 CppSourceFile(0010.dtpaths,0010.dtpaths.src,$(LOCAL_CPP_DEFINES),)
 CppSourceFile(0030.dttmpdir,0030.dttmpdir.src,$(LOCAL_CPP_DEFINES),)