freebsd-ports/sysutils/diskcheckd/Makefile

37 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2003-02-20 20:00:52 +01:00
COMMENT= Daemon to check for disk read errors
LICENSE= BSD2CLAUSE
USE_RC_SUBR= diskcheckd
CFLAGS+= -D_PATH_CONF='\"${PREFIX}/etc/diskcheckd.conf\"'
2005-10-06 15:07:46 +02:00
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>