From afacf895c38c565a0eda2355885ae47ae19cce30 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 10 Feb 2012 12:59:43 -0500 Subject: [PATCH] Move macos section to be with the other OS-specific sections. --HG-- branch : 1.8 --- sudo.pp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sudo.pp b/sudo.pp index 2dc508157..b89e24531 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`" @@ -188,13 +195,6 @@ 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: -- 2.40.0