summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-26 12:33:23 +0000
committeragc <agc@pkgsrc.org>2001-10-26 12:33:23 +0000
commitea79657c3b7b24ce6713d7ebbcb13128e2e2994e (patch)
tree94b7c9156b3020d2cfef14f63756ef5d2a6a4927
parent7ac52790a3edcfcfb4abf8b3bc5ae6221c594896 (diff)
downloadpkgsrc-ea79657c3b7b24ce6713d7ebbcb13128e2e2994e.tar.gz
Move from a custom post-patch script to a standard package Makefile
target, and do things a bit more efficiently. Remove now unnecessary script. XXX This Makefile still needs work wrt tty devices XXX
-rw-r--r--misc/ibutton-pdkit/Makefile12
-rw-r--r--misc/ibutton-pdkit/scripts/post-patch21
2 files changed, 11 insertions, 22 deletions
diff --git a/misc/ibutton-pdkit/Makefile b/misc/ibutton-pdkit/Makefile
index 0555f7c52f7..c152b53b6c0 100644
--- a/misc/ibutton-pdkit/Makefile
+++ b/misc/ibutton-pdkit/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/09/09 20:36:36 agc Exp $
+# $NetBSD: Makefile,v 1.4 2001/10/26 12:33:23 agc Exp $
#
DISTNAME= ulinuxgnu
@@ -16,6 +16,16 @@ MAKEFILE= makefile
SCRIPTS_ENV+= SED=${SED}
+post-patch:
+ cd ${WRKSRC}; \
+ ${MAKE} clean; \
+ for f in *.c; do \
+ ${SED} -e 's|/dev/cua0|/dev/tty00|' \
+ -e 's|Linux DS2480|${OPSYS} DS2480|' \
+ $$f > $$f.new; \
+ ${MV} -f $$f.new $$f; \
+ done
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/atod ${PREFIX}/bin/atod
${INSTALL_PROGRAM} ${WRKSRC}/count ${PREFIX}/bin/count
diff --git a/misc/ibutton-pdkit/scripts/post-patch b/misc/ibutton-pdkit/scripts/post-patch
deleted file mode 100644
index 97088ecbd20..00000000000
--- a/misc/ibutton-pdkit/scripts/post-patch
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-#
-# $Id: post-patch,v 1.1.1.1 2000/12/18 23:33:32 tsarna Exp $
-#
-# This script cleans out the pre-made binaries and patches the
-# com port to /dev/tty00
-
-cd ${WRKSRC}
-make clean
-
-echo s@/dev/cua0@/dev/tty00@ > sedcmd
-echo s@Linux DS2480@NetBSD DS2480@ >> sedcmd
-
-for file in `ls *.c`
-do
- sed -f sedcmd < $file > $file.new
- rm $file
- mv $file.new $file
-done
-
-rm sedcmd