]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pam/pam.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[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
MT
6name = pam
7version = 1.1.0
bd7445e2 8release = 5
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
22source_dl =
23sources = %{thisapp}.tar.bz2
d04f1a38 24
802ea3af
MT
25build
26 requires
bd7445e2 27 #audit-devel
802ea3af
MT
28 bison
29 cracklib-devel
30 flex
31 libselinux-devel
32 end
d04f1a38 33
802ea3af 34 configure_options += \
bd7445e2
MT
35 --libdir=/%{lib} \
36 --includedir=%{includedir}/security \
802ea3af
MT
37 --docdir=/usr/share/doc/Linux-PAM-%{version} \
38 --enable-read-both-confs
d04f1a38 39
802ea3af 40 install_cmds
bd7445e2
MT
41 mkdir -pv %{BUILDROOT}%{libdir}
42 for LINK in libpam{,c,_misc}.so; do
43 ln -v -sf ../../%{lib}/$(readlink %{BUILDROOT}/%{lib}/${LINK}) \
44 %{BUILDROOT}%{libdir}/${LINK}
45 rm -v %{BUILDROOT}/%{lib}/${LINK}
802ea3af 46 done
d04f1a38 47
802ea3af
MT
48 #useradd -D -b /home
49 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
50 mkdir -pv %{BUILDROOT}/etc/security
bd7445e2
MT
51 install -v -m644 %{DIR_SOURCE}/pam_env.conf \
52 %{BUILDROOT}/etc/security/pam_env.conf
f0f432c4
MT
53
54 # Included in setup package
55 rm -f %{BUILDROOT}/etc/environment
802ea3af
MT
56 end
57end
d04f1a38 58
802ea3af
MT
59packages
60 package %{name}
bd7445e2
MT
61 #requires
62 # pam_ldap
63 #end
802ea3af 64 end
f0f432c4 65
802ea3af
MT
66 package %{name}-devel
67 template DEVEL
68 end
1f9bc2f0
MT
69
70 package %{name}-debuginfo
71 template DEBUGINFO
72 end
802ea3af 73end