2019-03-18 10:59:27 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2019-06-03 23:48:15 +00:00
|
|
|
|
2019-03-18 10:59:27 +00:00
|
|
|
PKG_NAME:=google-authenticator-libpam
|
2020-06-10 16:25:44 +00:00
|
|
|
PKG_VERSION:=1.09
|
2020-11-29 06:13:11 +00:00
|
|
|
PKG_RELEASE:=2
|
2019-03-18 10:59:27 +00:00
|
|
|
|
2019-06-03 23:48:15 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/google/google-authenticator-libpam/tar.gz/$(PKG_VERSION)?
|
2020-06-10 16:25:44 +00:00
|
|
|
PKG_HASH:=ab1d7983413dc2f11de2efa903e5c326af8cb9ea37765dacb39949417f7cd037
|
2019-03-18 10:59:27 +00:00
|
|
|
|
2019-06-03 23:48:15 +00:00
|
|
|
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2019-03-18 10:59:27 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
2020-02-14 23:58:37 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2019-03-18 10:59:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/google-authenticator-libpam
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libpam +libqrencode
|
|
|
|
TITLE:=Google Authenticator PAM module
|
|
|
|
URL:=https://github.com/google/google-authenticator-libpam
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/google-authenticator-libpam/description
|
|
|
|
Google Authenticator PAM module
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2020-11-29 06:13:11 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/security
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/security/* $(1)/usr/lib/security/
|
2019-03-18 10:59:27 +00:00
|
|
|
endef
|
|
|
|
|
2019-11-02 17:06:04 +00:00
|
|
|
define Package/google-authenticator-libpam/install
|
2019-03-18 10:59:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/security
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/security/*.so* \
|
|
|
|
$(1)/usr/lib/security/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,google-authenticator-libpam))
|