Allow building on FreeBSD
- build shared libraries with major number only (libtt.so.2) - don't build dtlogin and dtinfo FreeBSD support for the installer: - work around awk issue - create post_install FreeBSD scripts - install only cmsd on /etc/inetd.conf skip dtspc and ttdbserver for now Note to users: please check if you are affected by awk bug in udbParseLib.awk if you can.
This commit is contained in:
committed by
Jon Trulson
parent
a38242a9d0
commit
421b5061a6
@@ -51,7 +51,7 @@ REVISION="$(echo "$Revision: /main/20 $" | awk '{print $2}')"
|
||||
|
||||
Log()
|
||||
{
|
||||
echo "$1" | tee -a $LOGFILE
|
||||
/bin/echo "$1" | tee -a $LOGFILE
|
||||
}
|
||||
|
||||
MakeTarball()
|
||||
@@ -210,6 +210,14 @@ CleanDaemons()
|
||||
elif [ "$PLATFORM" = openbsd ]
|
||||
then
|
||||
true
|
||||
elif [ "$PLATFORM" = freebsd ]
|
||||
then
|
||||
ps axo pid,comm | grep $i > /tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
then
|
||||
awk '{print "kill " $1}' /tmp/tmppsout | /bin/csh -f
|
||||
sleep 2
|
||||
fi
|
||||
else
|
||||
ps -ef | grep $i | grep -v grep >/tmp/tmppsout
|
||||
if [ -s /tmp/tmppsout ]
|
||||
@@ -240,6 +248,9 @@ RestartInetd()
|
||||
elif [ "$PLATFORM" = "openbsd" ]
|
||||
then
|
||||
true
|
||||
elif [ "$PLATFORM" = "freebsd" ]
|
||||
then
|
||||
/etc/rc.d/inetd onestart
|
||||
else
|
||||
#ifdef hpV4
|
||||
/usr/sbin/inetd
|
||||
@@ -543,6 +554,10 @@ XCOMM
|
||||
then
|
||||
PLATFORM="linux"
|
||||
PLATFORM_SCRIPT_DIR=""
|
||||
elif [ $BUILDSYSTEM = "FreeBSD" ];
|
||||
then
|
||||
PLATFORM="freebsd"
|
||||
PLATFORM_SCRIPT_DIR="freebsd"
|
||||
elif [ $BUILDSYSTEM = "OpenBSD" ];
|
||||
then
|
||||
PLATFORM="openbsd"
|
||||
|
||||
@@ -268,6 +268,13 @@ function tokenize() {
|
||||
printf(" ") > DeBugFile
|
||||
print "Entering function tokenize:" > DeBugFile
|
||||
}
|
||||
# Workaround for a strange awk bug, seen on FreeBSD
|
||||
# and results in .db files generated with
|
||||
# Syntax ERROR line: 10 of file: CDE-INC.udb
|
||||
# Missing initial {
|
||||
#
|
||||
DUMMY = $0
|
||||
|
||||
# Skip blank/comment lines
|
||||
while ( NF == 0 || $0 ~ /^[ ]*#/ ) {
|
||||
if ( (getline) <= 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user