Lines 23-31
Link Here
|
23 |
SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ |
23 |
SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ |
24 |
SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ |
24 |
SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ |
25 |
SASLKRB "If your SASL requires Kerberos select this option" "$status_SASLKRB" \ |
25 |
SASLKRB "If your SASL requires Kerberos select this option" "$status_SASLKRB" \ |
26 |
TLS "SSL and TLS (BROKEN)" "$status_TLS" \ |
26 |
SASLKRB5 "If your SASL requires Kerberos5 select this option" "$status_SASLKRB5" \ |
27 |
IPv6 "IPv6 support (BROKEN)" "$status_IPv6" \ |
27 |
TLS "SSL and TLS" "$status_TLS" \ |
28 |
IPv6TLS "IPv6 support with SSL and TLS (BROKEN)" "$status_IPv6TLS" \ |
|
|
29 |
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ |
28 |
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ |
30 |
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \ |
29 |
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \ |
31 |
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \ |
30 |
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \ |
Lines 62-70
Link Here
|
62 |
|
61 |
|
63 |
echo "PREFIX= ${PREFIX}" |
62 |
echo "PREFIX= ${PREFIX}" |
64 |
|
63 |
|
65 |
SUB_TLS="@comment " |
|
|
66 |
SUB_TEST="@comment " |
64 |
SUB_TEST="@comment " |
67 |
SUB_IPV6="@comment " |
|
|
68 |
|
65 |
|
69 |
while [ "$1" ]; do |
66 |
while [ "$1" ]; do |
70 |
case $1 in |
67 |
case $1 in |
Lines 104-119
Link Here
|
104 |
SASLKRB) |
101 |
SASLKRB) |
105 |
echo "POSTFIX_AUXLIBS+= -lkrb -lcrypto -lcom_err" |
102 |
echo "POSTFIX_AUXLIBS+= -lkrb -lcrypto -lcom_err" |
106 |
;; |
103 |
;; |
|
|
104 |
SASLKRB5) |
105 |
echo "POSTFIX_AUXLIBS+= -lkrb5 -lcrypto -lcrypt -lcom_err -lasn1 -lroken" |
106 |
;; |
107 |
TLS) |
107 |
TLS) |
108 |
echo "MAN8+= tlsmgr.8" |
|
|
109 |
echo "USE_OPENSSL= yes" |
108 |
echo "USE_OPENSSL= yes" |
110 |
echo "POSTFIX_CCARGS+= -DHAS_SSL -I\${OPENSSLINC}" |
109 |
echo "POSTFIX_CCARGS+= -DUSE_TLS -I\${OPENSSLINC}" |
111 |
echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} -lssl -lcrypto" |
110 |
echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} -lssl -lcrypto" |
112 |
echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.19-2.2-20040919-0.9.7d.tar.gz" |
|
|
113 |
echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.19-2.2-20040919-0.9.7d/pfixtls.diff" |
114 |
echo "PATCH_STRIP= -p1" |
115 |
echo "TLS_SUFFIX= +tls" |
111 |
echo "TLS_SUFFIX= +tls" |
116 |
SUB_TLS="" |
|
|
117 |
;; |
112 |
;; |
118 |
DB3) |
113 |
DB3) |
119 |
if [ "X$BDB_SELECTED" != "X" ]; then |
114 |
if [ "X$BDB_SELECTED" != "X" ]; then |
Lines 205-241
Link Here
|
205 |
# echo "MAN1+= smtp-sink.1 smtp-source.1 qmqp-sink.1 qmqp-source.1" |
200 |
# echo "MAN1+= smtp-sink.1 smtp-source.1 qmqp-sink.1 qmqp-source.1" |
206 |
SUB_TEST="" |
201 |
SUB_TEST="" |
207 |
;; |
202 |
;; |
208 |
IPv6) |
|
|
209 |
if [ X$SUB_TLS = "X" ]; then |
210 |
/usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr |
211 |
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc |
212 |
exit 1 |
213 |
fi |
214 |
echo "PATCH_SITES+= http://www.ipnet6.org/postfix/download/" |
215 |
echo "PATCHFILES+= ipv6-1.25-pf-2.2-20040616.patch.gz" |
216 |
echo "PATCH_DIST_STRIP= -p1" |
217 |
echo "IPv6_SUFFIX= +ipv6" |
218 |
echo "" |
219 |
IPv6SELECTED=YES |
220 |
SUB_IPV6="" |
221 |
;; |
222 |
IPv6TLS) |
223 |
if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then |
224 |
/usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr |
225 |
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc |
226 |
exit 1 |
227 |
fi |
228 |
echo "MAN8+= tlsmgr.8" |
229 |
echo "USE_OPENSSL= yes" |
230 |
echo "POSTFIX_CCARGS+= -DHAS_SSL -I\${OPENSSLINC}" |
231 |
echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} -lssl -lcrypto" |
232 |
echo "PATCH_SITES+= http://www.ipnet6.org/postfix/download/" |
233 |
echo "PATCHFILES+= tls+ipv6-1.25-pf-2.2-20040616.patch.gz" |
234 |
echo "PATCH_DIST_STRIP= -p1" |
235 |
echo "TLS_SUFFIX= +tls+ipv6" |
236 |
SUB_TLS="" |
237 |
SUB_IPV6="" |
238 |
;; |
239 |
*) |
203 |
*) |
240 |
echo "Unknown option(s): $*" > /dev/stderr |
204 |
echo "Unknown option(s): $*" > /dev/stderr |
241 |
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc |
205 |
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc |
Lines 245-256
Link Here
|
245 |
shift |
209 |
shift |
246 |
done |
210 |
done |
247 |
|
211 |
|
248 |
echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" |
|
|
249 |
echo "PLIST_SUB+= SUB_TEST=\"${SUB_TEST}\"" |
212 |
echo "PLIST_SUB+= SUB_TEST=\"${SUB_TEST}\"" |
250 |
echo "PLIST_SUB+= SUB_IPV6=\"${SUB_IPV6}\"" |
|
|
251 |
|
213 |
|
252 |
# for some reason, if we alter the pkg name this way, the first build (where |
214 |
# for some reason, if we alter the pkg name this way, the first build (where |
253 |
# we ask the configure questions) doesn't pick up the extensions, but |
215 |
# we ask the configure questions) doesn't pick up the extensions, but |
254 |
# any subsequent build will. so "make; make install" will build twice. |
216 |
# any subsequent build will. so "make; make install" will build twice. |
255 |
# don't do this for now. |
217 |
# don't do this for now. |
256 |
#echo "PKGNAMESUFFIX= \${NOPCRE_SUFFIX}\${SASL_SUFFIX}\${DB_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${IPv6_SUFFIX}\${NIS_SUFFIX}" |
218 |
#echo "PKGNAMESUFFIX= \${NOPCRE_SUFFIX}\${SASL_SUFFIX}\${DB_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${NIS_SUFFIX}" |