openbsd-ports/plan9/sam/patches/patch-ad
espie a8548d6360 Fake plan9 subdir.
Add rc flavors.
2000-06-07 00:52:07 +00:00

52 lines
1.6 KiB
Plaintext

$OpenBSD: patch-ad,v 1.2 2000/06/07 00:52:09 espie Exp $
--- sam/Makefile.orig Wed Jun 7 02:38:21 2000
+++ sam/Makefile Wed Jun 7 02:42:06 2000
@@ -8,7 +8,7 @@
#
# Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
# if your compiler supports posix-compatible compilation
-OS=-DIRIX5 -ansiposix
+OS=-D_POSIX_SOURCE -DSOLARIS
# add -Iincludedir for any include directories that need to be searched
# for posix header files (for UMIPS, add -I/usr/include/posix)
@@ -22,12 +22,12 @@ HOMEDIR=HOME
# where sam is to be installed. SAMSAVEDIR is the name of the directory
# where the samsave file restoration script is stored.
RSAMNAME=sam
-TERMNAME=/v/bin/samterm
-SAMDIR=/usr/bin
-SAMSAVEDIR=/v/bin
+TERMNAME=/usr/local/bin/samterm
+SAMDIR=/usr/local/bin
+SAMSAVEDIR=/usr/local/bin
# Set TMP to a good place for tmp files (with lots of room)
-TMP=/tmp
+TMP=/var/tmp
# Set SHELLNAME and SHELLPATH to the name of a shell and the pathname
# of its executable
@@ -37,7 +37,7 @@ SHELLPATH=/bin/sh
# Set RXNAME and RXPATHNAME to the name of the remote execution command
# and the pathname of its executable
RXNAME=rsh
-RXPATHNAME=/usr/bsd/rsh
+RXPATHNAME=/usr/bin/rsh
SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave
@@ -68,9 +68,9 @@ nuke: clean
rm -f sam
install: sam
- cp sam $(SAMDIR)/$(RSAMNAME)
- cp samsave $(SAMSAVEDIR)/samsave
- chmod +x $(SAMSAVEDIR)/samsave
+ cp sam $(DESTDIR)$(SAMDIR)/$(RSAMNAME)
+ cp samsave $(DESTDIR)$(SAMSAVEDIR)/samsave
+ chmod +x $(DESTDIR)$(SAMSAVEDIR)/samsave
$(OBJ): sam.h ../include/u.h ../include/libc.h errors.h mesg.h