From c4ff6d4ad518036bb83c6cb588348f1c7f112d0a Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Fri, 9 May 2003 12:23:23 +0000 Subject: Update to 1.2.2 USE_GETOPT_LONG Respect CFLAGS Update URLS Reword pkg-descr Add pkg-message Give Maintainership to submitter PR: 51498 Submitted by: Sergei Kolobov --- sysutils/logtool/Makefile | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'sysutils/logtool/Makefile') diff --git a/sysutils/logtool/Makefile b/sysutils/logtool/Makefile index e1cb16f971ba..d3f3a3505d1f 100644 --- a/sysutils/logtool/Makefile +++ b/sysutils/logtool/Makefile @@ -7,37 +7,40 @@ # PORTNAME= logtool -PORTVERSION= 1.0.7 +PORTVERSION= 1.2.2 CATEGORIES= sysutils -MASTER_SITES= http://xjack.org/logtool/logtool/ +MASTER_SITES= http://xjack.org/logtool/download/ -MAINTAINER= ports@FreeBSD.org -COMMENT= Parse syslog logfile into a palatable format +MAINTAINER= sergei@kolobov.com +COMMENT= Parse ASCII logfiles into ANSI, CSV, HTML formats -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +USE_GMAKE= yes +USE_GETOPT_LONG= yes -USE_REINPLACE= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${PREFIX} --sysconfdir=${PREFIX}/etc/logtool +GNU_CONFIGURE= yes +CONFIGURE_ENV= CFLAGS="${CFLAGS}" +CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/${PORTNAME} -ALL_TARGET= build +PKGMESSAGE= ${WRKDIR}/pkg-message MAN1= logtool.1 - -post-patch: - @${REINPLACE_CMD} -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/configure - -post-install: - ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1 - @${CP} ${WRKSRC}/conf/logtool.conf ${PREFIX}/etc/logtool/logtool.conf.dist - @${CP} ${WRKSRC}/conf/exclude ${PREFIX}/etc/logtool/exclude.dist - @${CP} ${WRKSRC}/conf/green ${PREFIX}/etc/logtool/green.dist - @${CP} ${WRKSRC}/conf/include ${PREFIX}/etc/logtool/include.dist - @${CP} ${WRKSRC}/conf/yellow ${PREFIX}/etc/logtool/yellow.dist +DOCS= CREDITS Changes README TODO doc/logtool.txt + +do-build: + cd ${WRKSRC}/src && ${GMAKE} INCLUDES="${CPPFLAGS}" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/logtool ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${MANPREFIX}/man/man1 + @${MKDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/scripts + ${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR} + @${RM} ${EXAMPLESDIR}/logtool.conf.in + ${INSTALL_DATA} ${WRKSRC}/scripts/* ${EXAMPLESDIR}/scripts .if !defined(NOPORTDOCS) - @${ECHO_MSG} "===> Installing logtool docs in ${PREFIX}/share/doc/logtool" @${MKDIR} ${DOCSDIR} - @${CP} -Rvf ${WRKSRC}/scripts ${WRKSRC}/doc/logtool.txt ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif + @${SED} -e 's!PREFIX!${PREFIX}!' ${.CURDIR}/pkg-message > ${PKGMESSAGE} + ${CAT} ${PKGMESSAGE} .include -- cgit v1.2.3