mariadb: update to 10.9.8
[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.5
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SAVANNAH/oath-toolkit
16 PKG_HASH:=d207120c7e7fdd540142d04ca06d83fb3277c8f2fb794a74535d04b2aa0ec219
17
18 PKG_MAINTAINER:=Fam Zheng <fam@euphon.net>
19 PKG_LICENSE:=LGPL-2.0-or-later GPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:nongnu:oath_toolkit
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 CONFIGURE_ARGS += \
29 --disable-xmltest \
30 --disable-pskc
31
32 define Package/liboath
33 SECTION:=libs
34 CATEGORY:=Libraries
35 TITLE:=A shared and static C library for OATH handling
36 URL:=http://www.nongnu.org/oath-toolkit/index.html
37 endef
38
39 define Package/oath-pam
40 SECTION:=libs
41 CATEGORY:=Libraries
42 TITLE:=The oath PAM module
43 URL:=http://www.nongnu.org/oath-toolkit/index.html
44 DEPENDS:= +libpam +liboath
45 endef
46
47 define Package/oath-toolkit
48 SECTION:=utils
49 CATEGORY:=Utilities
50 TITLE:=A command line tool for generating and validating OTPs
51 URL:=http://www.nongnu.org/oath-toolkit/index.html
52 DEPENDS:= +liboath
53 endef
54
55 define Package/liboath/description
56 The OATH Toolkit provide components for building one-time password
57 authentication systems. It contains shared libraries, command line
58 tools and a PAM module. Supported technologies include the event-based
59 HOTP algorithm (RFC4226) and the time-based TOTP algorithm (RFC6238).
60 endef
61
62 Package/oath-pam/description = $(Package/liboath/description)
63
64 Package/oath-toolkit/description = $(Package/liboath/description)
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/include/liboath
68 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
71 endef
72
73 define Package/liboath/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboath.so* $(1)/usr/lib/
76 endef
77
78 define Package/oath-pam/install
79 $(INSTALL_DIR) $(1)/usr/lib/security
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/pam_oath.so* $(1)/usr/lib/security/
81 endef
82
83 define Package/oath-toolkit/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oathtool $(1)/usr/bin/
86 endef
87
88 $(eval $(call BuildPackage,liboath))
89 $(eval $(call BuildPackage,oath-pam))
90 $(eval $(call BuildPackage,oath-toolkit))