Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2014 08:45:55 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371099 - head/devel/cvsweb3
Message-ID:  <201410180845.s9I8jtrI009339@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sat Oct 18 08:45:54 2014
New Revision: 371099
URL: https://svnweb.freebsd.org/changeset/ports/371099
QAT: https://qat.redports.org/buildarchive/r371099/

Log:
  - Fix install in case share/apache dir is not created prior to installtion
  
  PR:		192943
  Submitted by:	turutani@scphys.kyoto-u.ac.jp
  Approved by:	maintainer timeout

Modified:
  head/devel/cvsweb3/Makefile
  head/devel/cvsweb3/pkg-plist

Modified: head/devel/cvsweb3/Makefile
==============================================================================
--- head/devel/cvsweb3/Makefile	Sat Oct 18 08:20:22 2014	(r371098)
+++ head/devel/cvsweb3/Makefile	Sat Oct 18 08:45:54 2014	(r371099)
@@ -47,22 +47,19 @@ TITLE?=		My CVS Repository
 
 # Specify these directories in relative paths to ${PREFIX}.
 .if exists(${PREFIX}/www/cgi-bin)
-CGIDIR?=	www/cgi-bin
-ICONSDIR?=	www/icons
-CSSDIR?=	www/data/css
+DIRPREFIX=	www
+.elif exists(${PREFIX}/www/apache24/cgi-bin)
+DIRPREFIX=      www/apache24
 .elif exists(${PREFIX}/www/apache22/cgi-bin)
-CGIDIR?=	www/apache22/cgi-bin
-ICONSDIR?=	www/apache22/icons
-CSSDIR?=	www/apache22/data/css
+DIRPREFIX=	www/apache22
 .elif exists(${PREFIX}/apache/cgi-bin)
-CGIDIR?=	apache/cgi-bin
-ICONSDIR?=	apache/icons
-CSSDIR?=	apache/data/css
+DIRPREFIX=	apache
 .else
-CGIDIR?=	share/apache/cgi-bin
-ICONSDIR?=	share/apache/icons
-CSSDIR?=	share/apache/data/css
+DIRPREFIX=	share/apache
 .endif
+CGIDIR?=        ${DIRPREFIX}/cgi-bin
+ICONSDIR?=      ${DIRPREFIX}/icons
+CSSDIR?=        ${DIRPREFIX}/data/css
 
 CONFFILES=	cvsweb.conf \
 		cvsweb.conf-freebsd \
@@ -70,7 +67,8 @@ CONFFILES=	cvsweb.conf \
 		cvsweb.conf-netbsd \
 		cvsweb.conf-ruby
 
-PLIST_SUB=	CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}" CSSDIR="${CSSDIR}"
+PLIST_SUB=	CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}" CSSDIR="${CSSDIR}" \
+		DIRPREFIX="${DIRPREFIX}"
 
 SUB_FILES=	pkg-message
 SUB_LIST=	PREFIX="${PREFIX}" DOCSDIR="${DOCSDIR}"

Modified: head/devel/cvsweb3/pkg-plist
==============================================================================
--- head/devel/cvsweb3/pkg-plist	Sat Oct 18 08:20:22 2014	(r371098)
+++ head/devel/cvsweb3/pkg-plist	Sat Oct 18 08:45:54 2014	(r371099)
@@ -3,13 +3,11 @@ etc/cvsweb/cvsweb.conf-freebsd.dist
 etc/cvsweb/cvsweb.conf-openbsd.dist
 etc/cvsweb/cvsweb.conf-netbsd.dist
 etc/cvsweb/cvsweb.conf-ruby.dist
-@dirrm etc/cvsweb
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/cvsweb-httpd.conf
 %%CGIDIR%%/cvsweb.cgi
 %%ICONSDIR%%/cvsweb/back.gif
@@ -20,14 +18,8 @@ etc/cvsweb/cvsweb.conf-ruby.dist
 %%ICONSDIR%%/cvsweb/minigraph.png
 %%ICONSDIR%%/cvsweb/minitext.gif
 %%ICONSDIR%%/cvsweb/text.gif
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
-@dirrm %%ICONSDIR%%/cvsweb
 %%CSSDIR%%/cvsweb/cvsweb.css
-@dirrm %%CSSDIR%%/cvsweb
 share/enscript/hl/lang_cvsweb.st
 share/enscript/hl/lang_cvsweb_diff.st
-@dirrmtry %%CGIDIR%%
-@dirrmtry %%CSSDIR%%
-@dirrmtry share/apache/data
-@dirrmtry %%ICONSDIR%%
-@dirrmtry share/apache
+@dir %%DIRPREFIX%%/data
+@dir %%DIRPREFIX%%



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