diff options
author | glarkin <glarkin@FreeBSD.org> | 2009-05-27 04:25:59 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2009-05-27 04:25:59 +0800 |
commit | 971925cd00ae5c5d128071810bf57124602b8d5f (patch) | |
tree | 2d19dfa24b001820cef8eb0ca92a0458ce9c8960 /security/logcheck | |
parent | 2596c2dcd9495c3bb39f84f0d7453ca05b8c0cf2 (diff) | |
download | freebsd-ports-graphics-971925cd00ae5c5d128071810bf57124602b8d5f.tar.gz freebsd-ports-graphics-971925cd00ae5c5d128071810bf57124602b8d5f.tar.zst freebsd-ports-graphics-971925cd00ae5c5d128071810bf57124602b8d5f.zip |
- Fixed the "Error 255" installation problem when docbook-to-man
is already installed. If it's there, use it instead of installing
docbook2X.
Diffstat (limited to 'security/logcheck')
-rw-r--r-- | security/logcheck/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/security/logcheck/Makefile b/security/logcheck/Makefile index 89664175572..2260d335dfe 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 |