]> 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:50:15 +0000 (12:50 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 10 Feb 2012 17:50:15 +0000 (12:50 -0500)
and the license text in the installer.

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 9dc4a69ba0fbc433deeb5c1b173f30b36c9ebafe..2dc508157ad52d63444612e800605b2999df42b5 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -188,6 +188,13 @@ still allow people to get their work done."
        done
        osdirs=`echo $osdirs | tr " " "\n" | sort -u`
 
+%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
+
 %files
        $osdirs                 -
        $bindir/sudo            4111 root: