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

4
sysutils/monit/DESCR Normal file
View File

@@ -0,0 +1,4 @@
Monit is a utility for managing and monitoring, processes, files,
directories and devices on a UNIX system. Monit conducts automatic
maintenance and repair and can execute meaningful causal actions in
error situations.

85
sysutils/monit/Makefile Normal file
View File

@@ -0,0 +1,85 @@
# $NetBSD: Makefile,v 1.11 2013/03/03 01:09:55 joerg Exp $
#
DISTNAME= monit-4.10.1
PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://www.tildeslash.com/monit/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.tildeslash.com/monit/
COMMENT= Utility for monitoring processes, files, directories and devices
LICENSE= gnu-gpl-v3
# no platform specific code yet
NOT_FOR_PLATFORM+= BSDOS-*-* DragonFly-*-* Interix-*-* IRIX-*-* OSF1-*-*
USE_TOOLS+= gmake gzcat flex yacc pax
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.monit
PKG_SUPPORTED_OPTIONS= ssl
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
.if empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --without-ssl
.endif
CONFIGURE_ARGS+= --with-ssl-dir=${SSLBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
.if ${OPSYS} == "SunOS" && ${ABI} == "32"
CONFIGURE_ARGS+= --without-largefiles
.endif
PKG_SYSCONFSUBDIR= monit
RCD_SCRIPTS= monit
RCD_SCRIPT_SRC.monit= ${FILESDIR}/monit-rc-script.sh
CONF_FILES= ${EGDIR}/monitrc.sample ${PKG_SYSCONFDIR}/monitrc
CONF_FILES_MODE= 0600
OWN_DIRS+= ${PKG_SYSCONFDIR}/monit.d
DOC_SUBDIR= share/docs/monit
DOCDIR= ${PREFIX}/${DOC_SUBDIR}
EG_SUBDIR= share/examples/monit
EGDIR= ${PREFIX}/${EG_SUBDIR}
M_DOCFILES= CHANGES.txt CONTRIBUTORS COPYING FAQ.txt LICENSE
M_DOCFILES+= PACKAGES PLATFORMS README README.SSL STATUS UPGRADE.txt
SUBST_CLASSES+= monit
SUBST_STAGE.monit= pre-configure
SUBST_MESSAGE.monit= Setting daemon interval
SUBST_FILES.monit= monitrc
SUBST_SED.monit= -e "s|^\# *set *daemon|set daemon|"
SUBST_SED.monit+= -e "s|include */etc/monit.d|include ${PKG_SYSCONFDIR}/monit.d|"
CPPFLAGS.NetBSD+= -D_KMEMUSER
post-extract:
cd ${WRKSRC}/contrib && gzcat monit-OSX-startup.tar.gz | pax -r
# Perform configure substitutions on monit.1
post-configure:
cd ${WRKSRC} && mv monit.1 monit.1.in && ./config.status --file=monit.1
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
.for f in ${M_DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
.endfor
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}/MacOSX
${INSTALL_DATA} ${WRKSRC}/monitrc ${DESTDIR}${EGDIR}/monitrc.sample
${INSTALL_DATA} ${WRKSRC}/contrib/monit.php ${DESTDIR}${EGDIR}/
${INSTALL_DATA} ${WRKSRC}/contrib/monitrc-gentoo ${DESTDIR}${EGDIR}/
${INSTALL_DATA} ${WRKSRC}/contrib/wap.php ${DESTDIR}${EGDIR}/
.for f in README StartupParameters.plist monit monit.plist monitrc
${INSTALL_DATA} ${WRKSRC}/contrib/monit/${f} ${DESTDIR}${EGDIR}/MacOSX
.endfor
.include "../../mk/pthread.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

24
sysutils/monit/PLIST Normal file
View File

@@ -0,0 +1,24 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:16:10 joerg Exp $
bin/monit
man/man1/monit.1
share/docs/monit/CHANGES.txt
share/docs/monit/CONTRIBUTORS
share/docs/monit/COPYING
share/docs/monit/FAQ.txt
share/docs/monit/LICENSE
share/docs/monit/PACKAGES
share/docs/monit/PLATFORMS
share/docs/monit/README
share/docs/monit/README.SSL
share/docs/monit/STATUS
share/docs/monit/UPGRADE.txt
share/examples/monit/MacOSX/README
share/examples/monit/MacOSX/StartupParameters.plist
share/examples/monit/MacOSX/monit
share/examples/monit/MacOSX/monit.plist
share/examples/monit/MacOSX/monitrc
share/examples/monit/monit.php
share/examples/monit/monitrc-gentoo
share/examples/monit/monitrc.sample
share/examples/monit/wap.php
share/examples/rc.d/monit

7
sysutils/monit/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.4 2008/12/28 22:38:08 seb Exp $
SHA1 (monit-4.10.1.tar.gz) = c87aa0c6e0b1d13f46b7e9d84937191e25a907a6
RMD160 (monit-4.10.1.tar.gz) = 6c517b19bc43f4023dfca4de1df09272b41af02d
Size (monit-4.10.1.tar.gz) = 606273 bytes
SHA1 (patch-aa) = b51792edf22fb9867d45a4adb2aadd03dbe5467c
SHA1 (patch-ab) = f691fd49a7c8150096a0a3fb4fb8ae72bf38d547

View File

@@ -0,0 +1,36 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: monit-rc-script.sh,v 1.1.1.1 2007/04/30 20:53:46 heinz Exp $
#
# Start script for 'monit'.
#
##
# PROVIDE: monit
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
##
PATH=/sbin:/bin:/usr/sbin:/usr/bin:@PREFIX@/bin
export PATH
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="monit"
rcvar=$name
command="@PREFIX@/bin/monit"
pidfile="@VARBASE@/run/${name}.pid"
statefile="@VARBASE@/run/${name}.state"
monitrc="@PKG_SYSCONFDIR@/monitrc"
extra_commands="reload"
sig_stop="TERM"
sig_reload="HUP"
monit_flags=${monit_flags-"-c ${monitrc} -p ${pidfile} -s ${statefile}"}
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-aa,v 1.2 2007/12/15 16:41:51 seb Exp $
Fix for LP64 big-endian platforms.
--- http/engine.c.orig 2007-07-29 20:23:26.000000000 +0000
+++ http/engine.c
@@ -246,7 +246,7 @@ int add_host_allow(char *name) {
struct sockaddr_in *sin = (struct sockaddr_in *)_res->ai_addr;
NEW(h);
- memcpy(&h->network, &sin->sin_addr, 4);
+ h->network = sin->sin_addr.s_addr;
h->mask= 0xffffffff;
LOCK(hostlist_mutex)
if(hostlist) {

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-ab,v 1.4 2008/12/28 22:38:08 seb Exp $
--- process/sysdep_NETBSD.c.orig 2007-07-29 20:23:26.000000000 +0000
+++ process/sysdep_NETBSD.c
@@ -55,6 +55,8 @@
#include <sys/dkstat.h>
#endif
+#include <sys/param.h>
+
#include "monitor.h"
#include "process.h"
#include "process_sysdep.h"
@@ -171,9 +173,15 @@ int initprocesstree_sysdep(ProcessTree_T
{
pt[i].pid = pinfo[i].kp_proc.p_pid;
pt[i].ppid = pinfo[i].kp_eproc.e_ppid;
+#if defined(__NetBSD_Prereq__) && (499004400 <= __NetBSD_Version__)
+ pt[i].cputime = (long)((pinfo[i].kp_proc.p_rtime.sec << 4) +
+ (pinfo[i].kp_proc.p_rtime.frac >> 60)
+ );
+#else
pt[i].cputime = (long)((pinfo[i].kp_proc.p_rtime.tv_sec * 10) +
(pinfo[i].kp_proc.p_rtime.tv_usec / 100000)
);
+#endif
pt[i].mem_kbyte = (unsigned long)(pinfo[i].kp_eproc.e_vm.vm_rssize * pagesize_kbyte);
if(pinfo[i].kp_proc.p_stat == SZOMB)
{