From nobody Fri Sep 01 02:54:24 2023 X-Original-To: dev-commits-ports-all@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 4RcN0d0ytQz4rxKm; Fri, 1 Sep 2023 02:54:25 +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 4RcN0d0Ymkz4MNS; Fri, 1 Sep 2023 02:54:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693536865; 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=uo4itt832v8SevXI3KU1Mg6uBF8ApFRo8nuCMwzo/0g=; b=SmuJHFR/3TWVxjzQ1urR2mHUvG80jVWXaaRs1EkKNIFM2zPQyO1mskjHjESQct1sr24sfw nxFb7W0FKz4SSLwMqnUXE251kfG6027Em3Vq7sRCFC37e1CDECiD23J5BYszJAWNt73IuF O5E+3cxzSNRwAtXnl5J3HvniYgNjYN1ZtUA9ZXl8J00qZM5t0+5Vk20Kh26dAbo72JoEny 93v3zHHwPIl1Fx3ePmIg7kCOWKVwUv6vYkRgkFnio7IoO6rkkVb9b240XUDwkjGE6iBme7 0MbcLjJmWRq4AbKjSVxdqAEFIez1iCtzlg5YQzeMosfTMCaSbM2rnwm8HVz7sA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693536865; a=rsa-sha256; cv=none; b=ZQkNyhu+Z0hN13mmcRfAZMLDh/TeyNpPp+rDeLYsSTi3HwJkUMvXyW8Hnvn6sn7T5xb0pD ZkGqzyzq5xSMfAkLCkcjSOcEMtABYf2NKQeuRmOvlbQeth05RvcMxx30fGsZfLxDnPGOJW bdKL+EWEZ/PtmH7zEFqa5sWx0hFXwfUJslZhBnH6HSYuS2De2xtSEhROV+FpG8MiNDuNsO mmfAlm5++xAo5r3VaO6uie8WyX/6VO1E1d69urwxPijrU3C+tCH5mIGLYY/+ar9hhbGqYd /19PCSC/7r8EYme9/2d4J+SdwYqqn1N4JVDTQD5Owlp+PhjeMGl1WJGydheb0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693536865; 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=uo4itt832v8SevXI3KU1Mg6uBF8ApFRo8nuCMwzo/0g=; b=u37vU/YtqvwV7EXbRdK28Mqm6MOjxehWmSZJ7FompTplg/nQSxxIbk1rS8Kq3l6OI5J7z+ f/6MsYmSzPF0BwY+Tk7QeiXloBJonbRB5Cph4jMOcUOY9aE2OTrZ0sc+rxcDXQzHTBqncq ZZPyIVwEBzhHcPBa9KGvT1h26/76B8R6UHBokPWmTMVWCxOjJ7AWYFCxoxcWj/eAozCT4z ZEIoq8gl41PeIqQMhRhpPlpHCycun4jtdgPmjIBEkymedEHoL7XV8s9GyLMMULIBkpehTo WEru1nb14QzahROByHz6s3bXt3Ixk4+uE5hSleUHSG8QEc/m6qOdyK833ZP1OQ== 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 4RcN0c6mdWzkLn; Fri, 1 Sep 2023 02:54:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3812sO2M074416; Fri, 1 Sep 2023 02:54:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3812sOHQ074413; Fri, 1 Sep 2023 02:54:24 GMT (envelope-from git) Date: Fri, 1 Sep 2023 02:54:24 GMT Message-Id: <202309010254.3812sOHQ074413@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Vanilla I. Shu" Subject: git: 8f7f59bbc250 - main - sysutils/bmd-plugin-hookcmd: add new ports. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vanilla X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f7f59bbc2504672483c7840638c7fc171e1b9f5 Auto-Submitted: auto-generated The branch main has been updated by vanilla: URL: https://cgit.FreeBSD.org/ports/commit/?id=8f7f59bbc2504672483c7840638c7fc171e1b9f5 commit 8f7f59bbc2504672483c7840638c7fc171e1b9f5 Author: Vanilla I. Shu AuthorDate: 2023-09-01 02:53:25 +0000 Commit: Vanilla I. Shu CommitDate: 2023-09-01 02:54:14 +0000 sysutils/bmd-plugin-hookcmd: add new ports. PR: 273437 Reported by: Yuichiro NAITO --- sysutils/Makefile | 1 + sysutils/bmd-plugin-hookcmd/Makefile | 24 ++++++++++++++++++++++++ sysutils/bmd-plugin-hookcmd/distinfo | 3 +++ sysutils/bmd-plugin-hookcmd/files/patch-Makefile | 12 ++++++++++++ sysutils/bmd-plugin-hookcmd/pkg-descr | 3 +++ sysutils/bmd-plugin-hookcmd/pkg-plist | 3 +++ 6 files changed, 46 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index e1e7eeccc70e..50941c47c8d2 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -138,6 +138,7 @@ SUBDIR += blisp SUBDIR += bmd SUBDIR += bmd-plugin-avahi + SUBDIR += bmd-plugin-hookcmd SUBDIR += boot-extract SUBDIR += bottom SUBDIR += bpytop diff --git a/sysutils/bmd-plugin-hookcmd/Makefile b/sysutils/bmd-plugin-hookcmd/Makefile new file mode 100644 index 000000000000..5b9fa39b7d43 --- /dev/null +++ b/sysutils/bmd-plugin-hookcmd/Makefile @@ -0,0 +1,24 @@ +PORTNAME= bmd-plugin-hookcmd +DISTVERSION= 1.0 +CATEGORIES= sysutils + +MAINTAINER= naito.yuichiro@gmail.com +COMMENT= BMD plugin hookcmd +WWW= https://github.com/yuichiro-naito/bmd-plugin-hookcmd + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +# Because bhyve runs on amd64 only. +ONLY_FOR_ARCHS= amd64 + +BUILD_DEPENDS= bmd>0:sysutils/bmd +RUN_DEPENDS= bmd>0:sysutils/bmd + +USE_GITHUB= yes +GH_ACCOUNT= yuichiro-naito + +pre-install: + ${MKDIR} ${STAGEDIR}/${LOCALBASE}/libexec/bmd + +.include diff --git a/sysutils/bmd-plugin-hookcmd/distinfo b/sysutils/bmd-plugin-hookcmd/distinfo new file mode 100644 index 000000000000..1f55b648a871 --- /dev/null +++ b/sysutils/bmd-plugin-hookcmd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1693228512 +SHA256 (yuichiro-naito-bmd-plugin-hookcmd-1.0_GH0.tar.gz) = 0a856474290f23fcff5ba5eeab62d356df6d864528f5c56504769ac05a94917f +SIZE (yuichiro-naito-bmd-plugin-hookcmd-1.0_GH0.tar.gz) = 2589 diff --git a/sysutils/bmd-plugin-hookcmd/files/patch-Makefile b/sysutils/bmd-plugin-hookcmd/files/patch-Makefile new file mode 100644 index 000000000000..fb9d88ce51dc --- /dev/null +++ b/sysutils/bmd-plugin-hookcmd/files/patch-Makefile @@ -0,0 +1,12 @@ +--- Makefile.orig 2023-08-15 09:05:51 UTC ++++ Makefile +@@ -1,5 +1,9 @@ MK_DEBUG_FILES= no + LOCALBASE?= /usr/local + MK_DEBUG_FILES= no ++BINOWN!= id -u ++BINGRP!= id -g ++SHAREOWN= ${BINOWN} ++SHAREGRP= ${BINGRP} + SHLIB= bmdplugin_hookcmd + SHLIB_MAJOR= 1 + CFLAGS+= -I${LOCALBASE}/include -DLOCALBASE=\"${LOCALBASE}\" diff --git a/sysutils/bmd-plugin-hookcmd/pkg-descr b/sysutils/bmd-plugin-hookcmd/pkg-descr new file mode 100644 index 000000000000..225d92c8bedf --- /dev/null +++ b/sysutils/bmd-plugin-hookcmd/pkg-descr @@ -0,0 +1,3 @@ +The bmd-plugin-hookcmd spawns the specific command when VM status is changed. +If you write a script that mail to you, you will be notified when VM is started +and stopped. diff --git a/sysutils/bmd-plugin-hookcmd/pkg-plist b/sysutils/bmd-plugin-hookcmd/pkg-plist new file mode 100644 index 000000000000..91ba9d6dabce --- /dev/null +++ b/sysutils/bmd-plugin-hookcmd/pkg-plist @@ -0,0 +1,3 @@ +libexec/bmd/libbmdplugin_hookcmd.so +libexec/bmd/libbmdplugin_hookcmd.so.1 +man/man8/bmd-plugin-hookcmd.8.gz