Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2014 17:54:50 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
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
Message-ID:  <201402051754.s15HsoNA064566@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
-
-# 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 <bsd.port.mk>

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 <bsd.port.options.mk>
-
-# 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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402051754.s15HsoNA064566>