patch-Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- transproxy-1.6.orig/Makefile 2004-03-31 14:19:34.000000000 +0200
  2. +++ transproxy-1.6/Makefile 2012-10-23 11:08:25.000000000 +0200
  3. @@ -64,17 +64,17 @@ OPTIONS += -DIPTABLES
  4. #OPTIONS += -DHAVE_GETOPT_H
  5. # You may need to touch PREFIX, CC and CFLAGS.
  6. -PREFIX = /usr/local
  7. -INSTALL_PROGRAM = install -c -m 555 -o bin -g bin
  8. -INSTALL_MAN = install -c -m 444 -o bin -g bin
  9. +PREFIX ?= $(DESTDIR)/usr
  10. +INSTALL_PROGRAM = install -c -m 555
  11. +INSTALL_MAN = install -c -m 444
  12. # Some make's don't define this.
  13. RM = rm -f
  14. # Should be OK for GNU gcc.
  15. -CC = gcc
  16. -CFLAGS = -O2 -Wall
  17. -LDFLAGS = -s
  18. +CC ?= gcc
  19. +CFLAGS ?= -O2 -Wall
  20. +LDFLAGS ?= -s
  21. # For using BIND resolver instead of system resolver.
  22. #LIBS += -lresolv # Really old Linux has this.
  23. @@ -103,7 +103,7 @@ clobber dist-clean: clean
  24. $(RM) tproxy
  25. install: tproxy
  26. + mkdir -p $(PREFIX)/sbin
  27. $(INSTALL_PROGRAM) tproxy $(PREFIX)/sbin
  28. $(INSTALL_PROGRAM) tproxyrun $(PREFIX)/sbin
  29. $(INSTALL_PROGRAM) tproxywatch $(PREFIX)/sbin
  30. - $(INSTALL_MAN) tproxy.8 $(PREFIX)/man/man8