diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-19 01:46:56 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-19 01:46:56 +0000 |
commit | 0c1ce66d14e94246d5726393797af8cecfb078ff (patch) | |
tree | 74eb23e40013707a57b6d91f7b87f3243253477d /net/hf6to4 | |
parent | 23612e3af5273e446f256ed3cd552cfc4863fc3b (diff) | |
download | pkgsrc-0c1ce66d14e94246d5726393797af8cecfb078ff.tar.gz |
Replace FILES_SUBST_SED with SUBST framework and actually do something:
SH and PKG_SYSCONFDIR are now properly written into the script.
Diffstat (limited to 'net/hf6to4')
-rw-r--r-- | net/hf6to4/Makefile | 13 | ||||
-rwxr-xr-x | net/hf6to4/files/hf6to4 | 6 |
2 files changed, 13 insertions, 6 deletions
diff --git a/net/hf6to4/Makefile b/net/hf6to4/Makefile index 21f86f546eb..0e3c6fb467a 100644 --- a/net/hf6to4/Makefile +++ b/net/hf6to4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2005/12/29 06:21:59 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2006/01/19 01:46:56 joerg Exp $ # DISTNAME= hf6to4-1.3 @@ -18,13 +18,20 @@ NOT_FOR_PLATFORM+= Interix-*-* # no IPv6 support or ifconfig command EXTRACT_ONLY= # empty NO_CHECKSUM= yes NO_CONFIGURE= yes +NO_BUILD= yes CONF_FILES+= ${PREFIX}/share/examples/hf6to4/hf6to4.conf ${PKG_SYSCONFDIR}/hf6to4.conf INSTALLATION_DIRS= man/man8 sbin -do-build: - @${SED} ${FILES_SUBST_SED} ${FILESDIR}/hf6to4 > ${WRKSRC}/hf6to4 +SUBST_CLASSES+= paths +SUBST_FILES.paths= hf6to4 +SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' +SUBST_SED.paths+= -e 's,@SH@,${SH},g' +SUBST_STAGE.paths= post-patch + +post-extract: + ${CP} ${FILESDIR}/hf6to4 ${WRKSRC}/hf6to4 do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hf6to4 diff --git a/net/hf6to4/files/hf6to4 b/net/hf6to4/files/hf6to4 index 21e5efd03ea..eb74a5dbdb9 100755 --- a/net/hf6to4/files/hf6to4 +++ b/net/hf6to4/files/hf6to4 @@ -1,6 +1,6 @@ -#!/bin/sh +#!@SH@ # -# $NetBSD: hf6to4,v 1.4 2005/05/30 22:49:43 hubertf Exp $ +# $NetBSD: hf6to4,v 1.5 2006/01/19 01:46:56 joerg Exp $ # # Copyright (c) 2000-2005 Hubert Feyrer <hubert@feyrer.de> # All rights reserved. @@ -36,7 +36,7 @@ # hf6to4 - Setup 6to4 IPv6, for NetBSD (and others) # -etcdir="/usr/pkg/etc"; +etcdir="@PKG_SYSCONFDIR@"; not=false verbose=false |