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/Makefile | |
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/Makefile')
-rw-r--r-- | sysutils/3dm/Makefile | 75 |
1 files changed, 75 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> |