summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-01-23 06:20:43 +0000
committerjlam <jlam@pkgsrc.org>2005-01-23 06:20:43 +0000
commit7cbfae6304d4ffb643a82de267d1d45ad45ce8e1 (patch)
tree30309ef3f23f9c3c2fdf060a0fa96849c14bf158 /sysutils
parent6f23f1665d8514446b62c408b0067e24cbb1c46b (diff)
downloadpkgsrc-7cbfae6304d4ffb643a82de267d1d45ad45ce8e1.tar.gz
Use the openssl/buildlink3.mk file to properly handle a built-in OpenSSL
distribution for the location of the "openssl" binary (used to generate the self-signed certificate).
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/webmin/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile
index 9cdb092bb5a..8e61d8dc214 100644
--- a/sysutils/webmin/Makefile
+++ b/sysutils/webmin/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2005/01/23 04:36:27 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2005/01/23 06:20:43 jlam Exp $
DISTNAME= webmin-1.170-minimal
PKGNAME= ${DISTNAME:S/-minimal$//}
+PKGREVISION= 1
CATEGORIES= sysutils www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=webadmin/}
@@ -10,11 +11,10 @@ HOMEPAGE= http://www.webmin.com/
COMMENT= Perl web server and CGI for Unix system administration
DEPENDS+= p5-Net-SSLeay-[0-9]*:../../security/p5-Net-SSLeay
-DEPENDS+= openssl-[0-9]*:../../security/openssl
-USE_LANGUAGES= # empty
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
-NO_BUILDLINK= yes
+USE_LANGUAGES= # empty
+USE_BUILDLINK3= yes
NO_BUILD= yes
USE_PERL5= yes
@@ -58,6 +58,15 @@ do-configure:
fi; \
${MV} -f $$file.new $$file; \
done
+ case "${USE_BUILTIN.openssl}" in \
+ [nN][oO]) \
+ for file in ${WRKSRC}/acl/config ${WRKSRC}/acl/config-*; do \
+ ${SED} -e "s|^ssleay=.*|ssleay=${SSLBASE}/bin/openssl|" \
+ $$file > $$file.new; \
+ ${MV} -f $$file.new $$file; \
+ done; \
+ ;; \
+ esac
pre-install:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
@@ -66,4 +75,5 @@ do-install:
${INSTALL_DATA_DIR} ${WEBMIN_DIR}
${CP} -R ${WRKSRC}/* ${WEBMIN_DIR}
+.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"