summaryrefslogtreecommitdiffstats
path: root/sysutils/diskcheckd/Makefile
blob: 1519d2a25d4d3e2fa91a99b47de3cca9dc4ba482 (plain)
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
# Created by: David W. Chapman Jr. (dwcjr@FreeBSD.org)
# $FreeBSD$

PORTNAME=	diskcheckd
PORTVERSION=	20150220
CATEGORIES=	sysutils
MASTER_SITES=	# part of port
DISTFILES=	# part of port
EXTRACT_ONLY=	# part of port

MAINTAINER=	perryh@pluto.rain.com
COMMENT=	Daemon to check for disk read errors

LICENSE=	BSD2CLAUSE

USE_RC_SUBR=	diskcheckd
CFLAGS+=	-D_PATH_CONF='\"${PREFIX}/etc/diskcheckd.conf\"'
MAKEFILE=	/usr/share/mk/bsd.prog.mk
MAKE_ARGS=	PROG=diskcheckd MAN8=diskcheckd.8

do-extract:
	@${MKDIR} ${WRKSRC}
.for f in diskcheckd.c diskcheckd.8
	@(cd ${WRKSRC} ; ${CP} ${FILESDIR}/${f} .)
.endfor

do-patch:
	@${REINPLACE_CMD} -e 's|/usr/local/etc/diskcheckd.conf|${PREFIX}/etc/diskcheckd.conf|g' ${WRKSRC}/diskcheckd.8

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/diskcheckd ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_DATA}	${FILESDIR}/diskcheckd.conf ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf.sample
	${INSTALL_MAN} ${WRKSRC}/diskcheckd.8 ${STAGEDIR}${MAN8PREFIX}/man/man5/diskcheckd.conf.5
	${INSTALL_MAN} ${WRKSRC}/diskcheckd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8

.include <bsd.port.mk>
OpenPOWER on IntegriCloud