2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.linux-pam.org/library/
16 PKG_MD5SUM:=35b6091af95981b1b2cd60d813b5e4ee
20 PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
27 TITLE:=free implementation of the following DCE-RFC from Sunsoft.
28 URL:=http://www.kernel.org/pub/linux/libs/pam
31 define Package/libpam/description
32 Linux-PAM is a free implementation of the following DCE-RFC from Sunsoft.
36 TARGET_CFLAGS += $(FPIC)
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); autoreconf -v -f --install || exit 1)
40 $(call Build/Configure/Default, \
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/lib
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
59 define Package/libpam/install
60 $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
61 $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
64 $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
65 $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
66 $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
67 $(CP) ./files/* $(1)/etc/
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
71 $(eval $(call BuildPackage,libpam))