pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

docker-machine: Import docker-machine-0.16.2



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Jul 17 13:55:02 2021 +0200
Changeset:	11553126141f3d99e763ff951ba172254932e5f1

Added Files:
	docker-machine/DESCR
	docker-machine/Makefile
	docker-machine/PLIST
	docker-machine/distinfo
	docker-machine/patches/patch-drivers_virtualbox_virtualbox__netbsd.go
	docker-machine/patches/patch-libmachine_crashreport_os__netbsd.go

Log Message:
docker-machine: Import docker-machine-0.16.2

Machine lets you create Docker hosts on your computer, on cloud
providers, and inside your own data center. It creates servers,
installs Docker on them, then configures the Docker client to talk
to them

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=11553126141f3d99e763ff951ba172254932e5f1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 docker-machine/DESCR                               |  4 ++++
 docker-machine/Makefile                            | 23 +++++++++++++++++++++
 docker-machine/PLIST                               |  2 ++
 docker-machine/distinfo                            |  8 ++++++++
 .../patch-drivers_virtualbox_virtualbox__netbsd.go | 24 ++++++++++++++++++++++
 .../patch-libmachine_crashreport_os__netbsd.go     | 23 +++++++++++++++++++++
 6 files changed, 84 insertions(+)

diffs:
diff --git a/docker-machine/DESCR b/docker-machine/DESCR
new file mode 100644
index 0000000000..ce5b69794d
--- /dev/null
+++ b/docker-machine/DESCR
@@ -0,0 +1,4 @@
+Machine lets you create Docker hosts on your computer, on cloud
+providers, and inside your own data center. It creates servers,
+installs Docker on them, then configures the Docker client to talk
+to them
diff --git a/docker-machine/Makefile b/docker-machine/Makefile
new file mode 100644
index 0000000000..4be9331edb
--- /dev/null
+++ b/docker-machine/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	docker-machine-0.16.2
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=docker/}
+GITHUB_PROJECT=	machine
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/docker/machine/
+COMMENT=	Machine management for a container-centric world
+LICENSE=	apache-2.0
+
+GO_DIST_BASE=	machine-${PKGVERSION_NOREV}
+GO_SRCPATH=	github.com/docker/machine
+
+INSTALLATION_DIRS+=	bin
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKDIR}/bin/docker-machine ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/docker-machine/PLIST b/docker-machine/PLIST
new file mode 100644
index 0000000000..f6f37e81a7
--- /dev/null
+++ b/docker-machine/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/docker-machine
diff --git a/docker-machine/distinfo b/docker-machine/distinfo
new file mode 100644
index 0000000000..73e4ad964f
--- /dev/null
+++ b/docker-machine/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (docker-machine-0.16.2.tar.gz) = 19618c8b0c2b270938388cbeb756b9c2c37e6bed
+RMD160 (docker-machine-0.16.2.tar.gz) = 583d8ae2a68134a418b09d3df07cea2ac9f9262e
+SHA512 (docker-machine-0.16.2.tar.gz) = 92408c18be23cee040e96412dafeff16415834c3141b0a9c1f82cb9d6b1e0700344a158a44ffac24fed2c244d3fa5c531d9f13ffffaa4be1f4fcbd79104f899e
+Size (docker-machine-0.16.2.tar.gz) = 2823054 bytes
+SHA1 (patch-drivers_virtualbox_virtualbox__netbsd.go) = 5815fa015dc974dfc7787ecf2c1b536bfd9f7528
+SHA1 (patch-libmachine_crashreport_os__netbsd.go) = c2276db586c40045bb873d09124e8309fbe20288
diff --git a/docker-machine/patches/patch-drivers_virtualbox_virtualbox__netbsd.go b/docker-machine/patches/patch-drivers_virtualbox_virtualbox__netbsd.go
new file mode 100644
index 0000000000..b73dbcebb4
--- /dev/null
+++ b/docker-machine/patches/patch-drivers_virtualbox_virtualbox__netbsd.go
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Add support for NetBSD.
+
+FIXME: This is a complete copypasto of virtualbox_{free,open}bsd.go and they
+FIXME: should be probably unified in a single virtualbox_bsd.go file instead
+FIXME: of keeping 3 copies around.
+
+--- drivers/virtualbox/virtualbox_netbsd.go.orig	2021-07-17 11:49:06.626017745 +0000
++++ drivers/virtualbox/virtualbox_netbsd.go
+@@ -0,0 +1,13 @@
++package virtualbox
++
++func detectVBoxManageCmd() string {
++	return detectVBoxManageCmdInPath()
++}
++
++func getShareDriveAndName() (string, string) {
++	return "hosthome", "/home"
++}
++
++func isHyperVInstalled() bool {
++	return false
++}
diff --git a/docker-machine/patches/patch-libmachine_crashreport_os__netbsd.go b/docker-machine/patches/patch-libmachine_crashreport_os__netbsd.go
new file mode 100644
index 0000000000..d9f074fb39
--- /dev/null
+++ b/docker-machine/patches/patch-libmachine_crashreport_os__netbsd.go
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Add support for NetBSD.
+
+FIXME: This is a complete copypasto of os_{free,open}bsd.go and they should be
+FIXME: probably unified in a single os_bsd.go file instead of keeping 3 copies
+FIXME: around.
+
+--- libmachine/crashreport/os_netbsd.go.orig	2021-07-17 11:49:21.651863398 +0000
++++ libmachine/crashreport/os_netbsd.go
+@@ -0,0 +1,12 @@
++package crashreport
++
++import "os/exec"
++
++func localOSVersion() string {
++	command := exec.Command("uname", "-r")
++	output, err := command.Output()
++	if err != nil {
++		return ""
++	}
++	return string(output)
++}


Home | Main Index | Thread Index | Old Index