mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
35 lines
915 B
Plaintext
Executable File
35 lines
915 B
Plaintext
Executable File
# description : allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while logging the commands and arguments
|
|
# depends : linux-pam
|
|
|
|
name=sudo
|
|
version=1.9.15p5
|
|
release=1
|
|
backup="etc/sudoers"
|
|
source="https://www.sudo.ws/dist/$name-$version.tar.gz
|
|
sudo"
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--with-secure-path \
|
|
--with-all-insults \
|
|
--with-env-editor \
|
|
--with-passprompt="[sudo] password for %p: "
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
ln -sfv libsudo_util.so.0.0.0 $PKG/usr/lib/sudo/libsudo_util.so.0
|
|
|
|
mkdir -m 755 $PKG/etc/pam.d
|
|
install -D -m 644 -o root -g root $SRC/sudo $PKG/etc/pam.d/sudo
|
|
|
|
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' $PKG/etc/sudoers
|
|
|
|
rm -fr $PKG/var/run
|
|
rm -fr $PKG/run/sudo
|
|
|
|
}
|