mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
597afc47ba
With hat: portmgr Sponsored by: Absolight
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# Created by: Daniel Gerzo <danger@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
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 <bsd.port.mk>
|