]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - sudo/sudo.nm
nettle: Update to 3.4.1
[ipfire-3.x.git] / sudo / sudo.nm
index cef02e58db6c391adbe47a8e2fa24a7d541b6e97..4cfedd29f9d98c84a382289e415e64b414eda70b 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = sudo
-version    = 1.8.10
+version    = 1.8.20p2
 release    = 1
 
 groups     = Applications/System
@@ -28,31 +28,39 @@ source_dl  = http://www.sudo.ws/sudo/dist/
 
 build
        requires
-               audit-devel
                cyrus-sasl-devel
-               libselinux-devel
                openldap-devel
                pam-devel
        end
 
+       export LD_LIBRARY_PATH = %{DIR_APP}/lib/util/.libs/
+
        configure_options += \
                --libexecdir=%{libdir} \
                --with-logging=syslog \
                --with-logfac=authpriv \
                --with-pam \
                --with-pam-login \
-               --with-editor=/usr/bin/vi \
+               --with-editor=%{bindir}/vi \
                --with-env-editor \
                --with-ignore-dot \
                --with-tty-tickets \
                --with-ldap \
-               --with-passprompt="[sudo] password for %p: " \
-               --with-selinux \
-               --with-linux-audit
+               --with-passprompt="[sudo] password for %p: "
+
+       prepare_cmds
+               # The tarball contains files owned by a stange uid:gid which will let
+               # the testsuite (testsudoers/test3) fail. Fix the ownership of this files.
+               chown -R 0:0 %{DIR_APP}
+       end
+
+       test
+               make check
+       end
 
        install_cmds
-               mkdir -pv %{BUILDROOT}/etc
-               cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}/etc/sudoers
+               mkdir -pv %{BUILDROOT}%{sysconfdir}
+               cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers
        end
 end
 
@@ -61,7 +69,7 @@ packages
                groups += Base
 
                configfiles
-                       /etc/sudoers
+                       %{sysconfdir}/sudoers
                end
        end