]> granicus.if.org Git - sudo/commitdiff
fix paths to LICENSE and NEWS files for macOS packages
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 May 2017 17:52:40 +0000 (11:52 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 May 2017 17:52:40 +0000 (11:52 -0600)
sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 308ac2ebc6135c7c3083134a744bd5ba165813fa..bd08d101c2d64b822fe46e8603e2333d3e3824d7 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=doc/LICENSE
+       pp_macos_pkg_license=$docdir/LICENSE
        pp_macos_pkg_readme=${pp_wrkdir}/ReadMe.txt
-       perl -pe 'last if (/^What/i && $seen++)' NEWS > ${pp_wrkdir}/ReadMe.txt
+       perl -pe 'last if (/^What/i && $seen++)' $docdir/NEWS > ${pp_wrkdir}/ReadMe.txt
 %endif
 
 %if X"$aix_freeware" = X"true"