Makefile (1392B)
1 # 2 # Copyright (C) 2016 OpenWrt.org 3 # 4 # This is free software, licensed under the GNU General Public License v2. 5 # See /LICENSE for more information. 6 # 7 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=oath-toolkit 11 PKG_VERSION:=2.6.2 12 PKG_RELEASE:=1 13 PKG_SOURCE:=oath-toolkit-$(PKG_VERSION).tar.gz 14 PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit 15 PKG_SOURCE_MD5SUM:=4a05cd4768764843bd5493609a6bdb17 16 PKG_LICENSE:=LGPL-2.0+ GPL-3.0+ 17 PKG_LICENSE_FILES:=COPYING 18 PKG_INSTALL:=1 19 PKG_MAINTAINER:=Fam Zheng <fam@euphon.net> 20 21 include $(INCLUDE_DIR)/package.mk 22 23 CONFIGURE_ARGS += \ 24 --disable-xmltest \ 25 --disable-pskc 26 27 define Package/oath-toolkit 28 SECTION:=utils 29 CATEGORY:=Utilities 30 TITLE:=Toolkit for building one-time password authentication 31 URL:=http://www.nongnu.org/oath-toolkit/index.html 32 DEPENDS:= 33 endef 34 35 define Package/oath-toolkit/description 36 The OATH Toolkit provide components for building one-time password 37 authentication systems. It contains shared libraries, command line 38 tools and a PAM module. Supported technologies include the event-based 39 HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238). 40 endef 41 42 define Package/oath-toolkit/install 43 $(INSTALL_DIR) $(1)/usr/bin 44 $(INSTALL_DIR) $(1)/usr/lib 45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/ 46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/ 47 endef 48 49 $(eval $(call BuildPackage,oath-toolkit))