From johans@stack.nl  Tue Sep 20 16:57:00 2005
Return-Path: <johans@stack.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6F2D616A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Sep 2005 16:57:00 +0000 (GMT)
	(envelope-from johans@stack.nl)
Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0753543D45
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Sep 2005 16:56:59 +0000 (GMT)
	(envelope-from johans@stack.nl)
Received: by mailhost.stack.nl (Postfix, from userid 65534)
	id 917CDA2FD3; Tue, 20 Sep 2005 18:56:58 +0200 (CEST)
Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:207:e9ff:fe14:b498])
	by mailhost.stack.nl (Postfix) with ESMTP id 5FC9DA2FF8
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Sep 2005 18:56:57 +0200 (CEST)
Received: by mud.stack.nl (Postfix, from userid 801)
	id 48C57172A3; Tue, 20 Sep 2005 18:56:57 +0200 (CEST)
Message-Id: <20050920165657.48C57172A3@mud.stack.nl>
Date: Tue, 20 Sep 2005 18:56:57 +0200 (CEST)
From: Johan van Selst <johans@stack.nl>
Reply-To: Johan van Selst <johans@stack.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [maintainer] www/xshttpd: update to version 33b27
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86376
>Category:       ports
>Synopsis:       [maintainer] www/xshttpd: update to version 33b27
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 20 17:00:29 GMT 2005
>Closed-Date:    Tue Sep 20 21:07:23 GMT 2005
>Last-Modified:  Tue Sep 20 21:07:23 GMT 2005
>Originator:     Johan van Selst
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE #5: Wed Jul 13 12:15:37 CEST 2005 johans@mud.stack.nl:/usr/obj/usr/src/sys/mud i386


	
>Description:
	Update to bugfix release beta 27.
	

	And while we're at it...
	- add secondary MASTER_SITE
	- configure OPTIONS
	- replace SED/MV with REINPLACE
	- make webserver use WWWOWN, WWWGRP
	- enable experimental USE_GPG support

>How-To-Repeat:
	
>Fix:

	
diff -uNr xshttpd/Makefile xshttpd/Makefile
--- xshttpd/Makefile	Fri Sep 16 01:04:31 2005
+++ xshttpd/Makefile	Tue Sep 20 18:50:41 2005
@@ -6,10 +6,13 @@
 #
 
 PORTNAME=	xshttpd
-DISTVERSION=	3.3b26
+DISTVERSION=	3.3b27
 CATEGORIES=	www
