aboutsummaryrefslogtreecommitdiff
path: root/utils/oath-toolkit/Makefile
blob: 84117757d61c8907a9359528d7b36b6d06a8c654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Copyright (C) 2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=oath-toolkit
PKG_VERSION:=2.6.2
PKG_RELEASE:=4

PKG_SOURCE:=oath-toolkit-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit
PKG_HASH:=b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0

PKG_MAINTAINER:=Fam Zheng <fam@euphon.net>
PKG_LICENSE:=LGPL-2.0+ GPL-3.0+
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:nongnu:oath_toolkit

PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

CONFIGURE_ARGS += \
	--disable-xmltest \
	--disable-pskc

define Package/oath-toolkit
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Toolkit for building one-time password authentication
  URL:=http://www.nongnu.org/oath-toolkit/index.html
  DEPENDS:=
endef

define Package/oath-toolkit/description
	The OATH Toolkit provide components for building one-time password
	authentication systems. It contains shared libraries, command line
	tools and a PAM module. Supported technologies include the event-based
	HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
endef

define Package/oath-toolkit/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_DIR) $(1)/usr/lib
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,oath-toolkit))