From f08be89cde08a0135c5380415cc306802c0d773d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 10 Feb 2012 12:59:58 -0500 Subject: [PATCH] Add Mac OS X support, printing the latest chunk of the NEWS file and the license text in the installer. --HG-- branch : 1.7 --- sudo.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sudo.pp b/sudo.pp index 24def1e6d..6b6ef5e52 100644 --- 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`" -- 2.50.1