freebsd-ports/sysutils/logrotate/files/patch-ab
Chris D. Faulhaber d4767b5f68 Logrotate is a system utility that rotates, compresses, removes and mails
system log files

PR:		15759
Submitted by:	Yuan-Chen Cheng <ycheng@ml.tw.freebsd.org>
1999-12-30 12:35:51 +00:00

30 lines
966 B
Plaintext

--- Makefile.orig Wed Dec 30 03:29:13 1998
+++ Makefile Tue Dec 28 15:35:52 1999
@@ -2,11 +2,13 @@
CVSTAG = r$(subst .,-,$(VERSION))
CFLAGS = -Wall -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" $(RPM_OPT_FLAGS)
PROG = logrotate
-BINDIR = /usr/sbin
-MANDIR = /usr/man
+BINDIR = sbin
+MANDIR = man
MAN = logrotate.8
LOADLIBES = -lpopt
+LOADLIBES += -L/usr/local/lib
+CFLAGS += -I/usr/local/include
#--------------------------------------------------------------------------
OBJS = logrotate.o log.o config.o basenames.o
@@ -40,8 +42,8 @@
[ -d $(PREFIX)/$(MANDIR) ] || mkdir -p $(PREFIX)/$(MANDIR)
[ -d $(PREFIX)/$(MANDIR)/man8 ] || mkdir -p $(PREFIX)/$(MANDIR)/man8
- install -s -m 755 $(PROG) $(PREFIX)/$(BINDIR)
- install -m 644 $(MAN) $(PREFIX)/$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN)
+ install -c -s -m 755 $(PROG) $(PREFIX)/$(BINDIR)
+ install -c -m 644 $(MAN) $(PREFIX)/$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN)
co:
co RCS/*,v