8677a8b1743c77109b455b56fcc4631288322123
[openwrt/openwrt.git] / package / utils / px5g / Makefile
1 #
2 # Copyright (C) 2010-2015 Jo-Philipp Wich <jow@openwrt.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:=3
12
13 PKG_USE_MIPS16:=0
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/px5g
18 SECTION:=utils
19 CATEGORY:=Utilities
20 TITLE:=X.509 certificate generator (using PolarSSL)
21 MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
22 DEPENDS:=+libpolarssl
23 endef
24
25 define Package/px5g/description
26 Px5g is a tiny standalone X.509 certificate generator.
27 It suitable to create key files and certificates in DER
28 and PEM format for use with stunnel, uhttpd and others.
29 endef
30
31 define Build/Prepare
32 mkdir -p $(PKG_BUILD_DIR)
33 endef
34
35 define Build/Compile
36 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/px5g px5g.c -lpolarssl
37 endef
38
39 define Package/px5g/install
40 $(INSTALL_DIR) $(1)/usr/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g
42 endef
43
44 $(eval $(call BuildPackage,px5g))