From aeedaa70fbe3372d9a24a2ca434f65e4bcfa0c30 Mon Sep 17 00:00:00 2001 From: danger Date: Tue, 5 May 2009 15:02:51 +0000 Subject: - add the OPTIONS section Approved by: itetcu --- sysutils/sysinfo/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sysutils/sysinfo') 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 + +.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 +.include -- cgit