2005-03-03 22:03:56 +00:00
|
|
|
# New ports collection makefile for: 3dm2
|
|
|
|
# Date created: 02 Sep 2002
|
|
|
|
# Whom: dbaker
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= 3dm
|
2007-01-26 14:57:30 +00:00
|
|
|
PORTVERSION= 2.04.00.035
|
2007-08-06 02:24:01 +00:00
|
|
|
PORTREVISION= 1
|
2005-03-04 01:47:03 +00:00
|
|
|
PORTEPOCH= 1
|
2005-03-03 22:03:56 +00:00
|
|
|
CATEGORIES= sysutils
|
2007-01-26 14:57:30 +00:00
|
|
|
MASTER_SITES= http://3ware.com/download/Escalade9650SE-Series/9.4.0.1/
|
|
|
|
DISTNAME= 3DM2-freebsd-9.4.0.1
|
2005-03-03 22:03:56 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2007-01-26 14:57:30 +00:00
|
|
|
MAINTAINER= ports.maintainer@evilphi.com
|
2005-03-03 22:03:56 +00:00
|
|
|
COMMENT= 3ware RAID controller monitoring daemon and web server
|
|
|
|
|
2005-11-11 01:29:39 +00:00
|
|
|
USE_RC_SUBR= 3dm2.sh
|
2005-03-03 22:03:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-11-11 01:29:39 +00:00
|
|
|
.if ${OSVERSION} < 504000
|
|
|
|
IGNORE= is not supported in versions earlier than 5.4-RELEASE
|
2005-03-03 22:03:56 +00:00
|
|
|
.endif
|
|
|
|
|
2005-09-08 18:03:44 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2005-03-03 22:03:56 +00:00
|
|
|
NO_BUILD= yes
|
2005-09-06 19:58:46 +00:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-03-03 22:03:56 +00:00
|
|
|
|
|
|
|
SHAREDIR= ${PREFIX}/share/3dm2/en
|
|
|
|
|
2007-01-26 14:57:30 +00:00
|
|
|
post-extract:
|
2005-03-03 22:03:56 +00:00
|
|
|
@cd ${WRKSRC}; ${TAR} zxf 3dm-bsd.tgz
|
|
|
|
@cd ${WRKSRC}; ${TAR} zxf 3dm-help.tgz
|
2005-11-11 01:29:39 +00:00
|
|
|
@cd ${WRKSRC}; ${TAR} zxf 3dm-msg.tgz
|
2007-01-26 14:57:30 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|AMCC-logo\.jpg|AMCC-logo-smaler\.jpg|g' ${WRKSRC}/en/*.html
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
|
|
< ${FILESDIR}/3dm2.conf.sample > ${WRKSRC}/3dm2.conf.sample
|
2005-03-03 22:03:56 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
|
2007-01-26 14:57:30 +00:00
|
|
|
.if !exists(${SHAREDIR}/css)
|
|
|
|
@${MKDIR} ${SHAREDIR}/css
|
|
|
|
.endif
|
|
|
|
|
2005-03-03 22:03:56 +00:00
|
|
|
.if !exists(${SHAREDIR}/images)
|
2005-11-11 01:29:39 +00:00
|
|
|
@${MKDIR} ${SHAREDIR}/images
|
2005-03-03 22:03:56 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !exists(${SHAREDIR}/scripts)
|
2005-11-11 01:29:39 +00:00
|
|
|
@${MKDIR} ${SHAREDIR}/scripts
|
|
|
|
.endif
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/en/*.html ${SHAREDIR}
|
2007-01-26 14:57:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/en/*.gif ${SHAREDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/en/*.jpg ${SHAREDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/en/css/* ${SHAREDIR}/css
|
2005-11-11 01:29:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/en/images/* ${SHAREDIR}/images
|
2007-01-26 14:57:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/en/scripts/* ${SHAREDIR}/scripts
|
2005-11-11 01:29:39 +00:00
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/3dm2.x86_64 ${PREFIX}/sbin/3dm2
|
|
|
|
.else
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/3dm2.x86 ${PREFIX}/sbin/3dm2
|
2005-03-03 22:03:56 +00:00
|
|
|
.endif
|
|
|
|
|
2005-11-11 01:29:39 +00:00
|
|
|
@${CHMOD} 500 ${PREFIX}/sbin/3dm2
|
2005-03-03 22:03:56 +00:00
|
|
|
|
2005-11-11 01:29:39 +00:00
|
|
|
.if !exists(${PREFIX}/etc/3dm2)
|
|
|
|
@${MKDIR} ${PREFIX}/etc/3dm2
|
2005-03-03 22:03:56 +00:00
|
|
|
.endif
|
|
|
|
|
2005-11-11 01:29:39 +00:00
|
|
|
.if !exists(${PREFIX}/etc/3dm2/msg)
|
|
|
|
@${MKDIR} ${PREFIX}/etc/3dm2/msg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tdm_msg_en ${PREFIX}/etc/3dm2/msg
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tw_msg_en ${PREFIX}/etc/3dm2/msg
|
|
|
|
|
|
|
|
.if !exists(${PREFIX}/etc/3dm2/3dm2.conf)
|
2005-03-03 22:03:56 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
2005-11-11 01:29:39 +00:00
|
|
|
@${ECHO} " Don't forget to edit '${PREFIX}/etc/3dm2/3dm2.conf' "
|
2005-03-03 22:03:56 +00:00
|
|
|
@${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@${ECHO} " Visit https://`hostname`:888/ "
|
|
|
|
@${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} ""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2005-11-11 01:29:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/3dm2/
|
2007-08-06 02:24:01 +00:00
|
|
|
${CHMOD} 400 ${PREFIX}/etc/3dm2/3dm2.conf.sample
|
|
|
|
[ -f ${PREFIX}/etc/3dm2/3dm2.conf ] || ( \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/3dm2/3dm2.conf && \
|
|
|
|
${CHMOD} 600 ${PREFIX}/etc/3dm2/3dm2.conf \
|
|
|
|
)
|
2005-11-11 01:29:39 +00:00
|
|
|
|
2007-01-26 14:57:30 +00:00
|
|
|
# 3ware uses a hardcoded config dir location that doesn't match hier(9)
|
2005-11-11 01:29:39 +00:00
|
|
|
|
2007-01-26 14:57:30 +00:00
|
|
|
.if !exists(/etc/3dm2)
|
|
|
|
@${MKDIR} /etc/3dm2
|
|
|
|
.endif
|
2005-11-11 01:29:39 +00:00
|
|
|
@${LN} -s ${PREFIX}/etc/3dm2/msg /etc/3dm2/msg
|
|
|
|
@${LN} -s ${PREFIX}/etc/3dm2/3dm2.conf /etc/3dm2/3dm2.conf
|
|
|
|
@${LN} -s ${PREFIX}/etc/3dm2/3dm2.pem /etc/3dm2/3dm2.pem
|
2005-03-03 22:03:56 +00:00
|
|
|
|
2006-05-25 22:08:29 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-03-03 22:03:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|