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. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=google-authenticator-libpam
  7. PKG_SOURCE_DATE:=2019-01-03
  8. PKG_RELEASE:=1
  9. PKG_SOURCE_VERSION:=60207b6c4cebf825863043e963bf67f6a0520076
  10. PKG_SOURCE_URL:=https://codeload.github.com/google/google-authenticator-libpam/tar.gz/$(PKG_SOURCE_VERSION)?
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  12. PKG_HASH:=39267ba837f870b3f4cbf9166a76eed35879d3f87d058740f2c0a5e16570bce3
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/google-authenticator-libpam
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. DEPENDS:=+libpam +libqrencode
  22. TITLE:=Google Authenticator PAM module
  23. URL:=https://github.com/google/google-authenticator-libpam
  24. MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  25. endef
  26. define Package/google-authenticator-libpam/description
  27. Google Authenticator PAM module
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/lib/security
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/* $(1)/lib/security/
  32. endef
  33. define Package/libpam-google-authenticator/install
  34. $(INSTALL_DIR) $(1)/usr/lib/security
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/*.so* \
  36. $(1)/usr/lib/security/
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/sbin/
  39. endef
  40. $(eval $(call BuildPackage,google-authenticator-libpam))