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