From owner-svn-ports-head@FreeBSD.ORG Wed Feb 5 17:54:51 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F16FE986; Wed, 5 Feb 2014 17:54:50 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CEB5B15D7; Wed, 5 Feb 2014 17:54:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s15Hso2X064570; Wed, 5 Feb 2014 17:54:50 GMT (envelope-from johans@svn.freebsd.org) Received: (from johans@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s15HsoNA064566; Wed, 5 Feb 2014 17:54:50 GMT (envelope-from johans@svn.freebsd.org) Message-Id: <201402051754.s15HsoNA064566@svn.freebsd.org> From: Johan van Selst Date: Wed, 5 Feb 2014 17:54:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342806 - in head/www: xshttpd xshttpd-devel 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.17 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, 05 Feb 2014 17:54:51 -0000 Author: johans Date: Wed Feb 5 17:54:49 2014 New Revision: 342806 URL: http://svnweb.freebsd.org/changeset/ports/342806 QAT: https://qat.redports.org/buildarchive/r342806/ Log: - Enable stage support - New style options - Strip installed libraries Modified: head/www/xshttpd-devel/Makefile head/www/xshttpd-devel/pkg-plist head/www/xshttpd/Makefile head/www/xshttpd/pkg-plist Modified: head/www/xshttpd-devel/Makefile ============================================================================== --- head/www/xshttpd-devel/Makefile Wed Feb 5 17:54:31 2014 (r342805) +++ head/www/xshttpd-devel/Makefile Wed Feb 5 17:54:49 2014 (r342806) @@ -3,7 +3,7 @@ PORTNAME= xshttpd DISTVERSION= 3.7b27 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www ipv6 MASTER_SITES= ftp://ftp.stack.nl/pub/xs-httpd/release/ \ ftp://mud.stack.nl/pub/xs-httpd/release/ @@ -13,8 +13,6 @@ DISTNAME= ${PORTNAME}-${DISTVERSION:S/./ MAINTAINER= johans@FreeBSD.org COMMENT= Webserver with CGI as own user and SSL support -LICENSE= BSD - RUN_DEPENDS= run-mailcap:${PORTSDIR}/misc/mime-support \ ppmtogif:${PORTSDIR}/graphics/netpbm LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre @@ -27,54 +25,20 @@ USE_RC_SUBR= xshttpd GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-hier=bsd -MAN1= clearxs.1 gfxcount.1 httpd.1 httpdc.1 imagemap.1 \ - readxs.1 xschpass.1 xsindex.1 xspasswd.1 -MAN5= httpd.conf.5 xsauth.5 xsconf.5 xsscripts.5 xsredir.5 -MAN7= httpd_cgi.7 httpd_ssi.7 - -OPTIONS_DEFINE= LDAP CURL M4_CONFIG PERSISTENT_PERL -M4_CONFIG_DESC= Enable m4 configuration preprocessor -PERSISTENT_PERL_DESC= Enable persistent Perl interpreter +OPTIONS_DEFINE= LDAP CURL M4 PERL +OPTIONS_SUB= yes +LDAP_USE= openldap +LDAP_CONFIGURE_WITH= ldap +M4_DESC= Enable configuration preprocessor (m4) +M4_CONFIGURE_WITH= preprocessor +PERL_DESC= Enable persistent Perl interpreter +PERL_USES= perl5 +PERL_CONFIGURE_WITH= perl +CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl +CURL_CONFIGURE_WITH= curl PORTDOCS= README ChangeLog -NO_STAGE= yes -.include - -# By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd -WWWDIR?= ${PREFIX}/www/${PORTNAME} - -.if ${PORT_OPTIONS:MLDAP} -USE_OPENLDAP= yes -CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} -PLIST_SUB+= LDAP="" -.else -CONFIGURE_ARGS+=--without-ldap -PLIST_SUB+= LDAP="@comment " -.endif - -.if ${PORT_OPTIONS:MM4_CONFIG} -CONFIGURE_ARGS+=--with-preprocessor -.else -CONFIGURE_ARGS+=--without-preprocessor -.endif - -.if ${PORT_OPTIONS:MPERSISTENT_PERL} -USES+= perl5 -CONFIGURE_ARGS+=--with-perl -PLIST_SUB+= PERL="" -.else -CONFIGURE_ARGS+=--without-perl -PLIST_SUB+= PERL="@comment " -.endif - -.if ${PORT_OPTIONS:MCURL} -LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl -CONFIGURE_ARGS+=--with-curl -.else -CONFIGURE_ARGS+=--without-curl -.endif - post-patch: @${REINPLACE_CMD} \ -e 's|\(MIME_TYPES\).*|\1 "${LOCALBASE}/etc/mime.types"|' \ @@ -88,11 +52,11 @@ post-patch: @${ECHO_CMD} '$$(bin_PROGRAMS) $$(phexec_PROGRAMS)' \ '$$(noinst_PROGRAMS): $$(noinst_LIBRARIES)' \ >> ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e '/libdir/ s|(INSTALL_DATA)|& -s|' \ + ${WRKSRC}/src/Makefile.in post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${WWWDIR}/htdocs + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Modified: head/www/xshttpd-devel/pkg-plist ============================================================================== --- head/www/xshttpd-devel/pkg-plist Wed Feb 5 17:54:31 2014 (r342805) +++ head/www/xshttpd-devel/pkg-plist Wed Feb 5 17:54:49 2014 (r342806) @@ -72,16 +72,31 @@ libexec/xshttpd/mod_gzip.so libexec/xshttpd/mod_htcpcp.so libexec/xshttpd/mod_magic.so libexec/xshttpd/mod_rpaf.so -@exec mkdir -p %%WWWDIR%%/htdocs -@exec mkdir -p /var/log/xshttpd +man/man1/clearxs.1.gz +man/man1/gfxcount.1.gz +man/man1/httpd.1.gz +man/man1/httpdc.1.gz +man/man1/imagemap.1.gz +man/man1/readxs.1.gz +man/man1/xschpass.1.gz +man/man1/xsindex.1.gz +man/man1/xspasswd.1.gz +man/man5/httpd.conf.5.gz +man/man5/xsauth.5.gz +man/man5/xsconf.5.gz +man/man5/xsredir.5.gz +man/man5/xsscripts.5.gz +man/man7/httpd_cgi.7.gz +man/man7/httpd_ssi.7.gz @dirrm %%DATADIR%%/contrib @dirrm %%DATADIR%%/gfxcount @dirrmtry %%DATADIR%%/icons -@dirrmtry %%DATADIR%%/logs @dirrmtry %%DATADIR%% @dirrmtry %%WWWDIR%%/cgi-bin @dirrmtry %%WWWDIR%%/htdocs @dirrmtry %%WWWDIR%% @dirrmtry %%ETCDIR%% @dirrmtry libexec/xshttpd -@unexec rmdir /var/log/xshttpd 2>/dev/null || true +@cwd / +@unexec rmdir var/log/xshttpd 2>/dev/null || true +@exec mkdir -p var/log/xshttpd Modified: head/www/xshttpd/Makefile ============================================================================== --- head/www/xshttpd/Makefile Wed Feb 5 17:54:31 2014 (r342805) +++ head/www/xshttpd/Makefile Wed Feb 5 17:54:49 2014 (r342806) @@ -12,8 +12,6 @@ DISTNAME= ${PORTNAME}-${DISTVERSION:S/./ MAINTAINER= johans@FreeBSD.org COMMENT= Webserver with CGI as own user and SSL support -LICENSE= BSD - RUN_DEPENDS= run-mailcap:${PORTSDIR}/misc/mime-support \ ppmtogif:${PORTSDIR}/graphics/netpbm @@ -23,67 +21,26 @@ USE_BZIP2= yes USE_RC_SUBR= xshttpd GNU_CONFIGURE= yes -MAN1= clearxs.1 gfxcount.1 httpd.1 httpdc.1 imagemap.1 \ - readxs.1 xschpass.1 xsindex.1 xspasswd.1 -MAN5= httpd.conf.5 xsauth.5 xsconf.5 xsscripts.5 xsredir.5 -MAN7= httpd_cgi.7 httpd_ssi.7 +WWWDIR= ${PREFIX}/www/${PORTNAME} +CONFIGURE_ARGS+=--with-rootdir=${WWWDIR} OPTIONS_DEFINE= SSL PCRE LDAP CURL M4_CONFIG PERSISTENT_PERL OPTIONS_DEFAULT=SSL PCRE +SSL_CONFIGURE_WITH= ssl +LDAP_USE= openldap +LDAP_CONFIGURE_WITH= ldap M4_CONFIG_DESC= Enable m4 configuration preprocessor +M4_CONFIG_CONFIGURE_WITH=preprocessor PERSISTENT_PERL_DESC= Enable persistent Perl interpreter +PERSISTENT_PERL_USES= perl5 +PERSISTENT_PERL_CONFIGURE_WITH= perl +PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre +PCRE_CONFIGURE_WITH= pcre +CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl +CURL_CONFIGURE_WITH= curl PORTDOCS= README ChangeLog -NO_STAGE= yes -.include - -# By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd -WWWDIR?= ${PREFIX}/www/${PORTNAME} -CONFIGURE_ARGS+=--with-rootdir=${WWWDIR} - -.if ${PORT_OPTIONS:MSSL} -.include <${PORTSDIR}/Mk/bsd.openssl.mk> -#USE_OPENSSL= yes -CONFIGURE_ARGS+=--with-ssl -.else -CONFIGURE_ARGS+=--without-ssl -.endif - -.if ${PORT_OPTIONS:MLDAP} -USE_OPENLDAP= yes -CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} -.else -CONFIGURE_ARGS+=--without-ldap -.endif - -.if ${PORT_OPTIONS:MM4_CONFIG} -CONFIGURE_ARGS+=--with-preprocessor -.else -CONFIGURE_ARGS+=--without-preprocessor -.endif - -.if ${PORT_OPTIONS:MPERSISTENT_PERL} -USES+= perl5 -CONFIGURE_ARGS+=--with-perl -.else -CONFIGURE_ARGS+=--without-perl -.endif - -.if ${PORT_OPTIONS:MPCRE} -LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre -CONFIGURE_ARGS+=--with-pcre=yes -.else -CONFIGURE_ARGS+=--with-pcre=no -.endif - -.if ${PORT_OPTIONS:MCURL} -LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl -CONFIGURE_ARGS+=--with-curl=yes -.else -CONFIGURE_ARGS+=--with-curl=no -.endif - post-patch: .for i in man/httpd.1.in man/httpd.conf.5 config/httpd.conf.sample \ contrib/SSL-Makefile contrib/logrotate.sh @@ -101,9 +58,7 @@ post-patch: ${WRKSRC}/config/Makefile.in post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${WWWDIR}/htdocs + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include Modified: head/www/xshttpd/pkg-plist ============================================================================== --- head/www/xshttpd/pkg-plist Wed Feb 5 17:54:31 2014 (r342805) +++ head/www/xshttpd/pkg-plist Wed Feb 5 17:54:49 2014 (r342806) @@ -65,6 +65,22 @@ bin/xspasswd %%WWWDIR%%/icons/xs-video.gif %%WWWDIR%%/icons/xs-zip.gif @exec mkdir -p %%WWWDIR%%/htdocs +man/man1/clearxs.1.gz +man/man1/gfxcount.1.gz +man/man1/httpd.1.gz +man/man1/httpdc.1.gz +man/man1/imagemap.1.gz +man/man1/readxs.1.gz +man/man1/xschpass.1.gz +man/man1/xsindex.1.gz +man/man1/xspasswd.1.gz +man/man5/httpd.conf.5.gz +man/man5/xsauth.5.gz +man/man5/xsconf.5.gz +man/man5/xsredir.5.gz +man/man5/xsscripts.5.gz +man/man7/httpd_cgi.7.gz +man/man7/httpd_ssi.7.gz @dirrm %%WWWDIR%%/contrib @dirrm %%WWWDIR%%/gfxcount @dirrmtry %%WWWDIR%%/cgi-bin