freebsd-ports/sysutils/hw-probe/Makefile
Alexey Dokuchaev 7b98a26092 - Update to 1.6-beta2 (upstream reused the previous tag, so point
GH_TAGNAME to the particular commit) and augment CATEGORIES
- Now dual licensed under LGPL-2.1-or-later or BSD-4-clause
- Conditionally depend on ports which are only available on x86,
  to make it usable on e.g. PowerPC (tested on Mac mini G4)
- Remove references to Linux and sudo(8) from the port description
  per request from the upstream author
2020-05-29 15:21:59 +00:00

43 lines
872 B
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= hw-probe
DISTVERSION= 1.6-beta2
CATEGORIES= sysutils perl5
MAINTAINER= danfe@FreeBSD.org
COMMENT= Probe for hardware, check operability, and find drivers
LICENSE= LGPL21+ BSD4CLAUSE
LICENSE_COMB= dual
RUN_DEPENDS= curl:ftp/curl \
hwstat:sysutils/hwstat \
smartctl:sysutils/smartmontools
USE_GITHUB= yes
GH_ACCOUNT= linuxhw
GH_TAGNAME= d1de28b
USES= perl5
USE_PERL5= run
MAKE_ARGS= prefix=${PREFIX}
NO_BUILD= yes
OPTIONS_DEFINE= DOCS
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= NEWS.md README.md
.include <bsd.port.pre.mk>
.if ${ARCH} == i386 || ${ARCH} == amd64
RUN_DEPENDS+= dmidecode:sysutils/dmidecode \
lscpu:sysutils/lscpu
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>