2005-10-19 22:33:44 +02:00
|
|
|
# $NetBSD: Makefile,v 1.92 2005/10/19 20:33:44 bouyer Exp $
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2005-10-19 22:33:44 +02:00
|
|
|
DISTNAME= mod_ssl-2.8.25-1.3.34
|
|
|
|
PKGNAME= ap-ssl-2.8.25
|
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
|
|
|
|
2004-04-25 00:46:08 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-02-02 17:41:22 +01:00
|
|
|
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
|
|
|
|
2005-02-18 15:07:50 +01:00
|
|
|
BUILDLINK_DEPENDS.apache= apache>=1.3.33
|
2000-09-12 16:05:16 +02:00
|
|
|
|
2004-04-26 22:28:54 +02:00
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
APACHE_MODULE= yes
|
1998-12-28 08:56:35 +01:00
|
|
|
|
2004-04-26 22:28:54 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-08-25 23:50:52 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE}
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-08-27 08:29:06 +02:00
|
|
|
SSL_RPATH_LDFLAGS= ${LINKER_RPATH_FLAG} ${SSLBASE}/lib
|
2003-03-14 20:37:30 +01:00
|
|
|
FIX_RPATH+= SSL_RPATH_LDFLAGS
|
|
|
|
MAKE_ENV+= SSL_RPATH_LDFLAGS="${SSL_RPATH_LDFLAGS}"
|
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
|
|
|
|
|
2005-08-19 20:12:36 +02:00
|
|
|
CONF_FILES= # empty
|
|
|
|
CONFS= ssl.crl/Makefile.crl ssl.crl/README.CRL \
|
2002-01-01 07:12:38 +01:00
|
|
|
ssl.crt/Makefile.crt ssl.crt/README.CRT \
|
2004-05-30 12:29:00 +02:00
|
|
|
ssl.csr/README.CSR ssl.csr/README.CSR \
|
2002-01-01 07:12:38 +01:00
|
|
|
ssl.key/README.KEY ssl.prm/README.PRM
|
2005-08-19 20:12:36 +02:00
|
|
|
.for FILE in ${CONFS}
|
|
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
2002-01-01 07:12:38 +01:00
|
|
|
.endfor
|
2001-06-09 08:50:23 +02:00
|
|
|
|
2004-04-26 22:28:54 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
.include "../../www/apache/buildlink3.mk"
|
|
|
|
|
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
|
|
|
|
1998-12-03 18:22:01 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|