Add more license tags with SPDX identifiers
[openwrt.git] / package / utils / px5g / Makefile
1 #
2 # Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
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:=px5g
11 PKG_RELEASE:=1
12
13 PKG_LICENSE:=LGPL-2.1
14 PKG_LICENSE_FILES:=
15
16 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)
17 PKG_USE_MIPS16:=0
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/px5g
22   SECTION:=utils
23   CATEGORY:=Utilities
24   TITLE:=X.509 certificate generator (using PolarSSL)
25   MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
26   DEPENDS:=+libpolarssl
27 endef
28
29 define Package/px5g/description
30  Px5g is a tiny standalone 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 define Build/Prepare
36         mkdir -p $(PKG_BUILD_DIR)
37 endef
38
39 define Build/Compile
40         $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/px5g px5g.c -lpolarssl
41 endef
42
43 define Package/px5g/install
44         $(INSTALL_DIR) $(1)/usr/sbin
45         $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g
46 endef
47
48 $(eval $(call BuildPackage,px5g))