Update to pld patches and integrate koan patch
This commit is contained in:
101
doc/old/Makefile
101
doc/old/Makefile
@@ -1,101 +0,0 @@
|
||||
# Makefile mars_nwe: 10-Feb-96
|
||||
|
||||
VPATH=
|
||||
|
||||
.EXPORT_ALL_VARIABLES:
|
||||
# defaults, can be overwritten in mk.li
|
||||
V_VPATH=..
|
||||
OBJDIR=obj
|
||||
|
||||
all: rmeflag mk.li config.h nw.ini
|
||||
@if [ -r .eflag ] ; then \
|
||||
echo ""; \
|
||||
echo "********************************************************"; \
|
||||
cat .eflag; rm -f .eflag; \
|
||||
echo "";\
|
||||
echo "Please make your changes and run make again"; \
|
||||
echo "********************************************************"; \
|
||||
echo "";\
|
||||
echo ""; else ./mk.li && (\
|
||||
if [ -r .mk.notes ] ; then echo "" ; \
|
||||
echo ""; \
|
||||
echo "********************************************************" ; \
|
||||
echo ""; \
|
||||
cat .mk.notes; rm -f .mk.notes ; \
|
||||
echo ""; \
|
||||
echo "********************************************************" ; \
|
||||
echo ""; echo "" ; fi ) fi
|
||||
|
||||
routed:
|
||||
./mk.li $@
|
||||
|
||||
install:
|
||||
./mk.li $@
|
||||
|
||||
reboot:
|
||||
./mk.li $@
|
||||
|
||||
|
||||
install_ini: nw.ini
|
||||
./mk.li $@
|
||||
|
||||
clean: mk.li nw.ini
|
||||
./mk.li $@
|
||||
rm -f .mk.notes
|
||||
rm -f .eflag
|
||||
|
||||
distrib: mk.li nw.ini
|
||||
./mk.li $@
|
||||
|
||||
distrib_bin: mk.li nw.ini
|
||||
./mk.li $@
|
||||
|
||||
bintgz:
|
||||
./mk.li $@
|
||||
|
||||
diff:
|
||||
./mk.li $@
|
||||
|
||||
showconf:
|
||||
./mk.li -s $@
|
||||
|
||||
mk.li: examples/mk.li
|
||||
@if [ -r $@ ] ; then \
|
||||
cp -f $@ $@.org && ( \
|
||||
echo "********************************************************"; \
|
||||
echo "";\
|
||||
echo "saved: $@ -> $@.org, there is a new examples/$@"; \
|
||||
echo "";\
|
||||
echo "********************************************************"; \
|
||||
echo "" ) ; fi
|
||||
@ echo ""
|
||||
@ echo ""
|
||||
@- cp -i examples/$@ .
|
||||
@ touch -c $@
|
||||
@ echo ""
|
||||
@ echo "********************************************************"
|
||||
@ echo ""
|
||||
@ echo "perhaps $@ is new and you need to edit it."
|
||||
@ echo ""
|
||||
@ echo "********************************************************"
|
||||
@ echo ""
|
||||
@ echo "" > .eflag
|
||||
|
||||
config.h: examples/config.h
|
||||
@if [ -r $@ ] ; then echo "note:examples/$@ is newer then $@" >> .eflag ;\
|
||||
echo "$@ will be touched now" >> .eflag; touch -c $@ ; \
|
||||
else cp examples/$@ . ; \
|
||||
echo "$@ created (from examples/$@) Please edit $@" >> .eflag;\
|
||||
echo "and change it to your requirements." >> .eflag ; fi
|
||||
|
||||
rmeflag:
|
||||
@- rm -f .eflag
|
||||
|
||||
nw.ini: examples/nw.ini
|
||||
@rm -f .mk.notes
|
||||
@if [ -r $@ ] ; then echo "NOTE:examples/$@ is newer then $@" > .mk.notes ; \
|
||||
echo "please compare examples/$@ with $@" >> .mk.notes; \
|
||||
echo "make the changes you need and touch $@" >> .mk.notes; \
|
||||
else cp examples/$@ . ; \
|
||||
echo "$@ created (from examples/$@) Please edit $@" > .mk.notes;\
|
||||
echo "and change it to your requirements." >> .mk.notes ; fi
|
||||
@@ -11,10 +11,10 @@
|
||||
# define PATHNAME_PROGS "." /* where to find the executables */
|
||||
# define PATHNAME_BINDERY "." /* directory for bindery-files */
|
||||
#else
|
||||
# define FILENAME_NW_INI "/etc/nwserv.conf"
|
||||
# define FILENAME_NW_INI "/etc/nwserv/nwserv.conf"
|
||||
/* full name of ini (conf) file */
|
||||
# define PATHNAME_PROGS "/usr/sbin" /* where to find the executables */
|
||||
# define PATHNAME_BINDERY "/var/nwserv/db" /* directory for bindery-files */
|
||||
# define PATHNAME_BINDERY "/var/lib/nwserv/bindery" /* directory for bindery-files */
|
||||
#endif
|
||||
|
||||
#define PATHNAME_PIDFILES "/var/run" /* directory for 'pidfiles' */
|
||||
@@ -82,7 +82,7 @@
|
||||
/* <--------------- next is for linux only ----------------------------> */
|
||||
#define INTERNAL_RIP_SAP 1 /* use internal/own rip/sap routines */
|
||||
|
||||
#define SHADOW_PWD 0 /* change to '1' for shadow passwds */
|
||||
#define SHADOW_PWD 1 /* change to '1' for shadow passwds */
|
||||
#define QUOTA_SUPPORT 0 /* change to '1' for quota support */
|
||||
|
||||
/* for sending 'Request being serviced' replys, /lenz */
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
make unxcomm && mv unxcomm /u3/pipes/.
|
||||
143
doc/old/mk.li
143
doc/old/mk.li
@@ -1,143 +0,0 @@
|
||||
#!/bin/sh
|
||||
# mk.li 15-Dec-99
|
||||
# please edit this file !
|
||||
|
||||
mk()
|
||||
{
|
||||
MYBASE=`pwd`;
|
||||
ERRFILE=$TMP/`basename $MYBASE`.err;
|
||||
rm -f $ERRFILE;
|
||||
if [ $V_VPATH = '..' ] ; then
|
||||
if [ ! -d $OBJDIR ] ; then mkdir $OBJDIR; fi
|
||||
cd $OBJDIR;
|
||||
fi
|
||||
if $MAKE -f $V_VPATH/makefile.unx $@ 2>&1;then true;else kill -HUP $MK_PPID;fi | tee $ERRFILE
|
||||
if [ $V_VPATH = '..' ] ; then
|
||||
cd ..;
|
||||
fi
|
||||
if [ -f $ERRFILE ] ; then
|
||||
chmod 666 $ERRFILE
|
||||
fi
|
||||
}
|
||||
|
||||
print_error()
|
||||
{
|
||||
echo ""
|
||||
echo "The errors are also reported in '$ERRFILE'"
|
||||
echo "============================================================="
|
||||
}
|
||||
|
||||
TOLOWER='tr "[A-Z]" "[a-z]"'
|
||||
UNX=`uname -s | $TOLOWER`
|
||||
MASCHINE=`uname -m`
|
||||
MK_PPID=$$
|
||||
export MK_PPID
|
||||
|
||||
trap 'print_error; exit 1' 1
|
||||
|
||||
case $UNX in
|
||||
linux)
|
||||
V_VPATH=".."
|
||||
OBJDIR="obj"
|
||||
CC=cc
|
||||
CPP="cc -E"
|
||||
# CFLAGS="-pipe -O2 -fomit-frame-pointer"
|
||||
# problems gcc2.5.8 ^^^^^^^^^^^^^^^^^^^^^
|
||||
# CFLAGS="-pipe -Wall -Dsignal=sysv_signal"
|
||||
CFLAGS="$RPM_OPT_FLAGS -pipe -Wall -D_GNU_SOURCE"
|
||||
|
||||
case $MASCHINE in
|
||||
sparc)
|
||||
HOSTCFLAGS="-DLINUX -DSPARC"
|
||||
;;
|
||||
*)
|
||||
HOSTCFLAGS="-DLINUX"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /usr/lib/libgdbm.a ] || [ -f /usr/lib/libgdbm.so ] ; then
|
||||
NDBMLIB="-lgdbm"
|
||||
else
|
||||
NDBMLIB="-ldbm"
|
||||
fi
|
||||
|
||||
if [ -f /usr/lib/libcrypt.so ] ; then
|
||||
CRYPTLIB="-lcrypt"
|
||||
else
|
||||
CRYPTLIB=""
|
||||
fi
|
||||
|
||||
if [ -f /usr/include/sys/quota.h ] ; then
|
||||
HOSTCFLAGS="$HOSTCFLAGS -DQTAINSYS"
|
||||
fi
|
||||
|
||||
NSLLIB=""
|
||||
MAKE=make
|
||||
TMP=/tmp
|
||||
INSTALL=install
|
||||
;;
|
||||
########### SYSV (UnixWare) ##############
|
||||
unix_sv)
|
||||
V_VPATH="."
|
||||
OBJDIR="."
|
||||
CC=cc
|
||||
CPP="cc -E"
|
||||
CFLAGS=
|
||||
HOSTCFLAGS=""
|
||||
NDBMLIB="/usr/ucblib/libucb.a"
|
||||
CRYPTLIB="-lgen"
|
||||
NSLLIB="-lnsl"
|
||||
MAKE=make
|
||||
TMP=/tmp
|
||||
INSTALL=/usr/ucb/install
|
||||
;;
|
||||
|
||||
########## FreeBSD ############
|
||||
# created by Boris Popov
|
||||
freebsd)
|
||||
V_VPATH=".."
|
||||
OBJDIR="obj"
|
||||
CC=gcc
|
||||
CPP="gcc -E"
|
||||
if [ "x$CFLAGS" = "x" ]; then
|
||||
CFLAGS="native"
|
||||
fi
|
||||
|
||||
HOSTCFLAGS="-DFREEBSD -DLINUX"
|
||||
|
||||
CRYPTLIB="-lcrypt -lipx"
|
||||
|
||||
NSLLIB=""
|
||||
MAKE=make
|
||||
TMP="./"
|
||||
INSTALL="install -c"
|
||||
;;
|
||||
|
||||
*) echo "mk.li: Unknown or not supported OS, probably you must set \$UNX"
|
||||
;;
|
||||
esac
|
||||
|
||||
## BEGIN try to pass around what the dbm is to the compiler (acli 19970709)
|
||||
case "$NDBMLIB" in
|
||||
*gdbm*)
|
||||
HOSTCFLAGS="$HOSTCFLAGS -DUSE_GDBM"
|
||||
;;
|
||||
esac
|
||||
## END
|
||||
|
||||
|
||||
export CC
|
||||
export CPP
|
||||
if [ "X$CFLAGS" != "Xnative" ]; then
|
||||
export CFLAGS
|
||||
fi
|
||||
export HOSTCFLAGS
|
||||
export NDBMLIB
|
||||
export CRYPTLIB
|
||||
export NSLLIB
|
||||
export TMP
|
||||
export INSTALL
|
||||
export V_VPATH
|
||||
export OBJDIR
|
||||
|
||||
mk $@
|
||||
@@ -158,9 +158,10 @@
|
||||
# 1 PRIVAT ~/privat kO 700 600
|
||||
# 1 WORLD /var/world kiO 777 666
|
||||
# 1 FAXQ /var/spool/fax/faxqueue k
|
||||
|
||||
1 SYS /u3/SYS/ kt 711 600
|
||||
|
||||
1 SYS /var/lib/nwserv/sys kt -1
|
||||
1 PIPE /var/lib/nwserv/pipe kp
|
||||
1 CDROM /mnt/cdrom kmnor
|
||||
1 HOME ~ k -1
|
||||
|
||||
# =========================================================================
|
||||
# Section 2: servername (optional)
|
||||
@@ -310,7 +311,7 @@
|
||||
|
||||
|
||||
4 0x22 eth0 ethernet_ii 1
|
||||
4 0x0 * AUTO 1
|
||||
# 4 0x0 * AUTO 1
|
||||
|
||||
# Section 5: special device flags
|
||||
# =========================================================================
|
||||
@@ -465,7 +466,7 @@
|
||||
# Volumes depended values can be set in section 1.
|
||||
# 9 -1 0640
|
||||
#
|
||||
9 0751 0640
|
||||
9 0755 0664
|
||||
|
||||
# Section 10: UID and GID with minimal rights
|
||||
# =========================================================================
|
||||
@@ -499,8 +500,8 @@
|
||||
# 10 65534
|
||||
# 11 65534
|
||||
|
||||
10 65534
|
||||
11 65534
|
||||
10 99
|
||||
11 99
|
||||
|
||||
|
||||
# =========================================================================
|
||||
@@ -549,7 +550,7 @@
|
||||
# Example:
|
||||
# 12 SUPERVISOR nw-adm top-secret
|
||||
|
||||
12 SUPERVISOR root
|
||||
12 SUPERVISOR root top-secret
|
||||
|
||||
|
||||
# =========================================================================
|
||||
@@ -632,6 +633,8 @@
|
||||
|
||||
15 0 top-secret
|
||||
|
||||
13 GUEST nobody - 0x1
|
||||
|
||||
|
||||
# =========================================================================
|
||||
# Section 16: Tests on startup
|
||||
@@ -715,9 +718,8 @@
|
||||
# 21 OCTOPUSS
|
||||
# 21 FAXPRINT - /usr/bin/psfaxprn /var/spool/fax/faxqueue
|
||||
# -------------------------------------------------------------------------
|
||||
21 LP - lpr -
|
||||
#21 LP_PS
|
||||
|
||||
21 LP SYS:/PRINT/LP lpr
|
||||
21 LP_PS
|
||||
|
||||
|
||||
# =========================================================================
|
||||
@@ -735,7 +737,7 @@
|
||||
# Examples:
|
||||
# 22 PS1 OCTOPUSS
|
||||
|
||||
#22 PS_NWE LP_PS 1
|
||||
22 PS_NWE LP_PS 1
|
||||
|
||||
|
||||
# =========================================================================
|
||||
@@ -769,11 +771,11 @@
|
||||
#
|
||||
#
|
||||
# 45 = path for bindery file's
|
||||
45 /var/nwserv/db
|
||||
45 /var/lib/nwserv/bindery
|
||||
# 46 = path for attribute handling
|
||||
46 /var/nwserv/attrib
|
||||
46 /var/lib/nwserv/attrib
|
||||
# 47 = path for trustee handling
|
||||
47 /var/nwserv/trustees
|
||||
47 /var/lib/nwserv/trustees
|
||||
# =========================================================================
|
||||
# Section 50: Conversion tables by Victor Khimenko <khim@mccme.ru>
|
||||
# Tables for DOS->Unix names translation & upper/lowercase translations
|
||||
@@ -791,6 +793,7 @@
|
||||
# Examples:
|
||||
# 50 /etc/nwserv.cnv
|
||||
|
||||
50 /etc/nwserv/nwserv.cnv
|
||||
|
||||
# Changing defaults from config.h
|
||||
# more information in config.h
|
||||
@@ -835,7 +838,7 @@
|
||||
#201 syslog # if filename == syslog then syslogd will be used for
|
||||
# all messages
|
||||
|
||||
202 0x1 # flag in hex notation
|
||||
202 0x0 # flag in hex notation
|
||||
# 0x0=append all messages to logfile.
|
||||
# & 0x1=creat new logfile instead of appending.
|
||||
#202 0x3 # & 0x2=use syslogd for error messages instead of logfile.
|
||||
@@ -845,7 +848,7 @@
|
||||
|
||||
# Sections 210,211: timing
|
||||
|
||||
210 10 # 1 .. 600 (default 10) seconds after server
|
||||
210 5 # 1 .. 600 (default 10) seconds after server
|
||||
# really goes down after a down command
|
||||
211 60 # 10 .. 600 (default 60) broadcasts every x seconds
|
||||
|
||||
@@ -856,7 +859,7 @@
|
||||
# ( normally minutes )
|
||||
301 /var/log/nw.routes # filename of logfile
|
||||
|
||||
302 0x1 # flags will be interpreted as hex value.
|
||||
302 0x0 # flags will be interpreted as hex value.
|
||||
# 0 = append to this file
|
||||
# & 0x1 = creat new routing info file
|
||||
# & 0x2 = split info into several files
|
||||
@@ -870,7 +873,7 @@
|
||||
# Section 400:
|
||||
# station file for special handling of stations.
|
||||
|
||||
400 /etc/nwserv.stations # for syntax see file in the examples directory.
|
||||
400 /etc/nwserv/nwserv.stations # for syntax see file in the examples directory.
|
||||
|
||||
|
||||
# Section 401: nearest server
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
yesno()
|
||||
{
|
||||
echo ""
|
||||
echo $@
|
||||
while true; do
|
||||
echo "please answer with (Y)es or (N)o and <Return>."
|
||||
read X
|
||||
case "$X" in
|
||||
('y'|'Y')
|
||||
return 0
|
||||
;;
|
||||
('n'|'N')
|
||||
return 1
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
COMMAND=$1
|
||||
shift
|
||||
|
||||
case "$COMMAND" in
|
||||
'yesno')
|
||||
if yesno $@ ; then exit 0; fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user