summaryrefslogtreecommitdiff
path: root/www/iasp
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-05 23:42:32 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-05 23:42:32 +0000
commit3b0633e1f170c3e8c5c35d7fe9f7c1e8aa39c8f1 (patch)
treeb7b4a22a796b37626a79bf84cf6a7e535f70f5d3 /www/iasp
parent6782e3d1560567755683de1707ab1521cf460fb7 (diff)
downloadpkgsrc-3b0633e1f170c3e8c5c35d7fe9f7c1e8aa39c8f1.tar.gz
Use SUBST framework.
Diffstat (limited to 'www/iasp')
-rw-r--r--www/iasp/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/www/iasp/Makefile b/www/iasp/Makefile
index e45e88025c6..8b9c0129885 100644
--- a/www/iasp/Makefile
+++ b/www/iasp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2005/12/29 06:22:23 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2006/01/05 23:42:32 joerg Exp $
.include "../../www/iasp/Makefile.common"
@@ -42,6 +42,11 @@ CONF_FILES+= ${CONFDIR}/${FILE}.default ${CONFDIR}/${FILE}
CONF_FILES+= /dev/null ${IASP_DESTDIR}/properties/license
RCD_SCRIPTS= iasp iasp_admin
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= mod_iasp.conf
+SUBST_SED.paths+= -e 's,@IASP@,${IASP_DESTDIR},g'
+SUBST_STAGE.paths= post-patch
+
post-extract:
cd ${WRKDIR}; ${GTAR} -xf ${IASP_TARFILE}
cd ${WRKSRC}; ${RM} -rf bin logs
@@ -49,13 +54,12 @@ post-extract:
cd ${WRKSRC}; for file in properties/*.properties; do \
${MV} -f $$file $$file.default; \
done
+ ${CP} ${FILESDIR}/mod_iasp.conf ${WRKSRC}
do-build:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${FILESDIR}/gen-scripts.sh
${MKDIR} ${WRKSRC}/WEB-INF
${CP} ${FILESDIR}/web.xml ${WRKSRC}/WEB-INF
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mod_iasp.conf \
- > ${WRKSRC}/mod_iasp.conf
do-install:
${MKDIR} ${IASP_DESTDIR:H}