1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/sysutils/logrotate/files/patch-ab
Ade Lovett b674230dce Support PREFIX properly
Support install macros
Update WWW: line of pkg-descr

PR:		21617
Submitted by:	Ports Fury (no response from maintainer)
2000-10-13 20:28:33 +00:00

30 lines
973 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${LOCALBASE}/lib
+CFLAGS += -I${LOCALBASE}/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)
+ ${BSD_INSTALL_PROGRAM} $(PROG) $(PREFIX)/$(BINDIR)
+ ${BSD_INSTALL_MAN} $(MAN) $(PREFIX)/$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN)
co:
co RCS/*,v