freebsd-ports/security/drweb-sendmail/files/patch-ac
2003-06-07 09:43:39 +00:00

54 lines
1.8 KiB
Text

--- doc/sendmail/configure.orig Tue Feb 18 18:03:06 2003
+++ doc/sendmail/configure Sat Jun 7 13:29:29 2003
@@ -34,18 +34,6 @@
FILTER_CFG_NOSTD="-- ERROR ---"
FILTER_TIMEOUT="-- ERROR ---"
-# Test bash version
-
-if [ "x$BASH_VERSION" = "x" ] ; then
- echo "You should use bash (version 2.04 at least) as shell to use this script"
- exit
-fi
-echo "You current shell - bash $BASH_VERSION"
-if [ ${BASH_VERSINFO[0]} -lt 2 -o ${BASH_VERSINFO[1]} -lt 4 ] ; then
- echo "You should use version 2.04 at least to use this script"
- exit
-fi
-
# Test echo properties
(echo "12345\c" ; echo " ") > echotmp
@@ -124,14 +112,14 @@
# Read transport
POS=`$GREP -i PidFile $DAEMON_INI | $GREP -v ";"`
-if [ "x$POS" = "x" ] ; then
+if [ "x" = "x" ] ; then
echo
echo -n "Daemon pidfile not defined in ini-file ..."
- POS=`$GREP -i SocketMode $DAEMON_INI | $GREP -v ";" | $AWK '{ print match( $0, /[Tt][Cc][Pp]/ ) }'`
- if [ $POS -eq 0 ] ; then
+ POS=`$GREP -i "Socket[^a-z]" $DAEMON_INI | $GREP -v ";" | $AWK '{ print match( $0, /\// ) }'`
+ if [ $POS -ne 0 ] ; then
echo " but defined UNIX sockets"
DAEMON_MODE="local"
- DAEMON_SOCKET=`$GREP -i SocketFile $DAEMON_INI | $GREP -v ";" | $AWK '{ str = substr( $0, match( $0, /\/./ ) ); gsub( /["[:blank:]]/, "", str ); print str; }'`
+ DAEMON_SOCKET=`$GREP -i "Socket[^a-z]" $DAEMON_INI | $GREP -v ";" | $AWK '{ str = substr( $0, match( $0, /\/./ ) ); gsub( /["[:blank:]]|[[:blank:]]+[0-7]+$/, "", str ); print str; }'`
DAEMON_IP=""
DAEMON_PORT=""
DAEMON_PID=""
@@ -297,8 +285,13 @@
echo "Edit one of configuration files and try again."
exit 1
fi
+ else
+ echo "Press Enter"
+ read INPUT
fi
else
+ echo "Press Enter"
+ read INPUT
FILTER_TIMEOUT=0
fi