blob: fef8a19e9a2c1ea04a6754ccce61c0d7c1be6c2d (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#
# Copyright (C) 2014 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:=stoken
PKG_VERSION:=0.92
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/stoken
PKG_HASH:=aa2b481b058e4caf068f7e747a2dcf5772bcbf278a4f89bc9efcbf82bcc9ef5a
PKG_MAINTAINER:=
PKG_LICENSE:=LGPL-2.1
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/stoken/Default
TITLE:=tokencode generator compatible with RSA SecurID 128-bit (AES)
URL:=https://sourceforge.net/p/stoken/wiki/Home/
DEPENDS:= +libxml2 +libnettle
endef
define Package/stoken
$(call Package/stoken/Default)
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Encryption
DEPENDS:=+libstoken
MENU:=1
endef
define Package/stoken/description
stoken is a tokencode generator compatible with RSA SecurID 128-bit (AES). This package contains the cli
endef
define Package/libstoken
$(call Package/stoken/Default)
SECTION:=libs
CATEGORY:=Libraries
endef
TARGET_LDFLAGS += -lz
CONFIGURE_ARGS += \
--with-nettle
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.{la,a,so*} $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/stoken.pc \
$(1)/usr/lib/pkgconfig/
endef
define Package/stoken/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stoken $(1)/usr/bin/
endef
define Package/libstoken/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.so* $(1)/usr/lib
endef
$(eval $(call BuildPackage,stoken))
$(eval $(call BuildPackage,libstoken))
|