git: 0c72e57044b6 - main - sysutils/usacloud: New port

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Mon, 27 Jan 2025 22:01:55 UTC
The branch main has been updated by nork:

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

commit 0c72e57044b6a9023c703d07d312b6260fbcc773
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2025-01-27 22:00:14 +0000
Commit:     Norikatsu Shigemura <nork@FreeBSD.org>
CommitDate: 2025-01-27 22:01:32 +0000

    sysutils/usacloud: New port
    
    Meta port for SAKURA cloud
    
    Approved by:    hrs (mentor)
---
 sysutils/Makefile           |  1 +
 sysutils/usacloud/Makefile  | 35 +++++++++++++++++++++++++++++++++++
 sysutils/usacloud/pkg-descr | 24 ++++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 4beb30c2a693..922df0e836be 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1493,6 +1493,7 @@
     SUBDIR += upower
     SUBDIR += upsdaemon
     SUBDIR += uptimed
+    SUBDIR += usacloud
     SUBDIR += usacloud-core
     SUBDIR += usb_modeswitch
     SUBDIR += usbhid-dump
diff --git a/sysutils/usacloud/Makefile b/sysutils/usacloud/Makefile
new file mode 100644
index 000000000000..e4776fcc9b0b
--- /dev/null
+++ b/sysutils/usacloud/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	usacloud
+CATEGORIES=	sysutils
+MASTER_SITES=	# empty
+DISTFILES=	# empty
+
+MAINTAINER=	nork@FreeBSD.org
+COMMENT=	Meta port for SAKURA cloud
+WWW=		https://docs.usacloud.jp/usacloud/
+
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	usacloud-core>=${PKGVERSION}:sysutils/usacloud-core
+RUN_DEPENDS=	usacloud-core>=${PKGVERSION}:sysutils/usacloud-core
+
+NO_ARCH=	yes
+NO_TEST=	yes
+NO_WRKSUBDIR=	yes
+
+USACLOUD_CMD=	${LOCALBASE}/bin/usacloud completion
+ENTRIES=	bash:etc/bash_completion.d/usacloud \
+		zsh:share/zsh/site-functions/_usacloud
+M_LABEL=	C,\:.*$$,,
+M_PATH=		C,^.*\:,,
+PLIST_FILES=	${ENTRIES:${M_PATH}}
+
+do-build:
+	cd ${BUILD_WRKSRC} && \
+	   ${MKDIR} ${ENTRIES:${M_PATH}:H} && \
+	   ${ENTRIES:@F@${USACLOUD_CMD} ${F:${M_LABEL}} > ${F:${M_PATH}};@}
+
+do-install:
+	cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}
+
+.include "${.CURDIR}/../usacloud-core/Makefile.version"
+.include <bsd.port.mk>
diff --git a/sysutils/usacloud/pkg-descr b/sysutils/usacloud/pkg-descr
new file mode 100644
index 000000000000..b0c9b52a7eff
--- /dev/null
+++ b/sysutils/usacloud/pkg-descr
@@ -0,0 +1,24 @@
+usacloud is the official CLI client for SAKURA cloud which is provided by
+SAKURA internet Inc. in Japan.
+
+The following feactures are available to SARKUA cloud users via RESTful APIs:
+
+- Configuration
+- Authentication
+- Computing / Storage / Networking
+- Appliance / Networking
+- Secure Mobile
+- Common service items
+- Billing
+- Lab
+- WebAccelerator
+- Region/Zone information
+- Service/Product information
+- Other services / commands
+
+SEE ALSO following manuals:
+https://docs.usacloud.jp/usacloud/installation/start_guide/
+https://docs.usacloud.jp/usacloud/guides/basic_usage/
+https://docs.usacloud.jp/usacloud/references/global/
+https://docs.usacloud.jp/usacloud/references/profile/
+https://docs.usacloud.jp/usacloud/references/env/