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
+15
View File
@@ -0,0 +1,15 @@
Icinga is a program that will monitor hosts and services on your
network. It has the ability to email or page you when a problem arises
and when it gets resolved. Icinga is written in C and is designed to
run under Linux, although it should work under most other *NIX variants.
It can run either as a normal process or as a daemon, intermittently
running checks on various services that you specify. The actual service
checks are performed by external "plugins" which return service
information to Icinga. Several CGI programs are included with Icinga
in order to allow you to view the current service status, history, etc.
via a web browser.
This package provides the core Icinga infrastructure and web pages.
Icinga is a fork of Nagios (net/nagios-base) and Icinga uses
Nagios's plugins (net/nagios-plugins).
+16
View File
@@ -0,0 +1,16 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2013/03/02 04:08:27 ryoon Exp $
Apache Configuration:
You must add this in your httpd.conf file:
Include ${PKG_SYSCONFDIR}/cinga.conf
You should add the ${ICINGA_USER} user to the group ${ICINGACMD_GROUP}.
See the manual for more instructions.
/etc/rc.d startup script:
Please look in ${PREFIX}/share/examples/rc.d/ for a icinga startup script.
To use this package, please install net/nagios-plugins.
===========================================================================
+92
View File
@@ -0,0 +1,92 @@
# $NetBSD: Makefile,v 1.5 2013/06/04 22:16:53 tron Exp $
#
DISTNAME= icinga-1.8.4
PKGNAME= ${DISTNAME:S/-/-base-/}
PKGREVISION= 4
CATEGORIES= net sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=icinga/}
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://www.icinga.org/
COMMENT= Enterprise grade open source monitoring system
LICENSE= gnu-gpl-v2
CONFLICTS= nagios-base-[0-9]*
.include "../../mk/bsd.prefs.mk"
.include "../../net/icinga-base/Makefile.common"
.include "options.mk"
CONFIGURE_ARGS+= --with-gd-lib=${PREFIX}/lib
CONFIGURE_ARGS+= --with-gd-inc=${PREFIX}/include
CONFIGURE_ARGS+= --enable-embedded-perl
CONFIGURE_ARGS+= --with-perlcache
CONFIGURE_ARGS+= --with-icinga-user=${ICINGA_USER}
CONFIGURE_ARGS+= --with-icinga-group=${ICINGA_GROUP}
CONFIGURE_ARGS+= --with-command-user=${ICINGA_USER}
CONFIGURE_ARGS+= --with-command-group=${ICINGACMD_GROUP}
CONFIGURE_ARGS+= --with-init-dir=${PREFIX}/share/examples/rc.d
CONFIGURE_ARGS+= --with-lockfile=/var/run/icinga/icinga.lock
USE_TOOLS+= mail:run perl
CONFIGURE_ARGS+= --with-mail=${TOOLS_PLATFORM.mail:Q}
RCD_SCRIPTS+= icinga
FILES_SUBST+= ICINGA_USER=${ICINGA_USER}
INSTALL_TARGET= install install-config
BUILD_DEFS+= VARBASE ICINGA_USER ICINGA_GROUP ICINGACMD_GROUP
BUILD_DEFS+= ICINGADIR
PKG_GROUPS+= ${ICINGA_GROUP}
PKG_GROUPS+= ${ICINGACMD_GROUP}
PKG_USERS+= ${ICINGA_USER}:${ICINGA_GROUP}
PKG_GECOS.${ICINGA_USER}= Icinga Runtime User
MESSAGE_SUBST+= ICINGA_USER=${ICINGA_USER}
MESSAGE_SUBST+= ICINGACMD_GROUP=${ICINGACMD_GROUP}
EGDIR= ${PREFIX}/share/examples/icinga
EGFILES= cgi.cfg cgiauth.cfg icinga.cfg icinga.conf
EGFILES+= objects/commands.cfg objects/contacts.cfg
EGFILES+= objects/localhost.cfg objects/notifications.cfg
EGFILES+= objects/printer.cfg objects/switch.cfg
EGFILES+= objects/templates.cfg objects/timeperiods.cfg
EGFILES+= objects/windows.cfg resource.cfg
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/objects
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/modules
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/conf.d
.for files in ${EGFILES}
CONF_FILES+= ${EGDIR}/${files} ${PKG_SYSCONFDIR}/${files}
.endfor
CONF_FILES+= ${EGDIR}/icinga.conf ${PKG_SYSCONFDIR}/icinga.conf
OWN_DIRS_PERMS+=${ICINGADIR} ${ICINGA_USER} ${ICINGA_GROUP} 0775
OWN_DIRS_PERMS+=${ICINGADIR}/archives ${ICINGA_USER} ${ICINGA_GROUP} 0775
OWN_DIRS_PERMS+=${ICINGADIR}/rw ${ICINGA_USER} ${ICINGACMD_GROUP} 0775
OWN_DIRS_PERMS+=${ICINGADIR}/checkresults ${ICINGA_USER} ${ICINGACMD_GROUP} 0775
SUBST_CLASSES+= files
SUBST_STAGE.files= post-build
SUBST_FILES.files= icinga.conf.dist
SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_MESSAGE.files= Fixing configuration files.
pre-build:
${CP} ${FILESDIR}/icinga.conf.dist ${WRKSRC}/icinga.conf.dist
post-install:
${INSTALL_DATA} ${WRKSRC}/icinga.conf.dist ${DESTDIR}/${EGDIR}/icinga.conf
.include "../../graphics/gd/buildlink3.mk"
.include "../../lang/php/phpversion.mk"
.include "${PHPPKGSRCDIR}/buildlink3.mk"
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+33
View File
@@ -0,0 +1,33 @@
# $NetBSD: Makefile.common,v 1.1 2013/03/02 04:08:27 ryoon Exp $
#
# used by net/icinga-base/Makefile
# The following variables can be override in mk.conf.
ICINGA_GROUP?= icinga
ICINGA_USER?= icinga
ICINGACMD_GROUP?= ${APACHE_GROUP}
ICINGADIR?= ${VARBASE}/spool/icinga
.include "../../mk/bsd.prefs.mk"
PKG_GROUPS_VARS+= ICINGA_GROUP ICINGACMD_GROUP
PKG_USERS_VARS+= ICINGA_USER
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf gmake
PKG_SYSCONFSUBDIR= icinga
CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/icinga
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${ICINGADIR}
CONFIGURE_ARGS+= --with-cgi-log-dir=${PREFIX}/share/icinga/log
CONFIGURE_ARGS+= --with-cgiurl=/icinga/cgi-bin
CONFIGURE_ARGS+= --with-htmurl=/icinga
BUILD_DEFS+= ICINGADIR
pre-configure:
cd ${WRKSRC} && autoconf
+670
View File
@@ -0,0 +1,670 @@
@comment $NetBSD: PLIST,v 1.1 2013/03/02 04:08:27 ryoon Exp $
bin/icinga
bin/icingastats
lib/p1.pl
libexec/nagios/cgi-bin/avail.cgi
libexec/nagios/cgi-bin/cmd.cgi
libexec/nagios/cgi-bin/config.cgi
libexec/nagios/cgi-bin/extinfo.cgi
libexec/nagios/cgi-bin/histogram.cgi
libexec/nagios/cgi-bin/history.cgi
libexec/nagios/cgi-bin/notifications.cgi
libexec/nagios/cgi-bin/outages.cgi
libexec/nagios/cgi-bin/showlog.cgi
libexec/nagios/cgi-bin/status.cgi
libexec/nagios/cgi-bin/statusmap.cgi
libexec/nagios/cgi-bin/summary.cgi
libexec/nagios/cgi-bin/tac.cgi
libexec/nagios/cgi-bin/trends.cgi
share/examples/icinga/cgi.cfg
share/examples/icinga/cgiauth.cfg
share/examples/icinga/icinga.cfg
share/examples/icinga/icinga.conf
share/examples/icinga/objects/commands.cfg
share/examples/icinga/objects/contacts.cfg
share/examples/icinga/objects/localhost.cfg
share/examples/icinga/objects/notifications.cfg
share/examples/icinga/objects/printer.cfg
share/examples/icinga/objects/switch.cfg
share/examples/icinga/objects/templates.cfg
share/examples/icinga/objects/timeperiods.cfg
share/examples/icinga/objects/windows.cfg
share/examples/icinga/resource.cfg
share/examples/rc.d/icinga
share/icinga/docs/de/about.html
share/icinga/docs/de/activechecks.html
share/icinga/docs/de/adaptive.html
share/icinga/docs/de/addons.html
share/icinga/docs/de/beginners.html
share/icinga/docs/de/cachedchecks.html
share/icinga/docs/de/cgiauth.html
share/icinga/docs/de/cgicmd.html
share/icinga/docs/de/cgiincludes.html
share/icinga/docs/de/cgiparams.html
share/icinga/docs/de/cgis.html
share/icinga/docs/de/cgisecurity.html
share/icinga/docs/de/ch01.html
share/icinga/docs/de/ch02.html
share/icinga/docs/de/ch03.html
share/icinga/docs/de/ch04.html
share/icinga/docs/de/ch05.html
share/icinga/docs/de/ch06.html
share/icinga/docs/de/ch07.html
share/icinga/docs/de/ch08.html
share/icinga/docs/de/ch09.html
share/icinga/docs/de/ch10.html
share/icinga/docs/de/ch11.html
share/icinga/docs/de/ch12.html
share/icinga/docs/de/checkscheduling.html
share/icinga/docs/de/clusters.html
share/icinga/docs/de/components.html
share/icinga/docs/de/config.html
share/icinga/docs/de/configcgi.html
share/icinga/docs/de/configido.html
share/icinga/docs/de/configmain.html
share/icinga/docs/de/configobject.html
share/icinga/docs/de/customobjectvars.html
share/icinga/docs/de/db_changes.html
share/icinga/docs/de/db_intro.html
share/icinga/docs/de/db_model.html
share/icinga/docs/de/dependencies.html
share/icinga/docs/de/dependencychecks.html
share/icinga/docs/de/distributed.html
share/icinga/docs/de/downtime.html
share/icinga/docs/de/embeddedperl.html
share/icinga/docs/de/epnplugins.html
share/icinga/docs/de/escalation_condition.html
share/icinga/docs/de/escalations.html
share/icinga/docs/de/eventhandlers.html
share/icinga/docs/de/example-configs.html
share/icinga/docs/de/extcommands.html
share/icinga/docs/de/extcommands2.html
share/icinga/docs/de/faststartup.html
share/icinga/docs/de/flapping.html
share/icinga/docs/de/freshness.html
share/icinga/docs/de/hostchecks.html
share/icinga/docs/de/howtos.html
share/icinga/docs/de/icinga-api.html
share/icinga/docs/de/icinga-web-api.html
share/icinga/docs/de/icinga-web-config.html
share/icinga/docs/de/icinga-web-intro.html
share/icinga/docs/de/icinga-web-introduction.html
share/icinga/docs/de/icinga-web-pnp.html
share/icinga/docs/de/icinga-web-scratch.html
share/icinga/docs/de/icinga-web.html
share/icinga/docs/de/icinga_packages.html
share/icinga/docs/de/icingastats.html
share/icinga/docs/de/index.html
share/icinga/docs/de/int-mklivestatus.html
share/icinga/docs/de/int-snmptrap.html
share/icinga/docs/de/int-tcpwrappers.html
share/icinga/docs/de/integration.html
share/icinga/docs/de/ix01.html
share/icinga/docs/de/largeinstalltweaks.html
share/icinga/docs/de/macrolist.html
share/icinga/docs/de/macros.html
share/icinga/docs/de/modified_attr.html
share/icinga/docs/de/monitoring-linux.html
share/icinga/docs/de/monitoring-netware.html
share/icinga/docs/de/monitoring-overview.html
share/icinga/docs/de/monitoring-printers.html
share/icinga/docs/de/monitoring-publicservices.html
share/icinga/docs/de/monitoring-routers.html
share/icinga/docs/de/monitoring-windows.html
share/icinga/docs/de/mrtggraphs.html
share/icinga/docs/de/networkreachability.html
share/icinga/docs/de/notifications.html
share/icinga/docs/de/notifications2.html
share/icinga/docs/de/nrpe.html
share/icinga/docs/de/nsca.html
share/icinga/docs/de/objectdefinitions.html
share/icinga/docs/de/objectinheritance.html
share/icinga/docs/de/objecttricks.html
share/icinga/docs/de/oncallrotation.html
share/icinga/docs/de/passivechecks.html
share/icinga/docs/de/passivestatetranslation.html
share/icinga/docs/de/perfdata.html
share/icinga/docs/de/perfgraphs.html
share/icinga/docs/de/pluginapi.html
share/icinga/docs/de/plugins.html
share/icinga/docs/de/quickstart-icinga-freebsd.html
share/icinga/docs/de/quickstart-icinga.html
share/icinga/docs/de/quickstart-idoutils-freebsd.html
share/icinga/docs/de/quickstart-idoutils.html
share/icinga/docs/de/quickstart.html
share/icinga/docs/de/recurring_downtimes.html
share/icinga/docs/de/redundancy.html
share/icinga/docs/de/reporting.html
share/icinga/docs/de/reporting_1.6.html
share/icinga/docs/de/reporting_1.8.html
share/icinga/docs/de/security.html
share/icinga/docs/de/servicechecks.html
share/icinga/docs/de/stalking.html
share/icinga/docs/de/startstop.html
share/icinga/docs/de/statetypes.html
share/icinga/docs/de/temp_data.html
share/icinga/docs/de/timeperiods.html
share/icinga/docs/de/tuning.html
share/icinga/docs/de/upgrading.html
share/icinga/docs/de/upgrading_icingaweb.html
share/icinga/docs/de/upgrading_idoutils.html
share/icinga/docs/de/verifyconfig.html
share/icinga/docs/de/volatileservices.html
share/icinga/docs/de/whatsnew.html
share/icinga/docs/en/about.html
share/icinga/docs/en/activechecks.html
share/icinga/docs/en/adaptive.html
share/icinga/docs/en/addons.html
share/icinga/docs/en/beginners.html
share/icinga/docs/en/cachedchecks.html
share/icinga/docs/en/cgiauth.html
share/icinga/docs/en/cgicmd.html
share/icinga/docs/en/cgiincludes.html
share/icinga/docs/en/cgiparams.html
share/icinga/docs/en/cgis.html
share/icinga/docs/en/cgisecurity.html
share/icinga/docs/en/ch01.html
share/icinga/docs/en/ch010.html
share/icinga/docs/en/ch02.html
share/icinga/docs/en/ch03.html
share/icinga/docs/en/ch04.html
share/icinga/docs/en/ch05.html
share/icinga/docs/en/ch06.html
share/icinga/docs/en/ch07.html
share/icinga/docs/en/ch08.html
share/icinga/docs/en/ch09.html
share/icinga/docs/en/ch10.html
share/icinga/docs/en/ch11.html
share/icinga/docs/en/ch12.html
share/icinga/docs/en/checkscheduling.html
share/icinga/docs/en/clusters.html
share/icinga/docs/en/config.html
share/icinga/docs/en/configcgi.html
share/icinga/docs/en/configido.html
share/icinga/docs/en/configmain.html
share/icinga/docs/en/configobject.html
share/icinga/docs/en/customobjectvars.html
share/icinga/docs/en/db_changes.html
share/icinga/docs/en/db_components.html
share/icinga/docs/en/db_example-configs.html
share/icinga/docs/en/db_intro.html
share/icinga/docs/en/db_model.html
share/icinga/docs/en/dependencies.html
share/icinga/docs/en/dependencychecks.html
share/icinga/docs/en/distributed.html
share/icinga/docs/en/downtime.html
share/icinga/docs/en/embeddedperl.html
share/icinga/docs/en/epnplugins.html
share/icinga/docs/en/escalation_condition.html
share/icinga/docs/en/escalations.html
share/icinga/docs/en/eventhandlers.html
share/icinga/docs/en/extcommands.html
share/icinga/docs/en/extcommands2.html
share/icinga/docs/en/faststartup.html
share/icinga/docs/en/flapping.html
share/icinga/docs/en/freshness.html
share/icinga/docs/en/hostchecks.html
share/icinga/docs/en/howtos.html
share/icinga/docs/en/icinga-api.html
share/icinga/docs/en/icinga-web-api.html
share/icinga/docs/en/icinga-web-config.html
share/icinga/docs/en/icinga-web-intro.html
share/icinga/docs/en/icinga-web-introduction.html
share/icinga/docs/en/icinga-web-pnp.html
share/icinga/docs/en/icinga-web-scratch.html
share/icinga/docs/en/icinga-web.html
share/icinga/docs/en/icinga_packages.html
share/icinga/docs/en/icingastats.html
share/icinga/docs/en/index.html
share/icinga/docs/en/int-mklivestatus.html
share/icinga/docs/en/int-snmptrap.html
share/icinga/docs/en/int-tcpwrappers.html
share/icinga/docs/en/integration.html
share/icinga/docs/en/ix01.html
share/icinga/docs/en/largeinstalltweaks.html
share/icinga/docs/en/macrolist.html
share/icinga/docs/en/macros.html
share/icinga/docs/en/modified_attr.html
share/icinga/docs/en/monitoring-linux.html
share/icinga/docs/en/monitoring-netware.html
share/icinga/docs/en/monitoring-overview.html
share/icinga/docs/en/monitoring-printers.html
share/icinga/docs/en/monitoring-publicservices.html
share/icinga/docs/en/monitoring-routers.html
share/icinga/docs/en/monitoring-windows.html
share/icinga/docs/en/mrtggraphs.html
share/icinga/docs/en/networkreachability.html
share/icinga/docs/en/notifications.html
share/icinga/docs/en/notifications2.html
share/icinga/docs/en/nrpe.html
share/icinga/docs/en/nsca.html
share/icinga/docs/en/objectdefinitions.html
share/icinga/docs/en/objectinheritance.html
share/icinga/docs/en/objecttricks.html
share/icinga/docs/en/oncallrotation.html
share/icinga/docs/en/passivechecks.html
share/icinga/docs/en/passivestatetranslation.html
share/icinga/docs/en/perfdata.html
share/icinga/docs/en/perfgraphs.html
share/icinga/docs/en/pluginapi.html
share/icinga/docs/en/plugins.html
share/icinga/docs/en/quickstart-icinga-freebsd.html
share/icinga/docs/en/quickstart-icinga.html
share/icinga/docs/en/quickstart-idoutils-freebsd.html
share/icinga/docs/en/quickstart-idoutils.html
share/icinga/docs/en/quickstart.html
share/icinga/docs/en/recurring_downtimes.html
share/icinga/docs/en/redundancy.html
share/icinga/docs/en/reporting.html
share/icinga/docs/en/reporting_1.6.html
share/icinga/docs/en/reporting_1.8.html
share/icinga/docs/en/security.html
share/icinga/docs/en/servicechecks.html
share/icinga/docs/en/stalking.html
share/icinga/docs/en/startstop.html
share/icinga/docs/en/statetypes.html
share/icinga/docs/en/temp_data.html
share/icinga/docs/en/timeperiods.html
share/icinga/docs/en/tuning.html
share/icinga/docs/en/upgrading.html
share/icinga/docs/en/upgrading_icingaweb.html
share/icinga/docs/en/upgrading_idoutils.html
share/icinga/docs/en/verifyconfig.html
share/icinga/docs/en/volatileservices.html
share/icinga/docs/en/whatsnew.html
share/icinga/docs/images/Architecture_1.5_800px.png
share/icinga/docs/images/MyServiceStatus.png
share/icinga/docs/images/activechecks.png
share/icinga/docs/images/cachedcheckgraphs.png
share/icinga/docs/images/cachedchecks.png
share/icinga/docs/images/cachedchecks1.png
share/icinga/docs/images/caution.gif
share/icinga/docs/images/caution.png
share/icinga/docs/images/cgi-avail-a.png
share/icinga/docs/images/cgi-avail-b.png
share/icinga/docs/images/cgi-cmd.png
share/icinga/docs/images/cgi-commands.png
share/icinga/docs/images/cgi-config.png
share/icinga/docs/images/cgi-continue.png
share/icinga/docs/images/cgi-extinfo-a.png
share/icinga/docs/images/cgi-extinfo-b.png
share/icinga/docs/images/cgi-extinfo-c.png
share/icinga/docs/images/cgi-extinfo-d.png
share/icinga/docs/images/cgi-general.png
share/icinga/docs/images/cgi-histogram.png
share/icinga/docs/images/cgi-history.png
share/icinga/docs/images/cgi-notifications.png
share/icinga/docs/images/cgi-outages.png
share/icinga/docs/images/cgi-pause.png
share/icinga/docs/images/cgi-showlog.png
share/icinga/docs/images/cgi-status-a.png
share/icinga/docs/images/cgi-status-b.png
share/icinga/docs/images/cgi-status-c.png
share/icinga/docs/images/cgi-status-d.png
share/icinga/docs/images/cgi-statusinfo.png
share/icinga/docs/images/cgi-statusmap.png
share/icinga/docs/images/cgi-statuswml.png
share/icinga/docs/images/cgi-statuswrl.png
share/icinga/docs/images/cgi-summary.png
share/icinga/docs/images/cgi-tac.png
share/icinga/docs/images/cgi-trends.png
share/icinga/docs/images/checkmark.png
share/icinga/docs/images/checktiming.png
share/icinga/docs/images/configoverview.png
share/icinga/docs/images/db_model_cf.png
share/icinga/docs/images/db_model_ct.png
share/icinga/docs/images/db_model_cu.png
share/icinga/docs/images/db_model_dt.png
share/icinga/docs/images/db_model_ht.png
share/icinga/docs/images/distributed.png
share/icinga/docs/images/downtime.png
share/icinga/docs/images/epn.png
share/icinga/docs/images/eventhandlers.png
share/icinga/docs/images/externalcommands.png
share/icinga/docs/images/fast-startup.png
share/icinga/docs/images/fast-startup1.png
share/icinga/docs/images/fast-startup2.png
share/icinga/docs/images/fig1.png
share/icinga/docs/images/fig10.png
share/icinga/docs/images/fig11.png
share/icinga/docs/images/fig12.png
share/icinga/docs/images/fig13.png
share/icinga/docs/images/fig2.png
share/icinga/docs/images/fig3.png
share/icinga/docs/images/fig4.png
share/icinga/docs/images/fig5.png
share/icinga/docs/images/fig6.png
share/icinga/docs/images/fig7.png
share/icinga/docs/images/fig8.png
share/icinga/docs/images/fig9.png
share/icinga/docs/images/flags/de.png
share/icinga/docs/images/flags/um_gb.png
share/icinga/docs/images/freshness.png
share/icinga/docs/images/host-dependencies.png
share/icinga/docs/images/icinga-reporting-datasource-ido-mysql_1.8.png
share/icinga/docs/images/icinga-reporting-datasource-ido_1.8.png
share/icinga/docs/images/icinga-reporting-overview_1.8.png
share/icinga/docs/images/icinga-reporting_1.6.png
share/icinga/docs/images/icinga-web-admin_groups1.png
share/icinga/docs/images/icinga-web-admin_groups1_1.6.png
share/icinga/docs/images/icinga-web-admin_groups2.png
share/icinga/docs/images/icinga-web-admin_groups2_1.6.png
share/icinga/docs/images/icinga-web-admin_logs1.png
share/icinga/docs/images/icinga-web-admin_principals.png
share/icinga/docs/images/icinga-web-admin_tasks.png
share/icinga/docs/images/icinga-web-admin_users1.png
share/icinga/docs/images/icinga-web-admin_users1_1.6.png
share/icinga/docs/images/icinga-web-admin_users2.png
share/icinga/docs/images/icinga-web-admin_users2_1.6.png
share/icinga/docs/images/icinga-web-commands_hst.png
share/icinga/docs/images/icinga-web-commands_hst_1.3.png
share/icinga/docs/images/icinga-web-commands_hst_1.5.png
share/icinga/docs/images/icinga-web-commands_hst_1.6.png
share/icinga/docs/images/icinga-web-commands_svc.png
share/icinga/docs/images/icinga-web-commands_svc_1.3.png
share/icinga/docs/images/icinga-web-commands_svc_1.5.png
share/icinga/docs/images/icinga-web-commands_svc_1.6.png
share/icinga/docs/images/icinga-web-cronks1.png
share/icinga/docs/images/icinga-web-cronks1_1.3.png
share/icinga/docs/images/icinga-web-cronks1_1.5.png
share/icinga/docs/images/icinga-web-cronks1_1.6.png
share/icinga/docs/images/icinga-web-cronks1_1.7.png
share/icinga/docs/images/icinga-web-cronks2.png
share/icinga/docs/images/icinga-web-cronks2_1.3.png
share/icinga/docs/images/icinga-web-cronks2_1.5.png
share/icinga/docs/images/icinga-web-cronks2_1.6.png
share/icinga/docs/images/icinga-web-cronks2_1.7.png
share/icinga/docs/images/icinga-web-cronks2a.png
share/icinga/docs/images/icinga-web-cronks2a_1.6.png
share/icinga/docs/images/icinga-web-cronks2a_1.7.png
share/icinga/docs/images/icinga-web-cronks3.png
share/icinga/docs/images/icinga-web-cronks3_1.3.png
share/icinga/docs/images/icinga-web-cronks3_1.5.png
share/icinga/docs/images/icinga-web-cronks3_1.6.png
share/icinga/docs/images/icinga-web-cronks3_1.7.png
share/icinga/docs/images/icinga-web-filter1.png
share/icinga/docs/images/icinga-web-filter1_1.3.png
share/icinga/docs/images/icinga-web-filter1_1.6.png
share/icinga/docs/images/icinga-web-filter2.png
share/icinga/docs/images/icinga-web-filter2_1.3.png
share/icinga/docs/images/icinga-web-filter3.png
share/icinga/docs/images/icinga-web-host-obj.png
share/icinga/docs/images/icinga-web-host-obj1.png
share/icinga/docs/images/icinga-web-host_1.5.png
share/icinga/docs/images/icinga-web-host_1.6.png
share/icinga/docs/images/icinga-web-host_1.8.png
share/icinga/docs/images/icinga-web-hostgroup_1.5.png
share/icinga/docs/images/icinga-web-hostgroup_1.6.png
share/icinga/docs/images/icinga-web-hostgroup_1.8.png
share/icinga/docs/images/icinga-web-log.png
share/icinga/docs/images/icinga-web-log_1.3.png
share/icinga/docs/images/icinga-web-log_1.6.png
share/icinga/docs/images/icinga-web-login.png
share/icinga/docs/images/icinga-web-main_bar.png
share/icinga/docs/images/icinga-web-mainscreen1.png
share/icinga/docs/images/icinga-web-mainscreen1_1.3.png
share/icinga/docs/images/icinga-web-mainscreen1_1.5.png
share/icinga/docs/images/icinga-web-mainscreen1_1.6.png
share/icinga/docs/images/icinga-web-mainscreen_1.8.png
share/icinga/docs/images/icinga-web-open_problems.png
share/icinga/docs/images/icinga-web-overview.png
share/icinga/docs/images/icinga-web-overview_1.3.png
share/icinga/docs/images/icinga-web-overview_1.5.png
share/icinga/docs/images/icinga-web-overview_1.6.png
share/icinga/docs/images/icinga-web-overview_1.7.png
share/icinga/docs/images/icinga-web-overview_1.8.png
share/icinga/docs/images/icinga-web-search1.png
share/icinga/docs/images/icinga-web-search1_1.3.png
share/icinga/docs/images/icinga-web-search1_1.6.png
share/icinga/docs/images/icinga-web-search1_1.7.png
share/icinga/docs/images/icinga-web-settings.png
share/icinga/docs/images/icinga-web-settings_1.5.png
share/icinga/docs/images/icinga-web-srv_1.5.png
share/icinga/docs/images/icinga-web-srv_1.6.png
share/icinga/docs/images/icinga-web-srv_1.8.png
share/icinga/docs/images/icinga-web-srv_obj.png
share/icinga/docs/images/icinga-web-statuscronk.png
share/icinga/docs/images/icinga-web-statuscronk_1.5.png
share/icinga/docs/images/icinga-web-statuscronk_1.6.png
share/icinga/docs/images/icinga-web-tackle1.png
share/icinga/docs/images/icinga-web-tackle2.png
share/icinga/docs/images/icinga-web-tackle3.png
share/icinga/docs/images/icinga-web-tackle4.png
share/icinga/docs/images/icinga-web-topmenu1.png
share/icinga/docs/images/icinga-web-topmenu1_1.6.png
share/icinga/docs/images/icinga-web-topmenu1_1.7.png
share/icinga/docs/images/icinga-web-topmenu2.png
share/icinga/docs/images/icinga-web-topmenu2_1.3.png
share/icinga/docs/images/idoutils.png
share/icinga/docs/images/important.gif
share/icinga/docs/images/important.png
share/icinga/docs/images/integrationoverview.png
share/icinga/docs/images/interleaved1.png
share/icinga/docs/images/interleaved2.png
share/icinga/docs/images/interleaved3.png
share/icinga/docs/images/logofullsize.png
share/icinga/docs/images/monitoring-printers.png
share/icinga/docs/images/monitoring-routers.png
share/icinga/docs/images/monitoring-windows.png
share/icinga/docs/images/multiple-templates1.png
share/icinga/docs/images/multiple-templates2.png
share/icinga/docs/images/nagios.jpg
share/icinga/docs/images/ndoutils.png
share/icinga/docs/images/network-outage1.png
share/icinga/docs/images/network-outage2.png
share/icinga/docs/images/noninterleaved1.png
share/icinga/docs/images/noninterleaved2.png
share/icinga/docs/images/note.gif
share/icinga/docs/images/note.png
share/icinga/docs/images/nrpe.png
share/icinga/docs/images/nrpe_remote.png
share/icinga/docs/images/nsca.png
share/icinga/docs/images/nscpp.png
share/icinga/docs/images/objects-commands.png
share/icinga/docs/images/objects-contacts.png
share/icinga/docs/images/objects-hosts.png
share/icinga/docs/images/objects-services.png
share/icinga/docs/images/objects-timeperiods.png
share/icinga/docs/images/passivechecks.png
share/icinga/docs/images/passivehosttranslation.png
share/icinga/docs/images/perfdata_cached.png
share/icinga/docs/images/perfdata_cached2.png
share/icinga/docs/images/perfdata_cmdbuf.png
share/icinga/docs/images/perfdata_exec.png
share/icinga/docs/images/perfdata_extcmd.png
share/icinga/docs/images/perfdata_host.png
share/icinga/docs/images/perfdata_lat.png
share/icinga/docs/images/perfdata_state_chg.png
share/icinga/docs/images/perfdata_svc.png
share/icinga/docs/images/plugins.png
share/icinga/docs/images/predictive-dependency-checks.png
share/icinga/docs/images/printer.png
share/icinga/docs/images/reachability1.png
share/icinga/docs/images/reachability2.png
share/icinga/docs/images/reachability3.png
share/icinga/docs/images/reachability4.png
share/icinga/docs/images/redundancy.png
share/icinga/docs/images/rep_avail.png
share/icinga/docs/images/reptop10.png
share/icinga/docs/images/security.png
share/icinga/docs/images/security1.png
share/icinga/docs/images/security2.png
share/icinga/docs/images/security3.png
share/icinga/docs/images/seealso.gif
share/icinga/docs/images/service-dependencies.png
share/icinga/docs/images/statetransitions.png
share/icinga/docs/images/statetransitions2.png
share/icinga/docs/images/stoprestart.png
share/icinga/docs/images/switch.png
share/icinga/docs/images/tac_header2.png
share/icinga/docs/images/tcpwrappers.png
share/icinga/docs/images/tip.gif
share/icinga/docs/images/tip.png
share/icinga/docs/images/tuning.png
share/icinga/docs/images/upto.gif
share/icinga/docs/index.html
share/icinga/docs/js/icinga-docs.js
share/icinga/docs/js/jquery-min.js
share/icinga/docs/robots.txt
share/icinga/docs/stylesheets/icinga-docs.css
share/icinga/images/Icinga_Header_Webinterface.jpg
share/icinga/images/Icinga_Header_Webinterface_Pixel.jpg
share/icinga/images/Icinga_TAC_Header_Webinterface.jpg
share/icinga/images/ack.gif
share/icinga/images/action.gif
share/icinga/images/application-monitor.png
share/icinga/images/cmd_shadow.gif
share/icinga/images/cmd_stop.png
share/icinga/images/command.png
share/icinga/images/comment.gif
share/icinga/images/contexthelp.gif
share/icinga/images/critical.png
share/icinga/images/database.gif
share/icinga/images/dd_arrow.gif
share/icinga/images/delay.gif
share/icinga/images/delete.gif
share/icinga/images/detail.gif
share/icinga/images/disabled.gif
share/icinga/images/down.gif
share/icinga/images/downtime.gif
share/icinga/images/empty.gif
share/icinga/images/enabled.gif
share/icinga/images/export_csv.png
share/icinga/images/export_json.png
share/icinga/images/export_link.png
share/icinga/images/export_xml.png
share/icinga/images/favicon.ico
share/icinga/images/flapping.gif
share/icinga/images/histogram.png
share/icinga/images/history.gif
share/icinga/images/hostevent.gif
share/icinga/images/hourglass-arrow.png
share/icinga/images/hourglass-exclamation.png
share/icinga/images/icon_collapse.gif
share/icinga/images/icon_expand.gif
share/icinga/images/icon_first_active.gif
share/icinga/images/icon_first_inactive.gif
share/icinga/images/icon_last_active.gif
share/icinga/images/icon_last_inactive.gif
share/icinga/images/icon_next_active.gif
share/icinga/images/icon_next_inactive.gif
share/icinga/images/icon_previous_active.gif
share/icinga/images/icon_previous_inactive.gif
share/icinga/images/icon_reload.png
share/icinga/images/info.png
share/icinga/images/left.gif
share/icinga/images/logofullsize.png
share/icinga/images/logos/Stats1.gif
share/icinga/images/logos/Stats2.png
share/icinga/images/logos/icinga.gd2
share/icinga/images/logos/icinga.gif
share/icinga/images/logos/icingavrml.png
share/icinga/images/logos/s.gif
share/icinga/images/logos/unknown.gd2
share/icinga/images/logos/unknown.gif
share/icinga/images/logrotate.png
share/icinga/images/menu_bar.gif
share/icinga/images/menu_blank.gif
share/icinga/images/menu_body.gif
share/icinga/images/menu_less.gif
share/icinga/images/menu_li1.gif
share/icinga/images/menu_li2.gif
share/icinga/images/menu_more.gif
share/icinga/images/ndisabled.gif
share/icinga/images/noack.gif
share/icinga/images/notes.gif
share/icinga/images/notify.gif
share/icinga/images/passiveonly.gif
share/icinga/images/recovery.png
share/icinga/images/restart.gif
share/icinga/images/right.gif
share/icinga/images/save.gif
share/icinga/images/server.png
share/icinga/images/serviceevent.gif
share/icinga/images/splunk1.gif
share/icinga/images/splunk2.gif
share/icinga/images/start.gif
share/icinga/images/stats.gif
share/icinga/images/stats2.png
share/icinga/images/status_detail.gif
share/icinga/images/status_map.gif
share/icinga/images/stop.gif
share/icinga/images/tacdisabled.png
share/icinga/images/tacenabled.png
share/icinga/images/thermcrit.png
share/icinga/images/thermok.png
share/icinga/images/thermwarn.png
share/icinga/images/trends.gif
share/icinga/images/trendshost.png
share/icinga/images/trendssvc.png
share/icinga/images/unknown.png
share/icinga/images/up.gif
share/icinga/images/warning.png
share/icinga/images/warning_triangle.gif
share/icinga/images/zoom1.gif
share/icinga/images/zoom2.gif
share/icinga/index.html
share/icinga/jquery-ui/jquery.ui.core.min.js
share/icinga/jquery-ui/jquery.ui.datepicker.min.js
share/icinga/jquery-ui/jquery.ui.mouse.min.js
share/icinga/jquery-ui/jquery.ui.slider.min.js
share/icinga/jquery-ui/jquery.ui.timepicker-addon.min.js
share/icinga/jquery-ui/jquery.ui.widget.min.js
share/icinga/jquery-ui/theme/images/ui-bg_flat_0_aaaaaa_40x100.png
share/icinga/jquery-ui/theme/images/ui-bg_flat_75_ffffff_40x100.png
share/icinga/jquery-ui/theme/images/ui-bg_glass_55_fbf9ee_1x400.png
share/icinga/jquery-ui/theme/images/ui-bg_glass_65_ffffff_1x400.png
share/icinga/jquery-ui/theme/images/ui-bg_glass_75_dadada_1x400.png
share/icinga/jquery-ui/theme/images/ui-bg_glass_75_e6e6e6_1x400.png
share/icinga/jquery-ui/theme/images/ui-bg_glass_95_fef1ec_1x400.png
share/icinga/jquery-ui/theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png
share/icinga/jquery-ui/theme/images/ui-icons_222222_256x240.png
share/icinga/jquery-ui/theme/images/ui-icons_2e83ff_256x240.png
share/icinga/jquery-ui/theme/images/ui-icons_454545_256x240.png
share/icinga/jquery-ui/theme/images/ui-icons_888888_256x240.png
share/icinga/jquery-ui/theme/images/ui-icons_cd0a0a_256x240.png
share/icinga/jquery-ui/theme/jquery.ui.all.css
share/icinga/jquery-ui/theme/jquery.ui.base.css
share/icinga/jquery-ui/theme/jquery.ui.core.css
share/icinga/jquery-ui/theme/jquery.ui.datepicker.css
share/icinga/jquery-ui/theme/jquery.ui.slider.css
share/icinga/jquery-ui/theme/jquery.ui.theme.css
share/icinga/jquery-ui/theme/jquery.ui.timepicker-addon.css
share/icinga/js/checkbox_functions.js
share/icinga/js/jquery-1.8.0.min.js
share/icinga/js/jquery.dd.js
share/icinga/js/menu.js
share/icinga/js/page_refresh.js
share/icinga/js/skinnytip.js
share/icinga/log/.htaccess
share/icinga/log/index.htm
share/icinga/main.html
share/icinga/menu.html
share/icinga/robots.txt
share/icinga/stylesheets/avail.css
share/icinga/stylesheets/checksanity.css
share/icinga/stylesheets/cmd.css
share/icinga/stylesheets/common.css
share/icinga/stylesheets/config.css
share/icinga/stylesheets/dd.css
share/icinga/stylesheets/extinfo.css
share/icinga/stylesheets/histogram.css
share/icinga/stylesheets/history.css
share/icinga/stylesheets/menu.css
share/icinga/stylesheets/ministatus.css
share/icinga/stylesheets/notifications.css
share/icinga/stylesheets/outages.css
share/icinga/stylesheets/showlog.css
share/icinga/stylesheets/status.css
share/icinga/stylesheets/statusmap.css
share/icinga/stylesheets/summary.css
share/icinga/stylesheets/tac.css
share/icinga/stylesheets/tacheader.css
share/icinga/stylesheets/trends.css
@pkgdir share/icinga/ssi
@pkgdir share/icinga/media
@pkgdir share/examples/icinga/modules
@pkgdir share/examples/icinga/conf.d
@pkgdir etc/icinga/objects
@pkgdir etc/icinga/modules
@pkgdir etc/icinga/conf.d
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.1 2013/03/02 04:08:27 ryoon Exp $
SHA1 (icinga-1.8.4.tar.gz) = 19ab6e28b99ce15cbb9e12085cbe6aa404bf1ef1
RMD160 (icinga-1.8.4.tar.gz) = 3b5b204501d1617e6133c9e123bf6c2a3cd7f0be
Size (icinga-1.8.4.tar.gz) = 7459130 bytes
SHA1 (patch-Makefile.in) = 0d7e50b0f37fea847e652725af0b5d65ec7aa7b2
SHA1 (patch-base_Makefile.in) = f79705b2d5ccf938868cc502cdbe293bb7cf1579
SHA1 (patch-cgi_Makefile.in) = 44ca2f4129c594540ed06a7b3a16f1652591b30f
SHA1 (patch-configure.in) = dec21d0e8d76f681b8839b547bd62c7377d25357
SHA1 (patch-html_Makefile.in) = 5ad556b42a11c15b947e5901d1429862011d7de7
SHA1 (patch-module_idoutils_db_scripts_create__mysqldb.sh) = 789b05d620c3e4477fdb54efd649e409c98970a1
SHA1 (patch-module_idoutils_db_scripts_create__oracledb.sh) = 92c2958aea1d407b7c9426c1a95b328947526264
SHA1 (patch-module_idoutils_db_scripts_create__pgsqldb.sh) = 7bbbbcec4e3670c99297df8df1b6d795afad64db
SHA1 (patch-rc.ido2db.in) = 8d0e751787ed17edd1fcfbfca977ddf90f2eccd9
+27
View File
@@ -0,0 +1,27 @@
# $NetBSD: icinga.conf.dist,v 1.1 2013/03/02 04:08:27 ryoon Exp $
#
# Icinga configuration file fragment for Apache
LoadModule cgid_module lib/httpd/mod_cgid.so
AddHandler cgi-script .cgi
<IfModule mod_alias.c>
ScriptAlias /icinga/cgi-bin/ "@PREFIX@/libexec/nagios/cgi-bin/"
Alias /icinga/ "@PREFIX@/share/icinga/"
</IfModule>
<Directory "@PREFIX@/libexec/nagios/cgi-bin/">
AllowOverride AuthConfig
order allow,deny
allow from all
Require all granted
Options ExecCGI
</Directory>
<Directory "@PREFIX@/share/icinga/">
AllowOverride AuthConfig
order allow,deny
allow from all
Require all granted
</Directory>
+35
View File
@@ -0,0 +1,35 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: icinga.sh,v 1.1 2013/03/02 04:08:27 ryoon Exp $
#
# PROVIDE: icinga
# REQUIRE: DAEMON
. /etc/rc.subr
name="icinga"
rcvar=$name
command="@PREFIX@/bin/${name}"
piddir="/var/run/${name}"
pidfile="${piddir}/${name}.lock"
config="@PKG_SYSCONFDIR@/${name}.cfg"
command_args="-d $config"
start_precmd="icinga_precmd"
test_cmd="icinga_test"
extra_commands="test reload"
icinga_precmd()
{
mkdir -p ${piddir}
chown @ICINGA_USER@ ${piddir}
}
icinga_test()
{
$command -v $config
}
load_rc_config $name
run_rc_command "$1"
+19
View File
@@ -0,0 +1,19 @@
# $NetBSD: options.mk,v 1.1 2013/03/02 04:08:27 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.icinga-base
PKG_SUPPORTED_OPTIONS= mysql pgsql
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --with-mysql-lib=${PREFIX}/lib/mysql \
--with-mysql-inc=${PREFIX}/include/mysql \
--with-mysql-xdata
.include "../../mk/mysql.buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+= --with-pgsql-lib=${PREFIX}/pgsql \
--with-pgsql-inc=${PREFIX}/pgsql \
--with-pgsql-xdata
.include "../../mk/pgsql.buildlink3.mk"
.endif
+173
View File
@@ -0,0 +1,173 @@
$NetBSD: patch-Makefile.in,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- Makefile.in.orig 2013-01-13 22:18:37.000000000 +0000
+++ Makefile.in
@@ -38,7 +38,7 @@ CHECKRESULTDIR=@CHECKRESULTDIR@
EXTCMDFILEDIR=@EXTCMDFILEDIR@
EVENTHANDLERDIR=@EVENTHANDLERDIR@
P1FILELOC=@P1FILELOC@
-CFGDIR=@sysconfdir@
+CFGDIR=@prefix@/share/examples/icinga
BINDIR=@bindir@
LIBDIR=@libdir@
CGIDIR=@sbindir@
@@ -368,13 +368,13 @@ install-unstripped:
$(MAKE) install-basic
install-basic:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CHECKRESULTDIR)
+ ${BSD_INSTALL_LIB_DIR} $(DESTDIR)$(LIBEXECDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(LOGDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(LOGDIR)/archives
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CHECKRESULTDIR)
if [ $(INSTALLPERLSTUFF) = yes ]; then \
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(P1FILELOC); \
- $(INSTALL) -m 664 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(P1FILELOC); \
+ ${BSD_INSTALL_SCRIPT_DIR} $(DESTDIR)$(P1FILELOC); \
+ ${BSD_INSTALL_SCRIPT} p1.pl $(DESTDIR)$(P1FILELOC); \
fi;
@echo ""
@@ -411,23 +411,23 @@ install-basic:
install-config:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/objects
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/conf.d
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/modules
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/icinga.cfg $(DESTDIR)$(CFGDIR)/icinga.cfg
- $(INSTALL) -b -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/cgiauth.cfg $(DESTDIR)$(CFGDIR)/cgiauth.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/notifications.cfg $(DESTDIR)$(CFGDIR)/objects/notifications.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/windows.cfg $(DESTDIR)$(CFGDIR)/objects/windows.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg
- $(INSTALL) -b -m 664 $(INSTALL_OPTS) sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CFGDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CFGDIR)/objects
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CFGDIR)/conf.d
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CFGDIR)/modules
+ ${BSD_INSTALL_DATA} sample-config/icinga.cfg $(DESTDIR)$(CFGDIR)/icinga.cfg
+ ${BSD_INSTALL_DATA} sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg
+ ${BSD_INSTALL_DATA} sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg
+ ${BSD_INSTALL_DATA} sample-config/cgiauth.cfg $(DESTDIR)$(CFGDIR)/cgiauth.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/templates.cfg $(DESTDIR)$(CFGDIR)/objects/templates.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/commands.cfg $(DESTDIR)$(CFGDIR)/objects/commands.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/contacts.cfg $(DESTDIR)$(CFGDIR)/objects/contacts.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/notifications.cfg $(DESTDIR)$(CFGDIR)/objects/notifications.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/timeperiods.cfg $(DESTDIR)$(CFGDIR)/objects/timeperiods.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/localhost.cfg $(DESTDIR)$(CFGDIR)/objects/localhost.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/windows.cfg $(DESTDIR)$(CFGDIR)/objects/windows.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/printer.cfg $(DESTDIR)$(CFGDIR)/objects/printer.cfg
+ ${BSD_INSTALL_DATA} sample-config/template-object/switch.cfg $(DESTDIR)$(CFGDIR)/objects/switch.cfg
@echo ""
@echo "*** Config files installed ***"
@@ -438,14 +438,14 @@ install-config:
@echo ""
install-testconfig:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)/tests
+ ${BSD_INSTALL_DATA} $(DESTDIR)$(CFGDIR)/tests
for file in tests/etc/*.cfg; \
- do $(INSTALL) -b -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(CFGDIR)/tests; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(CFGDIR)/tests; done
install-webconf:
- $(MKDIR) -p -m 775 $(DESTDIR)$(HTTPD_CONF)
- $(INSTALL) -m 644 sample-config/httpd.conf $(DESTDIR)$(HTTPD_CONF)/icinga.conf
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTTPD_CONF)
+ ${BSD_INSTALL_DATA} sample-config/httpd.conf $(DESTDIR)$(HTTPD_CONF)/icinga.conf
@echo ""
@echo "*** Icinga/Apache conf file installed ***"
@@ -480,11 +480,11 @@ install-idoutils:
install-init: install-daemoninit
install-daemoninit:
- $(INSTALL) -m 755 -d $(INIT_OPTS) $(DESTDIR)$(INIT_DIR)
- $(INSTALL) -m 755 $(INIT_OPTS) daemon-init $(DESTDIR)$(INIT_DIR)/icinga
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(INIT_DIR)
+ ${BSD_INSTALL_DATA} daemon-init $(DESTDIR)$(INIT_DIR)/icinga
@if [ x$(USE_IDOUTILS) = xyes ]; then \
- $(INSTALL) -m 755 $(INIT_OPTS) rc.ido2db $(DESTDIR)$(INIT_DIR)/ido2db ;\
+ ${BSD_INSTALL_SCRIPT} rc.ido2db $(DESTDIR)$(INIT_DIR)/ido2db ;\
fi
@echo ""
@@ -493,26 +493,26 @@ install-daemoninit:
install-commandmode:
- $(INSTALL) -m 775 $(COMMAND_OPTS) -d $(DESTDIR)$(EXTCMDFILEDIR)
- chmod g+s $(DESTDIR)$(EXTCMDFILEDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(EXTCMDFILEDIR)
+ #chmod g+s $(DESTDIR)$(EXTCMDFILEDIR)
@echo ""
@echo "*** External command directory configured ***"
@echo ""
install-eventhandlers:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(EVENTHANDLERDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(EVENTHANDLERDIR)/distributed-monitoring
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(EVENTHANDLERDIR)/redundancy-scenario1
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/submit_check_result $(DESTDIR)$(EVENTHANDLERDIR)/submit_check_result
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/disable_active_service_checks $(DESTDIR)$(EVENTHANDLERDIR)/disable_active_service_checks
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/enable_active_service_checks $(DESTDIR)$(EVENTHANDLERDIR)/enable_active_service_checks
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/disable_notifications $(DESTDIR)$(EVENTHANDLERDIR)/disable_notifications
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/enable_notifications $(DESTDIR)$(EVENTHANDLERDIR)/enable_notifications
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler $(DESTDIR)$(EVENTHANDLERDIR)/distributed-monitoring/obsessive_svc_handler
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca $(DESTDIR)$(EVENTHANDLERDIR)/distributed-monitoring/submit_check_result_via_nsca
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/redundancy-scenario1/handle-master-host-event $(DESTDIR)$(EVENTHANDLERDIR)/redundancy-scenario1/handle-master-host-event
- $(INSTALL) -b -m 774 $(INSTALL_OPTS) contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event $(DESTDIR)$(EVENTHANDLERDIR)/redundancy-scenario1/handle-master-proc-event
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(EVENTHANDLERDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(EVENTHANDLERDIR)/distributed-monitoring
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(EVENTHANDLERDIR)/redundancy-scenario1
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/submit_check_result $(DESTDIR)$(EVENTHANDLERDIR)/submit_check_result
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/disable_active_service_checks $(DESTDIR)$(EVENTHANDLERDIR)/disable_active_service_checks
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/enable_active_service_checks $(DESTDIR)$(EVENTHANDLERDIR)/enable_active_service_checks
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/disable_notifications $(DESTDIR)$(EVENTHANDLERDIR)/disable_notifications
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/enable_notifications $(DESTDIR)$(EVENTHANDLERDIR)/enable_notifications
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler $(DESTDIR)$(EVENTHANDLERDIR)/distributed-monitoring/obsessive_svc_handler
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca $(DESTDIR)$(EVENTHANDLERDIR)/distributed-monitoring/submit_check_result_via_nsca
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/redundancy-scenario1/handle-master-host-event $(DESTDIR)$(EVENTHANDLERDIR)/redundancy-scenario1/handle-master-host-event
+ ${BSD_INSTALL_DATA} contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event $(DESTDIR)$(EVENTHANDLERDIR)/redundancy-scenario1/handle-master-proc-event
@echo ""
@echo "*** Sample Eventhandlers installed ***"
@@ -553,19 +553,19 @@ Prototype:
cd sample-config; \
for file in *.cfg; \
do \
- $(INSTALL) -m 644 $$file $(PACKDIR)/$(CFGDIR)/$$file.$(VERSION); \
+ ${BSD_INSTALL_DATA} $$file $(PACKDIR)/$(CFGDIR)/$$file.$(VERSION); \
done
chmod 640 $(PACKDIR)/$(CFGDIR)/resource.cfg.$(VERSION)
cd sample-config/template-object; \
for file in *.cfg; \
do \
- $(INSTALL) -m 644 $$file $(PACKDIR)/$(CFGDIR)/objects/$$file.$(VERSION); \
+ ${BSD_INSTALL_DATA} $$file $(PACKDIR)/$(CFGDIR)/objects/$$file.$(VERSION); \
done
mkdir -p $(PACKDIR)/lib/svc/method/
- $(INSTALL) -o root -g bin -m 555 daemon-init $(PACKDIR)/lib/svc/method/icinga
+ ${BSD_INSTALL_SCRIPT} daemon-init $(PACKDIR)/lib/svc/method/icinga
mkdir -p $(PACKDIR)/var/svc/manifest/application/
sed 's%!CFGPREFIX!%$(CFGDIR)%g' solaris/icinga.xml.tpl > solaris/icinga.xml
- $(INSTALL) -m 444 -o root -g root solaris/icinga.xml $(PACKDIR)/var/svc/manifest/application/
+ ${BSD_INSTALL_DATA} solaris/icinga.xml $(PACKDIR)/var/svc/manifest/application/
#cd contrib; $(MAKE) all; $(MAKE) DESTDIR=$(PACKDIR) INIT_OPTS='' INSTALL_OPTS='' COMMAND_OPTS='' icinga_grp='' icinga_usr='' install
echo i pkginfo > solaris/Prototype
if [ -f solaris/checkinstall.in ] ; then cat solaris/checkinstall.in | sed 's/!SUN_PLATFORM!/$(SUN_PLATFORM)/g' > solaris/checkinstall; fi
@@ -0,0 +1,19 @@
$NetBSD: patch-base_Makefile.in,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- base/Makefile.in.orig 2013-01-13 22:18:37.000000000 +0000
+++ base/Makefile.in
@@ -207,10 +207,10 @@ install-unstripped:
$(MAKE) install-basic
install-basic:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LIBDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) @icinga_name@ $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) @icingastats_name@ $(DESTDIR)$(BINDIR)
+ ${BSD_INSTALL_PROGRAM_DIR} $(DESTDIR)$(BINDIR)
+ ${BSD_INSTALL_LIB_DIR} $(DESTDIR)$(LIBDIR)
+ ${BSD_INSTALL_PROGRAM} @icinga_name@ $(DESTDIR)$(BINDIR)
+ ${BSD_INSTALL_PROGRAM} @icingastats_name@ $(DESTDIR)$(BINDIR)
strip-post-install:
$(STRIP) $(DESTDIR)$(BINDIR)/@icinga_name@
@@ -0,0 +1,27 @@
$NetBSD: patch-cgi_Makefile.in,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- cgi/Makefile.in.orig 2013-01-13 22:18:37.000000000 +0000
+++ cgi/Makefile.in
@@ -14,7 +14,7 @@ LOGDIR=@CGILOGDIR@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
LIBDIR=@libdir@
-CGIDIR=@sbindir@
+CGIDIR=@libexecdir@/cgi-bin
HTMLDIR=@datarootdir@
CGILOGDIR=@CGILOGDIR@
INSTALL=@INSTALL@
@@ -196,10 +196,10 @@ install-unstripped:
$(MAKE) install-basic
install-basic:
- $(INSTALL) -m 775 $(INSTALL_OPTS_WEB) -d $(DESTDIR)$(CGILOGDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CGIDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CGILOGDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(CGIDIR)
for file in *.cgi; do \
- $(INSTALL) -m 775 $(INSTALL_OPTS) $$file $(DESTDIR)$(CGIDIR); \
+ ${BSD_INSTALL_SCRIPT} $$file $(DESTDIR)$(CGIDIR); \
done
strip-post-install:
@@ -0,0 +1,25 @@
$NetBSD: patch-configure.in,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- configure.in.orig 2013-01-13 22:18:37.000000000 +0000
+++ configure.in
@@ -305,7 +305,7 @@ dnl Location of check result path
CHECKRESULTDIR=no
AC_ARG_WITH(checkresult-dir,AC_HELP_STRING([--with-checkresult-dir=<path>],[sets path to check results spool directory]),CHECKRESULTDIR=$withval,CHECKRESULTDIR=no)
if test x$CHECKRESULTDIR = xno; then
- CHECKRESULTDIR="$localstatedir/spool/checkresults"
+ CHECKRESULTDIR="$localstatedir/checkresults"
fi
AC_SUBST(CHECKRESULTDIR)
@@ -827,6 +827,11 @@ if test x$USE_EVENTBROKER = xyes; then
MOD_CFLAGS="-fPIC"
INIT_OPTS="-o root -g wheel"
;;
+ netbsd*)
+ MOD_LDFLAGS="-shared"
+ MOD_CFLAGS="-fPIC"
+ INIT_OPTS="-o root -g wheel"
+ ;;
*)
# assume GNU linker and ELF
MOD_LDFLAGS="-shared"
@@ -0,0 +1,128 @@
$NetBSD: patch-html_Makefile.in,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- html/Makefile.in.orig 2013-01-13 22:18:37.000000000 +0000
+++ html/Makefile.in
@@ -9,7 +9,7 @@ CFGDIR=@sysconfdir@
BINDIR=@bindir@
LIBDIR=@libdir@
CGIDIR=@sbindir@
-HTMLDIR=@datarootdir@
+HTMLDIR=@datarootdir@/icinga
CGILOGDIR=@CGILOGDIR@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
@@ -35,71 +35,71 @@ distclean: clean
devclean: distclean
install:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/media
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/stylesheets
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/stylesheets
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/js
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/en
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/de
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/docs/images/flags
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/images/logos
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/jquery-ui
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/jquery-ui/theme
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/jquery-ui/theme/images
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/js
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/ssi
- $(INSTALL) -m 444 $(INSTALL_OPTS) log/.htaccess $(DESTDIR)$(CGILOGDIR)
- $(INSTALL) -m 644 $(INSTALL_OPTS) log/index.htm $(DESTDIR)$(CGILOGDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) robots.txt $(DESTDIR)$(HTMLDIR)
- $(INSTALL) -m 664 $(INSTALL_OPTS) docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/media
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/stylesheets
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/stylesheets
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/js
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/en
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/de
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/images
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/docs/images/flags
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/images
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/images/logos
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/jquery-ui
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/jquery-ui/theme
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/jquery-ui/theme/images
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/js
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/ssi
+ ${BSD_INSTALL_DATA} log/.htaccess $(DESTDIR)$(CGILOGDIR)
+ ${BSD_INSTALL_DATA} log/index.htm $(DESTDIR)$(CGILOGDIR)
+ ${BSD_INSTALL_DATA} robots.txt $(DESTDIR)$(HTMLDIR)
+ ${BSD_INSTALL_DATA} docs/robots.txt $(DESTDIR)$(HTMLDIR)/docs
for file in *.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR); done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR); done
for file in stylesheets/*.css; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/stylesheets; done
for file in docs/*.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs; done
for file in docs/js/*.js; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/js; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/js; done
for file in docs/stylesheets/*.css; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/stylesheets; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/stylesheets; done
for file in docs/en/*.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/en; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/en; done
for file in docs/de/*.html; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/de; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/de; done
for file in docs/images/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/images; done
for file in docs/images/flags/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/docs/images/flags; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/docs/images/flags; done
for file in images/*.png; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/*.jpg; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/*.gif; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/*.ico; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images; done
for file in images/logos/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/images/logos; done
for file in jquery-ui/*.js; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/jquery-ui; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/jquery-ui; done
for file in jquery-ui/theme/*.css; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/jquery-ui/theme; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/jquery-ui/theme; done
for file in jquery-ui/theme/images/*.png; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/jquery-ui/theme/images; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/jquery-ui/theme/images; done
for file in js/*.js; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/js; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/js; done
install-dev-docu:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/doxygen
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(HTMLDIR)/doxygen/html
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/doxygen
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(HTMLDIR)/doxygen/html
#for file in doxygen/*.*; \
- #do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/doxygen; done
+ #do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/doxygen; done
for file in doxygen/html/*.*; \
- do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file $(DESTDIR)$(HTMLDIR)/doxygen/html; done
+ do ${BSD_INSTALL_DATA} $$file $(DESTDIR)$(HTMLDIR)/doxygen/html; done
install-unstripped:
$(MAKE) install
@@ -0,0 +1,21 @@
$NetBSD: patch-module_idoutils_db_scripts_create__mysqldb.sh,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- module/idoutils/db/scripts/create_mysqldb.sh.orig 2013-01-13 22:18:37.000000000 +0000
+++ module/idoutils/db/scripts/create_mysqldb.sh
@@ -52,14 +52,14 @@ select now();
\q
EOS2
-if [ $? == 0 ]; then
+if [ $? = 0 ]; then
echo "Check icinga schema version with DB User $DBUSER..."
mysql $DB -u $DBUSER -p$DBPASS -h $DBHOST -s <<EOS3
select "DB-Version",version from icinga_dbversion where name='idoutils';
\q
EOS3
- if [ $? == 0 ]; then
+ if [ $? = 0 ]; then
echo "Database ready"
RET=0
else
@@ -0,0 +1,31 @@
$NetBSD: patch-module_idoutils_db_scripts_create__oracledb.sh,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- module/idoutils/db/scripts/create_oracledb.sh.orig 2013-01-13 22:18:37.000000000 +0000
+++ module/idoutils/db/scripts/create_oracledb.sh
@@ -67,7 +67,7 @@ connect sys/${SYSPASS}@${DB} as sysdba;
EOS1
RET=$?
-if [ $RET == 0 ]; then
+if [ $RET = 0 ]; then
#create icinga schema objects using newly created user
$SP /nolog <<EOS2
--exit if connect errornous
@@ -81,7 +81,7 @@ connect ${DBUSER}/${DBPASS}@${DB}
EOS2
RET=$?
#check if dbversion entered(last insert)
- if [ $RET == 0 ]; then
+ if [ $RET = 0 ]; then
echo "Connecting now as $DBUSER on $DB and check icinga schema version"
$SP /nolog <<EOS3
connect ${DBUSER}/${DBPASS}@${DB}
@@ -92,7 +92,7 @@ select sysdate from dual;
exit;
EOS3
- if [ $? == 0 ]; then
+ if [ $? = 0 ]; then
echo "Database ready"
RET=0
else
@@ -0,0 +1,29 @@
$NetBSD: patch-module_idoutils_db_scripts_create__pgsqldb.sh,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- module/idoutils/db/scripts/create_pgsqldb.sh.orig 2013-01-13 22:18:37.000000000 +0000
+++ module/idoutils/db/scripts/create_pgsqldb.sh
@@ -36,7 +36,7 @@ psql postgres >create_pgsqldb.log <<EOS1
CREATE USER $DBUSER WITH PASSWORD '$DBPASS';
\q
EOS1
-if [ $? == 0 ]; then
+if [ $? = 0 ]; then
createlang plpgsql icinga;
echo "Create icinga objects..."
PGPASSWORD=$DBPASS
@@ -51,7 +51,7 @@ select version as DBVersion from icinga_
select now();
\q
EOS2
- if [ $? == 0 ]; then
+ if [ $? = 0 ]; then
echo "Database ready"
else
echo "Database creation failed"
@@ -75,4 +75,4 @@ echo "Dont forget to modify pg_hba.conf
rm -rf /tmp/pgsql
echo "Logfiles:"
ls -l *pgsql*.log
-exit $RET
\ No newline at end of file
+exit $RET
@@ -0,0 +1,13 @@
$NetBSD: patch-rc.ido2db.in,v 1.1 2013/03/02 04:08:27 ryoon Exp $
--- rc.ido2db.in.orig 2013-01-13 22:18:37.000000000 +0000
+++ rc.ido2db.in
@@ -104,7 +104,7 @@ printstatus_ido2db()
{
if status_ido2db $1 $2; then
echo "$servicename (pid $Ido2dbPID) is running..."
- elif test $? == 2; then
+ elif test $? = 2; then
echo "$servicename is not running but subsystem locked"
else
echo "$servicename is not running"