]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - sudo/sudo.nm
sudo: Fix incorrect location of libsudo_utils.so
[people/pmueller/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.9.14p3
8 release = 2
9
10 groups = Applications/System
11 url = https://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 = https://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 --enable-tmpfiles.d=%{tmpfilesdir}
51
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
62 install_cmds
63 # Create sudoers config file.
64 mkdir -pv %{BUILDROOT}%{sysconfdir}
65 cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
66
67 # Do not ship /run.
68 rm -rvf %{BUILDROOT}/run
69
70 # Fix library permissions.
71 find %{BUILDROOT}%{libdir}/%{name} -type f -iname "*.so" -exec chmod 755 {} \;
72
73 # ... and move the libraries to the correct place
74 mv -v %{BUILDROOT}%{libdir}/%{name}/libsudo_util.so* %{BUILDROOT}%{libdir}/
75
76 end
77 end
78
79 packages
80 package %{name}
81 configfiles
82 %{sysconfdir}/sudoers
83 end
84 end
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
89 end