From 261a54104502d5b6b5241d0d1f0c698c5574efba Mon Sep 17 00:00:00 2001
From: ade <ade@FreeBSD.org>
Date: Fri, 13 Oct 2000 20:28:33 +0000
Subject: Support PREFIX properly Support install macros Update WWW: line of
 pkg-descr

PR:		21617
Submitted by:	Ports Fury (no response from maintainer)
---
 sysutils/logrotate/Makefile       | 2 +-
 sysutils/logrotate/files/patch-ab | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

(limited to 'sysutils/logrotate')

diff --git a/sysutils/logrotate/Makefile b/sysutils/logrotate/Makefile
index 7b78125a78cf..b17c5c103a3a 100644
--- a/sysutils/logrotate/Makefile
+++ b/sysutils/logrotate/Makefile
@@ -25,7 +25,7 @@ do-extract:
 	@${RM} -rf ${WRKDIR}
 	@${MKDIR} ${WRKDIR}
 	@rpm2cpio ${_DISTDIR}${DISTFILES} | (cd ${WRKDIR}; cpio -i)
-	@tar -xzf ${WRKDIR}/${DISTNAME}.tar.gz -C ${WRKDIR}
+	@${TAR} -xzf ${WRKDIR}/${DISTNAME}.tar.gz -C ${WRKDIR}
 
 post-install:
 	@${MKDIR} ${PREFIX}/etc/logrotate.d
diff --git a/sysutils/logrotate/files/patch-ab b/sysutils/logrotate/files/patch-ab
index ce6b777e5dde..cfe962fa720e 100644
--- a/sysutils/logrotate/files/patch-ab
+++ b/sysutils/logrotate/files/patch-ab
@@ -11,8 +11,8 @@
  MAN = logrotate.8
  LOADLIBES = -lpopt
  
-+LOADLIBES += -L/usr/local/lib
-+CFLAGS += -I/usr/local/include
++LOADLIBES += -L${LOCALBASE}/lib
++CFLAGS += -I${LOCALBASE}/include
  #--------------------------------------------------------------------------
  
  OBJS = logrotate.o log.o config.o basenames.o
@@ -22,8 +22,8 @@
  
 -	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)
++	${BSD_INSTALL_PROGRAM} $(PROG) $(PREFIX)/$(BINDIR)
++	${BSD_INSTALL_MAN} $(MAN) $(PREFIX)/$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN)
  
  co:
  	co RCS/*,v
-- 
cgit