Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

10
sysutils/safetynet/DESCR Normal file
View File

@@ -0,0 +1,10 @@
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.
You will probably want to add a crontab entry for root
(crontab -e as root) such as
0,15,30,45 * * * * ${PREFIX}/bin/safetynet --cron
which will cause the script to be run every 15 minutes.

View File

@@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.13 2013/05/31 12:42:04 wiz Exp $
#
DISTNAME= safetynet-1.15
PKGREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= # http://www.unixpimps.org/safetynet/
MAINTAINER= pkgsrc-users@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_TOOLS+= perl:run
INSTALLATION_DIRS= bin etc share/doc/safetynet
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 ${DESTDIR}${PREFIX}/bin/safetynet
${INSTALL_DATA} -m 600 ${WRKSRC}/safetynet.conf ${DESTDIR}${PREFIX}/etc/safetynet.conf.sample
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/safetynet/README
.include "../../mk/bsd.pkg.mk"

4
sysutils/safetynet/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:16:13 joerg Exp $
bin/safetynet
etc/safetynet.conf.sample
share/doc/safetynet/README

View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.3 2005/02/24 13:40:57 agc Exp $
SHA1 (safetynet-1.15.tar.gz) = 6875bec180c57c10a9c948ffd8a7787bd4d4e38c
RMD160 (safetynet-1.15.tar.gz) = 744502170a8fb2a9f04531c51c21d6fe35989002
Size (safetynet-1.15.tar.gz) = 12638 bytes