From nobody Wed Oct 26 17:50:27 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MyGYb6T4Pz4gnBv; Wed, 26 Oct 2022 17:50:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MyGYb60Mjz3llM; Wed, 26 Oct 2022 17:50:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666806627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=toOBRrbI1vsh54nKSR3DemjZuKJCjxnnLRukL4Yznq4=; b=rKYrem7xDi5FZJV3dyB9Mpd3CzjSXGsMHBYObZGO04QNHCJrNCIiVx/jlRUu1yj3E6Bo6F 63tigI8Uwp5jaUpArw/7HmfHyqYrgJ6ORlSr0kKdwj+0EDT5BFSeYn9e9OhGxp5Qhx7qGA YDRCp30qkyOc3ufP+8ci5nYj0+KhiMjD3CBNa+kQtOjcgN4VZWTGbnOF245iK72IP5oI6Y rV/6qN2Y22HBnrLBaXASINhsG6st31CBty/lBpqss14t/K/Kj4ks+NR4iW+tgo2FcUyGZA TtHWcP/fgihbTc9CipzLNVQxhQYk+A2BtxjZ/xuCAbfnNItrmQad8ZfsAfYnaA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MyGYb4dQNzRJq; Wed, 26 Oct 2022 17:50:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29QHoR9I077155; Wed, 26 Oct 2022 17:50:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29QHoRJw077154; Wed, 26 Oct 2022 17:50:27 GMT (envelope-from git) Date: Wed, 26 Oct 2022 17:50:27 GMT Message-Id: <202210261750.29QHoRJw077154@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: c7c143e50fc0 - main - net-mgmt/icingaweb2-module-vspheredb: add rc.d script List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7c143e50fc09e68bd27d3d87a55abedc993a522 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666806627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=toOBRrbI1vsh54nKSR3DemjZuKJCjxnnLRukL4Yznq4=; b=prdPKl5d1UuanT4xY5yHCAhuySJ5+Vv0jldyuK/O8V1fvn+OkR9yoCVE83iaIpU/OPqSTA 4KeA7w3RXdMSgMInDJm7koqz9xktfrtj++DWBsAV6opZf8Iq9jbi0BbpdygduJEPZVU4/+ +1GCNagCh8Uh36Z9FX6nqOIWDwTEorgsXYK5tMcBi5f+Xo4jYPd4/8slhHAlKHdt7ftXjD tpWUJt2CZ87uyNWaeOx65jqcUWh0EDQMhT4kyIOmZIuhLjbCXTzY1408WDgwEHaJsFgtvp RKqhApCFDuxmDaxn+rJz7dEfEtQJP5mhAmJ24ceemVoagoA8QRh+9x1DeKXsxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666806627; a=rsa-sha256; cv=none; b=CA283Qe0JF+ZpjC1T9nLOE8lfM2gXLteuNVMdwYsPT3E70crj4hA/yBbqDv1gFlkIg2AGK K7zlk0u18bqM9d6VrRAZeapFwyNjuL8cJA9LSuEv/P2Y3ULZxMMsUOAsvasV9oltzMKo/n zTb4fyrVhr1sCxje+Ep8NtiTEgKbuRDfO6oO8OL4Lkz4Vh9En1NOcyUKldawRh8WwRoRUn LdlMB6pjR/kfJxRnTk4/dsOg0DvKp0CEGmYFQsyhz+PhqMXrv82+Uy9XmtrDolu+szF4DD BNs5DeJ+/Z/mTUlUTOtjWIhElQECrdDa9TwU5DrhsqJom6lUxG8dAQ68h1eCeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7c143e50fc09e68bd27d3d87a55abedc993a522 commit c7c143e50fc09e68bd27d3d87a55abedc993a522 Author: Dan Langille AuthorDate: 2022-10-26 17:49:27 +0000 Commit: Dan Langille CommitDate: 2022-10-26 17:50:24 +0000 net-mgmt/icingaweb2-module-vspheredb: add rc.d script While here, some portfmt fixes Approved by: maintainer (via private email) --- net-mgmt/icingaweb2-module-vspheredb/Makefile | 12 +++++++---- .../icingaweb2-module-vspheredb/files/vspheredb.in | 24 ++++++++++++++++++++++ net-mgmt/icingaweb2-module-vspheredb/pkg-plist | 1 + 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/net-mgmt/icingaweb2-module-vspheredb/Makefile b/net-mgmt/icingaweb2-module-vspheredb/Makefile index 400dc4fe5eae..1223546c8595 100644 --- a/net-mgmt/icingaweb2-module-vspheredb/Makefile +++ b/net-mgmt/icingaweb2-module-vspheredb/Makefile @@ -1,22 +1,23 @@ PORTNAME= icingaweb2-module-vspheredb DISTVERSIONPREFIX= v DISTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= net-mgmt www PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} MAINTAINER= gettoknowmi@yahoo.com -COMMENT= Easily Monitor Vsphere with Icinga +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.5.0:net-mgmt/icingaweb2@${PHP_FLAVOR} \ - icingaweb2-module-reactbundle${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-reactbundle@${PHP_FLAVOR} \ icingaweb2-module-incubator${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-incubator@${PHP_FLAVOR} \ - icingaweb2-module-ipl${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-ipl@${PHP_FLAVOR} + icingaweb2-module-ipl${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-ipl@${PHP_FLAVOR} \ + icingaweb2-module-reactbundle${PHP_PKGNAMESUFFIX}>0:net-mgmt/icingaweb2-module-reactbundle@${PHP_FLAVOR} -USES= php:web,flavors mysql +USES= mysql php:web,flavors USE_GITHUB= yes GH_ACCOUNT= icinga @@ -26,7 +27,10 @@ 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}) diff --git a/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in b/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in new file mode 100755 index 000000000000..0e122458400b --- /dev/null +++ b/net-mgmt/icingaweb2-module-vspheredb/files/vspheredb.in @@ -0,0 +1,24 @@ +#!/bin/sh + +# PROVIDE: vspheredb +# REQUIRE: icinga2 +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable nsca: +# vspheredb (bool): Set to "NO" by default. +# Set it to "YES" to enable . +# + +. /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}" + +run_rc_command "$1" diff --git a/net-mgmt/icingaweb2-module-vspheredb/pkg-plist b/net-mgmt/icingaweb2-module-vspheredb/pkg-plist index 6ff9e29c553e..1f47e8f7a4b0 100644 --- a/net-mgmt/icingaweb2-module-vspheredb/pkg-plist +++ b/net-mgmt/icingaweb2-module-vspheredb/pkg-plist @@ -1,3 +1,4 @@ +etc/rc.d/vspheredb %%WWWDIR%%/.github/ISSUE_TEMPLATE.md %%WWWDIR%%/.github/workflows/L10n-update.yml %%WWWDIR%%/LICENSE