1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/sysutils/scterc/Makefile
Dmitry Marakasov 385e0d496a Modern hard drives allow to set the amount of time a hard disk is
allowed to spend recovering from a read or write error. This feature
is called ERC (error recovery control, usually in Seagate), TLER
(time-limited error recovery, usually on Western Digital) or CCLT
(command completion time limit, usually on Samsung or Hitachi).

This rc.d script allows to set these valus on system startup to
tune disks for RAID usage.

WWW: https://github.com/AMDmi3/scterc-rc.d
2014-01-31 19:48:26 +00:00

35 lines
765 B
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= scterc
PORTVERSION= 0.0.1
CATEGORIES= sysutils
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Configure SCT ERC for hard disks on system startup
RUN_DEPENDS= ${LOCALBASE}/sbin/smartctl:${PORTSDIR}/sysutils/smartmontools
USE_GITHUB= yes
GH_ACCOUNT= AMDmi3
GH_PROJECT= ${PORTNAME}-rc.d
GH_COMMIT= c8dc8c1
NO_BUILD= yes
SUB_FILES= pkg-message
PLIST_FILES= etc/rc.d/scterc
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/scterc.sh
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/scterc.sh ${STAGEDIR}${PREFIX}/etc/rc.d/scterc
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>