From: Todd C. Miller Date: Fri, 10 Feb 2012 17:59:58 +0000 (-0500) Subject: Add Mac OS X support, printing the latest chunk of the NEWS file X-Git-Tag: SUDO_1_7_9~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f08be89cde08a0135c5380415cc306802c0d773d;p=sudo Add Mac OS X support, printing the latest chunk of the NEWS file and the license text in the installer. --HG-- branch : 1.7 --- 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`"