Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (C) 2010-2014 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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=px5g-standalone
  9. PKG_RELEASE:=2
  10. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  11. PKG_CHECK_FORMAT_SECURITY:=0
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/px5g-standalone
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. TITLE:=Standalone X.509 certificate generator (standalone version)
  17. MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
  18. endef
  19. define Package/px5g-standalone/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. $(CP) ./src/* $(PKG_BUILD_DIR)/
  27. endef
  28. define Package/px5g-standalone/install
  29. $(INSTALL_DIR) $(1)/usr/sbin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g
  31. endef
  32. $(eval $(call BuildPackage,px5g-standalone))