summaryrefslogtreecommitdiffstats
path: root/sysutils/logtool-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/logtool-devel/Makefile')
-rw-r--r--sysutils/logtool-devel/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/sysutils/logtool-devel/Makefile b/sysutils/logtool-devel/Makefile
index 0253e77..6d2111b 100644
--- a/sysutils/logtool-devel/Makefile
+++ b/sysutils/logtool-devel/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= logtool
-PORTVERSION= 1.0.4
+PORTVERSION= 1.0.5
CATEGORIES= sysutils
MASTER_SITES= http://users.digitex.net/~max/logtool/
@@ -15,24 +15,19 @@ MAINTAINER= ijliao@FreeBSD.org
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-HAS_CONFIGURE= yes
-CONFIGURE_ARGS= default
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=/usr/local --sysconfdir=/usr/local/etc/logtool
ALL_TARGET= build
-post-patch:
-.for file in logtool/Makefile logtail/Makefile
- @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
-.endfor
-.for file in logtool/config.h conf/logtool.conf
- @${PERL} -pi -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/${file}
-.endfor
+MAN1: logtool.1
post-install:
+ ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing logtool docs in ${PREFIX}/share/doc/logtool"
@${MKDIR} ${PREFIX}/share/doc/logtool && ${CHMOD} a+rx ${PREFIX}/share/doc/logtool
- @${CP} -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/logtool
+ @${CP} -R ${WRKSRC}/doc/examples ${WRKSRC}/doc/logtool.txt ${PREFIX}/share/doc/logtool
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud