summaryrefslogtreecommitdiff
path: root/sysutils/hptcli/Makefile
blob: 043219a24dd1b68f15a50729e060025f3fba1ef7 (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
PORTNAME=	hptcli
PORTVERSION=	3.6
PORTREVISION=	2
CATEGORIES=	sysutils
MASTER_SITES=	https://download.freenas.org/distfiles/
DISTNAME=	CLI-FreeBSD-3.6-1-120913

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	HighPoint storage controllers management CLI
WWW=		http://www.highpoint-tech.com/USA_new/cs-service_support.htm

# Converted from RESTRICTED
LICENSE=	hptcli
LICENSE_NAME=	hptcli
LICENSE_TEXT=	Redistribution is not allowed
LICENSE_PERMS=	auto-accept

EXTRACT_SUFX=	.tgz

ONLY_FOR_ARCHS=	i386 amd64

NO_BUILD=	yes
NO_WRKSUBDIR=	yes

post-extract:
	cd ${WRKSRC} && ${TAR} -xf hptraidconf-3.6-1.tbz && \
		${TAR} -xf hptsvr-3.6-1.tbz

.include <bsd.port.pre.mk>

do-install:
	${INSTALL_MAN} ${WRKSRC}/hptraidconf.1 ${STAGEDIR}${PREFIX}/share/man/man1
.if ${ARCH} == "i386"
	${INSTALL_PROGRAM} ${WRKSRC}/hptraidconf-8.0 ${STAGEDIR}${PREFIX}/bin/hptraidconf
	${INSTALL_PROGRAM} ${WRKSRC}/hptsvr-3.6/hptsvr-8.0 ${STAGEDIR}${PREFIX}/sbin/hptsvr
.else
	${INSTALL_PROGRAM} ${WRKSRC}/hptraidconf-8.0.amd64 ${STAGEDIR}${PREFIX}/bin/hptraidconf
	${INSTALL_PROGRAM} ${WRKSRC}/hptsvr-3.6/hptsvr-8.0.amd64 ${STAGEDIR}${PREFIX}/sbin/hptsvr
.endif

.include <bsd.port.post.mk>