Date: Mon, 28 Oct 2013 18:24:50 +0100 (CET) From: Mathieu Arnold <mat@FreeBSD.org> To: FreeBSD-gnats-submit@freebsd.org Cc: jmohacsi@bsd.hu Subject: ports/183413: [PATCH] dns/zonecheck: Fix WITH=CGI Message-ID: <20131028172450.EBFF314269C@aragorn.in.absolight.net> Resent-Message-ID: <201310281730.r9SHU3jS042776@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 183413 >Category: ports >Synopsis: [PATCH] dns/zonecheck: Fix WITH=CGI >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 28 17:30:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Mathieu Arnold >Release: FreeBSD 9.2-RELEASE i386 >Organization: Absolight >Environment: System: FreeBSD aragorn.in.absolight.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC >Description: - Fix when WITH=CGI - USES=gmake - Stagify - Use OPTIONS_SUB - Install whatever docs would be installed by the installer. Ruby 1.9 is encoding aware, and it can't open a non US-ASCII file if LANG is unset (or if LANG mismatches the encoding of the file.) Port maintainer (jmohacsi@bsd.hu) is cc'd. Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN) >How-To-Repeat: >Fix: --- zonecheck-3.0.5,1.patch begins here --- Index: Makefile =================================================================== --- Makefile (revision 331872) +++ Makefile (working copy) @@ -17,21 +17,20 @@ RUN_DEPENDS= rubygem-dnsruby>=1.47:${PORTSDIR}/dns/rubygem-dnsruby -USE_GMAKE= yes +USES= gmake USE_RUBY= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} -MAN1= zonecheck.1 -DOCS= BUGS INSTALL README TODO +DOCS= BUGS CREDITS HISTORY INSTALL README TODO OPTIONS_DEFINE= CGI -OPTIONS_DEFAULT= +OPTIONS_DEFAULT= +OPTIONS_SUB= CGI_DESC= Install with CGI support -NO_STAGE= yes .include <bsd.port.options.mk> ZONECHECK_TARGET= common cli @@ -38,21 +37,16 @@ .if ${PORT_OPTIONS:MCGI} ZONECHECK_TARGET+= cgi -PLIST_SUB+= ZONECHECK_CGI="" -.else -PLIST_SUB+= ZONECHECK_CGI="@comment " .endif do-install: - @cd ${INSTALL_WRKSRC} && \ - ${RUBY} ./installer.rb ${ZONECHECK_TARGET} \ + cd ${INSTALL_WRKSRC} && \ + ${SETENV} LANG=en_US.UTF-8 ${RUBY} ./installer.rb ${ZONECHECK_TARGET} \ -DETCDIST='-dist' -DRUBY="${RUBY}" -DPREFIX="${PREFIX}" \ - -DWWWDIR="${PREFIX}/www/${PORTNAME}" + -DWWWDIR="${PREFIX}/www/${PORTNAME}" -DCHROOT="${STAGEDIR}" -.if ${PORT_OPTIONS:MDOCS} post-install: - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> Index: pkg-plist =================================================================== --- pkg-plist (revision 331872) +++ pkg-plist (working copy) @@ -6,9 +6,10 @@ etc/zonecheck-dist/reverse.profile etc/zonecheck-dist/rootservers etc/zonecheck-dist/zc.conf +man/man1/zonecheck.1.gz @dirrm etc/zonecheck-dist -%%ZONECHECK_CGI%%libexec/zonecheck/cgi-bin/zc.cgi -%%ZONECHECK_CGI%%@dirrm libexec/zonecheck/cgi-bin +%%CGI%%libexec/zonecheck/cgi-bin/zc.cgi +%%CGI%%@dirrm libexec/zonecheck/cgi-bin libexec/zonecheck/lib/textfmt.rb libexec/zonecheck/locale/cgi.en libexec/zonecheck/locale/cgi.fr @@ -101,35 +102,37 @@ @dirrm libexec/zonecheck/zc @dirrm libexec/zonecheck %%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/HISTORY %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/TODO %%PORTDOCS%%@dirrm %%DOCSDIR%% -%%ZONECHECK_CGI%%www/zonecheck/html/form.html.en -%%ZONECHECK_CGI%%www/zonecheck/html/form.html.fr -%%ZONECHECK_CGI%%www/zonecheck/zonecheck.conf.in -%%ZONECHECK_CGI%%www/zonecheck/img/details.png -%%ZONECHECK_CGI%%www/zonecheck/img/element.png -%%ZONECHECK_CGI%%www/zonecheck/img/fatal.png -%%ZONECHECK_CGI%%www/zonecheck/img/gear.png -%%ZONECHECK_CGI%%www/zonecheck/img/info.png -%%ZONECHECK_CGI%%www/zonecheck/img/light.png -%%ZONECHECK_CGI%%www/zonecheck/img/logo.png -%%ZONECHECK_CGI%%www/zonecheck/img/loupe.png -%%ZONECHECK_CGI%%www/zonecheck/img/notepad.png -%%ZONECHECK_CGI%%www/zonecheck/img/ok.png -%%ZONECHECK_CGI%%www/zonecheck/img/primary.png -%%ZONECHECK_CGI%%www/zonecheck/img/ref.png -%%ZONECHECK_CGI%%www/zonecheck/img/secondary.png -%%ZONECHECK_CGI%%www/zonecheck/img/warning.png -%%ZONECHECK_CGI%%www/zonecheck/img/zc-fav.png -%%ZONECHECK_CGI%%www/zonecheck/img/zone.png -%%ZONECHECK_CGI%%www/zonecheck/js/formvalidation.js -%%ZONECHECK_CGI%%www/zonecheck/js/popupmenu.js -%%ZONECHECK_CGI%%www/zonecheck/js/progress.js -%%ZONECHECK_CGI%%www/zonecheck/style/zc.css -%%ZONECHECK_CGI%%@dirrm www/zonecheck/html -%%ZONECHECK_CGI%%@dirrm www/zonecheck/img -%%ZONECHECK_CGI%%@dirrm www/zonecheck/js -%%ZONECHECK_CGI%%@dirrm www/zonecheck/style -%%ZONECHECK_CGI%%@dirrm www/zonecheck +%%CGI%%www/zonecheck/html/form.html.en +%%CGI%%www/zonecheck/html/form.html.fr +%%CGI%%www/zonecheck/zonecheck.conf.in +%%CGI%%www/zonecheck/img/details.png +%%CGI%%www/zonecheck/img/element.png +%%CGI%%www/zonecheck/img/fatal.png +%%CGI%%www/zonecheck/img/gear.png +%%CGI%%www/zonecheck/img/info.png +%%CGI%%www/zonecheck/img/light.png +%%CGI%%www/zonecheck/img/logo.png +%%CGI%%www/zonecheck/img/loupe.png +%%CGI%%www/zonecheck/img/notepad.png +%%CGI%%www/zonecheck/img/ok.png +%%CGI%%www/zonecheck/img/primary.png +%%CGI%%www/zonecheck/img/ref.png +%%CGI%%www/zonecheck/img/secondary.png +%%CGI%%www/zonecheck/img/warning.png +%%CGI%%www/zonecheck/img/zc-fav.png +%%CGI%%www/zonecheck/img/zone.png +%%CGI%%www/zonecheck/js/formvalidation.js +%%CGI%%www/zonecheck/js/popupmenu.js +%%CGI%%www/zonecheck/js/progress.js +%%CGI%%www/zonecheck/style/zc.css +%%CGI%%@dirrm www/zonecheck/html +%%CGI%%@dirrm www/zonecheck/img +%%CGI%%@dirrm www/zonecheck/js +%%CGI%%@dirrm www/zonecheck/style +%%CGI%%@dirrm www/zonecheck --- zonecheck-3.0.5,1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131028172450.EBFF314269C>