]> git.ipfire.org Git - ipfire-3.x.git/blob - sudo/sudo.nm
Remove fastd and libuecc
[ipfire-3.x.git] / sudo / sudo.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = sudo
7 version = 1.8.20p2
8 release = 1
9
10 groups = Applications/System
11 url = http://www.sudo.ws/
12 license = BSD
13 summary = Allows restricted root access for specified users.
14
15 description
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)
24 on many different machines.
25 end
26
27 source_dl = http://www.sudo.ws/sudo/dist/
28
29 build
30 requires
31 cyrus-sasl-devel
32 openldap-devel
33 pam-devel
34 end
35
36 export LD_LIBRARY_PATH = %{DIR_APP}/lib/util/.libs/
37
38 configure_options += \
39 --libexecdir=%{libdir} \
40 --with-logging=syslog \
41 --with-logfac=authpriv \
42 --with-pam \
43 --with-pam-login \
44 --with-editor=%{bindir}/vi \
45 --with-env-editor \
46 --with-ignore-dot \
47 --with-tty-tickets \
48 --with-ldap \
49 --with-passprompt="[sudo] password for %p: "
50
51 prepare_cmds
52 # The tarball contains files owned by a stange uid:gid which will let
53 # the testsuite (testsudoers/test3) fail. Fix the ownership of this files.
54 chown -R 0:0 %{DIR_APP}
55 end
56
57 test
58 make check
59 end
60
61 install_cmds
62 mkdir -pv %{BUILDROOT}%{sysconfdir}
63 cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
64 end
65 end
66
67 packages
68 package %{name}
69 groups += Base
70
71 configfiles
72 %{sysconfdir}/sudoers
73 end
74 end
75
76 package %{name}-debuginfo
77 template DEBUGINFO
78 end
79 end