summaryrefslogtreecommitdiff
path: root/sysutils/stressdisk/Makefile
blob: c9de978b92ca8c53034b83b857552f08015786e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PORTNAME=	stressdisk
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.13
PORTREVISION=	7
CATEGORIES=	sysutils

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Stress test your disks before trusting your valuable data to them
WWW=		https://github.com/ncw/stressdisk

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		go:modules
GO_MODULE=	github.com/ncw/stressdisk
GO_BUILDFLAGS=	-ldflags=" \
		-X main.version=${DISTVERSION}"

PLIST_FILES=	bin/stressdisk

PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>