2001-08-24 16:33:12 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: diskcheckd
|
|
|
|
# Date created: Thu Aug 23, 2001
|
|
|
|
# Whom: David W. Chapman Jr. (dwcjr@FreeBSD.org)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= diskcheckd
|
|
|
|
PORTVERSION= 20010823
|
2001-08-29 07:41:00 +02:00
|
|
|
PORTREVISION= 3
|
2001-08-24 16:33:12 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= # part of port
|
|
|
|
DISTFILES= # part of port
|
|
|
|
EXTRACT_ONLY= # part of port
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Daemon to check for disk read errors
|
2001-08-24 16:33:12 +02:00
|
|
|
|
|
|
|
STARTUP= diskcheckd.sh
|
|
|
|
MAN8= diskcheckd.8
|
2001-08-28 18:52:45 +02:00
|
|
|
MLINKS= diskcheckd.8 diskcheckd.conf.5
|
|
|
|
|
2002-09-01 18:07:59 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-08-24 16:33:12 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2001-08-29 07:41:00 +02:00
|
|
|
CFLAGS+= -D_PATH_CONF='\"${PREFIX}/etc/diskcheckd.conf\"'
|
2001-08-28 18:52:45 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
2002-10-13 06:53:42 +02:00
|
|
|
IGNORE= "Not tested on anything less than 5.0, use at discretion"
|
2001-08-28 18:52:45 +02:00
|
|
|
.endif
|
|
|
|
|
2001-08-24 16:33:12 +02:00
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
|
2001-08-28 18:52:45 +02:00
|
|
|
.for file in Makefile diskcheckd.c diskcheckd.8
|
2001-09-11 20:56:20 +02:00
|
|
|
@(cd ${WRKSRC} ; ${CP} ${FILESDIR}/${file} .)
|
2001-08-28 18:52:45 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-patch:
|
2002-09-01 18:07:59 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/sbin|${PREFIX}/sbin|g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/etc/diskcheckd.conf|${PREFIX}/etc/diskcheckd.conf|g' ${WRKSRC}/diskcheckd.8
|
2001-08-24 16:33:12 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/diskcheckd ${PREFIX}/sbin
|
2001-08-28 18:52:45 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/diskcheckd.conf ${PREFIX}/etc/diskcheckd.conf.sample
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/diskcheckd.sh ${PREFIX}/etc/rc.d
|
2001-08-24 16:33:12 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/diskcheckd.8 ${PREFIX}/man/man8
|
2001-08-28 18:52:45 +02:00
|
|
|
${LN} -sf ${PREFIX}/man/man8/diskcheckd.8 ${PREFIX}/man/man5/diskcheckd.conf.5
|
2001-08-24 16:33:12 +02:00
|
|
|
|
2001-08-28 18:52:45 +02:00
|
|
|
.include <bsd.port.post.mk>
|