1
0

patch-Makefile 1001 B

123456789101112131415161718192021222324252627282930313233
  1. --- logrotate-3.8.7.orig/Makefile 2013-06-10 13:29:16.000000000 +0200
  2. +++ logrotate-3.8.7/Makefile 2014-03-23 15:16:09.000000000 +0100
  3. @@ -1,11 +1,11 @@
  4. VERSION = $(shell awk '/Version:/ { print $$2 }' logrotate.spec)
  5. -OS_NAME = $(shell uname -s)
  6. +OS_NAME = Linux
  7. LFS = $(shell echo `getconf LFS_CFLAGS 2>/dev/null`)
  8. CFLAGS = -Wall -D_GNU_SOURCE -D$(OS_NAME) -DVERSION=\"$(VERSION)\" $(RPM_OPT_FLAGS) $(LFS)
  9. PROG = logrotate
  10. MAN = logrotate.8
  11. MAN5 = logrotate.conf.5
  12. -LOADLIBES = -lpopt
  13. +LIBS = -lpopt
  14. SVNURL= svn+ssh://svn.fedorahosted.org/svn/logrotate
  15. SVNPUBURL = http://svn.fedorahosted.org/svn/logrotate
  16. SVNTAG = r$(subst .,-,$(VERSION))
  17. @@ -64,7 +64,7 @@ endif
  18. # Red Hat Linux
  19. ifeq ($(OS_NAME),Linux)
  20. INSTALL = install
  21. - BASEDIR = /usr
  22. + BASEDIR = $(DESTDIR)/usr
  23. endif
  24. # FreeBSD
  25. @@ -117,6 +117,7 @@ RCSVERSION = $(subst .,-,$(VERSION))
  26. all: $(TARGET) pretest
  27. $(PROG): $(OBJS)
  28. + $(CC) $(LDFLAGS) -o $(PROG) $^ $(LIBS)
  29. clean:
  30. rm -f $(OBJS) $(PROG) core* .depend