Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v5.3] Add man pages to Mac installer #24820

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contrib/pkginstaller/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ tmpBin="contrib/pkginstaller/tmp-bin"

binDir="${BASEDIR}/root/podman/bin"
libDir="${BASEDIR}/root/podman/lib"
docDir="${BASEDIR}/root/podman/docs/man/man1"

version=$(cat "${BASEDIR}/VERSION")
arch=$(cat "${BASEDIR}/ARCH")

function build_podman() {
pushd "$1"

make podman-remote-darwin-docs
mkdir -p "contrib/pkginstaller/out/packaging/${docDir}"
cp -v docs/build/remote/darwin/*.1 "contrib/pkginstaller/out/packaging/${docDir}"

case ${goArch} in
universal)
build_fat
Expand Down
4 changes: 4 additions & 0 deletions contrib/pkginstaller/scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ echo "/opt/podman/bin" > /etc/paths.d/podman-pkg

# make sure to ignore errors, this is not a hard requirement to use podman
/opt/podman/bin/podman-mac-helper install || :

# Add pointer to podman docs in manpath
mkdir -p /usr/local/etc/man.d/
echo "MANPATH /opt/podman/docs/man" > /usr/local/etc/man.d/podman.man.conf
6 changes: 6 additions & 0 deletions contrib/pkginstaller/scripts/preinstall
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ rm -rf /opt/podman
if [ ! -d "/etc/paths.d" ]; then
mkdir -p /etc/paths.d
fi

# Create directory to be able to add podman
# man pages into the "man" path
if [ ! -d "/usr/local/etc/man.d" ]; then
mkdir -p /usr/local/etc/man.d
fi
Loading