Add stagedir support.

Minor cleanup.

PR:	ports/183458
Submitted by:	Takefu <takefu@airport.fm>
Sponsored by:	FOX Amateur Radio Club
This commit is contained in:
Josh Paetzel 2013-11-02 14:28:37 +00:00
parent 0a4bb6ab22
commit 0cfff61cb3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332489
3 changed files with 14 additions and 12 deletions

View file

@ -10,32 +10,33 @@ DISTNAME= cli_freebsd_10.2.1_9.5.4
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= 3ware storage controllers management CLI
EXTRACT_SUFX:= .zip
RESTRICTED= Redistribution is not allowed
# i386 binary should work on ia64, but not tested
ONLY_FOR_ARCHS= i386 amd64 ia64
USE_ZIP= yes
WRKSRC= ${WRKDIR}
NO_BUILD= yes
BINSUFFIX= ${ARCH:S,i386,x86,:S,amd64,x86_64,:S,ia64,x86,}
SUB_FILES+= 407.status-3ware-raid
SUB_FILES= 407.status-3ware-raid
PORTDOCS= tw_cli.8.html
MAN8+= tw_cli.8
NO_STAGE= yes
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BINSUFFIX}/tw_cli ${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/tw_cli.8.nroff ${MANPREFIX}/man/man8/tw_cli.8
@${MKDIR} ${PREFIX}/etc/periodic/daily
${INSTALL_PROGRAM} ${WRKSRC}/${BINSUFFIX}/tw_cli\
${STAGEDIR}/${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/tw_cli.8.nroff\
${STAGEDIR}/${MANPREFIX}/man/man8/tw_cli.8
@${MKDIR} ${STAGEDIR}/${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/407.status-3ware-raid \
${PREFIX}/etc/periodic/daily/
${STAGEDIR}/${PREFIX}/etc/periodic/daily/
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/tw_cli.8.html ${DOCSDIR}/
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/tw_cli.8.html ${STAGEDIR}/${DOCSDIR}/
.endif
.include <bsd.port.mk>

View file

@ -4,4 +4,4 @@ It provides controller, logical unit and drive management. tw_cli can
be used in both interactive and batch mode, providing higher-level API
(Application Programming Interface) functionalities.
WWW: http://3ware.com/support/download.asp
WWW: http://3ware.com/support/download.asp

View file

@ -1,3 +1,4 @@
man/man8/tw_cli.8.gz
sbin/tw_cli
etc/periodic/daily/407.status-3ware-raid
@dirrmtry etc/periodic/daily