diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-17 20:39:23 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-09-17 20:39:23 +0000 |
commit | 8f07d1d032b642984023ff1cd36a7858f7078dc8 (patch) | |
tree | 20bf1476a54c8ed678df9f8bd5a198e464e333ab /www/validator | |
parent | be8c1fe942fe40bc361b5228645b2e1c5e135c69 (diff) | |
download | ports-8f07d1d032b642984023ff1cd36a7858f7078dc8.tar.gz ports-8f07d1d032b642984023ff1cd36a7858f7078dc8.zip |
- Make sample configuration file respect PREFIX and LOCALBASE
PR: ports/86250
Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=143029
Diffstat (limited to 'www/validator')
-rw-r--r-- | www/validator/Makefile | 6 | ||||
-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> |