aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/amrstat/Makefile
blob: b99ded8b15fff98f94ed24724ab6620f85a32af0 (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
# Created by: Bjoern A. Zeeb <bzeeb+freebsd+ports@zabbadoz.net>
# $FreeBSD$

PORTNAME=   amrstat
PORTVERSION=    20070216
CATEGORIES= sysutils
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= jkim

MAINTAINER= jkim@FreeBSD.org
COMMENT=    Utility for LSI Logic's MegaRAID RAID controllers

LICENSE=    BSD2CLAUSE

PLIST_FILES=    etc/periodic/daily/407.status-amr-raid \
        sbin/amrstat

OPTIONS_DEFINE= MEGARC
MEGARC_DESC=    Install LSI megarc binary port

.include <bsd.port.options.mk>

# We may want this for periodic script and to actually be able
# to fix something in case amrstat reports degraded RAID.
.if ${PORT_OPTIONS:MMEGARC}
RUN_DEPENDS+=   ${LOCALBASE}/sbin/megarc:${PORTSDIR}/sysutils/megarc
.endif

ALL_TARGET= ${PORTNAME}

LOCALSRCDIR=    ${.CURDIR}/files
PERIODICSCRIPT= 407.status-amr-raid

NO_WRKSUBDIR=   yes

SUB_FILES+= ${PERIODICSCRIPT}

post-extract:
    ${RM} -f ${WRKSRC}/amrstat

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/amrstat ${STAGEDIR}${PREFIX}/sbin
    ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
    ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} \
        ${STAGEDIR}${PREFIX}/etc/periodic/daily

.include <bsd.port.mk>