Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/net
In directory usw-pr-cvs1:/tmp/cvs-serv31244

Added Files:
        postfix-20020822-11.info postfix-20020822-11.patch 
        postfix-release-1.1.11-13.info postfix-release-1.1.11-13.patch 
Removed Files:
        postfix-20020718-11.info postfix-20020718-11.patch 
        postfix-release-1.1.11-12.info postfix-release-1.1.11-12.patch 
Log Message:
New versions


--- NEW FILE: postfix-20020822-11.info ---
Package: postfix
Version: 20020822
Revision: 11
Depends: passwd (>= 20011202-1), daemonic (>= 20010902-1), db3-shlibs (>= 3.3.11-8), 
pcre-shlibs
BuildDepends: db3 (>= 3.3.11-8), pcre, gawk
Conflicts: postfix-release
Replaces: postfix-release
Source: mirror:custom:experimental/%n-1.1.11-%v.tar.gz
CustomMirror: <<
 Primary:       ftp://ftp.porcupine.org/mirrors/postfix-release/
 asi-CN:        ftp://postfix.linuxaid.com.cn/pub/postfix/
 asi-JP:        ftp://ftp.ixp.jp/postfix/
 asi-TW:        ftp://ftp.nctu.edu.tw/Network/postfix/
 aus-AU:        ftp://ftp.planetmirror.com/pub/postfix/
 eur-BE:        ftp://ftp.easynet.be/postfix/
 eur-CZ:        ftp://ftp.its.cz/MIRRORS/ftp.porcupine.org/mirrors/postfix-release/
 eur-DK:        ftp://ftp.jaquet.dk/mirror/ftp.porcupine.org/
 eur-DK:        ftp://ftp.kummefryser.dk/pub/mirrors/postfix/postfix-release/
 eur-FI:        http://postfixftp.eunet.fi/
 eur-FR:        ftp://postfix.eu.org/pub/postfix/
 eur-FR:        ftp://ftp.oav.net/postfix/
 eur-FR:        ftp://ftp.grolier.fr/pub/mirrors/ftp.porcupine.org/postfix-release/
 eur-DE:        ftp://ftp.cs.tu-berlin.de/pub/net/mail/postfix/
 eur-DE:        ftp://ftp.pca.dfn.de/pub/tools/net/postfix/
 eur-RU:        ftp://ftp.virtualhosts.ru/postfix/
 eur-TR:        ftp://ftp.ulak.net.tr/pub/postfix/
 nam-CA:        ftp://ftp.styx.org/pub/postfix/
 nam-US:        http://www.GCFL.net/postfix-download/
 nam-US:        ftp://ftp.usmatrix.net/pub/postfix/
 sam-BR:        ftp://ftp.matrix.com.br/pub/postfix/
 sam-BR:        ftp://ftp.pangeia.com.br/pub/postfix/
<<
Source-MD5: 1a82f18a9ce23dc7c6d29d7023281067
UpdateConfigGuess: false
UpdateLibtool: false
PatchScript: sed -e 's:@FINKPREFIX@:%p:g' %a/%f.patch | patch -p1
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
GCC: 3.1
CompileScript: <<
 make makefiles CCARGS='-I%p/include -DHAS_PCRE -DDEF_CONFIG_DIR=\"%p/etc/postfix\"' 
AUXLIBS='-L%p/lib -ldb -lpcre'
 make
<<
InstallScript: <<
 sh postfix-install -non-interactive install_root="%d" 
config_directory="%p/etc/postfix" daemon_directory="%p/lib/postfix" 
command_directory="%p/sbin" queue_directory="%p/var/spool/postfix" 
sendmail_path="%p/sbin/sendmail" newaliases_path="%p/bin/newaliases" 
mailq_path="%p/bin/mailq" mail_owner="postfix" setgid_group="maildrop" 
manpage_directory="%p/share/man" sample_directory="%p/share/doc/postfix/examples" 
readme_directory="%p/share/doc/postfix"
 install -m0755 mta-switch %i/sbin/mta-switch
<<
ConfFiles: <<
 %p/etc/postfix/main.cf
 %p/etc/postfix/master.cf
<<
DaemonicName: postfix
DaemonicFile: <<
 <service>
  <description>Postfix Mail Transfer Agent</description>
  <message>Postfix</message>
  
  <daemon name="postfix">
   <executable checkexit="true">%p/sbin/postfix</executable>
   <parameters>start</parameters>
   <configfile>%p/etc/postfix/main.cf</configfile>
  </daemon>
 </service>
<<
PostInstScript: <<
 %p/etc/postfix/post-install upgrade-package
<<
PreRmScript: <<
 if [ $1 != "upgrade" ]; then
   daemonic remove postfix
   echo "Stopping postfix..."
   %p/sbin/postfix stop >& /dev/null || true
   yes 'n' | mta-switch sendmail
 fi
<<
Description: Mail transfer agent that's fast and secure
DescDetail: <<
Postfix is a mail transfer agent designed to be fast, secure, and easy to
configure. It is meant to be Sendmail compatible so that it does not cause
problems for existing Sendmail users who want to make the switch to
another MTA.

This is an experimental release of Postfix, not an official release. The
Postfix web site explains the differences: "New features are tested in
experimental releases. They become part of the next official release once
the code has not changed for a significant amount of time. Although this
code is still subject to change, it runs on all of Wietse's systems so it
is production quality."
<<
DescUsage: <<
You need to do a few things to set Postfix up before you can use it:

 1) Edit /sw/etc/postfix/main.cf. In particular, edit myorigin,
    mydestination and mynetworks in that file. The file is well commented.
 
 2) Edit the aliases in NetInfo so that root and postmaster redirect mail
    to a real, live person. To do that, run:
    
    sudo niutil -createprop . /aliases/root members youremail
    
    Where youremail is a valid email address. If you check your mail on
    this computer, you can just use your user name. Otherwise, you will
    probably want to use your regular email address.
 
 3) Run 'sudo mta-switch postfix' to move the old sendmail out of the way
    and place symlinks to postfix in its place. You may need to do this
    after upgrades of Mac OS X from Apple.
 
 4) Run 'sudo daemonic enable postfix'. This will create a Postfix startup
    item, but it won't actually start Postfix. To do that, you can run
    'sudo postfix start'.

Removing postfix via Fink will automatically disable it and re-enable
sendmail.
<<
DescPackaging: <<
Adds startup item via daemonic, and an mta-switch shell script. Uses the
postfix user and group, and the maildrop group from the passwd package.

Thanks to Graham Orndorff and Stepwise for the excellent HOWTO on getting
Postfix running on OS X!
http://www.stepwise.com/Articles/Workbench/eart.1.2.html

10.2 tree - bumped version due to db3 dependency.
<<
License: OSI-Approved
Homepage: http://www.postfix.org/
Maintainer: Daniel Parks <[EMAIL PROTECTED]>


--- NEW FILE: postfix-20020822-11.patch ---
diff -ruN postfix-1.1.11-20020602.orig/conf/post-install 
postfix-1.1.11-20020602/conf/post-install
--- postfix-1.1.11-20020602.orig/conf/post-install      2002-04-17 16:09:26.000000000 
-0700
+++ postfix-1.1.11-20020602/conf/post-install   2002-06-09 12:39:50.000000000 -0700
@@ -183,7 +183,7 @@
 
 umask 022
 
-PATH=/bin:/usr/bin:/usr/sbin:/usr/etc:/sbin:/etc:/usr/contrib/bin:/usr/gnu/bin:/usr/ucb:/usr/bsd
+PATH=@FINKPREFIX@/bin:@FINKPREFIX@/sbin:/bin:/usr/bin:/usr/sbin:/usr/etc:/sbin:/etc:/usr/contrib/bin:/usr/gnu/bin:/usr/ucb:/usr/bsd
 SHELL=/bin/sh
 IFS="  
 "
