1 # Copyright (C) 2020 Paul Spooren <mail@aparcar.org>
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 include $(TOPDIR)/rules.mk
9 PKG_LICENSE:=GPL-2.0-or-later
13 PKG_MAINTAINER:=Paul Spooren <mail@aparcar.org>
15 include $(INCLUDE_DIR)/package.mk
17 define Package/px5g-wolfssl
21 TITLE:=X.509 certificate generator (using WolfSSL)
27 define Package/px5g-wolfssl/description
28 Px5g is a tiny X.509 certificate generator.
29 It suitable to create key files and certificates in DER
30 and PEM format for use with stunnel, uhttpd and others.
33 TARGET_LDFLAGS += -lwolfssl
36 TARGET_CFLAGS += -Wl,--gc-sections
39 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) \
40 -o $(PKG_BUILD_DIR)/px5g px5g-wolfssl.c $(TARGET_LDFLAGS)
43 define Package/px5g-wolfssl/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g
48 $(eval $(call BuildPackage,px5g-wolfssl))