2002-11-20 00:03:53 +01:00
|
|
|
# $NetBSD: Makefile,v 1.65 2002/11/19 23:03:53 jlam Exp $
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2002-10-25 04:29:10 +02:00
|
|
|
DISTNAME= mod_ssl-2.8.12-1.3.27
|
|
|
|
PKGNAME= ap-ssl-2.8.12
|
2002-11-20 00:03:53 +01:00
|
|
|
PKGREVISION= 1
|
2001-02-02 17:41:22 +01:00
|
|
|
CATEGORIES= www security
|
2002-06-19 09:10:59 +02:00
|
|
|
MASTER_SITES= http://www.modssl.org/source/ \
|
|
|
|
ftp://ftp.pca.dfn.de/pub/tools/net/mod_ssl/source/ \
|
2002-06-19 17:22:36 +02:00
|
|
|
ftp://ftp.funet.fi/pub/crypt/cryptography/libs/modssl/source/
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2001-02-02 17:41:22 +01:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
|
|
HOMEPAGE= http://www.modssl.org/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= SSL/TLS protocols module for Apache
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= apache-1.3.[0-9] apache-*modssl-[0-9]* apache6-[0-9]*
|
1999-12-01 02:00:17 +01:00
|
|
|
|
2002-11-18 09:15:19 +01:00
|
|
|
BUILDLINK_DEPENDS.apache= apache>=1.3.27nb1
|
2000-09-12 16:05:16 +02:00
|
|
|
|
2002-08-25 23:50:52 +02:00
|
|
|
USE_BUILDLINK2= YES
|
|
|
|
APACHE_MODULE= YES
|
1998-12-28 08:56:35 +01:00
|
|
|
|
2002-02-28 06:45:44 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2002-08-25 23:50:52 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${_USE_RPATH} == "yes"
|
2001-10-17 21:17:11 +02:00
|
|
|
MAKE_ENV+= SSL_RPATH_LDFLAGS="-R${SSLBASE}/lib"
|
2002-08-25 23:50:52 +02:00
|
|
|
.endif
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2002-11-20 00:03:53 +01:00
|
|
|
PKG_SYSCONFVAR= apache
|
2001-11-25 19:59:45 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
2001-11-19 17:23:08 +01:00
|
|
|
|
2002-01-01 07:12:38 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/mod_ssl
|
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/ssl.crl
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.crt
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.csr
|
|
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.prm
|
|
|
|
OWN_DIRS_PERMS= ${PKG_SYSCONFDIR}/ssl.key \
|
|
|
|
${ROOT_USER} ${ROOT_GROUP} 0700
|
|
|
|
|
|
|
|
SUPPORT_FILES= # empty
|
|
|
|
SUPPS= ssl.crl/Makefile.crl ssl.crl/README.CRL \
|
|
|
|
ssl.crt/Makefile.crt ssl.crt/README.CRT \
|
|
|
|
ssl.crt/ca-bundle.crt ssl.crt/README.CSR \
|
|
|
|
ssl.key/README.KEY ssl.prm/README.PRM
|
|
|
|
.for FILE in ${SUPPS}
|
|
|
|
SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
|
|
.endfor
|
2001-06-09 08:50:23 +02:00
|
|
|
|
2000-09-12 16:05:16 +02:00
|
|
|
post-extract:
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.contrib; ${MV} -f loadcacert.cgi loadcacert.cgi.in
|
|
|
|
cd ${WRKSRC}/pkg.sslsup; ${MV} -f mkcert.sh mkcert.sh.in
|
2000-09-12 16:05:16 +02:00
|
|
|
|
|
|
|
post-build:
|
2002-01-01 07:12:38 +01:00
|
|
|
@${SED} -e "s|^#!/.*|#!${PERL5}|g" \
|
2001-04-29 22:36:47 +02:00
|
|
|
${WRKSRC}/pkg.contrib/loadcacert.cgi.in \
|
|
|
|
> ${WRKSRC}/pkg.contrib/loadcacert.cgi
|
2002-01-01 07:12:38 +01:00
|
|
|
@${SED} ${FILES_SUBST_SED} \
|
2001-04-29 22:36:47 +02:00
|
|
|
${WRKSRC}/pkg.sslsup/mkcert.sh.in \
|
|
|
|
> ${WRKSRC}/pkg.sslsup/mkcert.sh
|
2000-09-12 16:05:16 +02:00
|
|
|
|
2001-04-29 22:36:47 +02:00
|
|
|
pre-install:
|
2002-02-01 17:05:15 +01:00
|
|
|
@${SED} ${FILES_SUBST_SED} \
|
2001-02-02 17:41:22 +01:00
|
|
|
${FILESDIR}/README.mkcert > ${WRKDIR}/README.mkcert
|
2000-09-12 16:05:16 +02:00
|
|
|
|
2001-04-29 22:36:47 +02:00
|
|
|
post-install:
|
2001-11-19 17:23:08 +01:00
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/ssl.crl
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/ssl.crt
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/ssl.csr
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/ssl.key
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}/ssl.prm
|
2001-04-29 22:36:47 +02:00
|
|
|
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${PREFIX}/lib/httpd; ${MV} -f libssl.so mod_ssl.so
|
2001-04-29 22:36:47 +02:00
|
|
|
cd ${WRKSRC}/pkg.sslsup; ${INSTALL_SCRIPT} mkcert.sh \
|
|
|
|
${PREFIX}/sbin/mkcert
|
2000-09-12 16:05:16 +02:00
|
|
|
|
1998-12-03 18:22:01 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.ssldoc; ${INSTALL_DATA} *.html *.gif *.jpg \
|
2000-09-12 16:05:16 +02:00
|
|
|
${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl
|
1999-04-30 19:05:19 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mod_ssl
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.contrib; ${INSTALL_SCRIPT} *.sh *.cgi \
|
|
|
|
${PREFIX}/share/mod_ssl
|
2000-09-12 16:05:16 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_ssl
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/README.mkcert ${PREFIX}/share/doc/mod_ssl
|
|
|
|
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${RM} -f server.*
|
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.CRL *.crl \
|
2001-11-19 17:23:08 +01:00
|
|
|
${EGDIR}/ssl.crl
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.CRT *.crt \
|
2001-11-19 17:23:08 +01:00
|
|
|
${EGDIR}/ssl.crt
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.CSR \
|
2001-11-19 17:23:08 +01:00
|
|
|
${EGDIR}/ssl.csr
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.KEY *.key \
|
2001-11-19 17:23:08 +01:00
|
|
|
${EGDIR}/ssl.key
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.PRM *.prm \
|
2001-11-19 17:23:08 +01:00
|
|
|
${EGDIR}/ssl.prm
|
2001-04-29 22:36:47 +02:00
|
|
|
|
2002-08-25 23:50:52 +02:00
|
|
|
.include "../../security/openssl/buildlink2.mk"
|
|
|
|
.include "../../www/apache/buildlink2.mk"
|
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
1998-12-03 18:22:01 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|