aboutsummaryrefslogtreecommitdiff
path: root/sysutils/3dm/Makefile
blob: 448689f1cbbcfd520fd98fa3edab70053ba787ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 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=	ports@FreeBSD.org
COMMENT=	3ware ATA RAID monitoring daemon and web server

IGNORE=		This port is obsolete and should not be used.  Please visit the 3ware website (www.3ware.com) for a newer version of the 3dm utility

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 450000
IGNORE=		"3ware 3ware ATA RAID (twe) is not supported in versions earlier than 4.5-RELEASE"
.endif

ONLY_FOR_ARCHS=	i386
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>