Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2024 05:17:27 GMT
From:      Koichiro Iwao <meta@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d197a1aed782 - main - sysutils/vmstated: minor modifications to follow ports standard
Message-ID:  <202401310517.40V5HRVl018873@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by meta:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d197a1aed78206ac49002b63ede04bbeec79fb45

commit d197a1aed78206ac49002b63ede04bbeec79fb45
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2024-01-31 05:07:44 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-01-31 05:17:09 +0000

    sysutils/vmstated: minor modifications to follow ports standard
    
    - Remove unnecessary README.md
    - Remove unnecessary mode specification in plist (same with default)
    - Fix GitHub URL
    - Patch incorrect manpath
    
    PR:             276291
    Reported by:    jbeich
    Approved by:    blanket
    Sponsored by:   Cybertrust Japan
---
 sysutils/vmstated/Makefile  |  7 ++++++-
 sysutils/vmstated/README.md | 38 --------------------------------------
 sysutils/vmstated/pkg-plist |  3 ---
 3 files changed, 6 insertions(+), 42 deletions(-)

diff --git a/sysutils/vmstated/Makefile b/sysutils/vmstated/Makefile
index 070caff80013..569b6fe3ba36 100644
--- a/sysutils/vmstated/Makefile
+++ b/sysutils/vmstated/Makefile
@@ -1,10 +1,11 @@
 PORTNAME=	vmstated
 DISTVERSION=	0.04
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	freebsd@ny-central.org
 COMMENT=	Manages and runs bhyve virtual machines and infrastructure
-WWW=		https://www.github.com/christian-moerz/vmstated
+WWW=		https://github.com/christian-moerz/vmstated
 
 LICENSE=	BSD2CLAUSE
 
@@ -15,5 +16,9 @@ GH_TAGNAME=	${DISTVERSION}
 
 post-patch:
 	${REINPLACE_CMD} "s@PREFIX@${PREFIX}@g" "${WRKSRC}/rc/vmstated"
+	# Fix man path
+	${REINPLACE_CMD} \
+		'20 s|$${MANPREFIX}|$${PREFIX}/share|' \
+		"${WRKSRC}/src/vmstatedctl/Makefile"
 
 .include <bsd.port.mk>
diff --git a/sysutils/vmstated/README.md b/sysutils/vmstated/README.md
deleted file mode 100644
index 2750e950f1a9..000000000000
--- a/sysutils/vmstated/README.md
+++ /dev/null
@@ -1,38 +0,0 @@
-## vmstated
-
-`vmstated` is a very simple bhyve virtual machine manager for FreeBSD.
-
-### How to compile
-
-Eventually, `vmstated` will be released via the regular ports channel; until then,
-one can run the following commands:
-
-```
-git clone https://github.com/christian-moerz/vmstated
-cd vmstated/port
-make package
-pkg install work/pkg/vmstated-0.01.pkg
-```
-
-To uninstall vmstated, use the usual pkg command
-
-```
-pkg deinstall vmstated
-```
-
-### How to get started
-
-Please refer to the man pages for `vmstated(8)` or `vmstatedctl(1)` for further
-details on how to use `vmstated`.
-
-To start `vmstated` run
-
-```
-sysrc vmstated_enable=YES
-service vmstated start
-```
-
-- Configuration files go under `/usr/local/etc/vmstated`.
-- Log files are under `/var/log/vmstated`
-- PID file and socket are under `/var/run/`
-
diff --git a/sysutils/vmstated/pkg-plist b/sysutils/vmstated/pkg-plist
index 08e330c201fc..7c9d782fc900 100644
--- a/sysutils/vmstated/pkg-plist
+++ b/sysutils/vmstated/pkg-plist
@@ -1,8 +1,5 @@
-@mode 755
 bin/vmstatedctl
 etc/rc.d/vmstated
-@mode 750
 sbin/vmstated
-@mode 0444
 share/man/man1/vmstatedctl.1.gz
 share/man/man8/vmstated.8.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401310517.40V5HRVl018873>