aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/qlogtools/Makefile18
-rw-r--r--sysutils/qlogtools/pkg-plist4
2 files changed, 18 insertions, 4 deletions
diff --git a/sysutils/qlogtools/Makefile b/sysutils/qlogtools/Makefile
index d7cf8a454ea7..e24a19847436 100644
--- a/sysutils/qlogtools/Makefile
+++ b/sysutils/qlogtools/Makefile
@@ -7,20 +7,30 @@
PORTNAME= qlogtools
PORTVERSION= 3.1
+PORTREVISION= 1
CATEGORIES= sysutils
-MASTER_SITES= http://untroubled.org/qlogtools/
+MASTER_SITES= http://untroubled.org/${PORTNAME}/
MAINTAINER= sergei@FreeBSD.org
COMMENT= Tools for processing logs from qmail and other packages
+LDFLAGS?= -s
+
MAN1= multipipe.1 multitail.1 qfilelog.1 \
spipe.1 tai2tai64n.1 tai64n2tai.1 teepipe.1
+DOCS= NEWS README
-pre-build:
- ${ECHO_CMD} ${PREFIX}/bin > ${WRKSRC}/conf-bin
- ${ECHO_CMD} ${PREFIX}/man > ${WRKSRC}/conf-man
+do-configure:
+ ${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
+ ${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man
+ ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
+ ${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/conf-ld
do-install:
cd ${WRKSRC} && ./installer
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/sysutils/qlogtools/pkg-plist b/sysutils/qlogtools/pkg-plist
index d5f817c46e96..d99fcfcbfd5f 100644
--- a/sysutils/qlogtools/pkg-plist
+++ b/sysutils/qlogtools/pkg-plist
@@ -1,3 +1,4 @@
+@comment $FreeBSD$
bin/multipipe
bin/multitail
bin/qfilelog
@@ -5,3 +6,6 @@ bin/spipe
bin/tai2tai64n
bin/tai64n2tai
bin/teepipe
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%