oath-toolkit: Add oath PAM authentication module
will install to /usr/lib/security/pam_oath.so Signed-off-by: Thlv Alivs <zgmzzzz18@gmail.com>
This commit is contained in:
parent
0ef5f50a83
commit
80dad35294
1 changed files with 16 additions and 0 deletions
|
@ -36,6 +36,14 @@ define Package/liboath
|
||||||
URL:=http://www.nongnu.org/oath-toolkit/index.html
|
URL:=http://www.nongnu.org/oath-toolkit/index.html
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/oath-pam
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=The oath PAM module
|
||||||
|
URL:=http://www.nongnu.org/oath-toolkit/index.html
|
||||||
|
DEPENDS:= +libpam +liboath
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/oath-toolkit
|
define Package/oath-toolkit
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
|
@ -51,6 +59,8 @@ define Package/liboath/description
|
||||||
HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
|
HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Package/oath-pam/description = $(Package/liboath/description)
|
||||||
|
|
||||||
Package/oath-toolkit/description = $(Package/liboath/description)
|
Package/oath-toolkit/description = $(Package/liboath/description)
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
@ -65,10 +75,16 @@ define Package/liboath/install
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/oath-pam/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/security
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/security/pam_oath.so* $(1)/usr/lib/security/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/oath-toolkit/install
|
define Package/oath-toolkit/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,liboath))
|
$(eval $(call BuildPackage,liboath))
|
||||||
|
$(eval $(call BuildPackage,oath-pam))
|
||||||
$(eval $(call BuildPackage,oath-toolkit))
|
$(eval $(call BuildPackage,oath-toolkit))
|
||||||
|
|
Loading…
Reference in a new issue