aboutsummaryrefslogtreecommitdiff
path: root/sysutils/sysinfo
diff options
context:
space:
mode:
authorDaniel Gerzo <danger@FreeBSD.org>2009-05-05 15:02:51 +0000
committerDaniel Gerzo <danger@FreeBSD.org>2009-05-05 15:02:51 +0000
commitd8142076a4e312afbaceecb8fd04f01ea42b4bb5 (patch)
tree6994e223417a3cfb32e2e39fa262c935ea471e2c /sysutils/sysinfo
parentc5ffdfdbf8a885fa97e6944e4130a889d64c3c1c (diff)
downloadports-d8142076a4e312afbaceecb8fd04f01ea42b4bb5.tar.gz
ports-d8142076a4e312afbaceecb8fd04f01ea42b4bb5.zip
Notes
Diffstat (limited to 'sysutils/sysinfo')
-rw-r--r--sysutils/sysinfo/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/sysinfo/Makefile b/sysutils/sysinfo/Makefile
index 7886b060680c..403640443fe8 100644
--- a/sysutils/sysinfo/Makefile
+++ b/sysutils/sysinfo/Makefile
@@ -18,6 +18,14 @@ COMMENT= Utility used to gather system configuration information
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+OPTIONS= DMIDECODE "Include information from the dmidecode tool" Off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DMIDECODE)
+RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|common.subr|${DATADIR}/common.subr|g' ${WRKSRC}/sysinfo
@${REINPLACE_CMD} -e 's|sysinfo.conf|${PREFIX}/etc/sysinfo.conf|g' ${WRKSRC}/sysinfo
@@ -37,4 +45,4 @@ post-install:
${CP} -p ${PREFIX}/etc/sysinfo.conf.sample ${PREFIX}/etc/sysinfo.conf ; \
fi
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>