4.10.3-2: add gtktreeviewmodel fixes
[arch-packages.git] / sudo / repos / core-x86_64 / PKGBUILD
blob3cadc92de1e8813b7ad69cf1725515af3c5c8861
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=sudo
6 _sudover=1.9.13p3
7 pkgrel=1
8 pkgver=${_sudover/p/.p}
9 pkgdesc="Give certain users the ability to run some commands as root"
10 arch=('x86_64')
11 url="https://www.sudo.ws/sudo/"
12 license=('custom')
13 depends=('glibc' 'openssl' 'pam' 'libldap' 'zlib')
14 backup=('etc/pam.d/sudo'
15         'etc/sudo.conf'
16         'etc/sudo_logsrvd.conf'
17         'etc/sudoers')
18 install=$pkgname.install
19 source=(https://www.sudo.ws/sudo/dist/$pkgname-$_sudover.tar.gz{,.sig}
20         sudo_logsrvd.service
21         sudo.pam)
22 sha256sums=('92334a12bb93e0c056b09f53e255ccb7d6f67c6350e2813cd9593ceeca78560b'
23             'SKIP'
24             '8b91733b73171827c360a3e01f4692772b78e62ceca0cf0fd4b770aba35081a1'
25             'd1738818070684a5d2c9b26224906aad69a4fea77aabd960fc2675aee2df1fa2')
26 validpgpkeys=('59D1E9CCBA2B376704FDD35BA9F4C021CEA470FB')
28 prepare() {
29   cd $pkgname-$_sudover
32 build() {
33   cd $pkgname-$_sudover
35   ./configure \
36     --prefix=/usr \
37     --sbindir=/usr/bin \
38     --libexecdir=/usr/lib \
39     --with-rundir=/run/sudo \
40     --with-vardir=/var/db/sudo \
41     --with-logfac=auth \
42     --enable-tmpfiles.d \
43     --with-pam \
44     --with-sssd \
45     --with-ldap \
46     --with-ldap-conf-file=/etc/openldap/ldap.conf \
47     --with-env-editor \
48     --with-passprompt="[sudo] password for %p: " \
49     --with-all-insults
50   make
53 check() {
54   cd $pkgname-$_sudover
55   make check
58 package() {
59   depends+=('libcrypto.so' 'libssl.so')
61   cd $pkgname-$_sudover
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"
72   rmdir "$pkgdir/run"
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: