NetBSD port

This commit is contained in:
Ulrich Wilkens
2014-02-20 19:19:17 +01:00
committed by Jon Trulson
parent a4f9413950
commit 2712d5f787
94 changed files with 2443 additions and 302 deletions

View File

@@ -27,7 +27,7 @@ XCOMM ####################################################################
#define HASH #
#if !defined(__FreeBSD__)
#if !defined(CSRG_BASED)
HASH
HASH Source TIMEZONE
HASH

View File

@@ -59,6 +59,10 @@ XCOMM
#endif
#if defined(__FreeBSD__)
XDIR=/usr/local/bin
#elif defined(__OpenBSD__)
XDIR=/usr/X11R6/bin
#elif defined(__NetBSD__)
XDIR=/usr/X11R7/bin
#endif
$XDIR/xsetroot -default &

View File

@@ -115,6 +115,8 @@ XCOMM * Local local@console /usr/bin/X11/X :0
:0 Local local_uid@tty1 root /usr/bin/X :0
#elif defined (__OpenBSD__)
:0 Local local@console /usr/X11R6/bin/X :0
#elif defined (__NetBSD__)
:0 Local local@console /usr/X11R7/bin/X :0
#elif defined (__FreeBSD__)
:0 Local local@console /usr/local/bin/X :0
#else

View File

@@ -95,6 +95,14 @@ XCOMM ##########################################################################
# define cpp_HELLO "$DT_BINPATH/dthello -file $DT_INSTALL/copyright &"
#endif
#ifdef __NetBSD__
# 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 $DT_INSTALL/copyright &"
#endif
#if 0
/*

View File

@@ -60,6 +60,8 @@ fi
XDIR=/usr/bin
#elif defined(__OpenBSD__)
XDIR=/usr/X11R6/bin
#elif defined(__NetBSD__)
XDIR=/usr/X11R7/bin
#elif defined(__FreeBSD__)
XDIR=/usr/local/bin
#else

View File

@@ -60,7 +60,7 @@ then
#if defined (__OpenBSD__)
/sbin/chown $USER /dev/$ITE
/bin/chgrp $USER_GID /dev/$ITE
#elif defined (__FreeBSD__)
#elif defined (__FreeBSD__) || defined(__NetBSD__)
/usr/sbin/chown $USER /dev/$ITE
/usr/bin/chgrp $USER_GID /dev/$ITE
#else

View File

@@ -32,7 +32,7 @@
HASH
HASH Determine Xsession parent
HASH
#if defined (__osf__) || defined(__OpenBSD__)
#if defined (__osf__) || defined(__OpenBSD__) || defined(__NetBSD__)
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $5}')
#elif defined(USL) && (OSMAJORVERSION > 1)
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $6}')
@@ -503,6 +503,8 @@ SetKeyboardMap()
FONTLIB=/usr/local/lib/X11/fonts
#elif defined(__OpenBSD__)
FONTLIB=/usr/X11R6/lib/X11/fonts
#elif defined(__NetBSD__)
FONTLIB=/usr/X11R7/lib/X11/fonts
#endif
for i in misc 75dpi 100dpi Speedo Type1 PJE
do