Skip to content

Commit

Permalink
sysutils/bmd-plugin-hookcmd: add new ports.
Browse files Browse the repository at this point in the history
PR:		273437
Reported by:	Yuichiro NAITO <naito.yuichiro at gmail.com>
  • Loading branch information
vanillahsu committed Sep 1, 2023
1 parent 2153f48 commit 8f7f59b
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions sysutils/Makefile
Expand Up @@ -138,6 +138,7 @@
SUBDIR += blisp
SUBDIR += bmd
SUBDIR += bmd-plugin-avahi
SUBDIR += bmd-plugin-hookcmd
SUBDIR += boot-extract
SUBDIR += bottom
SUBDIR += bpytop
Expand Down
24 changes: 24 additions & 0 deletions 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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
12 changes: 12 additions & 0 deletions 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}\"
3 changes: 3 additions & 0 deletions 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.
3 changes: 3 additions & 0 deletions 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

0 comments on commit 8f7f59b

Please sign in to comment.