diff options
Diffstat (limited to 'security/openssl/Makefile')
-rw-r--r-- | security/openssl/Makefile | 52 |
1 files changed, 31 insertions, 21 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile index cca5bbc6dbfa..142ceaf4f064 100644 --- a/security/openssl/Makefile +++ b/security/openssl/Makefile @@ -6,15 +6,23 @@ # PORTNAME= openssl +.if !defined(WITHOUT_OPENSSL_097) +.if !defined(OSVERSION6) +OSVERSION6!= make OSVERSION6=0 -V OSVERSION +.endif +.if ( ${OSVERSION6} >= 600000 ) && ( ${OSVERSION6} < 600100 ) +WITH_OPENSSL_097= yes +.endif +.endif .if defined(WITH_OPENSSL_SNAPSHOT) PORTVERSION= 0.9.8 PORTREVISION!= date -v-1d +%Y%m%d .else -.if defined(WITH_OPENSSL_BETA) -PORTVERSION= 0.9.8 +.if !defined(WITH_OPENSSL_BETA) && ( defined(WITH_OPENSSL_097) || defined(WITH_OPENSSL_STABLE) ) +PORTVERSION= 0.9.7i PORTREVISION?= 0 .else -PORTVERSION= 0.9.7g +PORTVERSION= 0.9.8a PORTREVISION?= 0 .endif .endif @@ -44,20 +52,22 @@ DISTNAME2= ${PORTNAME}-${PORTVERSION} .endif .if defined(WITH_OPENSSL_BETA) || defined(WITH_OPENSSL_SNAPSHOT) -.if defined(WITH_OPENSSL_BETA) BETA_SUFFIX= -beta -CONFLICTS?= openssl-0.* -.endif -OPENSSL_SHLIBVER?= 4 +CONFLICTS?= openssl-0.* openssl-stable-0.* NO_LATEST_LINK= yes +.endif +.if defined(WITH_OPENSSL_097) || defined(WITH_OPENSSL_STABLE) +BETA_SUFFIX= -stable +PLIST_SUB+= OPENSSL_BETA="@comment " +PLIST_SUB+= OPENSSL_STABLE="" +OPENSSL_SHLIBVER?= 3 +CONFLICTS?= openssl-0.* openssl-beta-0.* +.else PATCHDIR= ${MASTERDIR}/files-beta PLIST_SUB+= OPENSSL_BETA="" PLIST_SUB+= OPENSSL_STABLE="@comment " -.else -CONFLICTS?= openssl-beta-0.* -OPENSSL_SHLIBVER?= 3 -PLIST_SUB+= OPENSSL_BETA="@comment " -PLIST_SUB+= OPENSSL_STABLE="" +OPENSSL_SHLIBVER?= 4 +CONFLICTS?= openssl-beta-0.* openssl-stable-0.* .endif MAKE_ENV+= MANPREFIX=${MANPREFIX} @@ -860,12 +870,12 @@ MLINKS= dgst.1 md4.1 \ ui_compat.3 des_read_pw_string.3 \ des_modes.7 Modes_of_DES.7 -.if defined(WITH_OPENSSL_BETA) || defined(WITH_OPENSSL_SNAPSHOT) +.if !defined(WITH_OPENSSL_097) && !defined(WITH_OPENSSL_STABLE) MAN1+= ec.1 ecparam.1 MAN3+= ASN1_generate_nconf.3 BN_BLINDING_new.3 ERR_set_mark.3 \ ecdsa.3 OPENSSL_Applink.3 OPENSSL_ia32cap.3 x509.3 MAN5+= x509v3_config.5 -MLINKS+= \ +MLINKS+= \ ASN1_generate_nconf.3 ASN1_generate_v3.3 \ BN_BLINDING_new.3 BN_BLINDING_convert.3 \ BN_BLINDING_new.3 BN_BLINDING_free.3 \ @@ -936,13 +946,7 @@ do-configure: PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS} \ ./config --prefix=${PREFIX} --openssldir=${OPENSSLDIR} \ -L${PREFIX}/lib ${EXTRACONFIGURE} -.if defined(WITH_OPENSSL_BETA) - @${REINPLACE_CMD} \ - -e 's|^MANDIR=.*$$|MANDIR=$$(MANPREFIX)/man|' \ - -e 's|lib/pkgconfig|libdata/pkgconfig|g' \ - -e 's|LIBVERSION=[^ ]* |LIBVERSION=$(OPENSSL_SHLIBVER) |' \ - ${WRKSRC}/Makefile -.else +.if defined(WITH_OPENSSL_097) || defined(WITH_OPENSSL_STABLE) @${REINPLACE_CMD} \ -e 's|^FIPS_DES_ENC=|#FIPS_DES_ENC=|' \ -e 's|^FIPS_SHA1_ASM_OBJ=|#FIPS_SHA1_ASM_OBJ=|' \ @@ -950,6 +954,12 @@ do-configure: -e 's|^SHARED_LIBS_LINK_EXTS=.*$$|SHARED_LIBS_LINK_EXTS=.so|' \ -e 's|^SHLIBDIRS= fips|SHLIBDIRS=|' \ ${WRKSRC}/Makefile +.else + @${REINPLACE_CMD} \ + -e 's|^MANDIR=.*$$|MANDIR=$$(MANPREFIX)/man|' \ + -e 's|lib/pkgconfig|libdata/pkgconfig|g' \ + -e 's|LIBVERSION=[^ ]* |LIBVERSION=$(OPENSSL_SHLIBVER) |' \ + ${WRKSRC}/Makefile .endif post-install: |