summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_rolling-replace
diff options
context:
space:
mode:
authorgdt <gdt>2006-12-18 12:36:17 +0000
committergdt <gdt>2006-12-18 12:36:17 +0000
commitc99f0f8095a31811dd687a76d855ba8c5ada766d (patch)
tree44b19c432b17bc900e321530dd840db5d74411ae /pkgtools/pkg_rolling-replace
parent92d52a1f086ae9f9db0c719d0f1764192a6ef139 (diff)
downloadpkgsrc-c99f0f8095a31811dd687a76d855ba8c5ada766d.tar.gz
SUBST the path to ${MAKE}.
PKGREVISION++.
Diffstat (limited to 'pkgtools/pkg_rolling-replace')
-rw-r--r--pkgtools/pkg_rolling-replace/Makefile10
-rwxr-xr-xpkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh12
2 files changed, 11 insertions, 11 deletions
diff --git a/pkgtools/pkg_rolling-replace/Makefile b/pkgtools/pkg_rolling-replace/Makefile
index 0db7a2877e0..7fceac3004b 100644
--- a/pkgtools/pkg_rolling-replace/Makefile
+++ b/pkgtools/pkg_rolling-replace/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2006/12/06 00:54:25 xtraeme Exp $
+# $NetBSD: Makefile,v 1.3 2006/12/18 12:36:17 gdt Exp $
DISTNAME= pkg_rolling-replace-0.04
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
@@ -23,6 +23,12 @@ USE_LANGUAGES= # none
INSTALLATION_DIRS= sbin man/man8
+SUBST_CLASSES+= makepath
+SUBST_STAGE.makepath= pre-configure
+SUBST_MESSAGE.makepath= Fixing path to ${MAKE}.
+SUBST_FILES.makepath= pkg_rolling-replace.sh
+SUBST_SED.makepath= -e 's,@MAKE@,${MAKE},g'
+
.include "../../mk/bsd.prefs.mk"
# target exists only to force check-pkgsrc-patch prior to install
diff --git a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh
index 3023ff14a9d..a963c575447 100755
--- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh
+++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: pkg_rolling-replace.sh,v 1.1.1.1 2006/12/05 18:23:52 gdt Exp $
+# $NetBSD: pkg_rolling-replace.sh,v 1.2 2006/12/18 12:36:17 gdt Exp $
#<license>
# Copyright (c) 2006 BBN Technologies Corp. All rights reserved.
#
@@ -67,14 +67,8 @@ test -n "$PKGSRCDIR" || PKGSRCDIR=/usr/pkgsrc
unset PKG_PATH || true #or pkgsrc makefiles will complain
-MAKE=make
-# XXX Find BSD make at package build time.
-UNAME=`uname`
-case "$UNAME" in
- Darwin)
- MAKE=bmake
- ;;
-esac
+# Substituted by pkgsrc at pre-configure time.
+MAKE=@MAKE@
usage()
{