aboutsummaryrefslogtreecommitdiff
path: root/sysutils/3dm
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-03-03 22:03:56 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-03-03 22:03:56 +0000
commit25872db3e6176c8894b3466d16995f9fb024ec5c (patch)
tree54f305f155b0983bfd88879f0070df9ec3690a9e /sysutils/3dm
parent2c426097692fc6918130e880cf768cb499d88b2d (diff)
downloadports-25872db3e6176c8894b3466d16995f9fb024ec5c.tar.gz
ports-25872db3e6176c8894b3466d16995f9fb024ec5c.zip
- Resurrect and update to 2.02.00.015
PR: ports/78330 Submitted by: James kamlyn <jameskamlyn@gmail.com>
Notes
Notes: svn path=/head/; revision=130295
Diffstat (limited to 'sysutils/3dm')
-rw-r--r--sysutils/3dm/Makefile97
-rw-r--r--sysutils/3dm/distinfo2
-rw-r--r--sysutils/3dm/files/3dm2.conf.sample15
-rw-r--r--sysutils/3dm/files/3dm2.sh34
-rw-r--r--sysutils/3dm/pkg-descr5
-rw-r--r--sysutils/3dm/pkg-install15
-rw-r--r--sysutils/3dm/pkg-plist127
7 files changed, 295 insertions, 0 deletions
diff --git a/sysutils/3dm/Makefile b/sysutils/3dm/Makefile
new file mode 100644
index 000000000000..1d3b3ee4ea4a
--- /dev/null
+++ b/sysutils/3dm/Makefile
@@ -0,0 +1,97 @@
+# New ports collection makefile for: 3dm2
+# Date created: 02 Sep 2002
+# Whom: dbaker
+#
+# $FreeBSD$
+#
+
+PORTNAME= 3dm
+PORTVERSION= 2.02.00.015
+CATEGORIES= sysutils
+MASTER_SITES= http://www.3ware.com/download/Escalade9000Series/9.1.5.2/
+DISTNAME= 3dm-x86-bsd
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= 3ware RAID controller monitoring daemon and web server
+
+USE_RC_SUBR= yes
+USE_REINPLACE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 450000
+IGNORE= "3ware 3ware ATA RAID (twe) is not supported in versions earlier than 4.5-RELEASE"
+.endif
+
+ONLY_FOR_ARCHS= i386
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/x86
+
+SHAREDIR= ${PREFIX}/share/3dm2/en
+
+SED_SCRIPT= -e 's,%%NAME%%,3dm2,g' \
+ -e 's:%%PREFIX%%:${PREFIX}:g' \
+ -e 's,%%RC_SUBR%%,${RC_SUBR},g'
+
+post-configure:
+ ${SED} ${SED_SCRIPT} ${FILESDIR}/3dm2.sh > ${WRKSRC}/3dm2.sh
+ ${SED} ${SED_SCRIPT} ${FILESDIR}/3dm2.conf.sample > ${WRKSRC}/3dm2.conf.sample
+
+pre-install:
+ @cd ${WRKSRC}; ${TAR} zxf 3dm-bsd.tgz
+ @cd ${WRKSRC}; ${TAR} zxf 3dm-help.tgz
+
+do-install:
+
+.if !exists(${SHAREDIR}/images)
+ ${MKDIR} ${SHAREDIR}/images
+.endif
+
+.if !exists(${SHAREDIR}/scripts)
+ ${MKDIR} ${SHAREDIR}/scripts
+.endif
+
+ ${INSTALL_DATA} ${WRKSRC}/en/*.html ${SHAREDIR}
+ ${INSTALL_DATA} ${WRKSRC}/en/*.css ${SHAREDIR}
+ ${INSTALL_DATA} ${WRKSRC}/en/images/* ${SHAREDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/en/scripts/*.js ${SHAREDIR}/scripts
+ ${INSTALL_PROGRAM} ${WRKSRC}/3dm2 ${PREFIX}/sbin
+ ${CHMOD} 500 ${PREFIX}/sbin/3dm2
+
+.if !exists(/etc/3dm2)
+ ${MKDIR} /etc/3dm2
+.endif
+
+.if !exists(${PREFIX}/etc/3dm2.conf)
+ @${ECHO} ""
+ @${ECHO} ""
+ @${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @${ECHO} " Don't forget to edit '${PREFIX}/etc/3dm2.conf' "
+ @${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @${ECHO} " Visit https://`hostname`:888/ "
+ @${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @${ECHO} ""
+ @${ECHO} ""
+.endif
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/3dm2.conf.sample ${PREFIX}/etc/
+ [ -f ${PREFIX}/etc/3dm2.conf ] || \
+ ${CP} ${PREFIX}/etc/3dm2.conf.sample \
+ ${PREFIX}/etc/3dm2.conf
+ ${INSTALL_SCRIPT} ${WRKSRC}/3dm2.sh ${PREFIX}/etc/rc.d/
+ ${CHMOD} 600 ${PREFIX}/etc/3dm2.conf.sample ${PREFIX}/etc/3dm2.conf
+
+# The binary, "3dm2" looks for the config file in /etc/3dm2, which is lame. The file
+# is placed in ${PREFIX}/etc/ (usually /usr/local/etc) and symlinked in /etc/3dm2
+# so that the binary can find it.
+
+ ${LN} -s ${PREFIX}/etc/3dm2.conf /etc/3dm2/3dm2.conf
+ ${LN} -s ${PREFIX}/etc/3dm2.pem /etc/3dm2/3dm2.pem
+
+ @${ECHO} ""
+ @${ECHO} "Add twdm2_enable="YES" to /etc/rc.conf to run 3dm2 from startup."
+ @${ECHO} ""
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/3dm/distinfo b/sysutils/3dm/distinfo
new file mode 100644
index 000000000000..426e60f5d9a8
--- /dev/null
+++ b/sysutils/3dm/distinfo
@@ -0,0 +1,2 @@
+MD5 (3dm-x86-bsd.tgz) = 9a245e74d48848aedbdc0b5a02f8f1c8
+SIZE (3dm-x86-bsd.tgz) = 781056
diff --git a/sysutils/3dm/files/3dm2.conf.sample b/sysutils/3dm/files/3dm2.conf.sample
new file mode 100644
index 000000000000..af6657eb6418
--- /dev/null
+++ b/sysutils/3dm/files/3dm2.conf.sample
@@ -0,0 +1,15 @@
+Port 888
+EmailEnable 0
+EmailSender 3dm@localhost
+EmailServer localhost
+EmailRecipient root
+EmailSeverity 1
+ROpwd twOmwmsK8lKk2
+ADMINpwd twOmwmsK8lKk2
+RemoteAccess 1
+Language 0
+Logger 0
+Refresh 5
+BGRate 3333333333333333
+MsgPath /var/log/3dm2.log
+Help %%PREFIX%%/share/3dm2
diff --git a/sysutils/3dm/files/3dm2.sh b/sysutils/3dm/files/3dm2.sh
new file mode 100644
index 000000000000..7f6f3eeae4e4
--- /dev/null
+++ b/sysutils/3dm/files/3dm2.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: %%NAME%%
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable %%NAME%%:
+# twdm2_enable="YES"
+#
+
+. "%%RC_SUBR%%"
+
+name=twdm2
+rcvar=`set_rcvar`
+
+start_precmd="twdm2_precmd"
+command="%%PREFIX%%/sbin/3dm2"
+required_files="%%PREFIX%%/etc/3dm2.conf"
+
+twdm2_precmd()
+{
+ umask 077
+}
+
+# set default
+twdm2_enable=${twdm2_enable:-"NO"}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/3dm/pkg-descr b/sysutils/3dm/pkg-descr
new file mode 100644
index 000000000000..d6c3cbc745bc
--- /dev/null
+++ b/sysutils/3dm/pkg-descr
@@ -0,0 +1,5 @@
+3DM 2 provides a web interface to remotely create, manage and monitor
+your 3ware RAID arrays. In the event of a hardware failure, 3DM 2 can
+automatically notify you via email.
+
+WWW: http://www.3ware.com/support/
diff --git a/sysutils/3dm/pkg-install b/sysutils/3dm/pkg-install
new file mode 100644
index 000000000000..394219c9560d
--- /dev/null
+++ b/sysutils/3dm/pkg-install
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ "$2" != "PRE-INSTALL" ]; then
+ exit 0
+fi
+
+#
+# "3dm2" looks for the config file in /etc/3dm2, which is lame. The file is
+# placed in ${PREFIX}/etc/ (usually /usr/local/etc) and symlinked in /etc/3dm2
+# so that the binary can find it.
+#
+ mkdir /etc/3dm2
+ ln -s ${PKG_PREFIX}/etc/3dm2.conf /etc/3dm2/3dm2.conf
+ ln -s ${PKG_PREFIX}/etc/3dm2.pem /etc/3dm2/3dm2.pem
+exit 0
diff --git a/sysutils/3dm/pkg-plist b/sysutils/3dm/pkg-plist
new file mode 100644
index 000000000000..cc47153fc74a
--- /dev/null
+++ b/sysutils/3dm/pkg-plist
@@ -0,0 +1,127 @@
+etc/rc.d/3dm2.sh
+@unexec if cmp -s %D/etc/3dm2.conf.sample %D/etc/3dm2.conf; then rm -f %D/etc/3dm2.conf; fi
+etc/3dm2.conf.sample
+@exec [ -f %B/3dm2.conf ] || cp %B/%f %B/3dm2.conf
+sbin/3dm2
+share/3dm2/en/3DM_2_OLH-1-01.html
+share/3dm2/en/3DM_2_OLH-1-02.html
+share/3dm2/en/3DM_2_OLH-1-03.html
+share/3dm2/en/3DM_2_OLH-1-04.html
+share/3dm2/en/3DM_2_OLH-1-05.html
+share/3dm2/en/3DM_2_OLH-1-06.html
+share/3dm2/en/3DM_2_OLH-1-07.html
+share/3dm2/en/3DM_2_OLH-1-08.html
+share/3dm2/en/3DM_2_OLH-1-09.html
+share/3dm2/en/3DM_2_OLH-1-10.html
+share/3dm2/en/3DM_2_OLH-1-11.html
+share/3dm2/en/3DM_2_OLH-1-12.html
+share/3dm2/en/3DM_2_OLH-1-13.html
+share/3dm2/en/3DM_2_OLH-1-14.html
+share/3dm2/en/3DM_2_OLH-1-15.html
+share/3dm2/en/3DM_2_OLH-1-16.html
+share/3dm2/en/3DM_2_OLH-1-17.html
+share/3dm2/en/3DM_2_OLH-1-18.html
+share/3dm2/en/3DM_2_OLH-1-19.html
+share/3dm2/en/3DM_2_OLH-1-20.html
+share/3dm2/en/3DM_2_OLH-1-21.html
+share/3dm2/en/3DM_2_OLH-1-22.html
+share/3dm2/en/3DM_2_OLH-1-23.html
+share/3dm2/en/3DM_2_OLH-1-24.html
+share/3dm2/en/3DM_2_OLH-1-25.html
+share/3dm2/en/3DM_2_OLH-1-26.html
+share/3dm2/en/3DM_2_OLH-1-27.html
+share/3dm2/en/3DM_2_OLH-1-28.html
+share/3dm2/en/3DM_2_OLH-1-29.html
+share/3dm2/en/3DM_2_OLH-1-30.html
+share/3dm2/en/3DM_2_OLH-1-31.html
+share/3dm2/en/3DM_2_OLH-2-1.html
+share/3dm2/en/3DM_2_OLH-2-2.html
+share/3dm2/en/3DM_2_OLH-2-3.html
+share/3dm2/en/3DM_2_OLH-3-01.html
+share/3dm2/en/3DM_2_OLH-3-02.html
+share/3dm2/en/3DM_2_OLH-3-03.html
+share/3dm2/en/3DM_2_OLH-3-04.html
+share/3dm2/en/3DM_2_OLH-3-05.html
+share/3dm2/en/3DM_2_OLH-3-06.html
+share/3dm2/en/3DM_2_OLH-3-07.html
+share/3dm2/en/3DM_2_OLH-3-08.html
+share/3dm2/en/3DM_2_OLH-3-09.html
+share/3dm2/en/3DM_2_OLH-3-10.html
+share/3dm2/en/3DM_2_OLH-3-11.html
+share/3dm2/en/3DM_2_OLH-3-12.html
+share/3dm2/en/3DM_2_OLH-3-13.html
+share/3dm2/en/3DM_2_OLH-3-14.html
+share/3dm2/en/3DM_2_OLH-4-01.html
+share/3dm2/en/3DM_2_OLH-4-02.html
+share/3dm2/en/3DM_2_OLH-4-03.html
+share/3dm2/en/3DM_2_OLH-4-04.html
+share/3dm2/en/3DM_2_OLH-4-05.html
+share/3dm2/en/3DM_2_OLH-4-06.html
+share/3dm2/en/3DM_2_OLH-4-07.html
+share/3dm2/en/3DM_2_OLH-4-08.html
+share/3dm2/en/3DM_2_OLH-4-09.html
+share/3dm2/en/3DM_2_OLH-4-10.html
+share/3dm2/en/3DM_2_OLH-4-11.html
+share/3dm2/en/3DM_2_OLH-4-12.html
+share/3dm2/en/3DM_2_OLH-4-13.html
+share/3dm2/en/3DM_2_OLH-4-14.html
+share/3dm2/en/3DM_2_OLH-4-15.html
+share/3dm2/en/3DM_2_OLH-4-16.html
+share/3dm2/en/3DM_2_OLH-4-17.html
+share/3dm2/en/3DM_2_OLH-4-18.html
+share/3dm2/en/3DM_2_OLH-4-19.html
+share/3dm2/en/3DM_2_OLH-4-20.html
+share/3dm2/en/3DM_2_OLH-4-21.html
+share/3dm2/en/3DM_2_OLH-4-22.html
+share/3dm2/en/3DM_2_OLH-5-1.html
+share/3dm2/en/3DM_2_OLH-5-2.html
+share/3dm2/en/3DM_2_OLH-5-3.html
+share/3dm2/en/3DM_2_OLH-5-4.html
+share/3dm2/en/3DM_2_OLH-5-5.html
+share/3dm2/en/3DM_2_OLH-6-1.html
+share/3dm2/en/IX.html
+share/3dm2/en/TOC.html
+share/3dm2/en/catalog.css
+share/3dm2/en/document.css
+share/3dm2/en/images/3DM_2_OLH-3-08-2.gif
+share/3dm2/en/images/3DM_2_OLH-3-09-3.gif
+share/3dm2/en/images/3DM_2_OLH-3-10-4.gif
+share/3dm2/en/images/3DM_2_OLH-3-12-5.gif
+share/3dm2/en/images/3DM_2_OLH-3-13-6.gif
+share/3dm2/en/images/3dm-selected-drives-to-create.gif
+share/3dm2/en/images/3ware-logo.png
+share/3dm2/en/images/3wblu_small50.gif
+share/3dm2/en/images/3wblu_small75.gif
+share/3dm2/en/images/AMCC-logo.GIF
+share/3dm2/en/images/AMCC-logo.jpg
+share/3dm2/en/images/AMCC.png
+share/3dm2/en/images/RAID-50-12-drives-select-drives-per-unit.gif
+share/3dm2/en/images/amcc-logo75.gif
+share/3dm2/en/images/collapse.gif
+share/3dm2/en/images/enable-write-cache.gif
+share/3dm2/en/images/expanded.gif
+share/3dm2/en/images/index.gif
+share/3dm2/en/images/indexx.gif
+share/3dm2/en/images/info-drill-downs.gif
+share/3dm2/en/images/logo.gif
+share/3dm2/en/images/menu-select.gif
+share/3dm2/en/images/next.gif
+share/3dm2/en/images/nextx.gif
+share/3dm2/en/images/on-off-schedule-buttons.gif
+share/3dm2/en/images/prev.gif
+share/3dm2/en/images/prevx.gif
+share/3dm2/en/images/seebttm.gif
+share/3dm2/en/images/seelflow.gif
+share/3dm2/en/images/seeright.gif
+share/3dm2/en/images/seertlow.gif
+share/3dm2/en/images/seertup.gif
+share/3dm2/en/images/select-drive-during-rebuild-3dm.gif
+share/3dm2/en/images/self-test-choices.gif
+share/3dm2/en/images/summary-screen-with-callouts.gif
+share/3dm2/en/images/toc.gif
+share/3dm2/en/images/tocx.gif
+share/3dm2/en/scripts/expand.js
+share/3dm2/en/scripts/seealso.js
+@unexec unlink /etc/3dm2/3dm2.conf
+@unexec unlink /etc/3dm2/3dm2.pem
+@unexec rmdir %D/share/3dm2/en/scripts %D/share/3dm2/en/images %D/share/3dm2/en %D/share/3dm2 /etc/3dm2 || true