diff options
author | dbaker <dbaker@FreeBSD.org> | 2002-09-02 08:43:36 +0000 |
---|---|---|
committer | dbaker <dbaker@FreeBSD.org> | 2002-09-02 08:43:36 +0000 |
commit | 47a6c13a572e7acefe90b5a819533d41ae8a8add (patch) | |
tree | 239987edcc353fa97e5ec63c099044e7b1e80b38 /sysutils/3dm | |
parent | a9ed46fc78cac80c992b5695712abb5ae7a56d61 (diff) | |
download | FreeBSD-ports-47a6c13a572e7acefe90b5a819533d41ae8a8add.zip FreeBSD-ports-47a6c13a572e7acefe90b5a819533d41ae8a8add.tar.gz |
Add 3dm, 3ware ATA RAID monitoring daemon and web server.
Diffstat (limited to 'sysutils/3dm')
-rw-r--r-- | sysutils/3dm/Makefile | 75 | ||||
-rw-r--r-- | sysutils/3dm/distinfo | 1 | ||||
-rw-r--r-- | sysutils/3dm/files/3dmd.conf | 21 | ||||
-rw-r--r-- | sysutils/3dm/files/3dmd.sh | 21 | ||||
-rw-r--r-- | sysutils/3dm/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/3dm/pkg-descr | 18 | ||||
-rw-r--r-- | sysutils/3dm/pkg-install | 14 | ||||
-rw-r--r-- | sysutils/3dm/pkg-plist | 33 |
8 files changed, 184 insertions, 0 deletions
diff --git a/sysutils/3dm/Makefile b/sysutils/3dm/Makefile new file mode 100644 index 0000000..704f342 --- /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 0000000..b87bc10 --- /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 0000000..6d58c21 --- /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 0000000..7a46a93 --- /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 0000000..2db2f90 --- /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 0000000..64947b3 --- /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 0000000..1e5c89c --- /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 0000000..b6cdc9d --- /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 |