smlinux/base/sudo/sudo.SMBuild
PktSurf 86f0501813 Security upgrades for base/{expat,git,sudo}
Added doinst.sh in base/sudo to preserve its config file between upgrades
2022-12-04 14:54:15 +05:30

37 lines
785 B
Text
Executable file

app=sudo
version=1.9.12p1
build=1sml
homepage="https://www.sudo.ws/"
download="https://www.sudo.ws/dist/sudo-$version.tar.gz"
desc="give limited root privileges to certain users"
requires="zlib"
noautoconfsite=1
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
./configure \
--prefix="" \
--sysconfdir=/etc \
--sbindir=/bin \
--with-env-editor \
--disable-pam-session \
--without-pam \
--disable-nls
make
make install DESTDIR=$pkg
mv $pkg/etc/sudoers $pkg/etc/sudoers.new
mkfinalpkg
}
sha512sums="
737c088f0269c4f4dc998c4bfb84db778b77ed0517d6712ad131ec9005c64a6f55532469ad3f6e36dce410a5dd15343af56e98d0db5b929363ee6ad83157ef7c sudo-1.9.12p1.tar.lz
"