aboutsummaryrefslogtreecommitdiffstats
path: root/mail/imap-uw/pkg-req.ssl
blob: 9290be0cd4ca60b34cf841efca8278cce4069c0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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. Wa 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 WANT_SSL). Funny thing is, your cclient"
        echo "port has SSL support installed."
        exit 0
    fi
    ;;
esac