]> git.ipfire.org Git - ipfire-3.x.git/blame - sudo/sudo.nm
sudo: Use systemd tmpfiles mechanism
[ipfire-3.x.git] / sudo / sudo.nm
CommitLineData
957db558 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
957db558
MT
4###############################################################################
5
802ea3af 6name = sudo
9c66d2ec 7version = 1.9.12p1
410af549 8release = 2
802ea3af 9
f2f0e6d7 10groups = Applications/System
9c66d2ec 11url = https://www.sudo.ws/
802ea3af 12license = BSD
9c66d2ec 13summary = Allows restricted root access for specified users
802ea3af
MT
14
15description
16 Sudo (superuser do) allows a system administrator to give certain
17 users (or groups of users) the ability to run some (or all) commands
18 as root while logging all commands and arguments. Sudo operates on a
19 per-command basis. It is not a replacement for the shell. Features
20 include: the ability to restrict what commands a user may run on a
21 per-host basis, copious logging of each command (providing a clear
22 audit trail of who did what), a configurable timeout of the sudo
23 command, and the ability to use the same configuration file (sudoers)
957db558 24 on many different machines.
802ea3af
MT
25end
26
9c66d2ec 27source_dl = https://www.sudo.ws/sudo/dist/
802ea3af
MT
28
29build
30 requires
802ea3af 31 cyrus-sasl-devel
802ea3af
MT
32 openldap-devel
33 pam-devel
34 end
35
7f27ab78
SS
36 export LD_LIBRARY_PATH = %{DIR_APP}/lib/util/.libs/
37
802ea3af 38 configure_options += \
e8faa445 39 --libexecdir=%{libdir} \
802ea3af
MT
40 --with-logging=syslog \
41 --with-logfac=authpriv \
42 --with-pam \
43 --with-pam-login \
cb87081b 44 --with-editor=%{bindir}/vi \
802ea3af
MT
45 --with-env-editor \
46 --with-ignore-dot \
47 --with-tty-tickets \
48 --with-ldap \
410af549
SS
49 --with-passprompt="[sudo] password for %p: " \
50 --enable-tmpfiles.d=%{tmpfilesdir}
802ea3af 51
7f27ab78
SS
52 prepare_cmds
53 # The tarball contains files owned by a stange uid:gid which will let
54 # the testsuite (testsudoers/test3) fail. Fix the ownership of this files.
55 chown -R 0:0 %{DIR_APP}
56 end
57
58 test
59 make check
60 end
61
802ea3af 62 install_cmds
7f27ab78 63 mkdir -pv %{BUILDROOT}%{sysconfdir}
cb87081b 64 cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
410af549
SS
65
66 # Do not ship /run
67 rm -rvf %{BUILDROOT}/run
802ea3af
MT
68 end
69end
70
71packages
72 package %{name}
18fc6b55 73 configfiles
cb87081b 74 %{sysconfdir}/sudoers
18fc6b55 75 end
802ea3af 76 end
1f9bc2f0
MT
77
78 package %{name}-debuginfo
79 template DEBUGINFO
80 end
802ea3af 81end