diff -ruN postfix-1.1.11-20020602.orig/mta-switch postfix-1.1.11-20020602/mta-switch
--- postfix-1.1.11-20020602.orig/mta-switch     1969-12-31 16:00:00.000000000 -0800
+++ postfix-1.1.11-20020602/mta-switch  2002-06-09 11:39:31.000000000 -0700
@@ -0,0 +1,148 @@
+#!/bin/sh
+
+# Moves /usr/sbin/sendmail out of the way for postfix install
+
+PREFIX="@FINKPREFIX@"
+
+function sendmailPointsToPostfix () {
+       if [ -L /usr/sbin/sendmail -a "`/bin/ls -l /usr/sbin/sendmail | sed -e 's|.* 
+-> \(.*\)$|\1|'`x" == "${PREFIX}/sbin/sendmailx" ] ; then
+               return 0
+       else
+               return 1
+       fi
+}
+
+case "$1" in 
+       install|setup|enable|activate|start|postfix)
+               echo -n 'Checking if we need to move /usr/sbin/sendmail out of the 
+way... '
+               
+               if sendmailPointsToPostfix ; then
+                       echo 'no.'
+                       echo 'Postfix is already in place.'
+               else
+                       echo 'yes.'
+                       
+                       if [ -f /usr/sbin/sendmail.old ] ; then
+                               echo -n '/usr/sbin/sendmail.old already exists. What 
+would like to overwrite it [yN]? '
+                               
+                               read ANS
+                               case "$ANS" in
+                                       y*|Y*)  rm -f /usr/sbin/sendmail.old || exit 1 
+;;
+                                       *)              echo '/usr/sbin/sendmail.old 
+in the way. Failed.' ; exit 1 ;;
+                               esac
+                       fi
+                       
+                       echo
+                       echo 'Backing up the old sendmail to /usr/bin/sendmail.old.'
+                       mv /usr/sbin/sendmail /usr/sbin/sendmail.old || exit 1
+                       echo "Putting a link to Postfix's sendmail in its place."
+                       ln -s "${PREFIX}/sbin/sendmail" /usr/sbin/sendmail || exit 1
+                       echo 'Succeeded.'
+                       echo
+                       
+                       if [ "x$2" == "x-n" ] ; then
+                               echo 'Leaving /etc/hostconfig intact.'
+                               exit;
+                       fi
+                       
+                       echo 'Now we will take a crack at /etc/hostconfig.'
+                       if grep '^[[:space:]]*MAILSERVER=-YES-' /etc/hostconfig > 
+/dev/null ; then
+                               #if [ -f /etc/hostconfig.old ] ; then
+                               #       COUNTER=1
+                               #       while [ -f /etc/hostconfig.old${COUNTER} ] ; do
+                               #               COUNTER=`expr $COUNTER + 1` || exit 1
+                               #       done
+                               #else
+                                       COUNTER=""
+                               #fi
+                               
+                               echo "Backing up /etc/hostconfig to 
+/etc/hostconfig.old${COUNTER}."
+                               cp -p /etc/hostconfig /etc/hostconfig.old${COUNTER} || 
+exit 1
+                               echo 'Turning off the default sendmail in 
+/etc/hosconfig.'
+                               sed -e 
+'s/^\([[:space:]]*\)MAILSERVER=-YES-/\1MAILSERVER=-NO-/i' 
+/etc/hostconfig.old${COUNTER} > /etc/hostconfig || exit 1
+                               echo 'Succeeded.'
+                       else
+                               echo '/etc/hostconfig already has sendmail disabled.'
+                       fi
+               fi
+               ;;
+       
+       stop|remove|uninstall|delete|rm|disable|sendmail)
+               echo -n 'Checking if /usr/sbin/sendmail points to postfix... '
+               
+               if sendmailPointsToPostfix ; then
+                       echo 'yes.'
+                       
+                       if [ ! -f /usr/sbin/sendmail.old ] ; then
+                               echo '/usr/sbin/sendmail.old does not exist; cannot 
+restore sendmail.'
+                               exit 1;
+                       fi
+                       
+                       echo
+                       echo 'Replacing /usr/sbin/sendmail with sendmail.old'
+                       mv /usr/sbin/sendmail.old /usr/sbin/sendmail || exit 1
+                       echo 'Succeeded.'
+                       echo
+                       
+                       if [ "x$2" == "x-n" ] ; then
+                               echo 'Leaving /etc/hostconfig intact.'
+                               exit;
+                       fi
+                       
+                       echo 'Now we will take a crack at /etc/hostconfig.'
+                       if grep '^[[:space:]]*MAILSERVER=-YES-' /etc/hostconfig > 
+/dev/null ; then
+                               echo 'Sendmail is already enabled in /etc/hostconfig.'
+                       else
+                               #if [ -f /etc/hostconfig.old ] ; then
+                               #       COUNTER=1
+                               #       while [ -f /etc/hostconfig.old${COUNTER} ] ; do
+                               #               COUNTER=`expr $COUNTER + 1` || exit 1
+                               #       done
+                               #else
+                                       COUNTER=""
+                               #fi
+                               
+                               echo "Backing up /etc/hostconfig to 
+/etc/hostconfig.old${COUNTER}."
+                               cp -p /etc/hostconfig /etc/hostconfig.old${COUNTER} || 
+exit 1
+                               
+                               if ! grep '^[[:space:]]*MAILSERVER=' /etc/hostconfig > 
+/dev/null ; then
+                                       echo '/etc/hostconfig does not include a 
+MAILSERVER= line.'
+                                       echo -n 'Would you like to add one[Yn]? '
+                                       
+                                       ANS='?';
+                                       while [ $ANS == '?' ] ; do
+                                               read ANS
+                                               case "$ANS" in
+                                                       y*|Y*)
+                                                               echo 
+'MAILSERVER=-YES-' >> /etc/hostconfig || exit 1
+                                                       ;;
+                                                       
+                                                       n*|N*)
+                                                               echo 'Leaving 
+/etc/hostconfig as it is, removing backup.'
+                                                               rm 
+/etc/hostconfig.old${COUTNER} || exit 1
+                                                       ;;
+                                                       
+                                                       *)
+                                                               ANS='?'
+                                                       ;;
+                                               esac
+                                       done
+                               else
+                                       echo 'Turning on the default sendmail in 
+/etc/hosconfig.'
+                                       sed -e 
+'s/^\([[:space:]]*\)MAILSERVER=-NO-/\1MAILSERVER=-YES-/i' 
+/etc/hostconfig.old${COUNTER} > /etc/hostconfig || exit 1
+                                       echo 'Succeeded.'
+                               fi
+                       fi
+               else
+                       echo 'no.'
+                       echo 'Not making any changes.'
+               fi
+               ;;
+       
+       *)      echo 'mta-switch -- Switches between postfix and sendmail'
+               echo 'usage: mta-switch {postfix|sendmail} [-n]'
+               echo '    -n turns off modifcation of /etc/hostconfig'
+               exit 1
+               ;;
+esac
+
diff -ruN postfix-1.1.11-20020602.orig/src/util/sys_defs.h 
postfix-1.1.11-20020602/src/util/sys_defs.h
--- postfix-1.1.11-20020602.orig/src/util/sys_defs.h    2002-04-15 14:56:08.000000000 
-0700
+++ postfix-1.1.11-20020602/src/util/sys_defs.h 2002-06-09 12:34:59.000000000 -0700
@@ -88,10 +88,10 @@
 #define HAS_FSYNC
 #define HAS_DB
 #define HAS_SA_LEN
