You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libpam
  9. PKG_VERSION:=1.1.8
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://www.linux-pam.org/library/
  13. PKG_MD5SUM:=35b6091af95981b1b2cd60d813b5e4ee
  14. PKG_INSTALL:=1
  15. PKG_FIXUP:=autoreconf
  16. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libpam
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=the Linux-PAM libraries and modules.
  23. URL:=http://www.kernel.org/pub/linux/libs/pam
  24. endef
  25. define Package/libpam/description
  26. The Linux-PAM Pluggable Authentication Modules.
  27. endef
  28. TARGET_CFLAGS += $(FPIC)
  29. define Build/Configure
  30. $(call Build/Configure/Default, \
  31. --enable-shared \
  32. --enable-static \
  33. --enable-pamlocking \
  34. --disable-prelude \
  35. --disable-lckpwdf \
  36. --disable-selinux \
  37. --disable-nls \
  38. --disable-rpath \
  39. --enable-db=no \
  40. )
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/lib
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  47. endef
  48. define Package/libpam/install
  49. $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
  50. $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
  51. $(INSTALL_DIR) $(1)/usr/sbin
  52. $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
  53. $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
  54. $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
  55. $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  56. $(CP) ./files/* $(1)/etc/
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  58. endef
  59. $(eval $(call BuildPackage,libpam))