mirror of
https://github.com/outbackdingo/ports.git
synced 2026-04-05 10:09:22 +00:00
41 lines
1.1 KiB
Plaintext
Executable File
41 lines
1.1 KiB
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
|
|
# homepage : https://www.sudo.ws
|
|
# maintainer : emmett1, emmett1.2miligrams at gmail.com
|
|
# depends : linux-pam
|
|
|
|
name=sudo
|
|
version=1.8.27
|
|
release=2
|
|
backup=(etc/sudoers)
|
|
source=(https://www.sudo.ws/dist/$name-$version.tar.gz
|
|
sudo)
|
|
md5sum=(b5c184b13b6b5de32af630af2fd013fd
|
|
ec757cf62ae6bf4e87ac25bd3b8d4cf8)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--with-secure-path \
|
|
--with-all-insults \
|
|
--with-env-editor \
|
|
--disable-nls \
|
|
--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
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
}
|