-#define DEF_DB_TYPE    "hash"
-#define ALIAS_DB_MAP   "hash:/etc/aliases"
+#define DEF_DB_TYPE    "db"
+#define ALIAS_DB_MAP   "netinfo:/aliases"
 #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
-#define ROOT_PATH      "/bin:/usr/bin:/sbin:/usr/sbin"
+#define ROOT_PATH      
+"@FINKPREFIX@/bin:@FINKPREFIX@/sbin:/bin:/usr/bin:/sbin:/usr/sbin"
 #define USE_STATFS
 #define STATFS_IN_SYS_MOUNT_H
 #define HAS_POSIX_REGEXP

--- NEW FILE: postfix-release-1.1.11-13.info ---
Package: postfix-release
Version: 1.1.11
Revision: 13
Depends: passwd (>= 20011202-1), daemonic (>= 20010902-1), db3-shlibs (>= 3.3.11-8), 
pcre-shlibs
BuildDepends: db3 (>= 3.3.11-8), pcre, gawk
Conflicts: postfix
Replaces: postfix
Source: mirror:custom:official/postfix-%v.tar.gz
CustomMirror: <<
 Primary:       ftp://ftp.porcupine.org/mirrors/postfix-release/
 asi-CN:        ftp://postfix.linuxaid.com.cn/pub/postfix/
 asi-JP:        ftp://ftp.ixp.jp/postfix/
 asi-TW:        ftp://ftp.nctu.edu.tw/Network/postfix/
 aus-AU:        ftp://ftp.planetmirror.com/pub/postfix/
 eur-BE:        ftp://ftp.easynet.be/postfix/
 eur-CZ:        ftp://ftp.its.cz/MIRRORS/ftp.porcupine.org/mirrors/postfix-release/
 eur-DK:        ftp://ftp.jaquet.dk/mirror/ftp.porcupine.org/
 eur-DK:        ftp://ftp.kummefryser.dk/pub/mirrors/postfix/postfix-release/
 eur-FI:        http://postfixftp.eunet.fi/
 eur-FR:        ftp://postfix.eu.org/pub/postfix/
 eur-FR:        ftp://ftp.oav.net/postfix/
 eur-FR:        ftp://ftp.grolier.fr/pub/mirrors/ftp.porcupine.org/postfix-release/
 eur-DE:        ftp://ftp.cs.tu-berlin.de/pub/net/mail/postfix/
 eur-DE:        ftp://ftp.pca.dfn.de/pub/tools/net/postfix/
 eur-RU:        ftp://ftp.virtualhosts.ru/postfix/
 eur-TR:        ftp://ftp.ulak.net.tr/pub/postfix/
 nam-CA:        ftp://ftp.styx.org/pub/postfix/
 nam-US:        http://www.GCFL.net/postfix-download/
 nam-US:        ftp://ftp.usmatrix.net/pub/postfix/
 sam-BR:        ftp://ftp.matrix.com.br/pub/postfix/
 sam-BR:        ftp://ftp.pangeia.com.br/pub/postfix/
