patch-sam_Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. $OpenBSD: patch-sam_Makefile,v 1.2 2016/03/17 21:07:32 naddy Exp $
  2. --- sam/Makefile.orig Thu Mar 17 21:21:48 2016
  3. +++ sam/Makefile Thu Mar 17 21:21:48 2016
  4. @@ -8,7 +8,7 @@
  5. #
  6. # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
  7. # if your compiler supports posix-compatible compilation
  8. -OS=-DIRIX5 -ansiposix
  9. +OS=-D_POSIX_SOURCE -DSOLARIS
  10. # add -Iincludedir for any include directories that need to be searched
  11. # for posix header files (for UMIPS, add -I/usr/include/posix)
  12. @@ -22,12 +22,12 @@ HOMEDIR=HOME
  13. # where sam is to be installed. SAMSAVEDIR is the name of the directory
  14. # where the samsave file restoration script is stored.
  15. RSAMNAME=sam
  16. -TERMNAME=/v/bin/samterm
  17. -SAMDIR=/usr/bin
  18. -SAMSAVEDIR=/v/bin
  19. +TERMNAME=${PREFIX}/bin/samterm
  20. +SAMDIR=${PREFIX}/bin
  21. +SAMSAVEDIR=${PREFIX}/bin
  22. # Set TMP to a good place for tmp files (with lots of room)
  23. -TMP=/tmp
  24. +TMP=/var/tmp
  25. # Set SHELLNAME and SHELLPATH to the name of a shell and the pathname
  26. # of its executable
  27. @@ -36,12 +36,12 @@ SHELLPATH=/bin/sh
  28. # Set RXNAME and RXPATHNAME to the name of the remote execution command
  29. # and the pathname of its executable
  30. -RXNAME=rsh
  31. -RXPATHNAME=/usr/bsd/rsh
  32. +RXNAME=ssh
  33. +RXPATHNAME=/usr/bin/ssh
  34. SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave
  35. -CFLAGS=$(OS) -D_LIBXG_EXTENSION $(INCS)
  36. +CFLAGS+=$(OS) -D_LIBXG_EXTENSION $(INCS)
  37. SYSFLAGS= -DHOMEDIR=\"$(HOMEDIR)\" -DRSAMNAME=\"$(RSAMNAME)\" \
  38. -DTERMNAME=\"$(TERMNAME)\" -DTMP=\"$(TMP)\" \
  39. @@ -50,7 +50,6 @@ SYSFLAGS= -DHOMEDIR=\"$(HOMEDIR)\" -DRSAMNAME=\"$(RSA
  40. -DSAMSAVE=\"$(SAMSAVE)\"
  41. LIB=../libframe/libframe.a ../libXg/libXg.a
  42. -CC=cc
  43. OBJ=sam.o address.o buffer.o cmd.o disc.o error.o file.o io.o \
  44. list.o mesg.o moveto.o multi.o rasp.o regexp.o shell.o \