2005-03-03 22:03:56 +00:00
|
|
|
# New ports collection makefile for: 3dm2
|
|
|
|
# Date created: 02 Sep 2002
|
|
|
|
# Whom: dbaker
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= 3dm
|
2010-02-02 16:17:23 +00:00
|
|
|
PORTVERSION= 2.09.01.004
|
2005-03-04 01:47:03 +00:00
|
|
|
PORTEPOCH= 1
|
2005-03-03 22:03:56 +00:00
|
|
|
CATEGORIES= sysutils
|
2010-02-02 16:17:23 +00:00
|
|
|
MASTER_SITES= http://vivi.cat.pdx.edu/3dm2/
|
2005-03-03 22:03:56 +00:00
|
|
|
|
2008-11-15 02:52:11 +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
|
2010-02-02 16:17:23 +00:00
|
|
|
USE_BZIP2= yes
|
2005-03-03 22:03:56 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
DISTFILES= 3dm2_${PORTVERSION}_${ARCH}.tar.bz2
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 800000
|
|
|
|
BROKEN=Requires KSE support for static-linked binaries.
|
|
|
|
.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
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
OPTSRC= ${WRKSRC}/opt/AMCC/3DM2
|
|
|
|
HELPSRC= ${OPTSRC}/help/en
|
|
|
|
MSGSRC= ${OPTSRC}/msg
|
2005-03-03 22:03:56 +00:00
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
HELPDIR= ${PREFIX}/share/3dm2/help/en
|
|
|
|
MSGDIR= ${PREFIX}/etc/3dm2/msg
|
2007-01-26 14:57:30 +00:00
|
|
|
|
|
|
|
post-patch:
|
2010-02-02 16:17:23 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|AMCC-logo\.jpg|AMCC-logo-smaler\.jpg|g' \
|
|
|
|
${WRKSRC}/opt/AMCC/3DM2/help/en/*.html
|
2007-01-26 14:57:30 +00:00
|
|
|
|
|
|
|
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:
|
2010-02-02 16:17:23 +00:00
|
|
|
.if !exists(${HELPDIR}/css)
|
|
|
|
@${MKDIR} ${HELPDIR}/css
|
2007-01-26 14:57:30 +00:00
|
|
|
.endif
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
.if !exists(${HELPDIR}/images)
|
|
|
|
@${MKDIR} ${HELPDIR}/images
|
2005-03-03 22:03:56 +00:00
|
|
|
.endif
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
.if !exists(${HELPDIR}/scripts)
|
|
|
|
@${MKDIR} ${HELPDIR}/scripts
|
2005-11-11 01:29:39 +00:00
|
|
|
.endif
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
${INSTALL_DATA} ${HELPSRC}/*.html ${HELPDIR}
|
|
|
|
${INSTALL_DATA} ${HELPSRC}/*.gif ${HELPDIR}
|
|
|
|
${INSTALL_DATA} ${HELPSRC}/*.jpg ${HELPDIR}
|
|
|
|
${INSTALL_DATA} ${HELPSRC}/css/* ${HELPDIR}/css
|
|
|
|
${INSTALL_DATA} ${HELPSRC}/images/* ${HELPDIR}/images
|
|
|
|
${INSTALL_DATA} ${HELPSRC}/scripts/* ${HELPDIR}/scripts
|
2005-03-03 22:03:56 +00:00
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/usr/sbin/3dm2 ${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
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
.if !exists(${MSGDIR})
|
|
|
|
@${MKDIR} ${MSGDIR}
|
2005-11-11 01:29:39 +00:00
|
|
|
.endif
|
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
${INSTALL_DATA} ${MSGSRC}/tdm_msg_en ${MSGDIR}
|
|
|
|
${INSTALL_DATA} ${MSGSRC}/tw_msg_en ${MSGDIR}
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/3dm2/
|
|
|
|
${CHMOD} 400 ${PREFIX}/etc/3dm2/3dm2.conf.sample
|
2005-11-11 01:29:39 +00:00
|
|
|
|
2010-02-02 16:17:23 +00:00
|
|
|
post-install:
|
2005-11-11 01:29:39 +00:00
|
|
|
.if !exists(${PREFIX}/etc/3dm2/3dm2.conf)
|
2010-02-02 16:17:23 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/3dm2/3dm2.conf
|
|
|
|
${CHMOD} 600 ${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
|
|
|
|
|
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/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>
|