freebsd-ports/sysutils/amrstat/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Bjoern A. Zeeb <bzeeb+freebsd+ports@zabbadoz.net>
# $FreeBSD$
PORTNAME= amrstat
PORTVERSION= 20070216
CATEGORIES= sysutils
MASTER_SITES= LOCAL/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>