mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
eee311c97d
Reported by: bapt (via pkgng exp-run)
43 lines
1008 B
Makefile
43 lines
1008 B
Makefile
# 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
|
|
|
|
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 ${PREFIX}/sbin
|
|
${MKDIR} ${PREFIX}/etc/periodic/daily
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PERIODICSCRIPT} \
|
|
${PREFIX}/etc/periodic/daily
|
|
|
|
.include <bsd.port.mk>
|