aboutsummaryrefslogtreecommitdiff
path: root/sysutils/openseachest/Makefile
blob: 4717f8dbb0c92817b9d1c9b986c402a36a32b1ee (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45

PORTNAME=	openseachest
PORTVERSION=	21.03.01
DISTVERSIONPREFIX=	v
CATEGORIES=	sysutils

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Utilities for managing storage devices

LICENSE=	MPL20
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		gmake
ALL_TARGET=	release

USE_GITHUB=	yes
GH_ACCOUNT=	Seagate
GH_PROJECT=	openSeaChest
GH_TUPLE=	Seagate:opensea-common:1df13e2:common/opensea-common \
		Seagate:opensea-operations:2dd600a:operations/opensea-operations \
		Seagate:opensea-transport:0d04cf7:transport/opensea-transport \
		Seagate:wingetopt:1b5b5ad:wingetopt/wingetopt

BUILD_WRKSRC=	${WRKSRC}/Make/gcc
INSTALL_WRKSRC=	${WRKSRC}/Make/gcc
CFLAGS+=	-Wall -c -std=gnu99
MAKE_JOBS_UNSAFE=	yes
EXES=		openSeaChest_Basics openSeaChest_Configure openSeaChest_Erase \
		openSeaChest_Firmware openSeaChest_FormatUnit \
		openSeaChest_GenericTests openSeaChest_Info openSeaChest_Logs \
		openSeaChest_NVMe openSeaChest_PassthroughTest \
		openSeaChest_PowerControl openSeaChest_Security \
		openSeaChest_SMART openSeaChest_ZBD
.for file in ${EXES}
PLIST_FILES+=	bin/${file}
.endfor

.include <bsd.port.pre.mk>

do-install:
.for exefile in ${EXES}
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/openseachest_exes/${exefile} ${STAGEDIR}${PREFIX}/bin/
.endfor

.include <bsd.port.post.mk>