]> git.ipfire.org Git - ipfire-3.x.git/blame - sudo/sudo.nm
sudo: Enable testsuite.
[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
cb87081b 7version = 1.8.18p1
7f27ab78 8release = 2
802ea3af 9
f2f0e6d7 10groups = Applications/System
18fc6b55 11url = http://www.sudo.ws/
802ea3af
MT
12license = BSD
13summary = Allows restricted root access for specified users.
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
27source_dl = http://www.sudo.ws/sudo/dist/
28
29build
30 requires
31 audit-devel
32 cyrus-sasl-devel
802ea3af
MT
33 openldap-devel
34 pam-devel
35 end
36
7f27ab78
SS
37 export LD_LIBRARY_PATH = %{DIR_APP}/lib/util/.libs/
38
802ea3af 39 configure_options += \
e8faa445 40 --libexecdir=%{libdir} \
802ea3af
MT
41 --with-logging=syslog \
42 --with-logfac=authpriv \
43 --with-pam \
44 --with-pam-login \
cb87081b 45 --with-editor=%{bindir}/vi \
802ea3af
MT
46 --with-env-editor \
47 --with-ignore-dot \
48 --with-tty-tickets \
49 --with-ldap \
50 --with-passprompt="[sudo] password for %p: " \
802ea3af
MT
51 --with-linux-audit
52
7f27ab78
SS
53 prepare_cmds
54 # The tarball contains files owned by a stange uid:gid which will let
55 # the testsuite (testsudoers/test3) fail. Fix the ownership of this files.
56 chown -R 0:0 %{DIR_APP}
57 end
58
59 test
60 make check
61 end
62
802ea3af 63 install_cmds
7f27ab78 64 mkdir -pv %{BUILDROOT}%{sysconfdir}
cb87081b 65 cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
802ea3af
MT
66 end
67end
68
69packages
70 package %{name}
f2f0e6d7 71 groups += Base
18fc6b55
MT
72
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