<<
Source-MD5: b34bb2b5018327c19456a77814141208
UpdateConfigGuess: false
UpdateLibtool: false
PatchScript: sed -e 's:@FINKPREFIX@:%p:g' %a/%f.patch | patch -p1
NoSetCPPFLAGS: true
NoSetLDFLAGS: true
GCC: 3.1
CompileScript: <<
 make makefiles CCARGS='-I%p/include -DHAS_PCRE 
-DDEF_CONFIG_DIR=\\\"%p/etc/postfix\\\"' AUXLIBS='-L%p/lib -ldb -lpcre'
 make
<<
InstallScript: <<
 sh postfix-install -non-interactive install_root="%d" 
config_directory="%p/etc/postfix" daemon_directory="%p/lib/postfix" 
command_directory="%p/sbin" queue_directory="%p/var/spool/postfix" 
sendmail_path="%p/sbin/sendmail" newaliases_path="%p/bin/newaliases" 
mailq_path="%p/bin/mailq" mail_owner="postfix" setgid_group="maildrop" 
manpage_directory="%p/share/man" sample_directory="%p/share/doc/postfix/examples" 
readme_directory="%p/share/doc/postfix"
 install -m0755 mta-switch %i/sbin/mta-switch
<<
ConfFiles: <<
 %p/etc/postfix/main.cf
 %p/etc/postfix/master.cf
