1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
8 pkgver=${_sudover/p/.p}
9 pkgdesc="Give certain users the ability to run some commands as root"
11 url="https://www.sudo.ws/sudo/"
13 depends=('glibc' 'openssl' 'pam' 'libldap' 'zlib')
14 backup=('etc/pam.d/sudo'
16 'etc/sudo_logsrvd.conf'
18 install=$pkgname.install
19 source=(https://www.sudo.ws/sudo/dist/$pkgname-$_sudover.tar.gz{,.sig}
22 sha256sums=('92334a12bb93e0c056b09f53e255ccb7d6f67c6350e2813cd9593ceeca78560b'
24 '8b91733b73171827c360a3e01f4692772b78e62ceca0cf0fd4b770aba35081a1'
25 'd1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2')
26 validpgpkeys=('59D1E9CCBA2B376704FDD35BA9F4C021CEA470FB')
38 --libexecdir=/usr/lib \
39 --with-rundir=/run/sudo \
40 --with-vardir=/var/db/sudo \
46 --with-ldap-conf-file=/etc/openldap/ldap.conf \
48 --with-passprompt="[sudo] password for %p: " \
59 depends+=('libcrypto.so' 'libssl.so')
62 make DESTDIR="$pkgdir" install
64 # sudo_logsrvd service file (taken from sudo-logsrvd-1.9.0-1.el8.x86_64.rpm)
65 install -Dm644 -t "$pkgdir/usr/lib/systemd/system" ../sudo_logsrvd.service
67 # Remove sudoers.dist; not needed since pacman manages updates to sudoers
68 rm "$pkgdir/etc/sudoers.dist"
70 # Remove /run/sudo directory; we create it using systemd-tmpfiles
71 rmdir "$pkgdir/run/sudo"
74 install -Dm644 "$srcdir/sudo.pam" "$pkgdir/etc/pam.d/sudo"
76 install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/sudo"
79 # vim:set ts=2 sw=2 et: