2002-01-01 07:12:38 +01:00
|
|
|
# $NetBSD: Makefile,v 1.44 2002/01/01 06:12:38 jlam Exp $
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2001-10-17 21:17:11 +02:00
|
|
|
DISTNAME= mod_ssl-2.8.5-1.3.22
|
|
|
|
PKGNAME= ap-ssl-2.8.5
|
2001-02-02 17:41:22 +01:00
|
|
|
CATEGORIES= www security
|
|
|
|
MASTER_SITES= http://www.modssl.org/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-10-17 21:17:11 +02:00
|
|
|
DEPENDS+= apache>=1.3.22:../../www/apache
|
1998-12-03 18:22:01 +01:00
|
|
|
# For "apxs":
|
2001-04-29 22:36:47 +02:00
|
|
|
BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
|
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
|
|
|
|
2001-10-17 21:17:11 +02:00
|
|
|
HAS_CONFIGURE= YES
|
|
|
|
USE_BUILDLINK_ONLY= YES
|
2000-09-12 16:05:16 +02:00
|
|
|
|
1998-12-28 08:56:35 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2000-09-12 16:05:16 +02:00
|
|
|
CONFIGURE_ARGS+= --with-apxs=${PREFIX}/sbin/apxs
|
2001-10-17 21:17:11 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_DIR}
|
|
|
|
MAKE_ENV+= SSL_RPATH_LDFLAGS="-R${SSLBASE}/lib"
|
1998-12-03 18:22:01 +01:00
|
|
|
|
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
|
|
|
|
|
|
|
|
CONF_FILES= ${EGDIR}/apache_start.conf \
|
|
|
|
${PKG_SYSCONFDIR}/apache_start.conf
|
|
|
|
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:
|
2001-06-09 08:50:23 +02: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
|
2001-11-19 17:23:08 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/apache_start.conf ${EGDIR}
|
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
|
|
|
|
2001-10-17 21:17:11 +02:00
|
|
|
.include "../../security/openssl/buildlink.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"
|