aboutsummaryrefslogtreecommitdiff
path: root/sysutils/scterc/Makefile
blob: d4d84746e1ab4af25131b7d653f2ae8186a958fd (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
PORTNAME=	scterc
PORTVERSION=	0.0.1
CATEGORIES=	sysutils

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Configure SCT ERC for hard disks on system startup

RUN_DEPENDS=	smartctl:sysutils/smartmontools

USE_GITHUB=	yes
GH_ACCOUNT=	AMDmi3
GH_PROJECT=	${PORTNAME}-rc.d

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>