diff options
author | Alex Kozlov <ak@FreeBSD.org> | 2017-04-18 15:15:06 +0000 |
---|---|---|
committer | Alex Kozlov <ak@FreeBSD.org> | 2017-04-18 15:15:06 +0000 |
commit | 48b75d7b861c6c25165760f8f5bdf1ecb2beb2ff (patch) | |
tree | 10deab438978a080be185166041c3a8110e6725d /mail/milter-bogom | |
parent | 9c6fa03c853f0a2f511dea6139cea1e46466f57a (diff) | |
download | ports-48b75d7b861c6c25165760f8f5bdf1ecb2beb2ff.tar.gz ports-48b75d7b861c6c25165760f8f5bdf1ecb2beb2ff.zip |
Notes
Diffstat (limited to 'mail/milter-bogom')
-rw-r--r-- | mail/milter-bogom/pkg-req | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/mail/milter-bogom/pkg-req b/mail/milter-bogom/pkg-req deleted file mode 100644 index d4abc3717611..000000000000 --- a/mail/milter-bogom/pkg-req +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -need_milter() { - -echo "****************************************************************" -echo "* You need at least the version 8.13 of sendmail compiled with *" -echo "* milter support enabled. *" -echo "****************************************************************" -exit 1; - -} - -# check if we are not installing -if [ "$2" != "INSTALL" ]; -then - exit 0; -fi - -# check if sendmail have the MILTER API -sendmail -d0.1 -bv root 2>&1 | grep MILTER > /dev/null - -if [ $? != 0 ]; -then - need_milter; -fi - -# Check if sendmail is at least 8.13 -sendmail -d0.1 -bv root 2>& 1 | grep Version | awk '{ if ( $2 > "8.13" )\ -exit 0; else exit 1;}' - -if [ $? != 0 ]; -then - need_milter; -fi -exit 0 |