1
0
forked from ports/contrib

docker-compose: added symlink to docker cli-plugins directory

This commit is contained in:
Matt Housh 2023-08-21 13:46:49 -05:00
parent 88710799b8
commit fbde9c71ed
3 changed files with 16 additions and 10 deletions

View File

@ -1,3 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/docker-compose
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/docker/
drwxr-xr-x root/root usr/lib/docker/cli-plugins/
lrwxrwxrwx root/root usr/lib/docker/cli-plugins/docker-compose -> /usr/bin/docker-compose

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF353zfFJV3+iSl0/QxNDgu0JIIGYU7BNEa+2Oeksby/tvfHiBdB3f9CEd0egM8RO4hfP4ic+R2FeggtC6td1IeQs=
SHA256 (Pkgfile) = 674b38031c572342a4aeebcbcdcfdd28fe581b606286d5e52f40c7b4d3e47a9c
SHA256 (.footprint) = 7154d1f66d9f29102103d3d93b9968c5c01ab4baa58ef7acec084fab6b6c2cb9
RWSagIOpLGJF38iI+Ey4OmtYvA1KdoYjQsIl4oscEmRoYNjKiit4hg05YgZ07JrfwCmGMYJ5P6ggT7wOZoVCpiVFsvh4ez3Yxwg=
SHA256 (Pkgfile) = d0ec047c204cea18970b54c7a4412b903257042a02befc5f20cefb31c1a62339
SHA256 (.footprint) = ba1446d4c34513c3c11ed15f4ce8e6419704b4d7fac645e9bc0d0421db4e6adf
SHA256 (docker-compose-2.20.3.tar.gz) = af8025623de3991a15a89575ae4fc4f3f38a17311af9641815500c01f0775950

View File

@ -5,14 +5,16 @@
name=docker-compose
version=2.20.3
release=1
release=2
source=(https://github.com/docker/compose/archive/v$version/$name-$version.tar.gz)
build() {
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CXXFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
cd compose-$version
go build -trimpath -o ${name} ./cmd
install -Dm0755 ${name} ${PKG}/usr/bin/${name}
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CXXFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
cd compose-$version
go build -trimpath -o ${name} ./cmd
install -Dm0755 ${name} ${PKG}/usr/bin/${name}
install -dm0755 ${PKG}/usr/lib/docker/cli-plugins
ln -s /usr/bin/docker-compose ${PKG}/usr/lib/docker/cli-plugins/
}