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.

77 lines
2.0 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.3.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=Linux-PAM-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/linux-pam/linux-pam/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=eff47a4ecd833fbf18de9686632a70ee8d0794b79aecb217ebd0ce11db4cd0db
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/Linux-PAM-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
  16. PKG_LICENSE:=BSD-3c GPL
  17. PKG_LICENSE_FILES:=COPYING Copyright
  18. PKG_CPE_ID:=cpe:/a:kernel:linux-pam
  19. PKG_FIXUP:=autoreconf
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libpam
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=the Linux-PAM libraries and modules.
  27. URL:=http://www.kernel.org/pub/linux/libs/pam
  28. endef
  29. define Package/libpam/description
  30. The Linux-PAM Pluggable Authentication Modules.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --enable-pamlocking \
  34. --enable-shared \
  35. --enable-static \
  36. --disable-audit \
  37. --disable-cracklib \
  38. --disable-db \
  39. --disable-prelude \
  40. --disable-lckpwdf \
  41. --disable-nis \
  42. --disable-regenerate-docu \
  43. --disable-rpath \
  44. --disable-selinux \
  45. --with-gnu-ld \
  46. --without-mailspool \
  47. --without-xauth
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/lib
  50. $(INSTALL_DIR) $(1)/usr/include
  51. $(CP) $(PKG_INSTALL_DIR)/lib/* $(1)/lib/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  53. endef
  54. define Package/libpam/install
  55. $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
  56. $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
  57. $(INSTALL_DIR) $(1)/usr/sbin
  58. $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
  59. $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
  60. $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
  61. $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  62. $(CP) ./files/* $(1)/etc/
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  64. endef
  65. $(eval $(call BuildPackage,libpam))