]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = pam |
f389fe05 | 7 | version = 1.1.5 |
6c14ead1 | 8 | release = 3 |
802ea3af | 9 | thisapp = Linux-PAM-%{version} |
d04f1a38 | 10 | |
802ea3af MT |
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. | |
d04f1a38 | 15 | |
802ea3af MT |
16 | description |
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 |
20 | end |
21 | ||
f389fe05 SS |
22 | # This is the old location that might be revived in future |
23 | # source_dl = http://ftp.us.kernel.org/pub/linux/libs/pam/library/ | |
24 | ||
25 | source_dl = https://fedorahosted.org/releases/l/i/linux-pam/ | |
d04f1a38 | 26 | |
802ea3af MT |
27 | build |
28 | requires | |
f389fe05 | 29 | audit-devel |
802ea3af MT |
30 | bison |
31 | cracklib-devel | |
32 | flex | |
33 | libselinux-devel | |
34 | end | |
d04f1a38 | 35 | |
802ea3af | 36 | configure_options += \ |
bd7445e2 | 37 | --includedir=%{includedir}/security \ |
802ea3af | 38 | --docdir=/usr/share/doc/Linux-PAM-%{version} \ |
f389fe05 SS |
39 | --enable-read-both-confs \ |
40 | --disable-rpath | |
d04f1a38 | 41 | |
802ea3af | 42 | install_cmds |
802ea3af MT |
43 | #useradd -D -b /home |
44 | #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd | |
45 | mkdir -pv %{BUILDROOT}/etc/security | |
bd7445e2 MT |
46 | install -v -m644 %{DIR_SOURCE}/pam_env.conf \ |
47 | %{BUILDROOT}/etc/security/pam_env.conf | |
f0f432c4 MT |
48 | |
49 | # Included in setup package | |
50 | rm -f %{BUILDROOT}/etc/environment | |
6c14ead1 MT |
51 | |
52 | # Install man pages. | |
53 | mkdir -pv %{BUILDROOT}%{mandir}/man5 | |
54 | for file in config-util.5 postlogin.5 system-auth.5; do | |
55 | install -v -m 644 %{DIR_SOURCE}/man/${file} \ | |
56 | %{BUILDROOT}%{mandir}/man5 | |
57 | done | |
802ea3af MT |
58 | end |
59 | end | |
d04f1a38 | 60 | |
802ea3af MT |
61 | packages |
62 | package %{name} | |
6c14ead1 MT |
63 | requires |
64 | pam_ldap | |
65 | end | |
66 | ||
67 | configfiles | |
68 | /etc/pam.d | |
69 | end | |
802ea3af | 70 | end |
f0f432c4 | 71 | |
802ea3af MT |
72 | package %{name}-devel |
73 | template DEVEL | |
74 | end | |
1f9bc2f0 MT |
75 | |
76 | package %{name}-debuginfo | |
77 | template DEBUGINFO | |
78 | end | |
802ea3af | 79 | end |