From 09802d7358cbf67007929a59d01e0b616714b457 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 5 Jan 2006 23:33:22 +0000 Subject: Use SUBST framework. I don't believe double PREFIX makes sense, so fix that and bump the revision. --- www/apc-gui/Makefile | 15 ++++++++++----- www/apc-gui/files/apc_gui.conf.dist | 6 +++--- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'www') diff --git a/www/apc-gui/Makefile b/www/apc-gui/Makefile index 0f6bdcab876..e65cb86d721 100644 --- a/www/apc-gui/Makefile +++ b/www/apc-gui/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.14 2005/12/29 06:22:21 jlam Exp $ +# $NetBSD: Makefile,v 1.15 2006/01/05 23:33:22 joerg Exp $ DISTNAME= apc_gui-1.0.3 PKGNAME= ${DISTNAME:S/_/-/} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= www MASTER_SITES= http://apc.neuropeans.com/download/ @@ -27,9 +27,14 @@ CONF_FILES= ${EGDIR}/apc_gui.conf ${PKG_SYSCONFDIR}/apc_gui.conf CONF_FILES+= /dev/null ${APC_GUI_DIR}/apc_config_local.php OWN_DIRS= ${APC_GUI_DIR} -pre-install: - ${SED} ${FILES_SUBST_SED} ${FILESDIR}/apc_gui.conf.dist \ - > ${WRKDIR}/apc_gui.conf.dist +SUBST_CLASSES+= paths +SUBST_FILES.paths= ${WRKDIR}/apc_gui.conf.dist +SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' +SUBST_SED.paths+= -e 's,@APC_GUI_DIR@,${APC_GUI_DIR},g' +SUBST_STAGE.paths= post-patch + +post-extract: + ${CP} ${FILESDIR}/apc_gui.conf.dist ${WRKDIR} do-install: ${INSTALL_DATA_DIR} ${APC_GUI_DIR} ${EGDIR} diff --git a/www/apc-gui/files/apc_gui.conf.dist b/www/apc-gui/files/apc_gui.conf.dist index 653cbc695e8..c2b9e33192c 100644 --- a/www/apc-gui/files/apc_gui.conf.dist +++ b/www/apc-gui/files/apc_gui.conf.dist @@ -1,12 +1,12 @@ -# $NetBSD: apc_gui.conf.dist,v 1.1.1.1 2001/10/29 19:35:05 jlam Exp $ +# $NetBSD: apc_gui.conf.dist,v 1.2 2006/01/05 23:33:22 joerg Exp $ # # APC-GUI configuration file fragment for Apache - Alias /apc_gui/ "@PREFIX@/@APC_GUI_DIR@/" + Alias /apc_gui/ "@APC_GUI_DIR@/" - + Options Indexes MultiViews AllowOverride None Order allow,deny -- cgit v1.2.3