diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2003-05-09 12:23:23 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2003-05-09 12:23:23 +0000 |
commit | c4ff6d4ad518036bb83c6cb588348f1c7f112d0a (patch) | |
tree | c8490be11e21468de90cec009359c526425341a2 /sysutils/logtool/Makefile | |
parent | b15a78ceb5cb341d353333c8e2ca4f5f1e02ea4e (diff) | |
download | ports-c4ff6d4ad518036bb83c6cb588348f1c7f112d0a.tar.gz ports-c4ff6d4ad518036bb83c6cb588348f1c7f112d0a.zip |
Notes
Diffstat (limited to 'sysutils/logtool/Makefile')
-rw-r--r-- | sysutils/logtool/Makefile | 47 |
1 files changed, 25 insertions, 22 deletions
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 <bsd.port.mk> |