Summary: Superuser Do Name: sudo Version: 1.6.9p17 Release: 2 License: GPL Group: System/Base Source: %{name}-%{version}.tar.gz %description This command allows a regular user to run a command as a super user. This means you do not need to change to a super user to install or run important commands. %prep %setup -q %build ./configure --prefix=/usr --libexecdir=/usr/lib \ --with-ignore-dot --with-all-insults \ --enable-shell-sets-home --disable-root-sudo \ --with-logfac=auth --without-pam --without-sendmail make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -v $RPM_BUILD_ROOT/etc/sudoers %post if [ ! -f /etc/sudoers ]; then echo -e "Creating sudoers file... \c " cat > /etc/sudoers << "EOF" root ALL=(All) ALL EOF chmod 0440 /etc/sudoers echo "Done" fi chmod -v 4111 /usr/bin/sudo %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/bin/sudoedit /usr/lib/* /usr/sbin/visudo /usr/bin/sudoedit %attr(4111,root,root) /usr/bin/sudo %doc /usr/share/* %changelog * Fri Sep 5 2008 Jonathan Norman 1.6.9p17-2 - Removed buildroot - Fixed bug in %post command. * Fri Aug 29 2008 Jonathan Norman 1.6.9p17-1 - Upgraded from 1.6.9p13 to 1.6.9p17 - Rewrote description