05848572c0
* Calculate delays in microseconds, so that delays of less than one second between reads (needed to implement rates exceeding 64KB/sec) do not get rounded down to zero. * Fix a reinitialization problem when handling SIGHUP. * Additional debug messages (only with -d). * Comment and manpage improvememts - Pass maintainership to submitter PR: ports/115853 ports/143566 Submitted by: perryh@pluto.rain.com
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# Ports collection Makefile for: diskcheckd
|
|
# Date created: Thu Aug 23, 2001
|
|
# Whom: David W. Chapman Jr. (dwcjr@FreeBSD.org)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= diskcheckd
|
|
PORTVERSION= 20110729
|
|
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
|
|
|
|
MAN8= diskcheckd.8
|
|
MLINKS= diskcheckd.8 diskcheckd.conf.5
|
|
|
|
USE_RC_SUBR= diskcheckd
|
|
CFLAGS+= -D_PATH_CONF='\"${PREFIX}/etc/diskcheckd.conf\"'
|
|
MAKEFILE= /usr/share/mk/bsd.prog.mk
|
|
MAKE_ARGS= PROG=diskcheckd MAN8=${MAN8}
|
|
|
|
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 ${PREFIX}/sbin
|
|
${INSTALL_DATA} ${FILESDIR}/diskcheckd.conf ${PREFIX}/etc/diskcheckd.conf.sample
|
|
${INSTALL_MAN} ${WRKSRC}/diskcheckd.8 ${MAN8PREFIX}/man/man8
|
|
|
|
post-install:
|
|
@[ -f ${PREFIX}/etc/diskcheckd.conf ] \
|
|
|| ${CP} -p ${PREFIX}/etc/diskcheckd.conf.sample \
|
|
${PREFIX}/etc/diskcheckd.conf
|
|
|
|
.include <bsd.port.mk>
|