Merge pull request #7213 from gladiac1337/feature-haproxy-v1.8.14-updates
[feed/packages.git] / utils / oath-toolkit / Makefile
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:=2
13
14 PKG_SOURCE:=oath-toolkit-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit
16 PKG_HASH:=b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0
17
18 PKG_MAINTAINER:=Fam Zheng <fam@euphon.net>
19 PKG_LICENSE:=LGPL-2.0+ GPL-3.0+
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:nongnu:oath_toolkit
22
23 PKG_BUILD_PARALLEL:=1
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 CONFIGURE_ARGS += \
29 --disable-xmltest \
30 --disable-pskc
31
32 define Package/oath-toolkit
33 SECTION:=utils
34 CATEGORY:=Utilities
35 TITLE:=Toolkit for building one-time password authentication
36 URL:=http://www.nongnu.org/oath-toolkit/index.html
37 DEPENDS:=
38 endef
39
40 define Package/oath-toolkit/description
41 The OATH Toolkit provide components for building one-time password
42 authentication systems. It contains shared libraries, command line
43 tools and a PAM module. Supported technologies include the event-based
44 HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
45 endef
46
47 define Package/oath-toolkit/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,oath-toolkit))