]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pam/pam.nm
kernel: update to 4.12.10
[people/arne_f/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
c552562a 7version = 1.3.0
5d19a990 8release = 2
802ea3af 9thisapp = Linux-PAM-%{version}
d04f1a38 10
802ea3af
MT
11groups = System/Base
12url = http://www.us.kernel.org/pub/linux/libs/pam/index.html
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
f389fe05
SS
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
c552562a 25source_dl = http://www.linux-pam.org/library/
d04f1a38 26
802ea3af
MT
27build
28 requires
802ea3af
MT
29 bison
30 cracklib-devel
31 flex
802ea3af 32 end
d04f1a38 33
c552562a
SS
34 export LD_LIBRARY_PATH = %{DIR_APP}/libpam/.libs
35
802ea3af 36 configure_options += \
bd7445e2 37 --includedir=%{includedir}/security \
802ea3af 38 --docdir=/usr/share/doc/Linux-PAM-%{version} \
f389fe05
SS
39 --enable-read-both-confs \
40 --disable-rpath
d04f1a38 41
c552562a
SS
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
802ea3af 52 install_cmds
802ea3af
MT
53 #useradd -D -b /home
54 #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
c552562a 55 mkdir -pv %{BUILDROOT}%{sysconfdir}/security
bd7445e2 56 install -v -m644 %{DIR_SOURCE}/pam_env.conf \
c552562a 57 %{BUILDROOT}%{sysconfdir}/security/pam_env.conf
f0f432c4
MT
58
59 # Included in setup package
c552562a 60 rm -f %{BUILDROOT}%{sysconfdir}/environment
6c14ead1
MT
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
802ea3af
MT
68 end
69end
d04f1a38 70
802ea3af
MT
71packages
72 package %{name}
6c14ead1 73 configfiles
c552562a 74 %{sysconfdir}/pam.d
6c14ead1 75 end
802ea3af 76 end
f0f432c4 77
802ea3af
MT
78 package %{name}-devel
79 template DEVEL
80 end
1f9bc2f0
MT
81
82 package %{name}-debuginfo
83 template DEBUGINFO
84 end
802ea3af 85end