podman: install rootlessport and completions

Fixes #36095
This commit is contained in:
Cameron Nemo 2022-03-11 10:44:13 -08:00 committed by lemmi
parent 68d67ee083
commit d01a2720e0

View file

@ -1,10 +1,10 @@
# Template file for 'podman'
pkgname=podman
version=4.0.2
revision=1
revision=2
build_style=go
go_import_path="github.com/containers/podman/v4"
go_package="${go_import_path}/cmd/podman"
go_package="${go_import_path}/cmd/podman ${go_import_path}/cmd/rootlessport"
go_build_tags="seccomp apparmor containers_image_ostree_stub"
hostmakedepends="pkg-config go-md2man"
makedepends="gpgme-devel libseccomp-devel device-mapper-devel libbtrfs-devel"
@ -26,7 +26,10 @@ post_build() {
}
post_install() {
vmkdir usr/libexec/podman
mv "${DESTDIR}/usr/bin/rootlessport" "${DESTDIR}/usr/libexec/podman/rootlessport"
make install.man DESTDIR="${DESTDIR}" PREFIX="/usr"
make install.completions DESTDIR="${DESTDIR}" PREFIX="/usr"
sed -e 's|# cgroup_manager = "systemd"|cgroup_manager = "cgroupfs"|g' \
vendor/github.com/containers/common/pkg/config/containers.conf \
>containers.cgfs.conf