]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pam/pam.nm
util-linux: Update to 2.30.1
[people/arne_f/ipfire-3.x.git] / pam / pam.nm
CommitLineData
d04f1a38 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
d04f1a38
MT
4###############################################################################
5
802ea3af 6name = pam
c552562a 7version = 1.3.0
61867160 8release = 1
802ea3af 9thisapp = Linux-PAM-%{version}
d04f1a38 10
802ea3af
MT
11groups = System/Base
12url = http://www.us.kernel.org/pub/linux/libs/pam/index.html
13license = BSD and GPLv2+ and BSD with advertising
14summary = An extensible library which provides authentication for applications.
d04f1a38 15
802ea3af
MT
16description
17 PAM (Pluggable Authentication Modules) is a system security tool that
18 allows system administrators to set authentication policy without
d04f1a38 19 having to recompile programs that handle authentication.
802ea3af
MT
20end
21
f389fe05
SS
22# This is the old location that might be revived in future
23# source_dl = http://ftp.us.kernel.org/pub/linux/libs/pam/library/
24
c552562a 25source_dl = http://www.linux-pam.org/library/
d04f1a38 26
802ea3af
MT
27build
28 requires
f389fe05 29 audit-devel
802ea3af
MT
30 bison
31 cracklib-devel
32 flex
802ea3af 33 end
d04f1a38 34
c552562a
SS
35 export LD_LIBRARY_PATH = %{DIR_APP}/libpam/.libs
36
802ea3af 37 configure_options += \
bd7445e2 38 --includedir=%{includedir}/security \
802ea3af 39 --docdir=/usr/share/doc/Linux-PAM-%{version} \
f389fe05
SS
40 --enable-read-both-confs \
41 --disable-rpath
d04f1a38 42
c552562a
SS
43 test
44 # Temporary copy our pam config files to the sysconfdir
45 # the chroot environment. They are required by various tests
46 # of the testsuite.
47 cp -avf %{DIR_SOURCE}/pam.d %{sysconfdir}
48
49 # Run the testsuite.
50 make check
51 end
52
802ea3af 53 install_cmds
802ea3af
MT
54 #useradd -D -b /home
55 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
c552562a 56 mkdir -pv %{BUILDROOT}%{sysconfdir}/security
bd7445e2 57 install -v -m644 %{DIR_SOURCE}/pam_env.conf \
c552562a 58 %{BUILDROOT}%{sysconfdir}/security/pam_env.conf
f0f432c4
MT
59
60 # Included in setup package
c552562a 61 rm -f %{BUILDROOT}%{sysconfdir}/environment
6c14ead1
MT
62
63 # Install man pages.
64 mkdir -pv %{BUILDROOT}%{mandir}/man5
65 for file in config-util.5 postlogin.5 system-auth.5; do
66 install -v -m 644 %{DIR_SOURCE}/man/${file} \
67 %{BUILDROOT}%{mandir}/man5
68 done
802ea3af
MT
69 end
70end
d04f1a38 71
802ea3af
MT
72packages
73 package %{name}
6c14ead1 74 configfiles
c552562a 75 %{sysconfdir}/pam.d
6c14ead1 76 end
802ea3af 77 end
f0f432c4 78
802ea3af
MT
79 package %{name}-devel
80 template DEVEL
81 end
1f9bc2f0
MT
82
83 package %{name}-debuginfo
84 template DEBUGINFO
85 end
802ea3af 86end