# Created by: Daniel Gerzo # $FreeBSD: head/sysutils/sysinfo/Makefile 412349 2016-04-01 14:25:16Z mat $ PORTNAME= sysinfo PORTVERSION= 1.0.1 PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= LOCAL/danger \ http://danger.rulez.sk/projects/sysinfo/ MAINTAINER= danger@FreeBSD.org COMMENT= Utility used to gather system configuration information LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENCE NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} OPTIONS_DEFINE= DMIDECODE DMIDECODE_DESC= Include information from the dmidecode tool DMIDECODE_RUN_DEPENDS= dmidecode:sysutils/dmidecode 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 ${WRKSRC}/doc/sysinfo.conf.5 @${REINPLACE_CMD} -e 's|APPDIR=.|APPDIR=${DATADIR}|g' \ ${WRKSRC}/sysinfo.conf ${WRKSRC}/doc/sysinfo.conf.5 do-install: ${INSTALL_SCRIPT} ${WRKSRC}/sysinfo ${STAGEDIR}${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/sysinfo.conf ${STAGEDIR}${PREFIX}/etc/sysinfo.conf.sample @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/common.subr ${STAGEDIR}${DATADIR} (cd ${WRKSRC} && ${COPYTREE_BIN} modules ${STAGEDIR}${DATADIR}) ${INSTALL_MAN} ${WRKSRC}/doc/sysinfo.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 ${INSTALL_MAN} ${WRKSRC}/doc/sysinfo.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 .include