# Created by: David W. Chapman Jr. (dwcjr@FreeBSD.org) # $FreeBSD: head/sysutils/diskcheckd/Makefile 516997 2019-11-07 18:18:17Z tobik $ 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 post-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