patch-Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --- mgetty-1.1.36.orig/Makefile 2007-06-15 13:15:56.000000000 +0200
  2. +++ mgetty-1.1.36/Makefile 2009-08-28 15:17:14.235450692 +0200
  3. @@ -164,7 +164,9 @@ LIBS=
  4. #
  5. # if your systems doesn't have one, use the shell script that I provide
  6. # in "inst.sh" (taken from X11R5). Needed on IRIX5.2
  7. -INSTALL=install -c -o bin -g bin
  8. +STRIP=$(STAGING_DIR)sstrip
  9. +INSTALL=install -c -o root -g root
  10. +#INSTALL=install -c -o bin -g bin
  11. #INSTALL=install -c -o root -g wheel # NeXT/BSD
  12. #INSTALL=/usr/ucb/install -c -o bin -g bin # AIX, Solaris 2.x
  13. #INSTALL=installbsd -c -o bin -g bin # OSF/1, AIX 4.1, 4.2
  14. @@ -216,7 +218,7 @@ FAX_SPOOL_OUT=$(FAX_SPOOL)/outgoing
  15. # (it's possible to run faxrunq(d) as root, but the FAX_OUT_USER
  16. # MUST NOT BE root or any other privileged account).
  17. #
  18. -FAX_OUT_USER=fax
  19. +FAX_OUT_USER=root
  20. #
  21. #
  22. # Where section 1 manual pages should be placed
  23. @@ -421,7 +423,12 @@ sedscript: mksed
  24. ./mksed >sedscript
  25. chmod +x sedscript
  26. -mksed: mksed.c policy.h Makefile
  27. +REALGCC:=/usr/bin/gcc
  28. +mksed: mksed.c policy.h Makefile
  29. + ( echo $(REALGCC); $(MAKE) "CC=$(REALGCC)" "CFLAGS=$(CFLAGS)" mksed-wrong;\
  30. + );
  31. +
  32. +mksed-wrong: mksed.c policy.h Makefile
  33. $(CC) $(CFLAGS) -DBINDIR=\"$(BINDIR)\" -DSBINDIR=\"$(SBINDIR)\" \
  34. -DLIBDIR=\"$(LIBDIR)\" \
  35. -DCONFDIR=\"$(CONFDIR)\" \
  36. @@ -586,8 +593,10 @@ install.bin: mgetty sendfax newslock \
  37. -test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) )
  38. -mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old
  39. -mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old
  40. - $(INSTALL) -s -m 700 mgetty $(SBINDIR)
  41. - $(INSTALL) -s -m 755 sendfax $(SBINDIR)
  42. + $(INSTALL) -m 700 mgetty $(SBINDIR)
  43. + $(STRIP) $(SBINDIR)/mgetty
  44. + $(INSTALL) -m 755 sendfax $(SBINDIR)
  45. + $(STRIP) $(SBINDIR)/sendfax
  46. #
  47. # data files + directories
  48. #
  49. @@ -649,7 +658,8 @@ install.bin: mgetty sendfax newslock \
  50. if [ ! -z "$(INSTALL_MECHO)" ] ; then \
  51. cd compat ; \
  52. $(CC) $(CFLAGS) -o mg.echo mg.echo.c && \
  53. - $(INSTALL) -s -m 755 mg.echo $(BINDIR) ; \
  54. + $(INSTALL) -m 755 mg.echo $(BINDIR) && \
  55. + $(STRIP) $(BINDIR)/mg.echo ; \
  56. fi
  57. #