summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-04-14 16:31:54 +0000
committerharti <harti@FreeBSD.org>2004-04-14 16:31:54 +0000
commit376040b33fa95dba4cc3088c6eae6ab5e2bd1694 (patch)
tree25d03ca0322c261fab36acadf6a96c031390e861 /usr.sbin/bsnmpd
parent9baa54d87a47009f541ee0045d7ea26bf535064d (diff)
downloadFreeBSD-src-376040b33fa95dba4cc3088c6eae6ab5e2bd1694.zip
FreeBSD-src-376040b33fa95dba4cc3088c6eae6ab5e2bd1694.tar.gz
Use a MANFILTER to patch the man pages to point to the right path.
Noted by: phk
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/bsnmpd/Makefile4
-rw-r--r--usr.sbin/bsnmpd/modules/Makefile.inc4
2 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile
index 0f70d8f..465a8a8 100644
--- a/usr.sbin/bsnmpd/bsnmpd/Makefile
+++ b/usr.sbin/bsnmpd/bsnmpd/Makefile
@@ -36,4 +36,8 @@ oid.h: tree.def
tree.c tree.h: tree.def
gensnmptree -l < ${.ALLSRC}
+MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \
+ -e 's%@DEFPATH@%${DEFSDIR}/%g' \
+ -e 's%@MIBSPATH@%${BMIBSDIR}/%g'
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/bsnmpd/modules/Makefile.inc b/usr.sbin/bsnmpd/modules/Makefile.inc
index e9203cd..f4efa73 100644
--- a/usr.sbin/bsnmpd/modules/Makefile.inc
+++ b/usr.sbin/bsnmpd/modules/Makefile.inc
@@ -22,4 +22,8 @@ FILESGROUPS+= BMIBS
.endif
BMIBSDIR= ${SHAREDIR}/snmp/mibs
+MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \
+ -e 's%@DEFPATH@%${DEFSDIR}/%g' \
+ -e 's%@MIBSPATH@%${BMIBSDIR}/%g'
+
.include "../Makefile.inc"
OpenPOWER on IntegriCloud