]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pam/pam.nm
lvm2: Update to 2.02.166
[people/arne_f/ipfire-3.x.git] / pam / pam.nm
index 62a5dd9e52f9edb6f43034b4f0023d841e1c481b..1f4da195ebb7b3e3ff5201033b78c33636633667 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = pam
-version    = 1.1.0
-release    = 5
+version    = 1.3.0
+release    = 1
 thisapp    = Linux-PAM-%{version}
 
 groups     = System/Base
@@ -19,48 +19,61 @@ description
        having to recompile programs that handle authentication.
 end
 
-source_dl  =
-sources    = %{thisapp}.tar.bz2
+# This is the old location that might be revived in future
+# source_dl = http://ftp.us.kernel.org/pub/linux/libs/pam/library/
+
+source_dl  = http://www.linux-pam.org/library/
 
 build
        requires
-               #audit-devel
+               audit-devel
                bison
                cracklib-devel
                flex
-               libselinux-devel
        end
 
+       export LD_LIBRARY_PATH = %{DIR_APP}/libpam/.libs
+
        configure_options += \
-               --libdir=/%{lib} \
                --includedir=%{includedir}/security \
                --docdir=/usr/share/doc/Linux-PAM-%{version} \
-               --enable-read-both-confs
+               --enable-read-both-confs \
+               --disable-rpath
 
-       install_cmds
-               mkdir -pv %{BUILDROOT}%{libdir}
-               for LINK in libpam{,c,_misc}.so; do
-                       ln -v -sf ../../%{lib}/$(readlink %{BUILDROOT}/%{lib}/${LINK}) \
-                               %{BUILDROOT}%{libdir}/${LINK}
-                       rm -v %{BUILDROOT}/%{lib}/${LINK}
-               done
+       test
+               # Temporary copy our pam config files to the sysconfdir
+               # the chroot environment. They are required by various tests
+               # of the testsuite.
+               cp -avf %{DIR_SOURCE}/pam.d %{sysconfdir}
 
+               # Run the testsuite.
+               make check
+       end
+
+       install_cmds
                #useradd -D -b /home
                #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
-               mkdir -pv %{BUILDROOT}/etc/security
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/security
                install -v -m644 %{DIR_SOURCE}/pam_env.conf \
-                       %{BUILDROOT}/etc/security/pam_env.conf
+                       %{BUILDROOT}%{sysconfdir}/security/pam_env.conf
 
                # Included in setup package
-               rm -f %{BUILDROOT}/etc/environment
+               rm -f %{BUILDROOT}%{sysconfdir}/environment
+
+               # Install man pages.
+               mkdir -pv %{BUILDROOT}%{mandir}/man5
+               for file in config-util.5 postlogin.5 system-auth.5; do
+                       install -v -m 644 %{DIR_SOURCE}/man/${file} \
+                               %{BUILDROOT}%{mandir}/man5
+               done
        end
 end
 
 packages
        package %{name}
-               #requires
-               #       pam_ldap
-               #end
+               configfiles
+                       %{sysconfdir}/pam.d
+               end
        end
 
        package %{name}-devel