]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/pam/pam.nm
avahi: Update to 0.6.30.
[people/arne_f/ipfire-3.x.git] / pkgs / pam / pam.nm
CommitLineData
d04f1a38
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = Linux-PAM
28PKG_VER = 1.1.0
159cd791 29PKG_REL = 2
d04f1a38
MT
30
31PKG_MAINTAINER =
bb7d617c 32PKG_GROUPS = System/Base
d04f1a38
MT
33PKG_URL = http://www.us.kernel.org/pub/linux/libs/pam/index.html
34PKG_LICENSE = BSD and GPLv2+ and BSD with advertising
35PKG_SUMMARY = An extensible library which provides authentication for applications.
36
16cc3e67 37PKG_BUILD_DEPS+= audit-devel bison cracklib-devel flex libselinux-devel
159cd791 38PKG_DEPS-pam += pam_ldap
d04f1a38
MT
39
40define PKG_DESCRIPTION
41 PAM (Pluggable Authentication Modules) is a system security tool that \
42 allows system administrators to set authentication policy without \
43 having to recompile programs that handle authentication.
44endef
45
46PKG_TARBALL = $(THISAPP).tar.bz2
47
f5f7ab22 48PKG_PACKAGES += $(PKG_NAME_REAL)-devel
d04f1a38 49
16cc3e67
SS
50CONFIGURE_OPTIONS += \
51 --libdir=/lib \
52 --sbindir=/lib/security \
53 --enable-securedir=/lib/security \
54 --docdir=/usr/share/doc/Linux-PAM-$(PKG_VER) \
55 --enable-read-both-confs
d04f1a38 56
16cc3e67 57define STAGE_INSTALL_CMDS
d04f1a38
MT
58 -mkdir -pv $(BUILDROOT)/sbin
59 chmod -v 4755 $(BUILDROOT)/lib/security/unix_chkpwd
60 mv -v $(BUILDROOT)/lib/security/pam_tally $(BUILDROOT)/sbin
61
62 -mkdir -pv $(BUILDROOT)/usr/lib
63 for LINK in libpam{,c,_misc}.so; do \
64 ln -v -sf ../../lib/$$(readlink $(BUILDROOT)/lib/$${LINK}) \
65 $(BUILDROOT)/usr/lib/$${LINK} && \
66 rm -v $(BUILDROOT)/lib/$${LINK}; \
67 done
68
69 #useradd -D -b /home
70 #sed -i 's/yes/no/' $(BUILDROOT)/etc/default/useradd
71 -mkdir -pv $(BUILDROOT)/etc/security
72 install -v -m644 $(DIR_SOURCE)/pam_env.conf $(BUILDROOT)/etc/security/pam_env.conf
73 cp -vf $(DIR_SOURCE)/{login.defs,securetty} $(BUILDROOT)/etc
d04f1a38 74endef