File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # # Copyright (C) 2020, 2025 CZ.NIC z.s.p.o. (https://www.nic.cz/)
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: =mox-pkcs11
11+ PKG_VERSION: =2.0
12+ PKG_RELEASE: =1
13+
14+ PKG_SOURCE_PROTO: =git
15+ PKG_SOURCE_URL: =https://gitlab.nic.cz/turris/mox-pkcs11.git
16+ PKG_MIRROR_HASH: =424b5247288310c6a71b7babed201dc153c58fca73241530254d2cbc84f1b4ef
17+ PKG_SOURCE_VERSION: =v$(PKG_VERSION )
18+
19+ PKG_MAINTAINER: =Tomáš Macholda <
[email protected] >
20+ PKG_LICENSE: =GPL-3.0-or-later
21+ PKG_LICENSE_FILES: =LICENSE.txt
22+
23+ include $(INCLUDE_DIR ) /package.mk
24+
25+ define Package/mox-pkcs11
26+ SECTION:=utils
27+ CATEGORY:=Utilities
28+ TITLE:=MOX PKCS11 module
29+ DEPENDS:=@(TARGET_mvebu_cortexa53_DEVICE_ripe_atlas-v5||TARGET_mvebu_cortexa53_DEVICE_cznic_turris-mox) +libopenssl +libkeyutils
30+ URL:=https://gitlab.nic.cz/turris/mox-pkcs11
31+ endef
32+
33+ define Package/mox-pkcs11/description
34+ PKCS# 11 module that provides access to Turris MOX internal ECDSA key
35+ for cryptographic operations.
36+ endef
37+
38+ define Build/Compile
39+ $(TARGET_CC ) \
40+ $(TARGET_CFLAGS ) \
41+ $(TARGET_LDFLAGS ) \
42+ $(FPIC ) \
43+ -o $(PKG_BUILD_DIR ) /libmox-pkcs11.so $(PKG_BUILD_DIR ) /mox-pkcs11.c
44+ -lcrypto \
45+ -lkeyutils \
46+ -Wall \
47+ -shared
48+ endef
49+
50+ define Package/mox-pkcs11/install
51+ $(INSTALL_DIR ) $(1 ) /usr/lib/pkcs11/
52+ $(INSTALL_DATA ) $(PKG_BUILD_DIR ) /libmox-pkcs11.so $(1 ) /usr/lib/pkcs11/
53+ endef
54+
55+ $(eval $(call BuildPackage,mox-pkcs11))
You can’t perform that action at this time.
0 commit comments