2009-05-15 09:59:33 +02:00
|
|
|
# Description: Sudo (superuser do)
|
2021-03-14 12:06:56 +01:00
|
|
|
# URL: https://www.sudo.ws/sudo/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: zlib linux-pam
|
2009-05-15 09:59:33 +02:00
|
|
|
|
|
|
|
name=sudo
|
2023-11-10 10:18:38 +01:00
|
|
|
version=1.9.15p2
|
2019-10-15 11:51:45 +02:00
|
|
|
release=1
|
2021-12-13 11:51:40 +01:00
|
|
|
source=(https://www.sudo.ws/dist/$name-$version.tar.gz
|
2021-03-14 12:06:56 +01:00
|
|
|
$name.pam)
|
2009-05-15 09:59:33 +02:00
|
|
|
|
|
|
|
build() {
|
2021-03-14 12:06:56 +01:00
|
|
|
cd $name-$version
|
2009-05-15 09:59:33 +02:00
|
|
|
|
2021-03-14 12:06:56 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--with-logfac=auth \
|
|
|
|
--with-vardir=/var/lib/sudo \
|
2022-02-15 13:54:37 +01:00
|
|
|
--with-rundir=/run/sudo \
|
2021-03-14 12:06:56 +01:00
|
|
|
--with-sendmail=/usr/sbin/sendmail \
|
|
|
|
--disable-nls
|
2009-05-15 09:59:33 +02:00
|
|
|
|
2021-03-14 12:06:56 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2009-05-15 09:59:33 +02:00
|
|
|
|
2021-03-14 12:06:56 +01:00
|
|
|
# PAM service file
|
|
|
|
install -D -m 0644 $SRC/$name.pam $PKG/etc/pam.d/$name
|
2019-02-03 07:43:04 +01:00
|
|
|
|
2022-02-15 13:54:37 +01:00
|
|
|
rm -r $PKG/usr/share/doc $PKG/run
|
2009-05-15 09:59:33 +02:00
|
|
|
}
|