aboutsummaryrefslogtreecommitdiff
path: root/sysutils/3dm
diff options
context:
space:
mode:
authorDaniel Baker <dbaker@FreeBSD.org>2002-09-02 08:43:36 +0000
committerDaniel Baker <dbaker@FreeBSD.org>2002-09-02 08:43:36 +0000
commitac7fec1461d865ed22b451a299fe07cd1badefc8 (patch)
tree6c11fe4d5c0794a41d54e430cc5454ef6be701ce /sysutils/3dm
parentc055be82b4e633f5ba1af053782e5dffdbf3103e (diff)
downloadports-ac7fec1461d865ed22b451a299fe07cd1badefc8.tar.gz
ports-ac7fec1461d865ed22b451a299fe07cd1badefc8.zip
Notes
Diffstat (limited to 'sysutils/3dm')
-rw-r--r--sysutils/3dm/Makefile75
-rw-r--r--sysutils/3dm/distinfo1
-rw-r--r--sysutils/3dm/files/3dmd.conf21
-rw-r--r--sysutils/3dm/files/3dmd.sh21
-rw-r--r--sysutils/3dm/pkg-comment1
-rw-r--r--sysutils/3dm/pkg-descr18
-rw-r--r--sysutils/3dm/pkg-install14
-rw-r--r--sysutils/3dm/pkg-plist33
8 files changed, 184 insertions, 0 deletions
diff --git a/sysutils/3dm/Makefile b/sysutils/3dm/Makefile
new file mode 100644
index 000000000000..704f3428c01d
--- /dev/null
+++ b/sysutils/3dm/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: 3dmd
+# Date created: 02 Sep 2002
+# Whom: dbaker
+#
+# $FreeBSD$
+#
+
+PORTNAME= 3dm
+PORTVERSION= 1.10.0.011
+PORTREVISION= 1
+PORTEPOCH= 1
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.procplace.com/pub/contrib/3ware/3dm/ \
+ http://people.freebsd.org/~msmith/RAID/3ware/
+DISTNAME= 3dm-bsd-${PORTVERSION}
+
+MAINTAINER= dbaker@FreeBSD.org
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 450000
+BROKEN= "3ware 3ware ATA RAID (twe) is not supported in versions earlier than 4.5-RELEASE"
+.endif
+
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+BINDIR= ${PREFIX}/3dm
+SHAREDIR= ${PREFIX}/share/3dm
+
+SBINMODE= 700
+BINMODE= 700
+
+pre-install:
+ @cd ${WRKDIR}; tar zxf 3dm-help.tgz
+
+do-install:
+
+.if !exists(${SHAREDIR}/images)
+ ${MKDIR} ${SHAREDIR}/images
+.endif
+
+.if !exists(${SHAREDIR}/styles)
+ ${MKDIR} ${SHAREDIR}/styles
+.endif
+
+ ${INSTALL_DATA} ${WRKSRC}/3dm/*.html ${SHAREDIR}
+ ${INSTALL_DATA} ${WRKSRC}/3dm/images/*.gif ${SHAREDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/3dm/styles/*.css ${SHAREDIR}/styles
+
+ ${INSTALL_PROGRAM} ${WRKSRC}/3dmd ${PREFIX}/sbin
+
+.if !exists(${PREFIX}/etc/3dmd.conf)
+ @echo ""
+ @echo ""
+ @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @echo " Don't forget to edit '${PREFIX}/etc/3dmd.conf' "
+ @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @echo " Visit http://`hostname`:1080/ "
+ @echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ @echo ""
+ @echo ""
+
+ ${INSTALL_DATA} ${FILESDIR}/3dmd.conf ${PREFIX}/etc/
+#
+# The binary, "3dmd" looks for the config file in etc, which is lame. The file
+# is placed in ${PREFIX}/etc/ (usually /usr/local/etc/) and symlinked in /etc/
+# so that the binary can find it.
+#
+ ${LN} -s ${PREFIX}/etc/3dmd.conf /etc/3dmd.conf
+.endif
+
+ ${INSTALL_SCRIPT} -m 750 ${FILESDIR}/3dmd.sh ${PREFIX}/etc/rc.d/3dmd.sh
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/3dm/distinfo b/sysutils/3dm/distinfo
new file mode 100644
index 000000000000..b87bc107951a
--- /dev/null
+++ b/sysutils/3dm/distinfo
@@ -0,0 +1 @@
+MD5 (3dm-bsd-1.10.0.011.tar.gz) = e8b9d745df1085d9e4bbb07ff5301350
diff --git a/sysutils/3dm/files/3dmd.conf b/sysutils/3dm/files/3dmd.conf
new file mode 100644
index 000000000000..6d58c21da467
--- /dev/null
+++ b/sysutils/3dm/files/3dmd.conf
@@ -0,0 +1,21 @@
+EMAIL Yes
+SERVER localhost
+SENDER 3DM@localhost
+RCPT root
+AUDIO No
+CALL3WARE No
+EMAILRPT 0
+PORT 1080
+FW 25
+HELP /usr/local/share/3dm/
+SNMP No
+TRAP 1.2.3.4
+COMM not_supported
+PASSWORD No
+KEY OmwmsK8lKk2
+DIAG No
+UPS No
+UPS_IP 1.2.3.4
+Drv_Idle No
+Idle_Time 0
+Pwr_Mode 0
diff --git a/sysutils/3dm/files/3dmd.sh b/sysutils/3dm/files/3dmd.sh
new file mode 100644
index 000000000000..7a46a93f445f
--- /dev/null
+++ b/sysutils/3dm/files/3dmd.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+#
+# $FreeBSD$
+#
+
+case "$1" in
+start)
+ echo -n " 3dmd"
+ /usr/local/sbin/3dmd &
+ ;;
+stop)
+ killall 3dmd && echo -n " 3dmd"
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0
diff --git a/sysutils/3dm/pkg-comment b/sysutils/3dm/pkg-comment
new file mode 100644
index 000000000000..2db2f908c85f
--- /dev/null
+++ b/sysutils/3dm/pkg-comment
@@ -0,0 +1 @@
+3ware ATA RAID monitoring daemon and web server
diff --git a/sysutils/3dm/pkg-descr b/sysutils/3dm/pkg-descr
new file mode 100644
index 000000000000..64947b38ed27
--- /dev/null
+++ b/sysutils/3dm/pkg-descr
@@ -0,0 +1,18 @@
+The 3DM, disk management utility, allows you to view status and version
+information about your 3ware storage controller. 3DM alerts you when a
+disk array needs maintenance and from 3DM, you can maintain your disk
+arrays. You can add or remove drives, specify an available drive as a
+hot spare or launch the rebuild process. Array status can be viewed or
+arrays can be maintained remotely via a standard web browser provided
+you have access to the network containing the 3ware controller. In the
+Windows environment, array status can also be checked in the local popup
+notifier.
+
+Event notification occurs from 3DM when the controller requires attention,
+such as when a disk array becomes degraded and is no longer fault tolerant.
+Event notification will only occur while 3DM is running, so we recommend
+that 3DM be left running as a background utility on the controller's
+machine. Event notifications email feature can send an email to a specified
+recipient when there is a problem with the array.
+
+WWW: http://www.3ware.com/support/index.shtml
diff --git a/sysutils/3dm/pkg-install b/sysutils/3dm/pkg-install
new file mode 100644
index 000000000000..1e5c89cfc4eb
--- /dev/null
+++ b/sysutils/3dm/pkg-install
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ "$2" != "PRE-INSTALL" ]; then
+ exit 0
+fi
+
+#
+# The binary, "3dmd" looks for the config file in etc, which is lame. The file
+# is placed in ${PREFIX}/etc/ (usually /usr/local/etc/) and symlinked in /etc/
+# so that the binary can find it.
+#
+ ln -s ${PKG_PREFIX}/etc/3dmd.conf /etc/3dmd.conf
+
+exit 0
diff --git a/sysutils/3dm/pkg-plist b/sysutils/3dm/pkg-plist
new file mode 100644
index 000000000000..b6cdc9db2bcd
--- /dev/null
+++ b/sysutils/3dm/pkg-plist
@@ -0,0 +1,33 @@
+etc/rc.d/3dmd.sh
+etc/3dmd.conf
+sbin/3dmd
+share/3dm/3DM_browser.html
+share/3dm/3DM_contact.html
+share/3dm/3DM_email.html
+share/3dm/3DM_help.html
+share/3dm/3DM_hot_spare.html
+share/3dm/3DM_hot_swap.html
+share/3dm/3DM_linux_install.html
+share/3dm/3DM_popup_linux.html
+share/3dm/3DM_popup_windows.html
+share/3dm/3DM_rebuild.html
+share/3dm/3DM_windows_install.html
+share/3dm/images/3DM-logo-no-transparency.gif
+share/3dm/images/3DM-logo-transparency.gif
+share/3dm/images/CAS_alarm.gif
+share/3dm/images/CAS_details.gif
+share/3dm/images/CAS_home.gif
+share/3dm/images/CAS_monitor.gif
+share/3dm/images/CAS_settings.gif
+share/3dm/images/MAM_configure.gif
+share/3dm/images/MAM_rebuild.gif
+share/3dm/images/PNL_event_notification.gif
+share/3dm/images/PNW_event_notification.gif
+share/3dm/images/PNW_icon.gif
+share/3dm/images/PNW_main.gif
+share/3dm/images/PNW_snapshot.gif
+share/3dm/images/WI_email_notification.gif
+share/3dm/images/WI_remote_monitoring.gif
+share/3dm/styles/3DMstyle.css
+@unexec rmdir %D/share/3dm/styles %D/share/3dm/images %D/share/3dm || true
+@unexec unlink /etc/3dmd.conf