summaryrefslogtreecommitdiffstats
path: root/sysutils/diskcheckd
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-08-24 14:33:12 +0000
committerdwcjr <dwcjr@FreeBSD.org>2001-08-24 14:33:12 +0000
commit4641decd037fe7d5209555a7cdcefdb75580d1fd (patch)
tree6636fede90149c8e3b5fab812402b34cdb7065de /sysutils/diskcheckd
parentad19e132210e2d9590698dab8ab8cf069441fb45 (diff)
downloadFreeBSD-ports-4641decd037fe7d5209555a7cdcefdb75580d1fd.zip
FreeBSD-ports-4641decd037fe7d5209555a7cdcefdb75580d1fd.tar.gz
Add initial diskcheckd skeleton while waiting for repo copy.
Diffstat (limited to 'sysutils/diskcheckd')
-rw-r--r--sysutils/diskcheckd/Makefile36
-rw-r--r--sysutils/diskcheckd/files/diskcheckd.sh20
-rw-r--r--sysutils/diskcheckd/pkg-comment1
-rw-r--r--sysutils/diskcheckd/pkg-descr4
-rw-r--r--sysutils/diskcheckd/pkg-plist5
5 files changed, 66 insertions, 0 deletions
diff --git a/sysutils/diskcheckd/Makefile b/sysutils/diskcheckd/Makefile
new file mode 100644
index 0000000..942df34
--- /dev/null
+++ b/sysutils/diskcheckd/Makefile
@@ -0,0 +1,36 @@
+# 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
+CATEGORIES= sysutils
+MASTER_SITES= # part of port
+DISTFILES= # part of port
+EXTRACT_ONLY= # part of port
+
+MAINTAINER= ports@FreeBSD.org
+
+STARTUP= diskcheckd.sh
+MAN8= diskcheckd.8
+
+NO_WRKSUBDIR= yes
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @(cd ${FILESDIR} && pax -r -w * ${WRKSRC})
+
+do-build:
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -DCONFPATH=\"${PREFIX}/etc\" -o diskcheckd diskcheckd.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/diskcheckd ${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/diskcheckd.conf ${PREFIX}/etc/diskcheckd.conf.sample
+ ${INSTALL_SCRIPT} ${WRKSRC}/diskcheckd.sh ${PREFIX}/etc/rc.d
+ ${INSTALL_MAN} ${WRKSRC}/diskcheckd.8 ${PREFIX}/man/man8
+
+.include <bsd.port.mk>
diff --git a/sysutils/diskcheckd/files/diskcheckd.sh b/sysutils/diskcheckd/files/diskcheckd.sh
new file mode 100644
index 0000000..7459f82
--- /dev/null
+++ b/sysutils/diskcheckd/files/diskcheckd.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+ start)
+ [ -x ${PREFIX}/sbin/diskcheckd ] && ${PREFIX}/sbin/diskcheckd
+ ;;
+ stop)
+ /usr/bin/killall diskcheckd
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ ;;
+esac
diff --git a/sysutils/diskcheckd/pkg-comment b/sysutils/diskcheckd/pkg-comment
new file mode 100644
index 0000000..b749314
--- /dev/null
+++ b/sysutils/diskcheckd/pkg-comment
@@ -0,0 +1 @@
+Daemon to check for disk read errors
diff --git a/sysutils/diskcheckd/pkg-descr b/sysutils/diskcheckd/pkg-descr
new file mode 100644
index 0000000..7f2243c
--- /dev/null
+++ b/sysutils/diskcheckd/pkg-descr
@@ -0,0 +1,4 @@
+diskcheckd is a daemon which runs in the background, reading entire disks
+to find any read errors on those disks. The disks which should be
+scanned, and the rates at which they should be scanned, must be specified
+in the configuration file.
diff --git a/sysutils/diskcheckd/pkg-plist b/sysutils/diskcheckd/pkg-plist
new file mode 100644
index 0000000..9aeb1e7
--- /dev/null
+++ b/sysutils/diskcheckd/pkg-plist
@@ -0,0 +1,5 @@
+sbin/diskcheckd
+etc/rc.d/diskcheckd.sh
+@unexec if cmp -s %D/etc/diskcheckd.conf.sample %D/etc/diskcheckd.conf; then rm -f %D/etc/diskcheckd.conf; fi
+etc/diskcheckd.conf.sample
+@exec if [ ! -f %D/etc/diskcheckd.conf ]; then cp %D/etc/diskcheckd.conf.sample %D/etc/diskcheckd.conf; fi
OpenPOWER on IntegriCloud