2007-01-10 22:42:31 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libpam
|
|
|
|
PKG_VERSION:=0.99.6.3
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.kernel.org/pub/linux/libs/pam/pre/library/
|
|
|
|
PKG_MD5SUM:=0f17f7105faa82a51dfbeb6b08a1ca29
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libpam
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-12-30 03:13:56 +00:00
|
|
|
DEPENDS:=@BROKEN
|
2007-01-11 13:23:45 +00:00
|
|
|
TITLE:=free implementation of the following DCE-RFC from Sunsoft.
|
2007-01-10 22:42:31 +00:00
|
|
|
URL:=http://www.kernel.org/pub/linux/libs/pam
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libpam/description
|
|
|
|
Linux-PAM is a free implementation of the following DCE-RFC from Sunsoft.
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-01-10 22:42:31 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--enable-pamlocking \
|
|
|
|
--disable-prelude \
|
|
|
|
--disable-lckpwdf \
|
|
|
|
--disable-selinux \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-rpath \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/lib $(1)/lib
|
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
|
2007-01-10 22:42:31 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpam/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-12-31 15:07:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
|
2007-01-10 22:42:31 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
2007-01-10 22:42:31 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libpam))
|