2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.98 2006/02/05 23:11:18 joerg 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
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
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-12-05 21:49:47 +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
|
|
|
APACHE_MODULE= yes
|
1998-12-28 08:56:35 +01:00
|
|
|
|
2004-04-26 22:28:54 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
2002-08-25 23:50:52 +02:00
|
|
|
|
|
|
|
.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
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= SSL_RPATH_LDFLAGS=${SSL_RPATH_LDFLAGS:Q}
|
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"
|
|
|
|
|
2006-01-05 22:21:54 +01:00
|
|
|
SUBST_CLASSES+= paths perl
|
|
|
|
SUBST_FILES.paths= README.mkcert pkg.sslsup/mkcert.sh
|
|
|
|
SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@SH@,${SH},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
SUBST_FILES.perl= pkg.contrib/loadcacert.cgi
|
|
|
|
SUBST_SED.perl= -e 's,^\#!/.*,\#!${PERL5},g'
|
|
|
|
SUBST_STAGE.perl= post-patch
|
2000-09-12 16:05:16 +02:00
|
|
|
|
2006-01-05 22:21:54 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/README.mkcert ${WRKSRC}
|
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
|
2006-01-05 22:21:54 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.mkcert ${PREFIX}/share/doc/mod_ssl
|
2000-09-12 16:05:16 +02:00
|
|
|
|
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"
|