aboutsummaryrefslogtreecommitdiff
path: root/security/logcheck
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2009-05-26 20:25:59 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2009-05-26 20:25:59 +0000
commit3ea8cd6d2a53a34938cff1f72c775f2125aafc70 (patch)
tree16e06804d78f06e77d01a88c6d54370699114c41 /security/logcheck
parent0eff7e395aaa905074a5763932737dcfdf22559c (diff)
downloadports-3ea8cd6d2a53a34938cff1f72c775f2125aafc70.tar.gz
ports-3ea8cd6d2a53a34938cff1f72c775f2125aafc70.zip
- Fixed the "Error 255" installation problem when docbook-to-man
is already installed. If it's there, use it instead of installing docbook2X.
Notes
Notes: svn path=/head/; revision=234588
Diffstat (limited to 'security/logcheck')
-rw-r--r--security/logcheck/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/security/logcheck/Makefile b/security/logcheck/Makefile
index 896641755721..2260d335dfe7 100644
--- a/security/logcheck/Makefile
+++ b/security/logcheck/Makefile
@@ -15,7 +15,14 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= glarkin@FreeBSD.org
COMMENT= Auditing tool for system logs on Unix boxes
+# If docbook-to-man is present, use it. Otherwise, install
+# docbook2X (docbook2man) because it's much lighter weight.
+# If docbook-to-man is present and docbook2X is installed,
+# the man page conversion will fail. docbook2X and docbook-4.1
+# conflict with each other.
+.if !exists(/usr/local/bin/docbook-to-man)
BUILD_DEPENDS= docbook2man:${PORTSDIR}/textproc/docbook2X
+.endif
RUN_DEPENDS= lockfile:${PORTSDIR}/mail/procmail \
bash:${PORTSDIR}/shells/bash
@@ -47,10 +54,15 @@ do-build:
@${REINPLACE_CMD} -e 's!/etc/logcheck!${ETCDIR}!' \
-e 's!/usr/share/doc/logcheck-database/README.logcheck-database.gz!${DOCSDIR}/README.logcheck-database!' \
${WRKSRC}/docs/logcheck.sgml
+.if exists(/usr/local/bin/docbook-to-man)
+ @docbook-to-man ${WRKSRC}/docs/logcheck.sgml > \
+ ${WRKSRC}/docs/logcheck.8 2> /dev/null
+.else
@cd ${WRKSRC}/docs && docbook2man -s \
- /usr/local/share/docbook2X/xslt/man/docbook.xsl \
+ ${LOCALBASE}/share/docbook2X/xslt/man/docbook.xsl \
--sgml logcheck.sgml 2> /dev/null \
&& ${MV} Logcheck.8 logcheck.8
+.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/logcheck ${PREFIX}/sbin