<<
DaemonicName: postfix
DaemonicFile: <<
 <service>
  <description>Postfix Mail Transfer Agent</description>
  <message>Postfix</message>
  
  <daemon name="postfix">
   <executable checkexit="true">%p/sbin/postfix</executable>
   <parameters>start</parameters>
   <configfile>%p/etc/postfix/main.cf</configfile>
  </daemon>
 </service>
<<
PostInstScript: <<
 %p/etc/postfix/post-install upgrade-package
<<
PreRmScript: <<
 if [ $1 != "upgrade" ]; then
   daemonic remove postfix
   echo "Stopping postfix..."
   %p/sbin/postfix stop >& /dev/null || true
   yes 'n' | mta-switch sendmail
 fi
<<
Description: Mail transfer agent that's fast and secure
DescDetail: <<
Postfix is a mail transfer agent designed to be fast, secure, and easy to
configure. It is meant to be Sendmail compatible so that it does not cause
problems for existing Sendmail users who want to make the switch to
another MTA.

This is an official release of Postfix. According to the Postfix web site:
"Official releases do not change except for bugfixes and for portability
fixes. New features are tested out in experimental releases..."
<<
DescUsage: <<
You need to do a few things to set Postfix up before you can use it:

 1) Edit /sw/etc/postfix/main.cf. In particular, edit myorigin,
    mydestination and mynetworks in that file. The file is well commented.
 
 2) Edit the aliases in NetInfo so that root and postmaster redirect mail
    to a real, live person. To do that, run:
    
    sudo niutil -createprop . /aliases/root members youremail
    
    Where youremail is a valid email address. If you check your mail on
    this computer, you can just use your user name. Otherwise, you will
    probably want to use your regular email address.
 
 3) Run 'sudo mta-switch postfix' to move the old sendmail out of the way
    and place symlinks to postfix in its place. You may need to do this
    after upgrades of Mac OS X from Apple.
 
 4) Run 'sudo daemonic enable postfix'. This will create a Postfix startup
    item, but it won't actually start Postfix. To do that, you can run
    'sudo postfix start'.

Removing postfix via Fink will automatically disable it and re-enable
sendmail.
<<
DescPackaging: <<
Adds startup item via daemonic, and an mta-switch shell script. Uses the
postfix user and group, and the maildrop group from the passwd package.

Thanks to Graham Orndorff and Stepwise for the excellent HOWTO on getting
Postfix running on OS X!
http://www.stepwise.com/Articles/Workbench/eart.1.2.html
<<
License: OSI-Approved
Homepage: http://www.postfix.org/
Maintainer: Daniel Parks <[EMAIL PROTECTED]>


--- NEW FILE: postfix-release-1.1.11-13.patch ---
diff -ruN postfix-1.1.11-20020602.orig/conf/post-install 
postfix-1.1.11-20020602/conf/post-install
--- postfix-1.1.11-20020602.orig/conf/post-install      2002-04-17 16:09:26.000000000 
-0700
+++ postfix-1.1.11-20020602/conf/post-install   2002-06-09 12:39:50.000000000 -0700
@@ -183,7 +183,7 @@
 
 umask 022
 
-PATH=/bin:/usr/bin:/usr/sbin:/usr/etc:/sbin:/etc:/usr/contrib/bin:/usr/gnu/bin:/usr/ucb:/usr/bsd
+PATH=@FINKPREFIX@/bin:@FINKPREFIX@/sbin:/bin:/usr/bin:/usr/sbin:/usr/etc:/sbin:/etc:/usr/contrib/bin:/usr/gnu/bin:/usr/ucb:/usr/bsd
 SHELL=/bin/sh
 IFS="  
 "
