]> granicus.if.org Git - sudo/commitdiff
Fix path to LICENSE and NEWS files that get used in the installer.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Aug 2017 17:54:13 +0000 (11:54 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Aug 2017 17:54:13 +0000 (11:54 -0600)
Previously, the installed versions were used instead of the ones
in the destdir.

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index d56c92f15bbc977257b1c5833fed47d8977b50c3..6595c0a1103d9610885f680c4f2a2fc390abb555 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -272,9 +272,9 @@ still allow people to get their work done."
 %if [macos]
        pp_macos_pkg_type=flat
        pp_macos_bundle_id=ws.sudo.pkg.sudo
-       pp_macos_pkg_license=$docdir/LICENSE
+       pp_macos_pkg_license=${pp_destdir}$docdir/LICENSE
        pp_macos_pkg_readme=${pp_wrkdir}/ReadMe.txt
-       perl -pe 'last if (/^What/i && $seen++)' $docdir/NEWS > ${pp_wrkdir}/ReadMe.txt
+       perl -pe 'last if (/^What/i && $seen++)' ${pp_destdir}$docdir/NEWS > ${pp_wrkdir}/ReadMe.txt
 %endif
 
 %if X"$aix_freeware" = X"true"