summaryrefslogtreecommitdiff
path: root/parallel/glunix
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-26 14:37:56 +0000
committeragc <agc@pkgsrc.org>2001-10-26 14:37:56 +0000
commit42f4f968e128751ca187b0ce446fe1821dd6d503 (patch)
treef0dad0dedd167fe2ac9b6cbe33f05d0cba20a6cc /parallel/glunix
parent296e868cf08c88bfb4279bc4607978e70b46be6c (diff)
downloadpkgsrc-42f4f968e128751ca187b0ce446fe1821dd6d503.tar.gz
Move the post-patch custom script into the package Makefile.
Diffstat (limited to 'parallel/glunix')
-rw-r--r--parallel/glunix/Makefile15
-rwxr-xr-xparallel/glunix/scripts/post-patch19
2 files changed, 13 insertions, 21 deletions
diff --git a/parallel/glunix/Makefile b/parallel/glunix/Makefile
index f3eb173351c..85179bb3eeb 100644
--- a/parallel/glunix/Makefile
+++ b/parallel/glunix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2001/10/26 14:10:01 agc Exp $
+# $NetBSD: Makefile,v 1.22 2001/10/26 14:37:56 agc Exp $
DISTNAME= glunix-release-1-0a
PKGNAME= glunix-1.0a
@@ -50,7 +50,18 @@ pre-fetch:
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-fetch
post-patch:
- cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/post-patch
+ cd ${WRKSRC}; \
+ for f in progs/glupart/glupart.c \
+ progs/glunix/glunix.1 \
+ progs/glurun/glurun-wrapper.pl \
+ progs/tools/run_glunix.c \
+ glunix/src/init/glunix.h; do \
+ ${MV} -f $$f $$f.input && \
+ ${SED} -e 's|%%%NOW_ROOT%%%|${NOW_ROOT}|' $$f.input > $$f; \
+ done; \
+ ${MV} -f glush/Makefile glush/Makefile.input && \
+ ${SED} -e 's|%%%PLAT%%%|${MACHINE_ARCH}-NetBSD-tcp|' \
+ progs/glush/Makefile.input > progs/glush/Makefile
# the glunix group needs to exist before building.
pre-configure:
diff --git a/parallel/glunix/scripts/post-patch b/parallel/glunix/scripts/post-patch
deleted file mode 100755
index 7cd72d83385..00000000000
--- a/parallel/glunix/scripts/post-patch
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /bin/sh
-
-cd $WRKSRC/progs
-
-sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" glupart/glupart.c > bak
-mv bak glupart/glupart.c
-sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" glunix/glunix.1 > bak
-mv bak glunix/glunix.1
-sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" glurun/glurun-wrapper.pl > bak
-mv bak glurun/glurun-wrapper.pl
-sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" tools/run_glunix.c > bak
-mv bak tools/run_glunix.c
-
-sed "s+%%%PLAT%%%+$ARCH-NetBSD-tcp+" glush/Makefile > bak
-mv bak glush/Makefile
-
-cd $WRKSRC/glunix
-sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" src/init/glunix.h > bak
-mv bak src/init/glunix.h