Index: head/mail/imap-uw/pkg-req.rev =================================================================== --- head/mail/imap-uw/pkg-req.rev (nonexistent) +++ head/mail/imap-uw/pkg-req.rev (revision 425076) @@ -0,0 +1,23 @@ +#! /bin/sh +# anders@fix.no, 2001-06-19 + +if [ ! -f "$1" ] +then + echo "Your installation of the cclient port is outdated. Please delete it before" + echo "continuing." + exit 1 +fi + +portver=`grep "^#define CCLIENT_PORTVERSION" $1 | awk '{print $3}' \ +| sed s/\"//g` + +if [ "$portver" = "$2" ] +then + echo "Your imap-uw port matches the version of your cclient port. Fine." + exit 0 +else + echo "Your cclient port (PORTVERSION $portver) does not match the version of imap-uw" + echo "(PORTVERSION $2) you are trying to install. Please delete your" + echo "installation of the cclient port before continuing." + exit 1 +fi Property changes on: head/mail/imap-uw/pkg-req.rev ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/imap-uw/pkg-req.ssl =================================================================== --- head/mail/imap-uw/pkg-req.ssl (nonexistent) +++ head/mail/imap-uw/pkg-req.ssl (revision 425076) @@ -0,0 +1,27 @@ +#! /bin/sh +# anders@fix.no, 2001-06-19 + +sslenabled=`grep "^#define CCLIENT_SSLENABLED" $1 | awk '{print $3}' \ +| sed s/\"//g` + +case $2 in +yes) + if [ "$sslenabled" = "yes" ] + then + echo "SSL check passed. We want SSL support, and cclient has it. Good." + exit 0 + else + echo "SSL check failed. We want SSL support, but cclient doesn't have it." + echo "Please recompile and reinstall the cclient port with WITH_SSL=yes set." + exit 1 + fi + ;; +*) + if [ "$sslenabled" = "yes" ] + then + echo "You did not want SSL (by not defining WITH_SSL). Funny thing is, your cclient" + echo "port has SSL support installed." + exit 0 + fi + ;; +esac Property changes on: head/mail/imap-uw/pkg-req.ssl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/milter-bogom/pkg-req =================================================================== --- head/mail/milter-bogom/pkg-req (nonexistent) +++ head/mail/milter-bogom/pkg-req (revision 425076) @@ -0,0 +1,35 @@ +#!/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 Property changes on: head/mail/milter-bogom/pkg-req ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/panda-imap/pkg-req.rev =================================================================== --- head/mail/panda-imap/pkg-req.rev (nonexistent) +++ head/mail/panda-imap/pkg-req.rev (revision 425076) @@ -0,0 +1,23 @@ +#! /bin/sh +# anders@fix.no, 2001-06-19 + +if [ ! -f "$1" ] +then + echo "Your installation of the cclient port is outdated. Please delete it before" + echo "continuing." + exit 1 +fi + +portver=`grep "^#define CCLIENT_PORTVERSION" $1 | awk '{print $3}' \ +| sed s/\"//g` + +if [ "$portver" = "$2" ] +then + echo "Your imap-uw port matches the version of your cclient port. Fine." + exit 0 +else + echo "Your cclient port (PORTVERSION $portver) does not match the version of imap-uw" + echo "(PORTVERSION $2) you are trying to install. Please delete your" + echo "installation of the cclient port before continuing." + exit 1 +fi Property changes on: head/mail/panda-imap/pkg-req.rev ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/panda-imap/pkg-req.ssl =================================================================== --- head/mail/panda-imap/pkg-req.ssl (nonexistent) +++ head/mail/panda-imap/pkg-req.ssl (revision 425076) @@ -0,0 +1,27 @@ +#! /bin/sh +# anders@fix.no, 2001-06-19 + +sslenabled=`grep "^#define CCLIENT_SSLENABLED" $1 | awk '{print $3}' \ +| sed s/\"//g` + +case $2 in +yes) + if [ "$sslenabled" = "yes" ] + then + echo "SSL check passed. We want SSL support, and cclient has it. Good." + exit 0 + else + echo "SSL check failed. We want SSL support, but cclient doesn't have it." + echo "Please recompile and reinstall the cclient port with WITH_SSL=yes set." + exit 1 + fi + ;; +*) + if [ "$sslenabled" = "yes" ] + then + echo "You did not want SSL (by not defining WITH_SSL). Funny thing is, your cclient" + echo "port has SSL support installed." + exit 0 + fi + ;; +esac Property changes on: head/mail/panda-imap/pkg-req.ssl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property