mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
Install AIX packages under /opt/freeware with links in /usr/bin and
/usr/sbin. This matches the layout of the sudo package from AIX freeware.
This commit is contained in:
parent
a8e0687ca9
commit
c498235578
16
mkpkg
16
mkpkg
@ -252,6 +252,22 @@ case "$osversion" in
|
|||||||
--with-env-editor
|
--with-env-editor
|
||||||
$configure_opts"
|
$configure_opts"
|
||||||
;;
|
;;
|
||||||
|
aix*)
|
||||||
|
# Note, must indent with tabs, not spaces due to IFS trickery
|
||||||
|
# Note: we include our own zlib instead of relying on the
|
||||||
|
# AIX freeware version being installed.
|
||||||
|
configure_opts="
|
||||||
|
--prefix=/opt/freeware
|
||||||
|
--mandir=/opt/freeware/man
|
||||||
|
--with-insults=disabled
|
||||||
|
--with-logging=syslog
|
||||||
|
--with-logfac=auth
|
||||||
|
--with-editor=/usr/bin/vi
|
||||||
|
--with-env-editor
|
||||||
|
--enable-zlib=builtin
|
||||||
|
$configure_opts"
|
||||||
|
PPVARS="${PPVARS}${PPVARS+$space}aix_freeware=$true"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# For Solaris, add project support and use let configure choose zlib.
|
# For Solaris, add project support and use let configure choose zlib.
|
||||||
# For all others, use the builtin zlib and disable NLS support.
|
# For all others, use the builtin zlib and disable NLS support.
|
||||||
|
16
sudo.pp
16
sudo.pp
@ -214,6 +214,15 @@ still allow people to get their work done."
|
|||||||
perl -pe 'last if (/^What/i && $seen++)' NEWS > ${pp_wrkdir}/ReadMe.txt
|
perl -pe 'last if (/^What/i && $seen++)' NEWS > ${pp_wrkdir}/ReadMe.txt
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if X"$aix_freeware" = X"true"
|
||||||
|
# Create links from /opt/freeware/{bin,sbin} -> /usr/{bin.sbin}
|
||||||
|
mkdir -p ${pp_destdir}/usr/bin ${pp_destdir}/usr/sbin
|
||||||
|
ln -s -f ${bindir}/sudo ${pp_destdir}/usr/bin
|
||||||
|
ln -s -f ${bindir}/sudoedit ${pp_destdir}/usr/bin
|
||||||
|
ln -s -f ${bindir}/sudoreplay ${pp_destdir}/usr/bin
|
||||||
|
ln -s -f ${sbindir}/visudo ${pp_destdir}/usr/sbin
|
||||||
|
%endif
|
||||||
|
|
||||||
# OS-level directories that should generally exist but might not.
|
# OS-level directories that should generally exist but might not.
|
||||||
extradirs=`echo ${pp_destdir}/${mandir}/[mc]* | sed "s#${pp_destdir}/##g"`
|
extradirs=`echo ${pp_destdir}/${mandir}/[mc]* | sed "s#${pp_destdir}/##g"`
|
||||||
extradirs="$extradirs `dirname $docdir` `dirname $timedir`"
|
extradirs="$extradirs `dirname $docdir` `dirname $timedir`"
|
||||||
@ -267,6 +276,13 @@ still allow people to get their work done."
|
|||||||
%else
|
%else
|
||||||
$sudoersdir/sudoers.dist $sudoers_mode $sudoers_uid:$sudoers_gid volatile
|
$sudoersdir/sudoers.dist $sudoers_mode $sudoers_uid:$sudoers_gid volatile
|
||||||
%endif
|
%endif
|
||||||
|
%if X"$aix_freeware" = X"true"
|
||||||
|
# Links for binaries from /opt/freeware to /usr
|
||||||
|
/usr/bin/sudo 0755 root: symlink $bindir/sudo
|
||||||
|
/usr/bin/sudoedit 0755 root: symlink $bindir/sudoedit
|
||||||
|
/usr/bin/sudoreplay 0755 root: symlink $bindir/sudoreplay
|
||||||
|
/usr/sbin/visudo 0755 root: symlink $sbindir/visudo
|
||||||
|
%endif
|
||||||
|
|
||||||
%files [!aix]
|
%files [!aix]
|
||||||
$sudoedit_man 0644 symlink,ignore-others $sudoedit_man_target
|
$sudoedit_man 0644 symlink,ignore-others $sudoedit_man_target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user