]> git.ipfire.org Git - ipfire-3.x.git/blob - pam/pam.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / pam / pam.nm
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.5.3
8 release = 1
9 thisapp = Linux-PAM-%{version}
10
11 groups = System/Base
12 url = https://github.com/linux-pam/linux-pam/
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 source_dl = https://github.com/linux-pam/linux-pam/releases/download/v%{version}/
23 sources = %{thisapp}.tar.xz
24
25 build
26 requires
27 bison
28 cracklib-devel
29 flex
30 libxcrypt-devel
31 end
32
33 export LD_LIBRARY_PATH = %{DIR_APP}/libpam/.libs
34
35 configure_options += \
36 --includedir=%{includedir}/security \
37 --docdir=/usr/share/doc/Linux-PAM-%{version} \
38 --enable-read-both-confs \
39 --disable-rpath
40
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
51 install_cmds
52 #useradd -D -b /home
53 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
54 mkdir -pv %{BUILDROOT}%{sysconfdir}/security
55 install -v -m644 %{DIR_SOURCE}/pam_env.conf \
56 %{BUILDROOT}%{sysconfdir}/security/pam_env.conf
57
58 # Included in setup package
59 rm -f %{BUILDROOT}%{sysconfdir}/environment
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
67 end
68 end
69
70 packages
71 package %{name}
72 requires
73 /usr/lib64/security/pam_pwquality.so
74 end
75
76 configfiles
77 %{sysconfdir}/pam.d
78 end
79 end
80
81 package %{name}-devel
82 template DEVEL
83 end
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
88 end