]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pam/pam.nm
pam: Make package work on x86_64.
[people/ms/ipfire-3.x.git] / pam / pam.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = pam
7 version = 1.1.0
8 release = 5
9 thisapp = Linux-PAM-%{version}
10
11 groups = System/Base
12 url = http://www.us.kernel.org/pub/linux/libs/pam/index.html
13 license = BSD and GPLv2+ and BSD with advertising
14 summary = An extensible library which provides authentication for applications.
15
16 description
17 PAM (Pluggable Authentication Modules) is a system security tool that
18 allows system administrators to set authentication policy without
19 having to recompile programs that handle authentication.
20 end
21
22 source_dl =
23 sources = %{thisapp}.tar.bz2
24
25 build
26 requires
27 #audit-devel
28 bison
29 cracklib-devel
30 flex
31 libselinux-devel
32 end
33
34 configure_options += \
35 --libdir=/%{lib} \
36 --includedir=%{includedir}/security \
37 --docdir=/usr/share/doc/Linux-PAM-%{version} \
38 --enable-read-both-confs
39
40 install_cmds
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}
46 done
47
48 #useradd -D -b /home
49 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
50 mkdir -pv %{BUILDROOT}/etc/security
51 install -v -m644 %{DIR_SOURCE}/pam_env.conf \
52 %{BUILDROOT}/etc/security/pam_env.conf
53
54 # Included in setup package
55 rm -f %{BUILDROOT}/etc/environment
56 end
57 end
58
59 packages
60 package %{name}
61 #requires
62 # pam_ldap
63 #end
64 end
65
66 package %{name}-devel
67 template DEVEL
68 end
69
70 package %{name}-debuginfo
71 template DEBUGINFO
72 end
73 end