sudo 1.9.16-1
This commit is contained in:
parent
e7e07d6508
commit
4fc1afbe5c
41
PKGBUILD
41
PKGBUILD
@ -1,7 +1,7 @@
|
||||
# Maintainer: Future Linux Team <futurelinux@163.com>
|
||||
|
||||
pkgname=sudo
|
||||
pkgver=1.9.15p5
|
||||
pkgver=1.9.16
|
||||
pkgrel=1
|
||||
pkgdesc="Give certain users the ability to run some commands as root"
|
||||
arch=('x86_64')
|
||||
@ -10,40 +10,39 @@ license=('custom')
|
||||
groups=('base-devel')
|
||||
depends=('glibc' 'openssl' 'linux-pam' 'zlib')
|
||||
backup=(etc/sudoers.d/00-sudo
|
||||
etc/pam.d/sudo
|
||||
etc/sudo.conf
|
||||
etc/sudo_logsrvd.conf
|
||||
etc/sudoers)
|
||||
etc/pam.d/sudo
|
||||
etc/sudo.conf
|
||||
etc/sudo_logsrvd.conf
|
||||
etc/sudoers)
|
||||
source=(https://www.sudo.ws/dist/${pkgname}-${pkgver}.tar.gz)
|
||||
sha256sums=(558d10b9a1991fb3b9fa7fa7b07ec4405b7aefb5b3cb0b0871dbc81e3a88e558)
|
||||
sha256sums=(c0d84d797f06b732fc573d0b798ae83128c2bc33052057f05b560ec6bcbfa03d)
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
${CONFIGURE} \
|
||||
--libexecdir=/usr/lib64 \
|
||||
--with-secure-path \
|
||||
--with-env-editor \
|
||||
--docdir=/usr/share/doc/${pkgname}-${pkgver} \
|
||||
--with-passprompt="[sudo] password for %p: "
|
||||
${CONFIGURE} \
|
||||
--libexecdir=/usr/lib64 \
|
||||
--with-secure-path \
|
||||
--with-env-editor \
|
||||
--with-passprompt="[sudo] password for %p: "
|
||||
|
||||
make
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR=${pkgdir} install
|
||||
make DESTDIR=${pkgdir} install
|
||||
|
||||
rm -rf ${pkgdir}/run
|
||||
rm -rf ${pkgdir}/run
|
||||
|
||||
cat > ${pkgdir}/etc/sudoers.d/00-sudo << "EOF"
|
||||
cat > ${pkgdir}/etc/sudoers.d/00-sudo << "EOF"
|
||||
Defaults secure_path="/usr/sbin:/usr/bin"
|
||||
%wheel ALL=(ALL) ALL
|
||||
EOF
|
||||
|
||||
install -vdm755 ${pkgdir}/etc/pam.d
|
||||
cat > ${pkgdir}/etc/pam.d/sudo << "EOF"
|
||||
install -vdm755 ${pkgdir}/etc/pam.d
|
||||
cat > ${pkgdir}/etc/pam.d/sudo << "EOF"
|
||||
# Begin /etc/pam.d/sudo
|
||||
|
||||
# include the default auth settings
|
||||
@ -60,5 +59,5 @@ session include system-session
|
||||
|
||||
# End /etc/pam.d/sudo
|
||||
EOF
|
||||
chmod 644 ${pkgdir}/etc/pam.d/sudo
|
||||
chmod 644 ${pkgdir}/etc/pam.d/sudo
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user