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.

81 lines
2.1 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.4.0
  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:=cd6d928c51e64139be3bdb38692c68183a509b83d4f2c221024ccd4bcddfd034
  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-debug \
  40. --disable-doc \
  41. --disable-econf \
  42. --disable-lckpwdf \
  43. --disable-nis \
  44. --disable-prelude \
  45. --disable-regenerate-docu \
  46. --disable-rpath \
  47. --disable-selinux \
  48. --disable-Werror \
  49. --with-gnu-ld \
  50. --without-mailspool \
  51. --without-xauth
  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
  57. endef
  58. define Package/libpam/install
  59. $(INSTALL_DIR) $(1)/lib $(1)/lib/security $(1)/lib/security/pam_filter
  60. $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
  61. $(INSTALL_DIR) $(1)/usr/sbin
  62. $(CP) $(PKG_INSTALL_DIR)/lib/*.so* $(1)/lib/
  63. $(CP) $(PKG_INSTALL_DIR)/lib/security/*.so* $(1)/lib/security/
  64. $(CP) $(PKG_INSTALL_DIR)/lib/security/pam_filter/* $(1)/lib/security/pam_filter/
  65. $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  66. $(CP) ./files/* $(1)/etc/
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  68. endef
  69. $(eval $(call BuildPackage,libpam))