diff --git a/net-mgmt/icingaweb2-module-vspheredb/Makefile b/net-mgmt/icingaweb2-module-vspheredb/Makefile index 552b4064b023..38ba5772b43f 100644 --- a/net-mgmt/icingaweb2-module-vspheredb/Makefile +++ b/net-mgmt/icingaweb2-module-vspheredb/Makefile @@ -1,38 +1,38 @@ PORTNAME= icingaweb2-module-vspheredb DISTVERSIONPREFIX= v DISTVERSION= 1.4.0 -PORTREVISION= 2 +PORTREVISION= 1 CATEGORIES= net-mgmt www PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} MAINTAINER= gettoknowmi@yahoo.com COMMENT= Easily Monitor Vsphere with Icinga WWW= https://github.com/Icinga/icingaweb2-module-vspheredb LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= icingaweb2${PHP_PKGNAMESUFFIX}>=2.11.4:net-mgmt/icingaweb2@${PHP_FLAVOR} \ icingaweb2-module-incubator${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-incubator@${PHP_FLAVOR} \ icinga-php-library${PHP_PKGNAMESUFFIX}>0:net-mgmt/icinga-php-library@${PHP_FLAVOR} \ icingaweb2-module-reactbundle${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-reactbundle@${PHP_FLAVOR} USES= mysql php:web,flavors USE_GITHUB= yes GH_ACCOUNT= icinga NO_BUILD= yes NO_ARCH= yes WWWDIR?= ${PREFIX}/www/icingaweb2/modules/${PORTNAME:C/^.*-//} SUB_FILES= vspheredb do-install: ${INSTALL_SCRIPT} ${WRKDIR}/vspheredb ${STAGEDIR}${PREFIX}/etc/rc.d @${MKDIR} ${STAGEDIR}${WWWDIR} (cd ${WRKSRC} && \ ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}) .include diff --git a/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in b/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in index 0e122458400b..83b8228b1963 100755 --- a/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in +++ b/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in @@ -1,24 +1,28 @@ #!/bin/sh # PROVIDE: vspheredb # REQUIRE: icinga2 # BEFORE: LOGIN # KEYWORD: shutdown # -# Add the following lines to /etc/rc.conf to enable nsca: +# Add the following lines to /etc/rc.conf to enable vspheredb: # vspheredb (bool): Set to "NO" by default. # Set it to "YES" to enable . # +# vspheredb_flags (string): defaults to -f +# see man(8) daemon for more information . /etc/rc.subr name="vspheredb" rcvar=vspheredb_enable pidfile="/var/run/vspheredb.pid" command="/usr/sbin/daemon" -command_args="-f -P ${pidfile} %%PREFIX%%/bin/icingacli vspheredb daemon run" - load_rc_config "${name}" +: ${vspheredb_flags:="-f"} + +command_args="${vspheredb_flags} -P ${pidfile} /usr/local/bin/icingacli vspheredb daemon run" + run_rc_command "$1"