aboutsummaryrefslogtreecommitdiff
path: root/sysutils/seatools/Makefile
blob: 653b0f2d87677b0a558b40291c84945d97a78225 (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
# Created by: Boris Samorodov <bsam@FreeBSD.org>

PORTNAME=		seatools
PORTVERSION=		2.54
CATEGORIES=		sysutils linux
MASTER_SITES=		${DOWNLOAD_URL}
PKGNAMEPREFIX=		linux-
DISTNAME=		seatools_cli
EXTRACT_SUFX=		.tar

MAINTAINER=		bsam@FreeBSD.org
COMMENT=		Seagate's SeaTools for Linux

DOWNLOAD_URL=		http://www.seagate.com/files/www-content/support-content/downloads/seatools/_shared/downloads/seatools_cli.tar
NO_WRKSUBDIR=		yes
RESTRICTED=		Redistribution is not permitted
ONLY_FOR_ARCHS=		i386 amd64
USES=			linux

PLIST_FILES=		sbin/st
PORTDOCS=		sthelp.txt

OPTIONS_DEFINE=		DOCS

do-build:
	@${BRANDELF} -t Linux ${WRKSRC}/st

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/st ${STAGEDIR}${PREFIX}/sbin/st
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/sthelp.txt ${STAGEDIR}${DOCSDIR}/sthelp.txt

.include <bsd.port.pre.mk>

.if (!exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}))
IGNORE=	please fetch the distfile: ${DOWNLOAD_URL} by hand and place it in ${DISTDIR}
.endif

.include <bsd.port.post.mk>