aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authordbaker <dbaker@FreeBSD.org>2002-09-02 16:43:36 +0800
committerdbaker <dbaker@FreeBSD.org>2002-09-02 16:43:36 +0800
commit47a6c13a572e7acefe90b5a819533d41ae8a8add (patch)
tree239987edcc353fa97e5ec63c099044e7b1e80b38 /sysutils
parenta9ed46fc78cac80c992b5695712abb5ae7a56d61 (diff)
downloadfreebsd-ports-gnome-47a6c13a572e7acefe90b5a819533d41ae8a8add.tar.gz
freebsd-ports-gnome-47a6c13a572e7acefe90b5a819533d41ae8a8add.tar.zst
freebsd-ports-gnome-47a6c13a572e7acefe90b5a819533d41ae8a8add.zip
Add 3dm, 3ware ATA RAID monitoring daemon and web server.
Diffstat (limited to 'sysutils')
-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
-rw-r--r--sysutils/Makefile1
9 files changed, 185 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
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 2e8e9f5e1a3f..b0661202a2f9 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1,6 +1,7 @@
# $FreeBSD$
#
+ SUBDIR += 3dm
SUBDIR += LPRng
SUBDIR += LPRngTool
SUBDIR += abck