Contents of /smage/trunk/core/pam/pam-1.6.1-r1.smage2
Parent Directory | Revision Log
Revision 18180 -
(show annotations)
(download)
Wed Apr 10 12:17:36 2024 UTC (7 weeks, 6 days ago) by niro
File size: 2291 byte(s)
Wed Apr 10 12:17:36 2024 UTC (7 weeks, 6 days ago) by niro
File size: 2291 byte(s)
-ver bump to 1.6.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="pam" |
4 | PVER="1.6.1" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-libs" |
8 | |
9 | DESCRIPTION="Pluggable Authentication Modules." |
10 | HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/libxcrypt-4.4 |
14 | >= sys-libs/pam-config-1" |
15 | |
16 | SDEPEND=">= sys-dev/autoconf-5 |
17 | >= sys-dev/automake-4 |
18 | >= sys-dev/flex-2.6" |
19 | |
20 | SRCFILE="Linux-PAM-${PVER}.tar.xz" |
21 | SRCDIR="${BUILDDIR}/Linux-PAM-${PVER}" |
22 | |
23 | # NOTE: pam builds may break if an older pam is already installed! |
24 | ALX_PKG_KEEP="etc |
25 | usr/lib/tmpfiles.d |
26 | usr/$(MABI=m64 mlibdir)/*.so.* |
27 | usr/$(MABI=m64 mlibdir)/security/*.so |
28 | usr/$(MABI=m64 mlibdir)/security/pam_filter |
29 | usr/sbin" |
30 | ALX_LIB32_PKG_KEEP="usr/$(MABI=m32 mlibdir)/*.so.* |
31 | usr/$(MABI=m32 mlibdir)/security/*.so |
32 | usr/$(MABI=m32 mlibdir)/security/pam_filter" |
33 | sminclude mtools multilib lib32-split alx-split |
34 | |
35 | SRC_URI=( |
36 | https://github.com/linux-pam/linux-pam/releases/download/v${PVER}/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | ) |
39 | |
40 | UP2SEPERATOR="v" |
41 | UP2DATE="updatecmd https://github.com/linux-pam/linux-pam/tags | highesttarball gz" |
42 | |
43 | |
44 | # the strip option is not allowed, pam needs libpam.a |
45 | msetfeature "!strip" |
46 | |
47 | src_prepare() |
48 | { |
49 | munpack ${SRCFILE} || die |
50 | } |
51 | |
52 | src_compile() |
53 | { |
54 | local myconf |
55 | |
56 | # alx: disable nls |
57 | myconf+=" --disable-nls" |
58 | |
59 | # enable systemd support |
60 | myconf+=" --enable-logind" |
61 | |
62 | # disabled libaudit support |
63 | myconf+=" --disable-audit" |
64 | |
65 | # no more berkeley db support to minimize dependencies |
66 | myconf+=" --disable-db" |
67 | |
68 | # no nis support, libtirpc and libnsl packages not included in mage tree atm |
69 | myconf+=" --disable-nis" |
70 | |
71 | # not required anymore? |
72 | # --enable-isadir=/usr/'$(mlibdir)'/security \ |
73 | # --enable-read-both-confs \ |
74 | |
75 | mconfigure \ |
76 | --sbindir=/usr/sbin \ |
77 | --docdir=/usr/share/doc/${PNAME}-${PVER} \ |
78 | --enable-securedir=/usr/'$(mlibdir)'/security \ |
79 | ${myconf} \ |
80 | || die |
81 | |
82 | mmake || die |
83 | } |
84 | |
85 | alx_generic_src_install() |
86 | { |
87 | mmake DESTDIR=${BINDIR} install || die |
88 | |
89 | # fix permissions |
90 | mchmod 4755 /usr/sbin/unix_chkpwd || die |
91 | |
92 | # install missing man-pages |
93 | minstallman doc/man/*.3 || die |
94 | minstallman doc/man/*.8 || die |
95 | |
96 | # systemd tmpfiles |
97 | MCONFIG="/usr/$(mlibdir)/tmpfiles.d/pam.conf" |
98 | mclearconfig || die |
99 | maddconfig "d /run/faillock 0755 root root -" |
100 | |
101 | # provided by pam-config |
102 | mdelete /etc/environment || die |
103 | } |
104 | |
105 | preinstall() |
106 | { |
107 | add_conf_prot_mask /etc/security |
108 | } |