[Bug 277411] ports-mgmt/pkg: @postunexec command in pkg-plist isn't executed when package is upgraded with `pkg upgrade`
Date: Fri, 01 Mar 2024 09:35:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277411 --- Comment #3 from Yasuhiro Kimura <yasu@freebsd.org> --- (In reply to Yasuhiro Kimura from comment #2) OK, the answer hits upon me. Old symlink is removed by adding following line to new pkg-plist ---------------------------------------------------------------------- @preexec [ -L %D/man/man1/gpg.1.gz ] || rm -f %D/man/man1/gpg.1.gz ---------------------------------------------------------------------- When the package is upgraded with `pkg upgrade` ${PREFIX}/man/man1/gpg.1.gz is removed before instlalling new version. -- You are receiving this mail because: You are the assignee for the bug.