2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: Give certain users (or groups) the ability to run some commands as root.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.sudo.ws
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
isim=sudo
|
|
|
|
|
surum=1.8.15
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
kaynak=(http://www.sudo.ws/sudo/dist/$isim-$surum.tar.gz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:15:02 +02:00
|
|
|
|
cd $isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--libexecdir=/usr/lib \
|
2017-10-28 14:15:02 +02:00
|
|
|
|
--docdir=/usr/share/doc/sudo-$surum \
|
2016-02-24 01:27:23 +01:00
|
|
|
|
--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
|
|
|
|
|
}
|