Makefile 1.0 KB

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