PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://www.sudo.ws/sudo/dist/sudo-${PKGVER}.tar.gz" # note: it's possible to enable openssl and save 9kB on the binary, for this # remove --disable-openssl and add --enable-openssl MAKEDEPENDS= function do_config_only { CC="$CC" CXX="$CXX" LD="$LD" STRIP="$STRIP" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ sudo_cv_uid_t_len=10 \ sudo_cv_func_unsetenv_void=no \ ac_cv_lib_pthread_main=no \ ac_cv_have_decl_SECCOMP_MODE_FILTER=no \ ./configure --build=${FLXHOST} --host=${FLXTARG} --prefix=/usr --sysconfdir=/etc \ --with-rundir=/var/run/sudo --with-vardir=/var/state/sudo \ --without-pam --without-selinux --without-skey --disable-nls \ --with-sudoers-uid=0 --with-sudoers-gid=4 --with-sudoers-mode=0440 \ --enable-static-sudoers --disable-python --disable-intercept --without-noexec \ --disable-sasl --disable-env-debug --disable-zlib --disable-openssl \ --disable-package-build --disable-log-server --disable-log-client \ --without-interfaces --without-bsm-audit --without-linux-audit \ --enable-static-sudoers --disable-shared-libutil } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR rm $ROOTDIR/usr/bin/sudoedit && ln -s sudo $ROOTDIR/usr/bin/sudoedit mkdir -p $ROOTDIR/usr/share/examples/sudo/etc mv $ROOTDIR/etc/sudoers $ROOTDIR/usr/share/examples/sudo/etc/ rmdir $ROOTDIR/etc set_default_perm $ROOTDIR chmod 4111 $ROOTDIR/usr/bin/sudo }