You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.8 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=asu
  6. PKG_VERSION:=0.2.3
  7. PKG_RELEASE:=3
  8. PKG_LICENSE:=GPL-3.0
  9. PYPI_NAME:=$(PKG_NAME)
  10. PKG_HASH:=e60027cd531cc5b9b20d3321acc06fdf0cdd894004919800575b8235343ba8ef
  11. PKG_BUILD_DEPENDS:=python3
  12. include ../../lang/python/pypi.mk
  13. include $(INCLUDE_DIR)/package.mk
  14. include ../../lang/python/python3-package.mk
  15. IMAGEBUILDER_DEPENDS:= \
  16. @x86_64 +bash +bzip2 +coreutils +coreutils-stat +diffutils +file \
  17. +gawk +gcc +getopt +git +git-http +libncurses +make +patch +perl \
  18. +perlbase-attributes +perlbase-findbin +perlbase-getopt \
  19. +perlbase-thread +python3-light +tar +unzip +wget +xz +xzdiff \
  20. +xzgrep +xzless +xz-utils +zlib-dev
  21. define Package/asu
  22. SECTION:=devel
  23. CATEGORY:=Development
  24. TITLE:=attended sysupgrade image server
  25. MAINTAINER:=Paul Spooren <paul@spooren.de>
  26. URL:=http://github.com/aparcar/gsoc17-attended-sysupgrade/
  27. DEPENDS:=$(IMAGEBUILDER_DEPENDS) +pgsql-server +psqlodbcw \
  28. +python3-ctypes +python3-distutils +python3-flask \
  29. +gunicorn3 +python3-openssl +python3-pyodbc +python3-yaml \
  30. +libustream-mbedtls +ca-certificates +gnupg
  31. USERID:=asu:asu
  32. endef
  33. define Package/asu/description
  34. Build server to deliver OpenWrt/LEDE sysupgrade images
  35. endef
  36. define Py3Package/asu/install
  37. $(INSTALL_DIR) $(1)/etc/uci-defaults
  38. $(INSTALL_BIN) ./files/asu.defaults $(1)/etc/uci-defaults/99-asu
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/asu.init $(1)/etc/init.d/asu
  41. $(INSTALL_DIR) $(1)/etc/asu
  42. $(INSTALL_CONF) $(PKG_BUILD_DIR)/asu/utils/config.yml.default $(1)/etc/asu/config.yml
  43. endef
  44. $(eval $(call Py3Package,asu))
  45. $(eval $(call BuildPackage,asu))