2010-02-16 17:18:14 +01:00
|
|
|
# $NetBSD: Makefile,v 1.110 2010/02/16 16:18:14 joerg Exp $
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2008-02-24 06:29:21 +01:00
|
|
|
DISTNAME= mod_ssl-2.8.31-1.3.41
|
|
|
|
PKGNAME= ap13-ssl-2.8.31
|
2010-02-10 04:55:18 +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/ \
|
2007-12-02 13:29:02 +01:00
|
|
|
ftp://ftp.pca.dfn.de/pub/tools/net/mod_ssl/source/
|
1998-12-03 18:22:01 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
2010-02-16 17:18:14 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= apache-1.3.[0-9] apache-*modssl-[0-9]* apache6-[0-9]*
|
2006-06-02 20:27:54 +02:00
|
|
|
CONFLICTS+= ap-ssl-[0-9]*
|
1999-12-01 02:00:17 +01:00
|
|
|
|
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"
|
|
|
|
|
2007-06-10 10:34:25 +02:00
|
|
|
.include "../../www/apache/buildlink3.mk"
|
2010-02-10 04:55:18 +01:00
|
|
|
BUILDLINK_API_DEPENDS.apache+= apache>=1.3.42
|
2007-06-10 10:34:25 +02:00
|
|
|
|
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"
|
|
|
|
|
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
|
|
|
|
2010-02-16 17:18:14 +01:00
|
|
|
INSTALLATION_DIRS+= lib/httpd sbin \
|
|
|
|
${EGDIR}/ssl.crl ${EGDIR}/ssl.crt ${EGDIR}/ssl.csr \
|
|
|
|
${EGDIR}/ssl.key ${EGDIR}/ssl.prm \
|
|
|
|
share/doc/mod_ssl \
|
|
|
|
share/httpd/htdocs/manual/mod/mod_ssl share/mod_ssl
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/pkg.sslmod/libssl.so \
|
|
|
|
${DESTDIR}${PREFIX}/lib/httpd/mod_ssl.so
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkg.sslsup/mkcert.sh \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/mkcert
|
|
|
|
|
|
|
|
cd ${WRKSRC}/pkg.ssldoc && ${INSTALL_DATA} *.html *.gif *.jpg \
|
|
|
|
${DESTDIR}${PREFIX}/share/httpd/htdocs/manual/mod/mod_ssl
|
|
|
|
cd ${WRKSRC}/pkg.contrib && ${INSTALL_SCRIPT} *.sh *.cgi \
|
|
|
|
${DESTDIR}${PREFIX}/share/mod_ssl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.mkcert \
|
|
|
|
${DESTDIR}${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 \
|
2010-02-16 17:18:14 +01:00
|
|
|
${DESTDIR}${EGDIR}/ssl.crl
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.CRT *.crt \
|
2010-02-16 17:18:14 +01:00
|
|
|
${DESTDIR}${EGDIR}/ssl.crt
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.CSR \
|
2010-02-16 17:18:14 +01:00
|
|
|
${DESTDIR}${EGDIR}/ssl.csr
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.KEY *.key \
|
2010-02-16 17:18:14 +01:00
|
|
|
${DESTDIR}${EGDIR}/ssl.key
|
2001-02-02 17:41:22 +01:00
|
|
|
cd ${WRKSRC}/pkg.sslcfg; ${INSTALL_DATA} README.PRM *.prm \
|
2010-02-16 17:18:14 +01:00
|
|
|
${DESTDIR}${EGDIR}/ssl.prm
|
2001-04-29 22:36:47 +02:00
|
|
|
|
1998-12-03 18:22:01 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|