summaryrefslogtreecommitdiff
path: root/shells/9rc/patches
diff options
context:
space:
mode:
Diffstat (limited to 'shells/9rc/patches')
-rw-r--r--shells/9rc/patches/patch-aa26
-rw-r--r--shells/9rc/patches/patch-ab13
-rw-r--r--shells/9rc/patches/patch-ac26
-rw-r--r--shells/9rc/patches/patch-ad21
-rw-r--r--shells/9rc/patches/patch-ae21
-rw-r--r--shells/9rc/patches/patch-af21
-rw-r--r--shells/9rc/patches/patch-ag21
-rw-r--r--shells/9rc/patches/patch-ah21
-rw-r--r--shells/9rc/patches/patch-ai21
-rw-r--r--shells/9rc/patches/patch-aj21
-rw-r--r--shells/9rc/patches/patch-ak21
-rw-r--r--shells/9rc/patches/patch-al21
-rw-r--r--shells/9rc/patches/patch-am21
-rw-r--r--shells/9rc/patches/patch-an21
-rw-r--r--shells/9rc/patches/patch-ao21
-rw-r--r--shells/9rc/patches/patch-ap21
-rw-r--r--shells/9rc/patches/patch-aq21
17 files changed, 359 insertions, 0 deletions
diff --git a/shells/9rc/patches/patch-aa b/shells/9rc/patches/patch-aa
new file mode 100644
index 00000000000..dca91d61032
--- /dev/null
+++ b/shells/9rc/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- config.mk.orig 2005-10-17 12:08:07.000000000 +0000
++++ config.mk
+@@ -1,16 +1,16 @@
+ # Customize to fit your system
+
+ # paths
+-PREFIX = /usr/local/9
+-MANPREFIX = ${PREFIX}/share/man
++#PREFIX = /usr/local/9
++MANPREFIX = ${PREFIX}/man
+
+ # flags
+ VERSION = 20051017
+-CFLAGS = -Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -Os -c -I. -DPREFIX="\"${PREFIX}\""
+-LDFLAGS =
++CFLAGS += -c -I. -DPREFIX="\"${PREFIX}\""
++LDFLAGS +=
+ O = o
+
+ # compiler
+ AR = ar rc
+-CC = cc
++#CC = cc
+ YACC = yacc
diff --git a/shells/9rc/patches/patch-ab b/shells/9rc/patches/patch-ab
new file mode 100644
index 00000000000..ccf4600849c
--- /dev/null
+++ b/shells/9rc/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- lib9/libc.h.orig 2005-08-23 21:38:52.000000000 +0000
++++ lib9/libc.h
+@@ -832,7 +832,7 @@ extern int post9pservice(int, char*);
+ # endif
+ #endif
+
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__NetBSD__)
+ #define sched_yield() \
+ do { \
+ struct timespec ts; \
diff --git a/shells/9rc/patches/patch-ac b/shells/9rc/patches/patch-ac
new file mode 100644
index 00000000000..4fe52661004
--- /dev/null
+++ b/shells/9rc/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- rc/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ rc/Makefile
+@@ -30,15 +30,12 @@ depend:
+ @${YACC} -d ${YFILES}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/lib
+- @cp -f ${RCMAIN} ${DESTDIR}${PREFIX}/lib
+- @chmod 755 ${DESTDIR}${PREFIX}/lib/${RCMAIN}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib
++ @${BSD_INSTALL_LIB} ${RCMAIN} ${DESTDIR}${PREFIX}/lib
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ad b/shells/9rc/patches/patch-ad
new file mode 100644
index 00000000000..65248cc7ba8
--- /dev/null
+++ b/shells/9rc/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- basename/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ basename/Makefile
+@@ -12,12 +12,10 @@ MANFILES = basename.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ae b/shells/9rc/patches/patch-ae
new file mode 100644
index 00000000000..c66987a1ee8
--- /dev/null
+++ b/shells/9rc/patches/patch-ae
@@ -0,0 +1,21 @@
+$NetBSD: patch-ae,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- cat/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ cat/Makefile
+@@ -12,12 +12,10 @@ MANFILES = cat.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-af b/shells/9rc/patches/patch-af
new file mode 100644
index 00000000000..f8ecc60672e
--- /dev/null
+++ b/shells/9rc/patches/patch-af
@@ -0,0 +1,21 @@
+$NetBSD: patch-af,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- cleanname/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ cleanname/Makefile
+@@ -12,12 +12,10 @@ MANFILES = cleanname.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ag b/shells/9rc/patches/patch-ag
new file mode 100644
index 00000000000..958035a0450
--- /dev/null
+++ b/shells/9rc/patches/patch-ag
@@ -0,0 +1,21 @@
+$NetBSD: patch-ag,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- echo/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ echo/Makefile
+@@ -12,12 +12,10 @@ MANFILES = echo.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ah b/shells/9rc/patches/patch-ah
new file mode 100644
index 00000000000..c59ae196ce9
--- /dev/null
+++ b/shells/9rc/patches/patch-ah
@@ -0,0 +1,21 @@
+$NetBSD: patch-ah,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- grep/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ grep/Makefile
+@@ -26,12 +26,10 @@ depend:
+ @${YACC} -d ${YFILES}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ai b/shells/9rc/patches/patch-ai
new file mode 100644
index 00000000000..242eaca8027
--- /dev/null
+++ b/shells/9rc/patches/patch-ai
@@ -0,0 +1,21 @@
+$NetBSD: patch-ai,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- sed/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ sed/Makefile
+@@ -12,12 +12,10 @@ MANFILES = sed.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-aj b/shells/9rc/patches/patch-aj
new file mode 100644
index 00000000000..e4bb5850237
--- /dev/null
+++ b/shells/9rc/patches/patch-aj
@@ -0,0 +1,21 @@
+$NetBSD: patch-aj,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- seq/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ seq/Makefile
+@@ -12,12 +12,10 @@ MANFILES = seq.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ak b/shells/9rc/patches/patch-ak
new file mode 100644
index 00000000000..828db1e719a
--- /dev/null
+++ b/shells/9rc/patches/patch-ak
@@ -0,0 +1,21 @@
+$NetBSD: patch-ak,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- sleep/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ sleep/Makefile
+@@ -12,12 +12,10 @@ MANFILES = sleep.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-al b/shells/9rc/patches/patch-al
new file mode 100644
index 00000000000..2c0cffb2af6
--- /dev/null
+++ b/shells/9rc/patches/patch-al
@@ -0,0 +1,21 @@
+$NetBSD: patch-al,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- sort/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ sort/Makefile
+@@ -12,12 +12,10 @@ MANFILES = sort.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-am b/shells/9rc/patches/patch-am
new file mode 100644
index 00000000000..900d8ff3dbe
--- /dev/null
+++ b/shells/9rc/patches/patch-am
@@ -0,0 +1,21 @@
+$NetBSD: patch-am,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- tee/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ tee/Makefile
+@@ -12,12 +12,10 @@ MANFILES = tee.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-an b/shells/9rc/patches/patch-an
new file mode 100644
index 00000000000..474a9020fe4
--- /dev/null
+++ b/shells/9rc/patches/patch-an
@@ -0,0 +1,21 @@
+$NetBSD: patch-an,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- test/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ test/Makefile
+@@ -12,12 +12,10 @@ MANFILES = test.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ao b/shells/9rc/patches/patch-ao
new file mode 100644
index 00000000000..9bfff435460
--- /dev/null
+++ b/shells/9rc/patches/patch-ao
@@ -0,0 +1,21 @@
+$NetBSD: patch-ao,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- touch/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ touch/Makefile
+@@ -12,12 +12,10 @@ MANFILES = touch.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-ap b/shells/9rc/patches/patch-ap
new file mode 100644
index 00000000000..91456d96023
--- /dev/null
+++ b/shells/9rc/patches/patch-ap
@@ -0,0 +1,21 @@
+$NetBSD: patch-ap,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- tr/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ tr/Makefile
+@@ -12,12 +12,10 @@ MANFILES = tr.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}
diff --git a/shells/9rc/patches/patch-aq b/shells/9rc/patches/patch-aq
new file mode 100644
index 00000000000..ae4e94a4d57
--- /dev/null
+++ b/shells/9rc/patches/patch-aq
@@ -0,0 +1,21 @@
+$NetBSD: patch-aq,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+--- uniq/Makefile.orig 2005-10-17 12:08:07.000000000 +0000
++++ uniq/Makefile
+@@ -12,12 +12,10 @@ MANFILES = uniq.1
+ all: ${TARG}
+
+ install: ${TARG}
+- @mkdir -p ${DESTDIR}${PREFIX}/bin
+- @cp -f ${TARG} ${DESTDIR}${PREFIX}/bin/
+- @chmod 755 ${DESTDIR}${PREFIX}/bin/${TARG}
+- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
+- @cp -f ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+- @chmod 444 ${DESTDIR}${MANPREFIX}/man1/${MANFILES}
++ @${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
++ @${BSD_INSTALL_PROGRAM} ${TARG} ${DESTDIR}${PREFIX}/bin/
++ @${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ @${BSD_INSTALL_MAN} ${MANFILES} ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ @rm -f ${DESTDIR}${PREFIX}/bin/${TARG}