Add 3dm, 3ware ATA RAID monitoring daemon and web server.

This commit is contained in:
Daniel Baker 2002-09-02 08:43:36 +00:00
parent c055be82b4
commit ac7fec1461
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65481
9 changed files with 185 additions and 0 deletions

75
sysutils/3dm/Makefile Normal file
View file

@ -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>

1
sysutils/3dm/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (3dm-bsd-1.10.0.011.tar.gz) = e8b9d745df1085d9e4bbb07ff5301350

View file

@ -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

View file

@ -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

1
sysutils/3dm/pkg-comment Normal file
View file

@ -0,0 +1 @@
3ware ATA RAID monitoring daemon and web server

18
sysutils/3dm/pkg-descr Normal file
View file

@ -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

14
sysutils/3dm/pkg-install Normal file
View file

@ -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

33
sysutils/3dm/pkg-plist Normal file
View file

@ -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

View file

@ -1,6 +1,7 @@
# $FreeBSD$
#
SUBDIR += 3dm
SUBDIR += LPRng
SUBDIR += LPRngTool
SUBDIR += abck