freebsd-ports/sysutils/3dm/Makefile
Yuri Victorovich 3b06d01136 sysutils/3dm: MASTER_SITES update
PR:		225723
Reported by:	takefu@airport.fm
Approved by:	tcberner (mentor, implicit)
2018-02-15 08:29:20 +00:00

51 lines
1.7 KiB
Makefile

# Created by: Daniel Baker <dbaker@FreeBSD.org>
# $FreeBSD$
PORTNAME= 3dm
DISTVERSION= 2.11.00.021
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= sysutils
MASTER_SITES= https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/
DISTNAME= 3DM2_CLI-freebsd_10-2-2-1_9-5-5-1
DIST_SUBDIR= 3dm2
MAINTAINER= takefu@airport.fm
COMMENT= 3ware RAID controller monitoring daemon and web server
LICENSE= 3dm
LICENSE_NAME= BROADCOM
LICENSE_TEXT= Source recipient must acknowledge license.\
Reproduction or redistribution prohibited.\
See https://www.broadcom.com/cs/Satellite?pagename=AVG2/Utilities/EulaMsg
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
USES= zip
USE_RC_SUBR= 3dm2
SUB_FILES= pkg-message 3dm2.conf.sample
NO_BUILD= yes
NO_WRKSUBDIR= yes
MSGDIR= ${ETCDIR}2/msg
post-extract:
@${TAR} xzf ${WRKSRC}/tdmCliBSD.tgz -C${WRKSRC}
@${TAR} xzf ${WRKSRC}/tdm2Help.tgz -C${WRKSRC}
@${TAR} xzf ${WRKSRC}/tdm2Msg.tgz -C${WRKSRC}
do-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}2 ${STAGEDIR}${MSGDIR}
@(cd ${WRKSRC}/en && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}2/help/en)
${INSTALL_PROGRAM} ${WRKSRC}/7x/3dm2.${ARCH:S,i386,x86,:S,amd64,x86_64,} \
${STAGEDIR}${PREFIX}/sbin/3dm2
${INSTALL_DATA} ${WRKSRC}/tdm_msg_en ${STAGEDIR}${MSGDIR}
${INSTALL_DATA} ${WRKSRC}/tw_msg_en ${STAGEDIR}${MSGDIR}
${INSTALL_DATA} ${WRKDIR}/3dm2.conf.sample ${STAGEDIR}${ETCDIR}2
# 3ware uses a hardcoded config dir location that doesn't match hier(9)
@${MKDIR} ${STAGEDIR}/etc/3dm2
(cd ${STAGEDIR} && ${LN} -s ${PREFIX}/etc/3dm2/3dm2.conf etc/3dm2/3dm2.conf)
(cd ${STAGEDIR} && ${LN} -s ${PREFIX}/etc/3dm2/3dm2.pem etc/3dm2/3dm2.pem)
.include <bsd.port.mk>