diff --git a/pkg.info b/pkg.info index e56ba2a..f911d82 100644 --- a/pkg.info +++ b/pkg.info @@ -1,12 +1,13 @@ name: podman description: A tool for managing OCI containers and pods version: 5.6.2 -revision: 1 +revision: 2 url: https://podman.io/ license: Apache-2.0 architecture: x86_64 type: source depends: + - catatonit - conmon - containers-common - containers-image @@ -14,17 +15,33 @@ depends: - gcc-libs - glibc - gpgme + - iptables - libseccomp - - runc - - man-db - netavark + - oci-runtime + - passt - shadow + - sqlite make_depends: - btrfs-progs - golang + - go-md2man + - man-db - udev downloads: - url: https://github.com/containers/podman/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 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 diff --git a/source.sh b/source.sh index f6cfd62..e47a837 100644 --- a/source.sh +++ b/source.sh @@ -5,13 +5,21 @@ # The build function is executed in the source directory # This function is used to compile the source code 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 # This function is used to move the compiled files into the output directory -package() { - make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install +package_podman() { + make PREFIX=/usr DESTDIR="$BPM_OUTPUT" install install.completions # Remove systemd services rm -r "$BPM_OUTPUT"/usr/lib/systemd @@ -22,3 +30,10 @@ package() { # Install package 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 +}