Makefile 1006 B

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