]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pam/pam.nm
Move all packages to root.
[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
8release = 2
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
57 cp -vf %{DIR_SOURCE}/{login.defs,securetty} %{BUILDROOT}/etc
58 end
59end
d04f1a38 60
802ea3af
MT
61packages
62 package %{name}
63 requires
64 pam_ldap
65 end
66 end
67
68 package %{name}-devel
69 template DEVEL
70 end
71end