2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=oath-toolkit
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SAVANNAH
/oath-toolkit
16 PKG_HASH
:=d207120c7e7fdd540142d04ca06d83fb3277c8f2fb794a74535d04b2aa0ec219
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
26 include $(INCLUDE_DIR
)/package.mk
32 define Package
/liboath
35 TITLE
:=A shared and static C library for OATH handling
36 URL
:=http
://www.nongnu.org
/oath-toolkit
/index.html
39 define Package
/oath-pam
42 TITLE
:=The oath PAM module
43 URL
:=http
://www.nongnu.org
/oath-toolkit
/index.html
44 DEPENDS
:= +libpam
+liboath
47 define Package
/oath-toolkit
50 TITLE
:=A command line tool for generating and validating OTPs
51 URL
:=http
://www.nongnu.org
/oath-toolkit
/index.html
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
).
62 Package
/oath-pam
/description
= $(Package
/liboath
/description
)
64 Package
/oath-toolkit
/description
= $(Package
/liboath
/description
)
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
/
73 define Package
/liboath
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/liboath.so
* $(1)/usr
/lib
/
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
/
83 define Package
/oath-toolkit
/install
84 $(INSTALL_DIR
) $(1)/usr
/bin
85 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/oathtool
$(1)/usr
/bin
/
88 $(eval
$(call BuildPackage
,liboath
))
89 $(eval
$(call BuildPackage
,oath-pam
))
90 $(eval
$(call BuildPackage
,oath-toolkit
))