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.5.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:=201d40730b1135b1b3cdea09f2c28ac634d73181ccd0172ceddee3649c5792fc
  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_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=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)/usr/include
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  57. endef
  58. define Package/libpam/install
  59. $(INSTALL_DIR) $(1)/etc $(1)/etc/pam.d
  60. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/lib/security $(1)/usr/lib/security/pam_filter
  61. $(INSTALL_DIR) $(1)/usr/sbin
  62. $(CP) $(PKG_INSTALL_DIR)/etc/* $(1)/etc/
  63. $(CP) ./files/* $(1)/etc/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/*.so* $(1)/usr/lib/security/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/pam_filter/* $(1)/usr/lib/security/pam_filter/
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  68. endef
  69. $(eval $(call BuildPackage,libpam))