]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pam/pam.nm
Add a -debuginfo for every package that is not noarch.
[people/ms/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
8925195f 8release = 4
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
27 audit-devel
28 bison
29 cracklib-devel
30 flex
31 libselinux-devel
32 end
d04f1a38 33
802ea3af
MT
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
d04f1a38 40
802ea3af
MT
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
d04f1a38 45
802ea3af
MT
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
d04f1a38 52
802ea3af
MT
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
f0f432c4
MT
57
58 # Included in setup package
59 rm -f %{BUILDROOT}/etc/environment
802ea3af
MT
60 end
61end
d04f1a38 62
802ea3af
MT
63packages
64 package %{name}
65 requires
66 pam_ldap
67 end
68 end
f0f432c4 69
802ea3af
MT
70 package %{name}-devel
71 template DEVEL
72 end
1f9bc2f0
MT
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
802ea3af 77end