procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / utils / px5g-wolfssl / Makefile
1 # Copyright (C) 2020 Paul Spooren <mail@aparcar.org>
2 #
3 # SPDX-License-Identifier: GPL-2.0-or-later
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=px5g-wolfssl
8 PKG_RELEASE:=$(COMMITCOUNT).2
9 PKG_LICENSE:=GPL-2.0-or-later
10
11 PKG_USE_MIPS16:=0
12
13 PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
14
15 PKG_CONFIG_DEPENDS:=CONFIG_WOLFSSL_ALT_NAMES
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/px5g-wolfssl
20 SECTION:=utils
21 CATEGORY:=Utilities
22 SUBMENU:=Encryption
23 TITLE:=X.509 certificate generator (using WolfSSL)
24 DEPENDS:=+libwolfssl
25 PROVIDES:=px5g
26 VARIANT:=wolfssl
27 endef
28
29 define Package/px5g-wolfssl/description
30 Px5g is a tiny X.509 certificate generator.
31 It suitable to create key files and certificates in DER
32 and PEM format for use with stunnel, uhttpd and others.
33 endef
34
35 TARGET_LDFLAGS += -lwolfssl
36
37
38 TARGET_CFLAGS += -Wl,--gc-sections
39
40 define Build/Compile
41 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) \
42 -o $(PKG_BUILD_DIR)/px5g px5g-wolfssl.c $(TARGET_LDFLAGS)
43 endef
44
45 define Package/px5g-wolfssl/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g
48 endef
49
50 $(eval $(call BuildPackage,px5g-wolfssl))