Makefile 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. include $(INCLUDE_DIR)/package.mk
  12. define Package/px5g-standalone
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=Standalone X.509 certificate generator (standalone version)
  16. MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
  17. endef
  18. define Package/px5g-standalone/description
  19. Px5g is a tiny standalone X.509 certificate generator.
  20. It suitable to create key files and certificates in DER
  21. and PEM format for use with stunnel, uhttpd and others.
  22. endef
  23. define Build/Prepare
  24. mkdir -p $(PKG_BUILD_DIR)
  25. $(CP) ./src/* $(PKG_BUILD_DIR)/
  26. endef
  27. define Package/px5g-standalone/install
  28. $(INSTALL_DIR) $(1)/usr/sbin
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g
  30. endef
  31. $(eval $(call BuildPackage,px5g-standalone))