From owner-svn-ports-head@FreeBSD.ORG Wed Dec 12 19:52:05 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17D8145E; Wed, 12 Dec 2012 19:52:05 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E38D88FC17; Wed, 12 Dec 2012 19:52:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBCJq4av033643; Wed, 12 Dec 2012 19:52:04 GMT (envelope-from ohauer@svn.freebsd.org) Received: (from ohauer@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBCJq4oo033641; Wed, 12 Dec 2012 19:52:04 GMT (envelope-from ohauer@svn.freebsd.org) Message-Id: <201212121952.qBCJq4oo033641@svn.freebsd.org> From: Olli Hauer Date: Wed, 12 Dec 2012 19:52:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308787 - head/devel/apr1 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 19:52:05 -0000 Author: ohauer Date: Wed Dec 12 19:52:04 2012 New Revision: 308787 URL: http://svnweb.freebsd.org/changeset/ports/308787 Log: - add and enable Crypto framework [1] (only OpenSSL, there are some build issues with NSS) - remove unused PERL build dependency [2] - use OPTIONS_GROUP instead OPTIONS_DEFINE - bump PORTREVISION [1] requested by many on the apache@ list [2] thanks to andre@ (noted on the apache@ list) Modified: head/devel/apr1/Makefile head/devel/apr1/pkg-plist Modified: head/devel/apr1/Makefile ============================================================================== --- head/devel/apr1/Makefile Wed Dec 12 19:42:31 2012 (r308786) +++ head/devel/apr1/Makefile Wed Dec 12 19:52:04 2012 (r308787) @@ -1,12 +1,9 @@ -# New ports collection makefile for: apr -# Date created: 19 February 2002 -# Whom: Garrett Rooney -# +# Created by: Garrett Rooney # $FreeBSD$ PORTNAME= apr PORTVERSION= ${APR_VERSION}.${APU_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_APACHE} MASTER_SITE_SUBDIR= apr @@ -20,14 +17,17 @@ LIB_DEPENDS= expat:${PORTSDIR}/textproc/ MAKE_JOBS_SAFE= yes NO_OPTIONS_SORT=yes -# apr -OPTIONS_DEFINE= THREADS IPV6 DEVRANDOM -# apr-util -OPTIONS_DEFINE+=BDB GDBM LDAP MYSQL NDBM PGSQL SQLITE -OPTIONS_DEFAULT=THREADS IPV6 DEVRANDOM BDB GDBM +OPTIONS_GROUP= APR APU +OPTIONS_GROUP_APR= THREADS IPV6 DEVRANDOM +OPTIONS_GROUP_APU= BDB GDBM LDAP MYSQL NDBM PGSQL SQLITE +OPTIONS_RADIO= CRYPTO +OPTIONS_RADIO_CRYPTO= SSL +OPTIONS_DEFAULT= THREADS IPV6 DEVRANDOM BDB GDBM SSL -DEVRANDOM_DESC= Use /dev/random or compatible +DEVRANDOM_DESC= Use /dev/random or compatible NDBM_DESC= NDBM support +SSL_DESC= OpenSSL crypto driver +NSS_DESC= NSS crypto driver .include @@ -36,7 +36,6 @@ APU_VERSION= 1.4.1 USE_ICONV= yes USE_AUTOTOOLS= automake autoconf libtool:env -USE_PERL5_BUILD= yes USE_PYTHON_BUILD= -2.7 USE_LDCONFIG= yes GNU_CONFIGURE= yes @@ -150,6 +149,34 @@ APU_CONF_ARGS+= --without-sqlite3 PLIST_SUB+= SQLITE3="@comment " .endif +# crypto (apache24) +.if ${PORT_OPTIONS:MSSL} || ${PORT_OPTIONS:MNSS} +APU_CONF_ARGS+= --with-crypto +.endif + +.if ${PORT_OPTIONS:MSSL} +USE_OPENSSL= yes +PLIST_SUB+= SSL="" +CFLAGS+= -I${OPENSSLINC} +LDFLAGS+= -L${OPENSSLLIB} +APU_CONF_ARGS+= --with-openssl=${OPENSSLBASE} +.else +PLIST_SUB+= SSL="@comment " +APU_CONF_ARGS+= --without-openssl +.endif + +# TODO figure out why nss flag is ignored if ssl is set +# this works on other OS as expected +.if ${PORT_OPTIONS:MNSS} +PLIST_SUB+= NSS="" +LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss +CFLAGS+= -I${LOCALBASE}/include/nss +LDFLAGS+= -L${LOCALBASE}/lib/nss +APU_CONF_ARGS+= --with-nss=${LOCALBASE} +.else +PLIST_SUB+= NSS="@comment " +.endif + .if defined(APU_EXTRAS) PLIST_SUB+= APU_EXTRAS="" .else @@ -169,7 +196,7 @@ post-patch: ${REINPLACE_CMD} -e 's/void main/int main/' ${APR_WRKDIR}/build/apr_network.m4 # http://svn.apache.org/viewvc?view=revision&revision=1362895 - ${REINPLACE_CMD} -e 's|sql = apr_palloc|sql = apr_pcalloc|' ${APU_WRKDIR}/dbd/apr_dbd_freetds.c + ${REINPLACE_CMD} -e 's|sql = apr_palloc|sql = apr_pcalloc|' ${APU_WRKDIR}/dbd/apr_dbd_freetds.c run-autotools:: cd ${APR_WRKDIR} ; \ Modified: head/devel/apr1/pkg-plist ============================================================================== --- head/devel/apr1/pkg-plist Wed Dec 12 19:42:31 2012 (r308786) +++ head/devel/apr1/pkg-plist Wed Dec 12 19:52:04 2012 (r308787) @@ -69,6 +69,14 @@ include/apr-1/apu.h include/apr-1/apu_errno.h include/apr-1/apu_version.h include/apr-1/apu_want.h +%%NSS%%lib/apr-util-1/apr_crypto_nss-1.so +%%NSS%%lib/apr-util-1/apr_crypto_nss.so +%%NSS%%lib/apr-util-1/apr_crypto_nss.la +%%NSS%%lib/apr-util-1/apr_crypto_nss.a +%%SSL%%lib/apr-util-1/apr_crypto_openssl-1.so +%%SSL%%lib/apr-util-1/apr_crypto_openssl.a +%%SSL%%lib/apr-util-1/apr_crypto_openssl.la +%%SSL%%lib/apr-util-1/apr_crypto_openssl.so %%MYSQL%%lib/apr-util-1/apr_dbd_mysql-1.so %%MYSQL%%lib/apr-util-1/apr_dbd_mysql.a %%MYSQL%%lib/apr-util-1/apr_dbd_mysql.la