]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - pam/pam.nm
Merge remote-tracking branch 'stevee/coreutils'
[people/arne_f/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 = 3
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 --sbindir=/lib/security \
37 --enable-securedir=/lib/security \
38 --docdir=/usr/share/doc/Linux-PAM-%{version} \
39 --enable-read-both-confs
40
41 install_cmds
42 mkdir -pv %{BUILDROOT}/sbin
43 chmod -v 4755 %{BUILDROOT}/lib/security/unix_chkpwd
44 mv -v %{BUILDROOT}/lib/security/pam_tally %{BUILDROOT}/sbin
45
46 mkdir -pv %{BUILDROOT}/usr/lib
47 for LINK in libpam{,c,_misc}.so; do \
48 ln -v -sf ../../lib/$(readlink %{BUILDROOT}/lib/${LINK}) \
49 %{BUILDROOT}/usr/lib/${LINK} && \
50 rm -v %{BUILDROOT}/lib/${LINK}; \
51 done
52
53 #useradd -D -b /home
54 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
55 mkdir -pv %{BUILDROOT}/etc/security
56 install -v -m644 %{DIR_SOURCE}/pam_env.conf %{BUILDROOT}/etc/security/pam_env.conf
57 cp -vf %{DIR_SOURCE}/login.defs %{BUILDROOT}/etc
58
59 # Included in setup package
60 rm -f %{BUILDROOT}/etc/environment
61 end
62 end
63
64 packages
65 package %{name}
66 requires
67 pam_ldap
68 end
69 end
70
71 package %{name}-devel
72 template DEVEL
73 end
74 end