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.4 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_VERSION:=1.06
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/google/google-authenticator-libpam/tar.gz/$(PKG_VERSION)?
  11. PKG_HASH:=52f03ec746e8deb1af37911697d096f0fa87583491b7cc460cdf09a6ef0d6b06
  12. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  13. PKG_LICENSE:=Apache-2.0
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/google-authenticator-libpam
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libpam +libqrencode
  23. TITLE:=Google Authenticator PAM module
  24. URL:=https://github.com/google/google-authenticator-libpam
  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))