[scponly] patch to get scponly 3.4 working on Solaris 8

Sven Hoexter sven at telelev.net
Fri Nov 15 09:54:02 EST 2002


Hi Joe, hi *,
now I found the time to get scponly compiling on solaris so I hope that it's
ok that I attached my patch against scponly-3.4.

The only problem where two typos and a few path problems with the
sunfreeware OpenSSH packages. The first typo was/is in the configure script
in the os detection hack where $host_os gets a little cut down to compare it.
First $host_os is cut and then safed in $temp_os but the comparison still use
$host_os. The second type is in scponly.c line 82, change #elseif to #elif.
(I've read this in a book - I'm very, very, very new to C and coding in general)
Joe: I haven't recieved any feedback from you after the first patch so I now
post it here. Maybe my mail got lost somewhere?

How to use the patch
Most of you should be familar with the patch programm for the rest in short
copy the patch into the scponly-3.4 directory and use the following command
patch -p1 < scponly-solaris.patch

Now make clean && ./configure && make

The patch should be attached and it's only for downloads from here:
http://hoaxter.telelev.net/patches/scponly-solaris.patch

So now I'm waiting for feedback if it's working, no time for further test ATM.

HTH
Sven

-- 
Apt-rpm packages for RedHat
http://www.hoaxter.de/aptrpm/index.html
Neues fuer Nerten - Stoff der der mettert
http://www.bluephod.net-------------- next part --------------
Only in scponly-3.4-sven/: Makefile
Only in scponly-3.4-sven/: config.h
Only in scponly-3.4-sven/: config.log
Only in scponly-3.4-sven/: config.status
diff -ru scponly-3.4/configure scponly-3.4-sven/configure
--- scponly-3.4/configure	2002-11-03 22:13:26.000000000 +0100
+++ scponly-3.4-sven/configure	2002-11-15 09:32:41.826414000 +0100
@@ -7,6 +7,8 @@
 # This configure script is free software; the Free Software Foundation
 # gives unlimited permission to copy, distribute and modify it.
 
+PATH="$PATH:/usr/local/bin"
+
 if expr a : '\(a\)' >/dev/null 2>&1; then
   as_expr=expr
 else
@@ -1297,12 +1299,14 @@
 
 
 # this temp_os is a brutal hack until i look into the proper way to do this. ie- rtfm
+#echo $host_os
 temp_os=`echo $host_os | cut -c-7`
-if test "$host_os" = solaris; then
+#echo "TEMP_OS is $temp_os"
+if test "$temp_os" = solaris; then
 	cat >>confdefs.h <<\_ACEOF
 #define SOLARIS_COMPAT 1
 _ACEOF
-
+#echo "Found solaris, tempos is $temp_os"
 fi
 temp_os=`echo $host_os | cut -c-4`
 if test "$temp_os" = irix;  then
@@ -2566,7 +2570,7 @@
   ;;
   *)
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in `echo "$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh" | sed -e 's/:/ /'`
+for as_dir in `echo "$PATH:/usr/lib:/usr/libexec:/usr/libexec/openssh:/usr/lib/ssh:/usr/local/libexec" | sed -e 's/:/ /'`
 do
   IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.
diff -ru scponly-3.4/scponly.c scponly-3.4-sven/scponly.c
--- scponly-3.4/scponly.c	2002-10-28 18:58:22.000000000 +0100
+++ scponly-3.4-sven/scponly.c	2002-11-15 09:29:52.496409000 +0100
@@ -78,7 +78,7 @@
 
 #ifdef SOLARIS_COMPAT 
         openlog(PACKAGE_NAME, logopts, LOG_AUTH);
-#elseif IRIX_COMPAT
+#elif IRIX_COMPAT
         openlog(PACKAGE_NAME, logopts, LOG_AUTH);
 #else
         if (debuglevel > 1) // debuglevel 1 will still log to syslog
Only in scponly-3.4-sven/: setup_chroot.sh
Only in scponly-3.4-sven/: sven-changes


More information about the scponly mailing list