milis/talimatname/temel/sudo/talimat

47 lines
997 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Give certain users (or groups) the ability to run some commands as root.
# URL: http://www.sudo.ws
# Paketçi: milisarge
# Gerekler:
isim=sudo
surum=1.8.15
devir=1
kaynak=(http://www.sudo.ws/sudo/dist/$isim-$surum.tar.gz)
derle() {
cd $isim-$surum
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--docdir=/usr/share/doc/sudo-$surum \
--with-all-insults \
--with-env-editor \
--without-sendmail \
--with-passprompt="[sudo] password for %p: "
make
make DESTDIR=$PKG install
mkdir -pv $PKG/etc/pam.d
cat > $PKG/etc/pam.d/sudo << "EOF" &&
# Begin /etc/pam.d/sudo
# include the default auth settings
auth include system-auth
# include the default account settings
account include system-account
# Set default environment variables for the service user
session required pam_env.so
# include system session defaults
session include system-session
# End /etc/pam.d/sudo
EOF
chmod 644 $PKG/etc/pam.d/sudo
echo "%wheel ALL=(ALL) ALL" >> $PKG/etc/sudoers
}