]> granicus.if.org Git - sudo/commitdiff
Add Mac OS X support, printing the latest chunk of the NEWS file
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Feb 2012 17:59:58 +0000 (12:59 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Feb 2012 17:59:58 +0000 (12:59 -0500)
and the license text in the installer.

--HG--
branch : 1.7

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 24def1e6d0ae3b6eedc2c9061e6d6eaf3c34833c..6b6ef5e52dee70cb01c17794de26c97158b74dc5 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -176,6 +176,13 @@ still allow people to get their work done."
        EOF
 %endif
 
+%if [macos]
+       pp_macos_bundle_id=ws.sudo.pkg.sudo
+       pp_macos_pkg_license=doc/LICENSE
+       pp_macos_pkg_readme=${pp_wrkdir}/ReadMe.txt
+       perl -pe 'last if (/^What/i && $seen++)' NEWS > ${pp_wrkdir}/ReadMe.txt
+%endif
+
        # OS-level directories that should generally exist but might not.
        extradirs=`echo ${pp_destdir}/${mandir}/[mc]* | sed "s#${pp_destdir}/##g"`
        extradirs="$extradirs `dirname $docdir` `dirname $timedir`"