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.

73 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.2.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://www.linux-pam.org/library/
  13. PKG_MD5SUM:=ee4a480d77b341c99e8b1375f8f180c0
  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. --disable-nis \
  40. --disable-regenerate-docu \
  41. --enable-db=no \
  42. )
  43. endef
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/lib
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  49. endef
  50. define Package/libpam/install
  51. $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
  52. $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
  53. $(INSTALL_DIR) $(1)/usr/sbin
  54. $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
  55. $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
  56. $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
  57. $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  58. $(CP) ./files/* $(1)/etc/
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  60. endef
  61. $(eval $(call BuildPackage,libpam))