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.

60 lines
2.0 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=2
  8. PKG_LICENSE:=GPL-3.0
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/asu/
  11. PKG_HASH:=e60027cd531cc5b9b20d3321acc06fdf0cdd894004919800575b8235343ba8ef
  12. PKG_BUILD_DEPENDS:=python3
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../../lang/python/python3-package.mk
  17. IMAGEBUILDER_DEPENDS:= \
  18. @x86_64 +bash +bzip2 +coreutils +coreutils-stat +diffutils +file \
  19. +gawk +gcc +getopt +git +git-http +libncurses +make +patch +perl \
  20. +perlbase-attributes +perlbase-findbin +perlbase-getopt \
  21. +perlbase-thread +python-light +tar +unzip +wget +xz +xzdiff \
  22. +xzgrep +xzless +xz-utils +zlib-dev
  23. define Package/asu
  24. SECTION:=devel
  25. CATEGORY:=Development
  26. TITLE:=attended sysupgrade image server
  27. MAINTAINER:=Paul Spooren <paul@spooren.de>
  28. URL:=http://github.com/aparcar/gsoc17-attended-sysupgrade/
  29. DEPENDS:=$(IMAGEBUILDER_DEPENDS) +pgsql-server +psqlodbcw \
  30. +python3-ctypes +python3-distutils +python3-flask \
  31. +gunicorn +python3-openssl +python3-pyodbc +python3-yaml \
  32. +libustream-mbedtls +ca-certificates +gnupg
  33. USERID:=asu:asu
  34. VARIANT:=python3
  35. endef
  36. define Package/asu/description
  37. Build server to deliver OpenWrt/LEDE sysupgrade images
  38. endef
  39. define Py3Package/asu/install
  40. $(INSTALL_DIR) $(1)/etc/uci-defaults
  41. $(INSTALL_BIN) ./files/asu.defaults $(1)/etc/uci-defaults/99-asu
  42. $(INSTALL_DIR) $(1)/etc/init.d
  43. $(INSTALL_BIN) ./files/asu.init $(1)/etc/init.d/asu
  44. $(INSTALL_DIR) $(1)/etc/asu
  45. $(INSTALL_CONF) $(PKG_BUILD_DIR)/asu/utils/config.yml.default $(1)/etc/asu/config.yml
  46. endef
  47. $(eval $(call Py3Package,asu))
  48. $(eval $(call BuildPackage,asu))