Browse Source

Merge pull request #12210 from jefferyto/etesync-server-minor-cleanup

etesync-server: Minor Makefile cleanup
lilik-openwrt-22.03
Hannu Nyman 5 years ago
committed by GitHub
parent
commit
5e84c4872c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      net/etesync-server/Makefile

+ 9
- 8
net/etesync-server/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=etesync-server
PKG_VERSION:=0.3.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=etesync-server-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/etesync/server/archive/v$(PKG_VERSION)
@ -12,16 +12,14 @@ PKG_LICENSE:=AGPL-3.0-only
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
PKG_BUILD_PARALLEL:=1
PYTHON3_PKG_BUILD:=0
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk
# this allows using python3-package.mk with a non-package app (etesync-server):
define Py3Build/Compile
$(INSTALL_DIR) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR)
endef
define Package/etesync-server
SECTION:=net
@ -34,8 +32,6 @@ define Package/etesync-server
+python3-django-cors-headers +python3-django-etesync-journal \
+uwsgi +uwsgi-python3-plugin +uwsgi-syslog-plugin
USERID:=etesync=44312
VARIANT:=python3
PROVIDES:=etesync-server
endef
@ -44,6 +40,9 @@ define Package/etesync-server/description
endef
Build/Compile:=:
define Py3Package/etesync-server/install
$(INSTALL_DIR) $(1)/www/etesync/static/
@ -83,6 +82,8 @@ define Py3Package/etesync-server/install
$(INSTALL_BIN) ./files/uwsgi.init $(1)/etc/init.d/etesync-server
endef
Py3Package/etesync-server/filespec:=
define Package/etesync-server/postrm
#!/bin/sh


Loading…
Cancel
Save