From e9a799842cac642f88920f966497370b4a621a7e Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Thu, 19 Mar 1998 14:57:20 +0000 Subject: Enable all sorts of useful security features: o XDM-AUTHORIZATION-1 is more automated for the non-USA case. o PST's KerberosIV patches are reinstated for XDM. This is NOT a full-blown KerberosIV implementation for X - this will just get you a TGT when you log in - THATS ALL! o Enable compilation of SecureRPC. The use of SecureRPC at the moment is frought with danger! I have no idea how safe or good the implementation is. Enable at your own peril!! (Secure RPC is only available for those folk using 3.0-Current). Also allow XF86Setup to use TK-8.0. OK'ed By: JMZ --- x11/XFree86/scripts/configure | 98 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 79 insertions(+), 19 deletions(-) (limited to 'x11/XFree86/scripts/configure') diff --git a/x11/XFree86/scripts/configure b/x11/XFree86/scripts/configure index fcc38caf0028..f2e61f73a8d9 100644 --- a/x11/XFree86/scripts/configure +++ b/x11/XFree86/scripts/configure @@ -21,35 +21,38 @@ rm -f $F # Tk detection tkversion= -###### only tk 4.2/tcl 7.6 is known to work -for v in 2; do - if [ -f /usr/local/lib/libtk4$v.a ]; then +for v in 42 80; do + if [ -f /usr/local/lib/libtk$v.a ]; then tkversion=$v + case $tkversion in + 42) + tclversion=76 + tclLversion=7.6 + tkLversion=4.2 + ;; + 80) + tclversion=80 + tclLversion=8.0 + tkLversion=8.0 + ;; + esac fi done if [ X$tkversion != X ]; then - echo "Using tk-4.$tkversion" + echo "Using tk-$tkLversion" echo "#define HasTk YES" >>$F echo "#define TkLibDir /usr/local/lib" >>$F - echo "#define TkIncDir /usr/local/include/tk4.$tkversion" >>$F - echo "#define TkLibName tk4$tkversion" >>$F + echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F + echo "#define TkLibName tk$tkversion" >>$F echo "#define HasTcl YES" >>$F echo "#define TclLibDir /usr/local/lib" >>$F - case $tkversion in - 1) - tclversion=5 - ;; - 2) - tclversion=6 - ;; - esac - echo "#define TclIncDir /usr/local/include/tcl7.$tclversion" >>$F - echo "#define TclLibName tcl7$tclversion" >>$F + echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F + echo "#define TclLibName tcl$tclversion" >>$F else cat <> $F fi + +cat <<'END' + + FreeBSD-3.x has support for Secure RPC. DO NOT ENABLE THIS ON FreeBSD-2.* !! + + While this scheme is not used for general purpose encryption, + some countries restrict the use of strong cryptography. + +END +yesno "Build with Secure RPC? [YES] " +if [ $answ = YES ]; then + echo "#define HasSecureRPC YES" >> $F +fi + cat <<'END' MIT supplies an authentication mechanism that relies upon DES, this is @@ -212,6 +229,43 @@ if [ $cpwh != NO ]; then echo "#define HasXdmAuth $answ" >> $F fi +cat <<'END' + + XDM can be built so that it will get a KerberosIV TGT for your users + when they log in. This requires that you have Kerberos on your system + when you do this build. + + Source code for this authentication mechanism may not be exported from + the United States, however, there are compatible replacements for this + mechanism available elsewhere. Also, while this scheme is not used for + general purpose encryption, some countries restrict the use of strong + cryptography. + + Even if you answer YES to the following question, KerberosIV support + will not be enabled if the kerberos libraries are unavailable. + +END +yesno "Do you want to enable KerberosIV support? [YES] " +cpkb=NO +if [ $answ = YES ]; then + LIBKRB=/usr/lib/libkrb.a + K4PATCH=$FILESDIR/kerberos4.diffs + K4XDM="$FILESDIR/krb4auth.c $FILESDIR/krb4auth.h" + XDMDIR=$WRKDIR/xc/programs/xdm/ + + if [ -f $LIBKRB ] ; then + echo "==> KerberosIV found in system libraries." + cpkb=YES + else + echo "==> Kerberos libraries not found on system." + echo "==> KerberosIV support NOT enabled." + cpkb=NO + fi +fi +if [ $cpkb != NO ]; then + echo "#define HasKrb4 $answ" >> $F +fi + echo echo "End of configuration questions. No more user input required" echo @@ -223,6 +277,12 @@ if [ X$cpwh != XNO ]; then cp $cpwh $WH fi -cat $F >> $WRKSRC/config/cf/xf86site.def +if [ X$cpkb != XNO ]; then + cp $K4XDM $XDMDIR + echo "===> Applying KerberosIV patches" + patch -s -d $WRKDIR/xc -E -p0 < $K4PATCH +fi + +cat $F >> $WRKDIR/xc/config/cf/xf86site.def exit 0 -- cgit v1.2.3