Correction of paths for BSDs

This commit is contained in:
Ulrich Wilkens
2012-08-30 02:12:16 +02:00
committed by Jon Trulson
parent ca9da25d44
commit 3a28782409
13 changed files with 147 additions and 96 deletions

View 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

View 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
/*

View 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

View 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