[Slackbuilds-users] postfix version 3.2.4

Konrad J Hambrick kjhambrick at gmail.com
Sat Nov 18 22:20:34 UTC 2017


All --

I too use the SBo postfix.SlackBuild via a wrapper script ( attached ) so
that I am consistent with my opptions.

In addition, the postfix.SlackBuild wrapper script includes a reminder so I
'do it right' each time.

Sorry if I gave the impression that I wanted to change the SBo
postfix.SlaokBuild to the Slackware Current SlackBuild.

I didn't mean to imply that :)

-- kjh

On Sat, Nov 18, 2017 at 11:37 AM, Rich Shepard <rshepard at appl-ecosys.com>
wrote:

> On Sat, 18 Nov 2017, Rob McGee wrote:
>
> Note that Slackware's Postfix slackbuild differs from the SBo build in
>> important ways. Most importantly it discards the *.new files, instead
>> using Postfix's own "postfix upgrade-configuration" command to more
>> intelligently add new configuration items and failsafe overrides of
>> default settings.
>>
>
> I would recommend using the build in -current.
>>
>
> Rob,
>
>   I've been using the SBo script for years, and upgrade when Wietse sends a
> notice of a new release. I'm running 14.2, not current, and specify Cyrus
> on
> the SlackBuild command line because that works and I had issues getting
> dovecot to work. And I need to be careful about not overwriting files with
> new ones, but looking for changes to make manually.
>
>   Should I copy the build script from -current and replace the SBo script
> for future upgrades? I'm already running 3.2.4 here.
>
> Thanks,
>
> Rich
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20171118/27443fcf/attachment.html>
-------------- next part --------------
#!/bin/sh

DoName="postfix.SlackBuild"

. ./postfix.info

MyVersion="$VERSION"

LogNam="$DoName-$MyVersion.log"

unset PRGNAM
unset VERSION
unset HOMEPAGE
unset DOWNLOAD
unset MD5SUM
unset DOWNLOAD_x86_64
unset MD5SUM_x86_64
unset REQUIRES
unset MAINTAINER
unset EMAIL
#
# set and export any extra variables here
#
export SASL=cyrus
export DATABASE=pgsql
#
# the README is  here
#
# Postfix is Wietse Venema's mailer that started life as an alternative to the
# widely-used Sendmail program. It attempts to be fast, easy to administer, and
# secure, while at the same time, being sendmail compatible enough to not upset
# existing users. Thus, the outside has a sendmail-ish flavor, but the inside is
# completely different.
# 
# This script builds postfix with optional support for Dovecot SASL, Cyrus SASL
# can be enabled with:
# 
#   SASL=cyrus ./postfix.SlackBuild
# 
# You can also enable support for MySQL:
# 
#   DATABASE=mysql ./postfix.SlackBuild
# 
# PostgreSQL support can be enabled with:
# 
#   DATABASE=pgsql ./postfix.SlackBuild
# 
# On systems with multiple instances, add major version, eg: DATABASE=pgsql-9.5
# 
# This script will find support for BerkleyDB and PCRE automagically; TLS support
# requires openssl package, openssl-solibs alone is not enough. Additionally, this
# script doesn't add postfix user and groups, instead it offers sane defaults that
# won't conflict with system users and groups, and other scripts from the SBo.
# 
# Package created with this script will conflict with stock sendmail package, you
# *should* remove sendmail before installing postfix, otherwise sendmail updates
# could break your postfix instance.
# 
# When upgrading from an older postfix version, make sure the variables such as
# html_directory and readme_directory in /etc/postfix/main.cf point to the new
# location. These can also be fixed later, afterwards make sure to run:
# 
#   postfix set-permissions
# 
# Furthermore, many of the utilities in postfix have multiple manpages such as
# postconf(5) and postconf(8). Use man -k to find them, and don't forget to
# subscribe to the postfix-users mailing list!
#
# the README is there
#
# do the deed
#
echo "$DoName startup  at `date`"                        |tee    $LogNam
./$DoName 2>&1                                           |tee -a $LogNam
RetCode=$?

UpPkg="# cannot find the new postfix package in /tmp/ ... RetCode = $RetCode"
MvPkg="$UpPkg"

if [ "$RetCode" = "0" ]
then

   MyPkg="`ls -1t /tmp/postfix-$MyVersion-*.tgz |head -1`"
   RetCode=${PIPESTATUS[0]}

   if [ "$MyPkg" = "" -o "$RetCode" != "0" ] 
   then
      UpPkg="# could not find /tmp/postfix-$MyVersion-*.tgz ... RetCode = $RetCode"
      MvPkg="$UpPkg"
   else
      UpPkg="upgradepkg $MyPkg"
      MvPkg="mv $MyPkg ../pkg/"
   fi
else
   
   UpPkg="# $DoName FAILED ... RetCode = $RetCode"
   MvPkg="$UpPkg"

fi
#
# postfix set-permissions will fail because I've got an old main.cf and 
# because my main.cf points at symlink /usr/doc/postfix and because the
# symlink points at the old version.  Set a reminder for myself here !
#
cat <<FixME_Tag >&2
###########################################################################
###                             REMINDER                                ###
###########################################################################
#
# be sure to stop postfix before upgradepkg:
#
/etc/rc.d/rc.postfix stop
#
# NOW it is safe to upgradepkg 
#
$UpPkg
#
# now fix your /usr/doc/postfix symlink like this:
#
rm -f /usr/doc/postfix  && ln -s /usr/doc/postfix-$MyVersion /usr/doc/postfix
#
# and rerun postfix set-permissions:
#
/usr/sbin/postfix set-permissions
#
# finally, restart postfix 
#
/etc/rc.d/rc.postfix start
#
# and save the package:
#
$MvPkg

FixME_Tag
#
# log your results
#
echo "$DoName complete at `date` ... RetCode = $RetCode" |tee -a $LogNam
exit $RetCode


More information about the SlackBuilds-users mailing list