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