Split package and add dependencies
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
name: podman
|
name: podman
|
||||||
description: A tool for managing OCI containers and pods
|
description: A tool for managing OCI containers and pods
|
||||||
version: 5.6.2
|
version: 5.6.2
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://podman.io/
|
url: https://podman.io/
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
architecture: x86_64
|
architecture: x86_64
|
||||||
type: source
|
type: source
|
||||||
depends:
|
depends:
|
||||||
|
- catatonit
|
||||||
- conmon
|
- conmon
|
||||||
- containers-common
|
- containers-common
|
||||||
- containers-image
|
- containers-image
|
||||||
@@ -14,17 +15,33 @@ depends:
|
|||||||
- gcc-libs
|
- gcc-libs
|
||||||
- glibc
|
- glibc
|
||||||
- gpgme
|
- gpgme
|
||||||
|
- iptables
|
||||||
- libseccomp
|
- libseccomp
|
||||||
- runc
|
|
||||||
- man-db
|
|
||||||
- netavark
|
- netavark
|
||||||
|
- oci-runtime
|
||||||
|
- passt
|
||||||
- shadow
|
- shadow
|
||||||
|
- sqlite
|
||||||
make_depends:
|
make_depends:
|
||||||
- btrfs-progs
|
- btrfs-progs
|
||||||
- golang
|
- golang
|
||||||
|
- go-md2man
|
||||||
|
- man-db
|
||||||
- udev
|
- udev
|
||||||
downloads:
|
downloads:
|
||||||
- url: https://github.com/containers/podman/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
- url: https://github.com/containers/podman/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
extract_strip_components: 1
|
extract_strip_components: 1
|
||||||
checksum: c6de8f347ee93e4626d7c82e3adcb1b34e64175b5ca9959e790e52a0b4bbf2a1
|
checksum: c6de8f347ee93e4626d7c82e3adcb1b34e64175b5ca9959e790e52a0b4bbf2a1
|
||||||
|
split_packages:
|
||||||
|
- name: podman
|
||||||
|
optional_depends:
|
||||||
|
- btrfs-progs
|
||||||
|
- name: podman-docker
|
||||||
|
description: Docker CLI command compatibility for podman
|
||||||
|
depends:
|
||||||
|
- podman
|
||||||
|
conflicts:
|
||||||
|
- docker
|
||||||
|
provides:
|
||||||
|
- docker
|
||||||
|
|||||||
@@ -5,13 +5,21 @@
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
make BUILDTAGS="seccomp" PREFIX=/usr
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||||
|
export CGO_CFLAGS="${CFLAGS}"
|
||||||
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||||
|
export CGO_LDFLAGS="${LDFLAGS}"
|
||||||
|
export GOFLAGS="-buildmode=pie"
|
||||||
|
export GOPATH="$BPM_WORKDIR"
|
||||||
|
|
||||||
|
make EXTRA_LDFLAGS='-compressdwarf=false -linkmode=external' PREFIX=/usr
|
||||||
|
make docker-docs
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package_podman() {
|
||||||
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install
|
make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install install.completions
|
||||||
|
|
||||||
# Remove systemd services
|
# Remove systemd services
|
||||||
rm -r "$BPM_OUTPUT"/usr/lib/systemd
|
rm -r "$BPM_OUTPUT"/usr/lib/systemd
|
||||||
@@ -22,3 +30,10 @@ package() {
|
|||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/podman/LICENSE
|
install -Dm644 LICENSE "$BPM_OUTPUT"/usr/share/licenses/podman/LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package_podman-docker() {
|
||||||
|
make -j1 PREFIX=/usr DESTDIR="$BPM_OUTPUT" install.docker-full
|
||||||
|
|
||||||
|
# Remove systemd services
|
||||||
|
rm -r $BPM_OUTPUT/usr/lib/systemd
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user