diff -ruN postfix-1.1.11-20020602.orig/mta-switch postfix-1.1.11-20020602/mta-switch
--- postfix-1.1.11-20020602.orig/mta-switch     1969-12-31 16:00:00.000000000 -0800
+++ postfix-1.1.11-20020602/mta-switch  2002-06-09 11:39:31.000000000 -0700
@@ -0,0 +1,148 @@
+#!/bin/sh
+
+# Moves /usr/sbin/sendmail out of the way for postfix install
+
+PREFIX="@FINKPREFIX@"
+
+function sendmailPointsToPostfix () {
+       if [ -L /usr/sbin/sendmail -a "`/bin/ls -l /usr/sbin/sendmail | sed -e 's|.* 
+-> \(.*\)$|\1|'`x" == "${PREFIX}/sbin/sendmailx" ] ; then
+               return 0
+       else
+               return 1
+       fi
+}
+
+case "$1" in 
+       install|setup|enable|activate|start|postfix)
+               echo -n 'Checking if we need to move /usr/sbin/sendmail out of the 
+way... '
+               
+               if sendmailPointsToPostfix ; then
+                       echo 'no.'
+                       echo 'Postfix is already in place.'
+               else
+                       echo 'yes.'
+                       
+                       if [ -f /usr/sbin/sendmail.old ] ; then
+                               echo -n '/usr/sbin/sendmail.old already exists. What 
+would like to overwrite it [yN]? '
+                               
+                               read ANS
+                               case "$ANS" in
+                                       y*|Y*)  rm -f /usr/sbin/sendmail.old || exit 1 
+;;
+                                       *)              echo '/usr/sbin/sendmail.old 
+in the way. Failed.' ; exit 1 ;;
+                               esac
+                       fi
+                       
+                       echo
+                       echo 'Backing up the old sendmail to /usr/bin/sendmail.old.'
+                       mv /usr/sbin/sendmail /usr/sbin/sendmail.old || exit 1
+                       echo "Putting a link to Postfix's sendmail in its place."
+                       ln -s "${PREFIX}/sbin/sendmail" /usr/sbin/sendmail || exit 1
+                       echo 'Succeeded.'
+                       echo
+                       
+                       if [ "x$2" == "x-n" ] ; then
+                               echo 'Leaving /etc/hostconfig intact.'
+                               exit;
+                       fi
+                       
+                       echo 'Now we will take a crack at /etc/hostconfig.'
+                       if grep '^[[:space:]]*MAILSERVER=-YES-' /etc/hostconfig > 
+/dev/null ; then
+                               #if [ -f /etc/hostconfig.old ] ; then
+                               #       COUNTER=1
+                               #       while [ -f /etc/hostconfig.old${COUNTER} ] ; do
+                               #               COUNTER=`expr $COUNTER + 1` || exit 1
+                               #       done
+                               #else
+                                       COUNTER=""
+                               #fi
+                               
+                               echo "Backing up /etc/hostconfig to 
+/etc/hostconfig.old${COUNTER}."
+                               cp -p /etc/hostconfig /etc/hostconfig.old${COUNTER} || 
+exit 1
+                               echo 'Turning off the default sendmail in 
+/etc/hosconfig.'
+                               sed -e 
+'s/^\([[:space:]]*\)MAILSERVER=-YES-/\1MAILSERVER=-NO-/i' 
+/etc/hostconfig.old${COUNTER} > /etc/hostconfig || exit 1
+                               echo 'Succeeded.'
+                       else
+                               echo '/etc/hostconfig already has sendmail disabled.'
+                       fi
+               fi
+               ;;
+       
+       stop|remove|uninstall|delete|rm|disable|sendmail)
+               echo -n 'Checking if /usr/sbin/sendmail points to postfix... '
+               
+               if sendmailPointsToPostfix ; then
+                       echo 'yes.'
+                       
+                       if [ ! -f /usr/sbin/sendmail.old ] ; then
+                               echo '/usr/sbin/sendmail.old does not exist; cannot 
+restore sendmail.'
+                               exit 1;
+                       fi
+                       
+                       echo
+                       echo 'Replacing /usr/sbin/sendmail with sendmail.old'
+                       mv /usr/sbin/sendmail.old /usr/sbin/sendmail || exit 1
+                       echo 'Succeeded.'
+                       echo
+                       
+                       if [ "x$2" == "x-n" ] ; then
+                               echo 'Leaving /etc/hostconfig intact.'
+                               exit;
+                       fi
+                       
+                       echo 'Now we will take a crack at /etc/hostconfig.'
+                       if grep '^[[:space:]]*MAILSERVER=-YES-' /etc/hostconfig > 
+/dev/null ; then
+                               echo 'Sendmail is already enabled in /etc/hostconfig.'
+                       else
+                               #if [ -f /etc/hostconfig.old ] ; then
+                               #       COUNTER=1
+                               #       while [ -f /etc/hostconfig.old${COUNTER} ] ; do
+                               #               COUNTER=`expr $COUNTER + 1` || exit 1
+                               #       done
+                               #else
+                                       COUNTER=""
+                               #fi
+                               
+                               echo "Backing up /etc/hostconfig to 
+/etc/hostconfig.old${COUNTER}."
+                               cp -p /etc/hostconfig /etc/hostconfig.old${COUNTER} || 
+exit 1
+                               
+                               if ! grep '^[[:space:]]*MAILSERVER=' /etc/hostconfig > 
+/dev/null ; then
+                                       echo '/etc/hostconfig does not include a 
+MAILSERVER= line.'
+                                       echo -n 'Would you like to add one[Yn]? '
+                                       
+                                       ANS='?';
+                                       while [ $ANS == '?' ] ; do
+                                               read ANS
+                                               case "$ANS" in
+                                                       y*|Y*)
+                                                               echo 
+'MAILSERVER=-YES-' >> /etc/hostconfig || exit 1
+                                                       ;;
+                                                       
+                                                       n*|N*)
+                                                               echo 'Leaving 
+/etc/hostconfig as it is, removing backup.'
+                                                               rm 
+/etc/hostconfig.old${COUTNER} || exit 1
+                                                       ;;
+                                                       
+                                                       *)
+                                                               ANS='?'
+                                                       ;;
+                                               esac
+                                       done
+                               else
+                                       echo 'Turning on the default sendmail in 
+/etc/hosconfig.'
+                                       sed -e 
+'s/^\([[:space:]]*\)MAILSERVER=-NO-/\1MAILSERVER=-YES-/i' 
+/etc/hostconfig.old${COUNTER} > /etc/hostconfig || exit 1
+                                       echo 'Succeeded.'
+                               fi
+                       fi
+               else
+                       echo 'no.'
+                       echo 'Not making any changes.'
+               fi
+               ;;
+       
+       *)      echo 'mta-switch -- Switches between postfix and sendmail'
+               echo 'usage: mta-switch {postfix|sendmail} [-n]'
+               echo '    -n turns off modifcation of /etc/hostconfig'
+               exit 1
+               ;;
+esac
+
diff -ruN postfix-1.1.11-20020602.orig/src/util/sys_defs.h 
postfix-1.1.11-20020602/src/util/sys_defs.h
--- postfix-1.1.11-20020602.orig/src/util/sys_defs.h    2002-04-15 14:56:08.000000000 
-0700
+++ postfix-1.1.11-20020602/src/util/sys_defs.h 2002-06-09 12:34:59.000000000 -0700
@@ -88,10 +88,10 @@
 #define HAS_FSYNC
 #define HAS_DB
 #define HAS_SA_LEN
-#define DEF_DB_TYPE    "hash"
-#define ALIAS_DB_MAP   "hash:/etc/aliases"
+#define DEF_DB_TYPE    "db"
+#define ALIAS_DB_MAP   "netinfo:/aliases"
 #define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
-#define ROOT_PATH      "/bin:/usr/bin:/sbin:/usr/sbin"
+#define ROOT_PATH      
+"@FINKPREFIX@/bin:@FINKPREFIX@/sbin:/bin:/usr/bin:/sbin:/usr/sbin"
 #define USE_STATFS
 #define STATFS_IN_SYS_MOUNT_H
 #define HAS_POSIX_REGEXP

--- postfix-20020718-11.info DELETED ---

--- postfix-20020718-11.patch DELETED ---

--- postfix-release-1.1.11-12.info DELETED ---

--- postfix-release-1.1.11-12.patch DELETED ---



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to