2 # Copyright (C) 2014 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
12 PKG_REV
:=c4d79ffbf5053e44be4b64da22b1b7fb6a51daf2
16 PKG_SOURCE_URL
:=https
://github.com
/cernekee
/stoken.git
18 PKG_SOURCE_VERSION
:=$(PKG_REV
)
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_REV
).
tar.gz
20 PKG_MIRROR_HASH
:=2f77c42b14a0b6b1e4d44dfd4d66b63ce6ed7484ca97debec0344f5c966e2e5c
21 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_MAINTAINER
:=Florian Fainelli
<florian@openwrt.org
>
26 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_SOURCE_SUBDIR
)
30 include $(INCLUDE_DIR
)/package.mk
32 define Package
/stoken
/Default
33 TITLE
:=tokencode generator compatible with RSA SecurID
128-bit
(AES
)
34 URL
:=http
://sourceforge.net
/p
/stoken
/
35 DEPENDS
:= +libxml2
+libnettle
39 $(call Package
/stoken
/Default
)
47 define Package
/stoken
/description
48 stoken is a tokencode generator compatible with RSA SecurID
128-bit
(AES
). This package contains the cli
51 define Package
/libstoken
52 $(call Package
/stoken
/Default
)
62 define Build
/InstallDev
63 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
/pkgconfig
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libstoken
*.
{la
,a
,so
*} $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/stoken.
pc \
67 $(1)/usr
/lib
/pkgconfig
/
70 define Package
/stoken
/install
71 $(INSTALL_DIR
) $(1)/usr
/bin
72 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/stoken
$(1)/usr
/bin
/
75 define Package
/libstoken
/install
76 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libstoken
*.so
* $(1)/usr
/lib
80 $(eval
$(call BuildPackage
,stoken
))
81 $(eval
$(call BuildPackage
,libstoken
))