aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/qlogtools/Makefile24
-rw-r--r--sysutils/qlogtools/pkg-plist11
2 files changed, 15 insertions, 20 deletions
diff --git a/sysutils/qlogtools/Makefile b/sysutils/qlogtools/Makefile
index 910702443fd5..3aad0a5248e1 100644
--- a/sysutils/qlogtools/Makefile
+++ b/sysutils/qlogtools/Makefile
@@ -1,22 +1,24 @@
-# New ports collection makefile for: qlogtools
-# Date created: 22 Aug 2002
-# Whom: Sergei Kolobov <sergei@kolobov.com>
-#
+# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
-#
PORTNAME= qlogtools
PORTVERSION= 3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://untroubled.org/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools for processing logs from qmail and other packages
+LICENSE= GPLv2
+
+PLIST_FILES= bin/multipipe bin/multitail bin/qfilelog bin/spipe \
+ bin/tai2tai64n bin/tai64n2tai bin/teepipe
MAN1= multipipe.1 multitail.1 qfilelog.1 \
spipe.1 tai2tai64n.1 tai64n2tai.1 teepipe.1
-DOCS= NEWS README
+PORTDOCS= NEWS README
+
+OPTIONS_DEFINE= DOCS
do-configure:
${ECHO_CMD} "${PREFIX}/bin" > ${WRKSRC}/conf-bin
@@ -26,9 +28,13 @@ do-configure:
do-install:
cd ${WRKSRC} && ./installer
-.if !defined(NOPORTDOCS)
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+post-install:
@${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/sysutils/qlogtools/pkg-plist b/sysutils/qlogtools/pkg-plist
deleted file mode 100644
index d99fcfcbfd5f..000000000000
--- a/sysutils/qlogtools/pkg-plist
+++ /dev/null
@@ -1,11 +0,0 @@
-@comment $FreeBSD$
-bin/multipipe
-bin/multitail
-bin/qfilelog
-bin/spipe
-bin/tai2tai64n
-bin/tai64n2tai
-bin/teepipe
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%