aboutsummaryrefslogtreecommitdiffstats
path: root/www/validator
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-09-18 04:39:23 +0800
committerpav <pav@FreeBSD.org>2005-09-18 04:39:23 +0800
commit049e69a1b0f6522b8ae1da3fc983ba493d8a9238 (patch)
treefa11bbe259950c71bde1df5597a23faf36aaf19e /www/validator
parentf6432cd089345156632c4d353c3b4ca4cb118009 (diff)
downloadfreebsd-ports-gnome-049e69a1b0f6522b8ae1da3fc983ba493d8a9238.tar.gz
freebsd-ports-gnome-049e69a1b0f6522b8ae1da3fc983ba493d8a9238.tar.zst
freebsd-ports-gnome-049e69a1b0f6522b8ae1da3fc983ba493d8a9238.zip
- Make sample configuration file respect PREFIX and LOCALBASE
PR: ports/86250 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
Diffstat (limited to 'www/validator')
-rw-r--r--www/validator/Makefile6
-rw-r--r--www/validator/files/validator.conf.sample.in (renamed from www/validator/files/validator.conf.sample)12
2 files changed, 10 insertions, 8 deletions
diff --git a/www/validator/Makefile b/www/validator/Makefile
index 1f915fc6b60d..d6b91b77323d 100644
--- a/www/validator/Makefile
+++ b/www/validator/Makefile
@@ -29,15 +29,17 @@ RUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/opensp \
NO_BUILD= yes
USE_PERL5_RUN= yes
-SUB_FILES= pkg-message
+SUB_FILES= pkg-message validator.conf.sample
post-extract:
@${RM} ${WRKSRC}/README.cvs
@${RM} -rf ${WRKSRC}/misc
@${RM} -rf ${WRKSRC}/httpd/conf
- @${CP} ${FILESDIR}/validator.conf.sample ${WRKSRC}/htdocs/config/
@${RM} ${WRKSRC}/htdocs/config/validator.conf
+pre-install:
+ @${CP} ${WRKDIR}/validator.conf.sample ${WRKSRC}/htdocs/config/
+
do-install:
${MKDIR} ${PREFIX}/www/validator
${MKDIR} ${PREFIX}/www/validator/htdocs
diff --git a/www/validator/files/validator.conf.sample b/www/validator/files/validator.conf.sample.in
index 6c45e8e2576e..35f4a0bfd857 100644
--- a/www/validator/files/validator.conf.sample
+++ b/www/validator/files/validator.conf.sample.in
@@ -21,7 +21,7 @@
#
# Base path. Defaults to the value of the W3C_VALIDATOR_HOME environment
# variable or /usr/local/validator if the variable does not exist.
- Base = /usr/local/www/validator
+ Base = %%PREFIX%%/www/validator
#
# Location of template files
@@ -34,7 +34,7 @@
#
# The SGML Parser to use. Defaults to /usr/bin/onsgmls.
- Parser = /usr/local/bin/onsgmls
+ Parser = %%LOCALBASE%%/bin/onsgmls
</SGML>
</Paths>
@@ -89,20 +89,20 @@ Element Ref URI = http://www.htmlhelp.com/reference/html40/
#
# Maps element names to URLs (cf. "Element Ref URI" above).
<Elements>
- Include /usr/local/www/validator/htdocs/config/eref.cfg
+ Include %%PREFIX%%/www/validator/htdocs/config/eref.cfg
</Elements>
#
# Main document Type Registry; contains all information on the types
# of documents we support and how they are processed.
<Types>
- Include /usr/local/www/validator/htdocs/config/types.conf
+ Include %%PREFIX%%/www/validator/htdocs/config/types.conf
</Types>
#
# Mapping of charset names to their IANA names and how iconv(3) knows them.
<Charsets>
- Include /usr/local/www/validator/htdocs/config/charset.cfg
+ Include %%PREFIX%%/www/validator/htdocs/config/charset.cfg
</Charsets>
#
@@ -122,6 +122,6 @@ Element Ref URI = http://www.htmlhelp.com/reference/html40/
#
# Source for the "Tip of The Day" blurbs.
<Tips>
- Include /usr/local/www/validator/htdocs/config/tips.cfg
+ Include %%PREFIX%%/www/validator/htdocs/config/tips.cfg
</Tips>