Jason E. Hale bd58a87d67 - Support staging
- Simplify MASTER_SITES
- Install LICENSE with LICENSE framework
- Use options helpers
- Use @sample in pkg-plist
- Bump PORTREVISION

Approved by:	portmgr (blanket approval)
2014-06-25 13:45:54 +00:00

45 lines
1.5 KiB
Makefile

# Created by: Daniel Gerzo <danger@FreeBSD.org>
# $FreeBSD$
PORTNAME= sysinfo
PORTVERSION= 1.0.1
PORTREVISION= 1
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 PORTAUDIT
DMIDECODE_DESC= Include information from the dmidecode tool
DMIDECODE_RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
PORTAUDIT_DESC= Include information from the portaudit tool
PORTAUDIT_RUN_DEPENDS= portaudit:${PORTSDIR}/ports-mgmt/portaudit
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 <bsd.port.mk>