summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-10-23 20:25:50 +0000
committerminskim <minskim@pkgsrc.org>2005-10-23 20:25:50 +0000
commitb3b57b68582849c4bac0e40caf8e7fdcdd6442f5 (patch)
tree1aaea5e7f0975fcbab6d2b4c010b946d4117da0c /shells
parent3a792d5b85caae330dd67ad25c549b214208b938 (diff)
downloadpkgsrc-b3b57b68582849c4bac0e40caf8e7fdcdd6442f5.tar.gz
Import 9rc from pkgsrc-wip. Packaged by Leonard Schmidt.
This is a port of various original plan9 tools for Unix based on plan9ports [1], mk-with-libs.tgz [2] and wmii [3]. [1] http://www.swtch.com/plan9port/ [2] http://swtch.com/plan9port/unix/ [3] http://www.wmii.net
Diffstat (limited to 'shells')
-rw-r--r--shells/9rc/DESCR9
-rw-r--r--shells/9rc/Makefile24
-rw-r--r--shells/9rc/PLIST32
-rw-r--r--shells/9rc/distinfo22
-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
21 files changed, 446 insertions, 0 deletions
diff --git a/shells/9rc/DESCR b/shells/9rc/DESCR
new file mode 100644
index 00000000000..0188532fce6
--- /dev/null
+++ b/shells/9rc/DESCR
@@ -0,0 +1,9 @@
+This is a port of various original plan9 tools for Unix based on
+plan9ports [1], mk-with-libs.tgz [2] and wmii [3].
+
+Many thanks go to Lucent, the Bell Labs which developed this fine stuff
+and to Russ Cox for his plan9ports.
+
+[1] http://www.swtch.com/plan9port/
+[2] http://swtch.com/plan9port/unix/
+[3] http://www.wmii.net
diff --git a/shells/9rc/Makefile b/shells/9rc/Makefile
new file mode 100644
index 00000000000..4ac41a387e5
--- /dev/null
+++ b/shells/9rc/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+#
+
+DISTNAME= 9rc-20051017
+CATEGORIES= shells
+MASTER_SITES= http://wmii.de/snaps/
+
+MAINTAINER= lems@gmx.net
+HOMEPAGE= http://wmii.de/
+COMMENT= Port of various original plan9 tools
+
+CONFLICTS= rc-[0-9]*
+
+USE_PKGINSTALL= yes
+PKG_SHELL= bin/rc
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${GNU_PROGRAM_PREFIX} == ""
+CONFLICTS+= grep-[0-9]*
+CONFLICTS+= coreutils-[0-9]*
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/shells/9rc/PLIST b/shells/9rc/PLIST
new file mode 100644
index 00000000000..9846c48e5f7
--- /dev/null
+++ b/shells/9rc/PLIST
@@ -0,0 +1,32 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+bin/basename
+bin/cat
+bin/cleanname
+bin/echo
+bin/grep
+bin/rc
+bin/sed
+bin/seq
+bin/sleep
+bin/sort
+bin/tee
+bin/test
+bin/touch
+bin/tr
+bin/uniq
+lib/rcmain
+man/man1/basename.1
+man/man1/cat.1
+man/man1/cleanname.1
+man/man1/echo.1
+man/man1/grep.1
+man/man1/rc.1
+man/man1/sed.1
+man/man1/seq.1
+man/man1/sleep.1
+man/man1/sort.1
+man/man1/tee.1
+man/man1/test.1
+man/man1/touch.1
+man/man1/tr.1
+man/man1/uniq.1
diff --git a/shells/9rc/distinfo b/shells/9rc/distinfo
new file mode 100644
index 00000000000..788dba4eb5e
--- /dev/null
+++ b/shells/9rc/distinfo
@@ -0,0 +1,22 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/23 20:25:50 minskim Exp $
+
+SHA1 (9rc-20051017.tar.gz) = 90c4435074fbbb244e532a74e7d0373b828d813f
+RMD160 (9rc-20051017.tar.gz) = 5ff248fee8d825c4c26a04b92a92e2f509bfdbae
+Size (9rc-20051017.tar.gz) = 178156 bytes
+SHA1 (patch-aa) = e9f83926c24ce944ac039e174fe4def79dd35139
+SHA1 (patch-ab) = f42ba9c8825b9898ce0278f1c7db2fdacce58af8
+SHA1 (patch-ac) = 4f8b1476e73a2517b1de193b3cf640bda4d16a82
+SHA1 (patch-ad) = 59109d872d40a63163b37e76d5b0b76515d17f5a
+SHA1 (patch-ae) = d0fedcd2fc6e689020d8791f53744d85339be91c
+SHA1 (patch-af) = 4c06e44b4e351f1ad4c781afbedd7b2c5e9427e8
+SHA1 (patch-ag) = 254dc9517dbb48c6047cfc504b4ef64fa97e3b18
+SHA1 (patch-ah) = 0598d123ecd680ceec8d01c501237a6d371e9a94
+SHA1 (patch-ai) = 014db6ae8aab5c5c86fb7cc60e498f0f8afbb390
+SHA1 (patch-aj) = 4a4a934aa96283cb5dbc4108551f8c80793c1c3a
+SHA1 (patch-ak) = f0a3215be3141d104fd0e8d199c849b1f5a69317
+SHA1 (patch-al) = 482bd6c7af9a6ce6453818df3831a1de8e481b92
+SHA1 (patch-am) = 7f2deafef23e55a1e793674d53602c5f8a04955d
+SHA1 (patch-an) = 3eca6202e34dae9303edf8c5140b3d2ff3557d91
+SHA1 (patch-ao) = 7936547140cc7e9cdcd5dbadd9fef9267705d923
+SHA1 (patch-ap) = 6669724caa674d62abf3b98e86581fa25232d57f
+SHA1 (patch-aq) = 7e70edd4ee046119fda9e0cc5cdecccbcb424d04
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}