Added more comments to Dependencies, fixed removing them in build

This commit is contained in:
Rick Falkvinge
2019-02-18 13:40:12 +01:00
parent 42c642184e
commit 07fcf994d3
4 changed files with 104 additions and 80 deletions
@@ -1,9 +1,17 @@
#
# This file is a template included with dependencies for the swarmops backend.
# It is included into the control file when packages are built. If there exists
# a file with the name backend-[distro], it is selected for a distro, otherwise,
# backend-default is used.
#
libmono-corlib4.5-cil,
libmono-posix4.0-cil,
libmono-system-data4.0-cil,
libmono-system-management4.0-cil,
libmono-system-numerics4.0-cil,
libmono-system-web-http4.0-cil,
#
# Mono-devel is repeated here, it's in common as well. Some day we're going to have
# to figure out why the backend refuses to run with a System.Runtime assembly missing
@@ -12,37 +20,37 @@
# For now, I have to admit it's a convenient cop-out to assure that all the common
# assemblies are in place.
#
mono-devel,
#
# Imagemagick is for backend conversion of PDFs to bitmaps.
#
imagemagick,
#
# Inkscape, deliberately installed on the backend, is for conversion of generated
# SVG files to PDFs. There are other utilities and libraries that do this but none
# that do it as well and reliably.
#
inkscape,
#
# Ghostscript for various PDF handling
#
ghostscript,
#
# and Tesseract for a planned-not-yet-implemented OCR reading of inbound invoices
# and other documents
#
tesseract-ocr
#
#
# This file is a template included with dependencies for the swarmops backend.
# It is included into the control file when packages are built. If there exists
# a file with the name backend-[distro], it is selected for a distro, otherwise,
# backend-default is used.
#
# Note that all entries are preceded by a space. That's a requirement because
# of how control lines in the debian packages are folded to multiline, and
# this file is included in-situ into the control template.
#
# For the same reason, there can't be any non-comment empty lines,
# or any comment lines first in the file, before the first dependency.
# Note that the last line doesn't have a terminating comma, as it ends the list
# of dependencies that goes into the Control file
@@ -1,33 +1,35 @@
mono-devel,
#
# Mono-devel is a cop-out but I can't for my life figure out why the backend
# refuses to run with all its components installed, but runs fine with
# the metapackage mono-devel installed
#
# Still including individual dependencies as detected earlier if I figure
# out exactly why mono-devel is required
#
libmono-system-componentmodel-composition4.0-cil,
libmono-system-web-services4.0-cil,
libmono-system-web-extensions4.0-cil,
libmono-system-componentmodel-composition4.0-cil,
libmono-system-numerics4.0-cil,
#
# Fonts-Liberation is in Common as it's required by both backend for invoice
# generation and in the frontend for the same reason
#
fonts-liberation
#
#
# This file is a template included with dependencies for the swarmops-common package.
# It is included into the control file when packages are built. If there exists
# a file with the name common-[distro], it is selected for a distro, otherwise,
# common-default is used.
#
# Note that all entries are preceded by a space. That's a requirement because
# of how control lines in the debian packages are folded to multiline, and
# this file is included in-situ into the control template.
# Depending on Mono-devel is a cop-out but I can't for my life figure out why
# the backend refuses to run with all its components installed, but runs fine with
# the metapackage mono-devel installed
#
# For the same reason, there can't be any non-comment empty lines,
# or any comment lines first in the file, before the first dependency.
mono-devel,
#
# Still including individual dependencies as detected earlier if I figure
# out exactly why mono-devel is required
#
libmono-system-componentmodel-composition4.0-cil,
libmono-system-web-services4.0-cil,
libmono-system-web-extensions4.0-cil,
libmono-system-componentmodel-composition4.0-cil,
libmono-system-numerics4.0-cil,
#
# Fonts-Liberation is in Common as it's required by both backend for invoice
# generation and in the frontend for the same reason
#
fonts-liberation
# Note that the last line doesn't have a terminating comma, as it ends the list
# of dependencies that goes into the Control file
@@ -1,48 +1,62 @@
apache2 (>= 2.2.20),
#
# Dialog is required for the "Autoconfigure apache?" dialog
#
dialog (>= 1.2),
#
# The xsp4 server
#
mono-apache-server4 (>= 3.0.11),
#
# The Mono interface to Apache
#
libapache2-mod-mono (>= 2.11),
#
# Mono-devel is repeated here, it's in swarmops-common as well
#
mono-devel,
#
# I _think_ this package was required for better image conversions
#
libgdiplus (>= 2.11),
#
# Imagemagick is for image conversions
#
imagemagick,
#
# Ghostscript is for making/reading PDFs
#
ghostscript,
#
# and QPDF is a small utility to count the pages in a PDF file in a script
#
qpdf
#
#
#
# This file is a template included with dependencies for the swarmops frontend.
# It is included into the control file when packages are built. If there exists
# a file with the name frontend-[distro], it is selected for a distro, otherwise,
# front-default is used.
#
# Note that all entries are preceded by a space. That's a requirement because
# of how control lines in the debian packages are folded to multiline, and
# this file is included in-situ into the control template.
# First, Apache is obviously required to serve the frontend.
#
# For the same reason, there can't be any non-comment empty lines,
# or any comment lines first in the file, before the first dependency.
apache2 (>= 2.2.20),
#
# Dialog is required for the "Autoconfigure apache?" dialog
#
dialog (>= 1.2),
#
# The xsp4 server serving Mono to Apache
#
mono-apache-server4 (>= 3.0.11),
#
# The Mono interface to Apache
#
libapache2-mod-mono (>= 2.11),
#
# Mono-devel is repeated here, it's in swarmops-common as well
#
mono-devel,
#
# I _think_ this package was required for better image conversions
#
libgdiplus (>= 2.11),
#
# Imagemagick is for image conversions
#
imagemagick,
#
# Ghostscript is for making/reading PDFs
#
ghostscript,
#
# and QPDF is a small utility to count the pages in a PDF file in a script
#
qpdf
# Note that the last line doesn't have a terminating comma, as it ends the list
# of dependencies that goes into the Control file
@@ -41,9 +41,9 @@ do
DEPENDENCIES=$(cat dependencies/$PACKAGE-default | tr -d ' \r')
fi
# remove comments and roll up multiline to singleline in Dependencies field
DEPENDENCIES=$(echo ${DEPENDENCIES} | grep -v '^$\|^\s*\#' | tr -d '\n')
echo "Dependencies: $DEPENDENCIES"
# escape newlines in Dependencies file
DEPENDENCIES=$(echo ${DEPENDENCIES} | tr '\n' "\n\\")
# read -p "Press [Enter] key to make control backup..."