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