Commit 2e2f8b93 authored by Bastide Samuel's avatar Bastide Samuel
Browse files

Update qgis.makefile

parent ca2b8b8b
No related merge requests found
Showing with 26 additions and 16 deletions
+26 -16
WGET_COMMON_OPTIONS = -q -N
PACKAGE_NAME = ax-qgis-short
VERSION = 3.18.2
OPSI_PACKAGE_VERSION = 3
DOWNLOAD_URLS = https://qgis.org/downloads/QGIS-OSGeo4W-3.18.2-1-Setup-x86_64.exe
TARGET = $(PACKAGE_NAME)_$(VERSION)-$(OPSI_PACKAGE_VERSION).opsi
all: download build install
ANCIEN = 3.16.0-4
VERSION = 3.20.04
VERSIONCOMPAT = 3.20.0-4
MSI = QGIS-OSGeo4W-$(VERSIONCOMPAT).msi
DOWNLOAD_URLS = https://qgis.org/downloads/$(MSI)
TARGET = $(PACKAGE_NAME)_$(VERSION)-2.opsi
PROG = "$prog"
all: cd sed download build install
cd:
cd /var/lib/opsi/workbench/$(PACKAGE_NAME)
rm -rf CLIENT_DATA/files
sed:
sed -i -e 's/$(ANCIEN)/$(VERSIONCOMPAT)/g' CLIENT_DATA/setup.opsiscript
newproduct:
opsi-new-product
download:
mkdir -p CLIENT_DATA/files
wget -q -P CLIENT_DATA/files/ $(DOWNLOAD_URLS)
mkdir -p CLIENT_DATA/files
wget -q -P CLIENT_DATA/files/ $(DOWNLOAD_URLS)
$(TARGET):
opsi-makepackage
opsi-makepackage
build: $(TARGET)
$(TARGET).uploaded:
opsi-package-manager -p ask -i $(TARGET)
touch $(TARGET).uploaded
opsi-package-manager -p ask -i $(TARGET)
touch $(TARGET).uploaded
install: $(TARGET).uploaded
clean:
rm -rf CLIENT_DATA/files
rm -f $(TARGET) $(TARGET).uploaded
rm -rf CLIENT_DATA/files
rm -f $(TARGET) $(TARGET).uploaded
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment