2009-04-23 17:30:10 +00:00
|
|
|
# New ports collection makefile for: sysinfo
|
|
|
|
# Date created: 22 April 2009
|
|
|
|
# Whom: Daniel Gerzo <danger@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sysinfo
|
2009-04-28 20:13:40 +00:00
|
|
|
PORTVERSION= 0.8.6
|
2009-04-23 17:30:10 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://danger.rulez.sk/projects/sysinfo/
|
|
|
|
MASTER_SITE_SUBDIR=danger
|
|
|
|
|
|
|
|
MAINTAINER= danger@FreeBSD.org
|
|
|
|
COMMENT= Utility used to gather system configuration information
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2009-05-10 16:58:51 +00:00
|
|
|
OPTIONS= DMIDECODE "Include information from the dmidecode tool" Off \
|
|
|
|
PORTAUDIT "Include information from the portaudit tool" Off
|
2009-05-05 15:02:51 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_DMIDECODE)
|
|
|
|
RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
|
|
|
|
.endif
|
|
|
|
|
2009-05-10 16:58:51 +00:00
|
|
|
.if defined(WITH_PORTAUDIT)
|
|
|
|
RUN_DEPENDS+= portaudit:${PORTSDIR}/ports-mgmt/portaudit
|
|
|
|
.endif
|
|
|
|
|
2009-04-23 17:30:10 +00:00
|
|
|
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
|
|
|
|
@${REINPLACE_CMD} -e 's|APPDIR=.|APPDIR=${DATADIR}|g' ${WRKSRC}/sysinfo.conf
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysinfo ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sysinfo.conf ${PREFIX}/etc/sysinfo.conf.sample
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/common.subr ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENCE ${DATADIR}
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_BIN} modules ${DATADIR})
|
|
|
|
|
|
|
|
@if [ ! -f ${PREFIX}/etc/sysinfo.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/sysinfo.conf.sample ${PREFIX}/etc/sysinfo.conf ; \
|
|
|
|
fi
|
|
|
|
|
2009-05-05 15:02:51 +00:00
|
|
|
.include <bsd.port.post.mk>
|