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.09
  8. PKG_RELEASE:=2
  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:=ab1d7983413dc2f11de2efa903e5c326af8cb9ea37765dacb39949417f7cd037
  12. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  13. PKG_LICENSE:=Apache-2.0
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=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)/usr/lib/security
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/* $(1)/usr/lib/security/
  32. endef
  33. define Package/google-authenticator-libpam/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))