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.

51 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=yubico-pam
  3. PKG_VERSION:=2.26
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=pam_yubico-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://developers.yubico.com/yubico-pam/Releases
  7. PKG_HASH:=2de96495963fefd72b98243952ca5d5ec513e702c596e54bc667ef6b5e252966
  8. PKG_MAINTAINER:=Stuart B. Wilkins <stuwilkins@mac.com>
  9. PKG_BUILD_DEPENDS:=ykclient ykpers libyubikey libpam curl
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_LICENSE:=BSD-2-Clause
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/pam_yubico-$(PKG_VERSION)
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/yubico-pam
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. TITLE:=The Yuibco PAM module
  18. URL:=https://developers.yubico.com/yubico-pam/
  19. DEPENDS:=+ykclient +ykpers +libyubikey +libpam +curl
  20. endef
  21. define Package/yubico-pam/description
  22. The Yubico PAM module provides an easy way to integrate the YubiKey
  23. into your existing user authentication infrastructure.
  24. endef
  25. CONFIGURE_VARS += YKPERS_CFLAGS=-I$(STAGING_DIR)/usr/include \
  26. YKPERS_LIBS=-L$(STAGING_DIR)/usr/lib \
  27. LDFLAGS="-Wl,-rpath-link,$(STAGING_DIR)/usr/lib \
  28. -L$(STAGING_DIR)/usr/lib"
  29. CONFIGURE_ARGS += --without-ldap \
  30. --enable-shared \
  31. --disable-static \
  32. define Build/Compile
  33. $(call Build/Compile/Default, \
  34. LDFLAGS="-L$(STAGING_DIR)/usr/lib -lykpers-1")
  35. endef
  36. define Package/yubico-pam/install
  37. $(INSTALL_DIR) $(1)/lib/security
  38. $(CP) $(PKG_BUILD_DIR)/.libs/pam_yubico.so* $(1)/lib/security
  39. endef
  40. $(eval $(call BuildPackage,yubico-pam,+ykclient,+ykpers,+libyubikey))