diff options
author | kris <kris@FreeBSD.org> | 2000-02-22 06:30:12 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-02-22 06:30:12 +0000 |
commit | 26bdf08585c59f557caab19ef99fcf1e5a34fc57 (patch) | |
tree | 42685547cf565872239804d508ac7c3f1b5e6aba | |
parent | bc60d204a7eaf94846dec806204b7d5aa19317b5 (diff) | |
download | FreeBSD-ports-26bdf08585c59f557caab19ef99fcf1e5a34fc57.zip FreeBSD-ports-26bdf08585c59f557caab19ef99fcf1e5a34fc57.tar.gz |
USE_OPENSSL
Submitted by: Jim Bloom <bloom@acm.org>
-rw-r--r-- | mail/zmailer/Makefile | 14 | ||||
-rw-r--r-- | mail/zmailer/files/patch-ab | 41 |
2 files changed, 50 insertions, 5 deletions
diff --git a/mail/zmailer/Makefile b/mail/zmailer/Makefile index f771e6f..9467eb4 100644 --- a/mail/zmailer/Makefile +++ b/mail/zmailer/Makefile @@ -13,7 +13,17 @@ MASTER_SITES= ftp://ftp.funet.fi/pub/unix/mail/zmailer/src/ MAINTAINER= veers@disturbed.net GNU_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX}/ \ + +.if defined(USE_SSL) +USE_OPENSSL= RSA +CONFIGURE_ARGS= --with-openssl +.else +CONFIGURE_ARGS= --without-openssl +.endif + +.include <bsd.port.pre.mk> + +CONFIGURE_ARGS+= --prefix=${PREFIX}/ \ --with-bundled-libresolv \ --with-mailbin=${PREFIX}/sbin \ --with-mailbox=/var/mail \ @@ -108,4 +118,4 @@ replace: ${LN} -s ${PREFIX}/sbin/rmail /bin/rmail; \ fi -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/mail/zmailer/files/patch-ab b/mail/zmailer/files/patch-ab index 96afbca..6f90502 100644 --- a/mail/zmailer/files/patch-ab +++ b/mail/zmailer/files/patch-ab @@ -1,6 +1,15 @@ ---- configure Mon Jul 19 15:59:43 1999 -+++ configure Mon Jul 19 15:59:57 1999 -@@ -4661,7 +4661,7 @@ +--- configure.orig Mon Jul 19 03:48:10 1999 ++++ configure Thu Feb 17 19:10:58 2000 +@@ -94,6 +94,8 @@ + --with-getpwnam-library=\"-L.. -l..\" + Linking options for non-std getpwnam() libraries" + ac_help="$ac_help ++ --with-openssl Use openssl" ++ac_help="$ac_help + --with-openssl-prefix=/dir/path (defines both include and lib)" + ac_help="$ac_help + --with-openssl-include=/dir/incl/path" +@@ -4661,7 +4663,7 @@ done if test "$ac_cv_header_security_pam_appl_h" = "yes"; then @@ -9,3 +18,29 @@ else if test "$ac_cv_header_shadow_h" = "yes"; then AUTHLIB="-lshadow" +@@ -7847,6 +7849,9 @@ + + + ++# Check whether we are using openssl. ++if test "x$with_openssl" != xno; then ++ + # Check whether --with-openssl-prefix or --without-openssl-prefix was given. + if test "${with_openssl_prefix+set}" = set; then + withval="$with_openssl_prefix" +@@ -7929,12 +7934,13 @@ + OPENSSLPREFIX="/usr" + OPENSSLINCL="" + if test -f "$OPENSSLPREFIX/lib/libssl.so" ; then +- OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.so $OPENSSLPREFIX/lib/libcrypto.so" ++ OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.so $OPENSSLPREFIX/lib/libcrypto.so \$(EXTRA_SSL_LIBS)" + else +- OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a" ++ OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a \$(EXTRA_SSL_LIBS)" + fi + echo "$ac_t""You have OpenSSL version 0.9.3a (or newer) at system root!" 1>&6 + fi ++fi + fi + + |