]> git.ipfire.org Git - ipfire-3.x.git/blame - pam/pam.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / pam / pam.nm
CommitLineData
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 6name = pam
652faa63
MT
7version = 1.5.3
8release = 1
802ea3af 9thisapp = Linux-PAM-%{version}
d04f1a38 10
802ea3af 11groups = System/Base
652faa63 12url = https://github.com/linux-pam/linux-pam/
802ea3af
MT
13license = BSD and GPLv2+ and BSD with advertising
14summary = An extensible library which provides authentication for applications.
d04f1a38 15
802ea3af
MT
16description
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
20end
21
47db06f6
SS
22source_dl = https://github.com/linux-pam/linux-pam/releases/download/v%{version}/
23sources = %{thisapp}.tar.xz
d04f1a38 24
802ea3af
MT
25build
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
68end
d04f1a38 69
802ea3af
MT
70packages
71 package %{name}
652faa63
MT
72 requires
73 /usr/lib64/security/pam_pwquality.so
74 end
75
6c14ead1 76 configfiles
c552562a 77 %{sysconfdir}/pam.d
6c14ead1 78 end
802ea3af 79 end
f0f432c4 80
802ea3af
MT
81 package %{name}-devel
82 template DEVEL
83 end
1f9bc2f0
MT
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
802ea3af 88end