-MASTER_SITES=	ftp://ftp.stack.nl/pub/xs-httpd/release/
+MASTER_SITES=	ftp://ftp.stack.nl/pub/xs-httpd/release/ \
+	ftp://mud.stack.nl/pub/xs-httpd/release/
 DISTNAME=	${PORTNAME}-${DISTVERSION:S/.//}
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	johans@stack.nl
 COMMENT=	A webserver with CGI as own user and SSL suport
@@ -22,6 +25,15 @@
 		readxs.1 xsindex.1 xspasswd.1
 MAN5=		httpd.conf.5 xsauth.5 xsscripts.5
 USE_RC_SUBR=	xshttpd.sh
+USE_GPG?=	yes
+SIG_FILES=	${DISTNAME}${EXTRACT_SUFX}.asc
+
+USE_REINPLACE=	yes
+
+OPTIONS=	SSL "Enable https support" On \
+	LDAP "Enable ldap support" Off \
+	PCRE "Enable pcre rewriting support" Off \
+	PERSISTENT_PERL "Enable persistent perl interpreter" Off
 
 # By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd
 DATADIR=	${PREFIX}/www
@@ -56,13 +68,14 @@
 .endif
 
 post-patch:
-.for i in "man/httpd.1" "man/httpd.conf.5" "config/httpd.conf.sample" \
-	"contrib/SSL-Makefile" "contrib/logrotate.sh"
-	@${SED} \
+.for i in man/httpd.1 man/httpd.conf.5 config/httpd.conf.sample \
+	contrib/SSL-Makefile contrib/logrotate.sh
+	@${REINPLACE_CMD} \
 		-e 's|/wwwsys|${DATADIR}|g' \
 		-e 's|/usr/local/lib/httpd|${DATADIR}|g' \
-		${WRKSRC}/$i > ${WRKSRC}/$i.tmp
-	@${MV} ${WRKSRC}/$i.tmp ${WRKSRC}/$i
+		-e 's|nobody|${WWWOWN}|g' \
+		-e 's|nogroup|${WWWGRP}|g' \
+		${WRKSRC}/$i
 .endfor
 
 .include <bsd.port.mk>
diff -uNr xshttpd/distinfo xshttpd/distinfo
--- xshttpd/distinfo	Fri Sep 16 01:04:31 2005
+++ xshttpd/distinfo	Tue Sep 20 18:51:13 2005
@@ -1,2 +1,4 @@
-MD5 (xshttpd-33b26.tar.gz) = 704ed6e2be411c01207821ee94b84070
-SIZE (xshttpd-33b26.tar.gz) = 206980
+MD5 (xshttpd-33b27.tar.gz) = 74289c1caf0dbe41b8b57283848e259c
+SIZE (xshttpd-33b27.tar.gz) = 208254
+MD5 (xshttpd-33b27.tar.gz.asc) = 5539722cca5002a1fc698d5d0a40fea1
+SIZE (xshttpd-33b27.tar.gz.asc) = 183
diff -uNr xshttpd/pkg-descr xshttpd/pkg-descr
--- xshttpd/pkg-descr	Fri Sep 16 01:04:31 2005
+++ xshttpd/pkg-descr	Tue Sep 20 11:02:00 2005
@@ -20,4 +20,4 @@
 - Serves SSL (https) and http connections through the same daemon
 - Full support for IPv6
 
-WWW: http://www.stack.nl/~johans/xs-httpd/
+WWW: http://www.stack.nl/xs-httpd/
diff -uNr xshttpd/pkg-plist xshttpd/pkg-plist
--- xshttpd/pkg-plist	Fri Sep 16 01:04:31 2005
+++ xshttpd/pkg-plist	Tue Sep 20 18:28:42 2005
@@ -12,6 +12,7 @@
 %%DATADIR%%/contrib/logrotate.sh
 %%DATADIR%%/contrib/persistent.pl
 %%DATADIR%%/contrib/wwwstats.pl
+%%DATADIR%%/contrib/agentstats.pl
 %%DATADIR%%/compress.methods.sample
 %%DATADIR%%/gfxcount/digital0.ppm
 %%DATADIR%%/gfxcount/digital1.ppm
@@ -62,9 +63,9 @@
 %%DATADIR%%/mime.index
 %%DATADIR%%/mime.types
 %%DATADIR%%/script.methods.sample
-@unexec rmdir %%DATADIR%%/cgi-bin 2> /dev/null || true
-@unexec rmdir %%DATADIR%%/htdocs 2> /dev/null || true
-@unexec rmdir %%DATADIR%%/logs 2> /dev/null || true
+@dirrm %%DATADIR%%/cgi-bin
+@dirrm %%DATADIR%%/htdocs
+@dirrm %%DATADIR%%/logs
 @dirrm %%DATADIR%%/contrib
 @dirrm %%DATADIR%%/gfxcount
 @dirrm %%DATADIR%%/icons
>Release-Note:
>Audit-Trail:

From: johans@stack.nl (Johan van Selst)
To: bug-followup@FreeBSD.org,johans@stack.nl
Cc:  
Subject: Re: ports/86376: [maintainer] www/xshttpd: update to version 33b27
Date: Tue, 20 Sep 2005 22:31:55 +0200 (CEST)

 Improved version, thanks to pav.
 Removed GPG crap and move checking of WITH_* to after <bsd.port.pre.mk>
 
 (patch against current port)
 
 
 diff -uNr xshttpd/Makefile xshttpd/Makefile
 --- xshttpd/Makefile	Fri Sep 16 01:04:31 2005
 +++ xshttpd/Makefile	Tue Sep 20 22:29:05 2005
 @@ -6,9 +6,10 @@
  #
  
  PORTNAME=	xshttpd
 -DISTVERSION=	3.3b26
 +DISTVERSION=	3.3b27
  CATEGORIES=	www
 -MASTER_SITES=	ftp://ftp.stack.nl/pub/xs-httpd/release/
 +MASTER_SITES=	ftp://ftp.stack.nl/pub/xs-httpd/release/ \
 +	ftp://mud.stack.nl/pub/xs-httpd/release/
  DISTNAME=	${PORTNAME}-${DISTVERSION:S/.//}
  
  MAINTAINER=	johans@stack.nl
 @@ -23,10 +24,19 @@
  MAN5=		httpd.conf.5 xsauth.5 xsscripts.5
  USE_RC_SUBR=	xshttpd.sh
  
 +USE_REINPLACE=	yes
 +
 +OPTIONS=	SSL "Enable https support" On \
 +	LDAP "Enable ldap support" Off \
 +	PCRE "Enable pcre rewriting support" Off \
 +	PERSISTENT_PERL "Enable persistent perl interpreter" Off
 +
  # By default XS-HTTPD stores its data in ${PREFIX}/lib/httpd
  DATADIR=	${PREFIX}/www
  CONFIGURE_ARGS+=--with-rootdir=${DATADIR}
  
 +.include <bsd.port.pre.mk>
 +
  .if !defined(WITHOUT_SSL)
  USE_OPENSSL=	yes
  CONFIGURE_ARGS+=--with-ssl
 @@ -56,13 +66,14 @@
  .endif
  
  post-patch:
 -.for i in "man/httpd.1" "man/httpd.conf.5" "config/httpd.conf.sample" \
 -	"contrib/SSL-Makefile" "contrib/logrotate.sh"
 -	@${SED} \
 +.for i in man/httpd.1 man/httpd.conf.5 config/httpd.conf.sample \
 +	contrib/SSL-Makefile contrib/logrotate.sh
 +	@${REINPLACE_CMD} \
  		-e 's|/wwwsys|${DATADIR}|g' \
  		-e 's|/usr/local/lib/httpd|${DATADIR}|g' \
 -		${WRKSRC}/$i > ${WRKSRC}/$i.tmp
 -	@${MV} ${WRKSRC}/$i.tmp ${WRKSRC}/$i
 +		-e 's|nobody|${WWWOWN}|g' \
 +		-e 's|nogroup|${WWWGRP}|g' \
 +		${WRKSRC}/$i
  .endfor
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 diff -uNr xshttpd/distinfo xshttpd/distinfo
 --- xshttpd/distinfo	Fri Sep 16 01:04:31 2005
 +++ xshttpd/distinfo	Tue Sep 20 18:51:13 2005
 @@ -1,2 +1,4 @@
 -MD5 (xshttpd-33b26.tar.gz) = 704ed6e2be411c01207821ee94b84070
 -SIZE (xshttpd-33b26.tar.gz) = 206980
 +MD5 (xshttpd-33b27.tar.gz) = 74289c1caf0dbe41b8b57283848e259c
 +SIZE (xshttpd-33b27.tar.gz) = 208254
 +MD5 (xshttpd-33b27.tar.gz.asc) = 5539722cca5002a1fc698d5d0a40fea1
 +SIZE (xshttpd-33b27.tar.gz.asc) = 183
 diff -uNr xshttpd/pkg-descr xshttpd/pkg-descr
 --- xshttpd/pkg-descr	Fri Sep 16 01:04:31 2005
 +++ xshttpd/pkg-descr	Tue Sep 20 11:02:00 2005
 @@ -20,4 +20,4 @@
  - Serves SSL (https) and http connections through the same daemon
  - Full support for IPv6
  
 -WWW: http://www.stack.nl/~johans/xs-httpd/
 +WWW: http://www.stack.nl/xs-httpd/
 diff -uNr xshttpd/pkg-plist xshttpd/pkg-plist
 --- xshttpd/pkg-plist	Fri Sep 16 01:04:31 2005
 +++ xshttpd/pkg-plist	Tue Sep 20 18:28:42 2005
 @@ -12,6 +12,7 @@
  %%DATADIR%%/contrib/logrotate.sh
  %%DATADIR%%/contrib/persistent.pl
  %%DATADIR%%/contrib/wwwstats.pl
 +%%DATADIR%%/contrib/agentstats.pl
  %%DATADIR%%/compress.methods.sample
  %%DATADIR%%/gfxcount/digital0.ppm
  %%DATADIR%%/gfxcount/digital1.ppm
 @@ -62,9 +63,9 @@
  %%DATADIR%%/mime.index
  %%DATADIR%%/mime.types
  %%DATADIR%%/script.methods.sample
 -@unexec rmdir %%DATADIR%%/cgi-bin 2> /dev/null || true
 -@unexec rmdir %%DATADIR%%/htdocs 2> /dev/null || true
 -@unexec rmdir %%DATADIR%%/logs 2> /dev/null || true
 +@dirrm %%DATADIR%%/cgi-bin
 +@dirrm %%DATADIR%%/htdocs
 +@dirrm %%DATADIR%%/logs
  @dirrm %%DATADIR%%/contrib
  @dirrm %%DATADIR%%/gfxcount
  @dirrm %%DATADIR%%/icons
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Sep 20 21:07:16 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86376 
>Unformatted:
