]>
Commit | Line | Data |
---|---|---|
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.3.0 | |
8 | release = 1 | |
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 | # 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 = http://www.linux-pam.org/library/ | |
26 | ||
27 | build | |
28 | requires | |
29 | audit-devel | |
30 | bison | |
31 | cracklib-devel | |
32 | flex | |
33 | end | |
34 | ||
35 | export LD_LIBRARY_PATH = %{DIR_APP}/libpam/.libs | |
36 | ||
37 | configure_options += \ | |
38 | --includedir=%{includedir}/security \ | |
39 | --docdir=/usr/share/doc/Linux-PAM-%{version} \ | |
40 | --enable-read-both-confs \ | |
41 | --disable-rpath | |
42 | ||
43 | test | |
44 | # Temporary copy our pam config files to the sysconfdir | |
45 | # the chroot environment. They are required by various tests | |
46 | # of the testsuite. | |
47 | cp -avf %{DIR_SOURCE}/pam.d %{sysconfdir} | |
48 | ||
49 | # Run the testsuite. | |
50 | make check | |
51 | end | |
52 | ||
53 | install_cmds | |
54 | #useradd -D -b /home | |
55 | #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd | |
56 | mkdir -pv %{BUILDROOT}%{sysconfdir}/security | |
57 | install -v -m644 %{DIR_SOURCE}/pam_env.conf \ | |
58 | %{BUILDROOT}%{sysconfdir}/security/pam_env.conf | |
59 | ||
60 | # Included in setup package | |
61 | rm -f %{BUILDROOT}%{sysconfdir}/environment | |
62 | ||
63 | # Install man pages. | |
64 | mkdir -pv %{BUILDROOT}%{mandir}/man5 | |
65 | for file in config-util.5 postlogin.5 system-auth.5; do | |
66 | install -v -m 644 %{DIR_SOURCE}/man/${file} \ | |
67 | %{BUILDROOT}%{mandir}/man5 | |
68 | done | |
69 | end | |
70 | end | |
71 | ||
72 | packages | |
73 | package %{name} | |
74 | configfiles | |
75 | %{sysconfdir}/pam.d | |
76 | end | |
77 | end | |
78 | ||
79 | package %{name}-devel | |
80 | template DEVEL | |
81 | end | |
82 | ||
83 | package %{name}-debuginfo | |
84 | template DEBUGINFO | |
85 | end | |
86 | end |