c5b3009257
safetynet allows you to monitor and restart processes without having to write large and complicated init scripts. The config file is easy to understand and learn and you can have the whole script setup and running in under 10m, so you can get on with doing more important things than worrying if your ssh daemon is still running.
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2001/03/27 19:14:44 zuntum Exp $
|
|
#
|
|
|
|
DISTNAME= safetynet-1.15
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.unixpimps.org/safetynet/
|
|
|
|
MAINTAINER= zuntum@netbsd.org
|
|
HOMEPAGE= http://www.unixpimps.org/safetynet/
|
|
COMMENT= safetynet is a perl script intended to monitor system services
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
NO_BUILD= YES
|
|
USE_PERL5= YES
|
|
|
|
post-patch:
|
|
${SED} -e "s,/etc/safetynet.conf,${PREFIX}/etc/safetynet.conf,g" \
|
|
-e "s,/bin/mail,/usr/bin/mail,g" \
|
|
-e "s,ps -Af,ps ax,g" \
|
|
-e "s,/usr/bin/perl,${LOCALBASE}/bin/perl,g" \
|
|
${WRKSRC}/safetynet > ${WRKSRC}/safetynet.done
|
|
${MV} -f ${WRKSRC}/safetynet.done ${WRKSRC}/safetynet
|
|
${SED} -e "s,/usr/local/apache/bin/apachectl,${LOCALBASE}/sbin/apachectl,g" \
|
|
-e "s,/usr/local,${PREFIX},g" \
|
|
${WRKSRC}/safetynet.conf > ${WRKSRC}/safetynet.conf.done
|
|
${MV} ${WRKSRC}/safetynet.conf.done ${WRKSRC}/safetynet.conf
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} -m 700 ${WRKSRC}/safetynet ${PREFIX}/bin/safetynet
|
|
${INSTALL_DATA} -m 600 ${WRKSRC}/safetynet.conf ${PREFIX}/etc/safetynet.conf.sample
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/safetynet
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/safetynet/README
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|