usbmuxd: Update to latest git
[feed/packages.git] / net / uwsgi-cgi / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=uwsgi-cgi
4 PKG_VERSION:=2.0.18
5 PKG_RELEASE:=1
6
7 PKG_SOURCE_URL= \
8 https://projects.unbit.it/downloads \
9 https://codeload.github.com/unbit/uwsgi/tar.gz/$(PKG_VERSION)?
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_HASH:=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
12 PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION)
13
14 PKG_LICENSE:=GPL-2.0-or-later
15 PKG_LICENSE_FILES:=LICENSE
16 PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
20
21 define Package/uwsgi-cgi
22 SECTION:=net
23 CATEGORY:=Network
24 SUBMENU:=Web Servers/Proxies
25 TITLE:=The uWSGI server
26 URL:=https://projects.unbit.it/uwsgi
27 DEPENDS:=+libcap +jansson +libuuid
28 endef
29
30 define Package/uwsgi-cgi-luci-support
31 SECTION:=net
32 CATEGORY:=Network
33 SUBMENU:=Web Servers/Proxies
34 TITLE:=Support files for LuCI on Nginx
35 DEPENDS:=+uwsgi-cgi
36 endef
37
38 define Package/uwsgi-cgi/description
39 The uWSGI project build with cgi profile
40 endef
41
42 MAKE_VARS+=\
43 CPP=$(TARGET_CROSS)cpp
44
45 define Build/Compile
46 $(call Build/Compile/Default,PROFILE=cgi)
47 endef
48
49 define Package/uwsgi-cgi/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uwsgi $(1)/usr/sbin/
52 endef
53
54 define Package/uwsgi-cgi-luci-support/install
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files-luci-support/uwsgi.init $(1)/etc/init.d/uwsgi
57 $(INSTALL_BIN) ./files-luci-support/uwsgi.conf $(1)/etc/uwsgi.conf
58 endef
59
60 $(eval $(call BuildPackage,uwsgi-cgi))
61 $(eval $(call BuildPackage,uwsgi-cgi-luci-support))