pkgsrc-WIP-changes archive

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

docker-compose: Install as `compose' plugin too



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Thu Jun 23 23:07:36 2022 +0200
Changeset:	db04434b64a439450679251a2834282445d1edda

Modified Files:
	docker-compose/Makefile
	docker-compose/PLIST

Log Message:
docker-compose: Install as `compose' plugin too

Now it should be usable also as `docker compose' if `docker-cli' is
installed.

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

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

diffstat:
 docker-compose/Makefile | 3 +++
 docker-compose/PLIST    | 1 +
 2 files changed, 4 insertions(+)

diffs:
diff --git a/docker-compose/Makefile b/docker-compose/Makefile
index 2d866c8b44..f8e3cdbfd8 100644
--- a/docker-compose/Makefile
+++ b/docker-compose/Makefile
@@ -13,8 +13,11 @@ LICENSE=	apache-2.0
 
 GO_BUILD_PATTERN+=	./cmd
 
+INSTALLATION_DIRS+=	bin lib/docker/cli-plugins
+
 post-install:
 	${MV} ${DESTDIR}${PREFIX}/bin/cmd ${DESTDIR}${PREFIX}/bin/docker-compose
+	${LN} -sf ${DESTDIR}${PREFIX}/bin/docker-compose ${DESTDIR}${PREFIX}/lib/docker/cli-plugins
 
 .include "go-modules.mk"
 
diff --git a/docker-compose/PLIST b/docker-compose/PLIST
index 96d076f71f..77886e0f55 100644
--- a/docker-compose/PLIST
+++ b/docker-compose/PLIST
@@ -1,2 +1,3 @@
 @comment $NetBSD$
 bin/docker-compose
+lib/docker/cli-plugins/docker-compose


Home | Main Index | Thread Index | Old Index