Makefile 879 B

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