qLinux
… a distribution study


<< Prev
Git-2.35.1

Next >>
Queue-Standalone


Sudo-1.9.9

Download: sudo-1.9.9.tar.gz. Fix the build system:

patch -Np1 -i sudo-1.9.9.bld-20220331.patch

Apply a patch to fix the sources:

patch -Np1 -i sudo-1.9.9.src-20220331.patch

Configure the package:

CFLAGS="-I/libs/inc" LDFLAGS="-L/libs/lib" \
./configure --prefix=/qlnx \
            --sbindir=/qlnx/bin \
            --includedir=/qlnx/inc \
            --sysconfdir=/qlnx/etc \
            --mandir=/qlnx/man \
            --localedir=/qlnx/dat/locale \
            --docdir=/tmp \
            --libexecdir=/qlnx/lib \
            --with-vardir=/qlnx/var/sudo \
            --runstatedir=/qlnx/run \
            --with-tzdir=/qlnx/dat/zoneinfo \
            --with-editor=/qlnx/bin/mcedit \
            --with-env-editor \
            --without-pam \
            --without-sendmail

CFLAGS=“-I/libs/inc” LDFLAGS=“-L/libs/lib”
    The build system doesn't recognize the pkg-config file for openssl correctly.

–without-pam
    Disable pam which is not available yet.

–with-env-editor
     visudo  uses the environment variable $EDITOR to determine the editor.

–without-sendmail
    Disable mail in general.

Build and install sudo:

make
make install

Change the mode of the admin executables:

chmod 0740 /qlnx/bin/sudo_logsrvd  /qlnx/bin/sudo_sendlog  /qlnx/bin/visudo

Optional: Like the configure script prints a warning, create the directory  /qlnx/run/sudo/ts .

More optional: Remove all binaries and man pages except  sudo  (the “needed” ones);

A personal note: I have never heard before of all these tools besides  sudo  and  visudo .

Installed Files

bin: cvtsudoers,,sudo, sudo_logsrvd, sudo_sendlog, sudoedit, sudoreplay, visudo

bin: sudo.conf, sudo_logsrvd.conf, sudoers, sudoers.dist

man: cvtsudoers.1,sudo.conf.5, sudo_logsrv.proto.5, sudo_logsrvd.conf.5, sudoers.5, sudoers_timestamp.5, sudo.8, sudo_logsrvd.8, sudo_plugin.8, sudo_sendlog.8, sudoedit.8, sudoreplay.8, visudo.8

directories: /etc/sudoers.d, /qlnx/inc/sudo, /qlnx/lib/sudo, var/sudo/lectured, run/sudo


<< Prev
Git-2.35.1

Next >>
Queue-Standalone