aboutsummaryrefslogtreecommitdiffstats
path: root/security/openssl
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2014-07-04 00:49:37 +0800
committerdinoex <dinoex@FreeBSD.org>2014-07-04 00:49:37 +0800
commit3c44ef84dcac7748d9e02f0f414d7c91ac82f073 (patch)
tree9a169795a576cc25939a50822cf2671948a51d75 /security/openssl
parent7490100d3c4b2fb6e7e868f43a841b7fd804336a (diff)
downloadfreebsd-ports-gnome-3c44ef84dcac7748d9e02f0f414d7c91ac82f073.tar.gz
freebsd-ports-gnome-3c44ef84dcac7748d9e02f0f414d7c91ac82f073.tar.zst
freebsd-ports-gnome-3c44ef84dcac7748d9e02f0f414d7c91ac82f073.zip
- allow OPENSSLDIR be changed in /etc/make.conf or Makefile.local
Diffstat (limited to 'security/openssl')
-rw-r--r--security/openssl/Makefile4
-rw-r--r--security/openssl/pkg-plist24
2 files changed, 15 insertions, 13 deletions
diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index 4b620d8e7f8d..702a8adb6977 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -56,7 +56,6 @@ USE_PERL5= build
MAKE_ARGS+= WHOLE_ARCHIVE_FLAG=--whole-archive
MAKE_ENV+= LIBRPATH="${PREFIX}/lib" GREP_OPTIONS=
SUB_FILES= pkg-message
-OPENSSLDIR= ${PREFIX}/openssl
FIX_POD=apps/cms.pod \
apps/smime.pod \
@@ -84,6 +83,9 @@ FIX_POD=apps/cms.pod \
IGNORE= OpenSSL can not be installed over the base version
.endif
+OPENSSLDIR?= ${PREFIX}/openssl
+PLIST_SUB+= OPENSSLDIR=${OPENSSLDIR:S=^${PREFIX}/==}
+
OPENSSL_BASE_SONAME!= readlink ${DESTDIR}/usr/lib/libcrypto.so || true
OPENSSL_SHLIBVER_BASE= ${OPENSSL_BASE_SONAME:E}
OPENSSL_BASE_SOPATH= ${OPENSSL_BASE_SONAME:H}
diff --git a/security/openssl/pkg-plist b/security/openssl/pkg-plist
index 37757d82ffc3..31ed0aca6624 100644
--- a/security/openssl/pkg-plist
+++ b/security/openssl/pkg-plist
@@ -1323,18 +1323,18 @@ man/man3/x509.3.gz
man/man5/config.5.gz
man/man5/x509v3_config.5.gz
man/man7/des_modes.7.gz
-openssl/misc/CA.pl
-openssl/misc/CA.sh
-openssl/misc/c_hash
-openssl/misc/c_info
-openssl/misc/c_issuer
-openssl/misc/c_name
-openssl/misc/tsget
-openssl/openssl.cnf.sample
+%%OPENSSLDIR%%/misc/CA.pl
+%%OPENSSLDIR%%/misc/CA.sh
+%%OPENSSLDIR%%/misc/c_hash
+%%OPENSSLDIR%%/misc/c_info
+%%OPENSSLDIR%%/misc/c_issuer
+%%OPENSSLDIR%%/misc/c_name
+%%OPENSSLDIR%%/misc/tsget
+%%OPENSSLDIR%%/openssl.cnf.sample
%%PORTDOCS%%%%DOCSDIR%%/openssl.txt
@dirrm include/openssl
-@dirrmtry openssl/certs
-@dirrm openssl/misc
-@dirrmtry openssl/private
-@dirrm openssl
+@dirrmtry %%OPENSSLDIR%%/certs
+@dirrm %%OPENSSLDIR%%/misc
+@dirrmtry %%OPENSSLDIR%%/private
+@dirrm %%OPENSSLDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%