From 3590b96ea20e3624ccfcfc9ca1d01bce640a4f43 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 18 Oct 2020 22:36:38 +0200 Subject: [PATCH] packaging --- debian/compat | 1 + debian/control | 113 ++++++++++++++++++++++++++++++++++++ debian/copyright | 10 ++++ debian/eole-lemur.install | 4 ++ debian/lemur-static.install | 1 + debian/rules | 28 +++++++++ debian/source/format | 1 + 7 files changed, 158 insertions(+) create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/eole-lemur.install create mode 100644 debian/lemur-static.install create mode 100644 debian/rules create mode 100644 debian/source/format diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..b4de3947 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..3d8f7864 --- /dev/null +++ b/debian/control @@ -0,0 +1,113 @@ +Source: lemur +Section: admin +Priority: extra +Maintainer: Cadoles +Build-depends: debhelper (>=11), + python3-all, + python3-setuptools, + dh-python, + npm +Standards-Version: 3.9.4 +Homepage: https://forge.cadoles.com/Infra/lemur + +Package: eole-lemur +Architecture: any +Depends: ${misc:Depends}, + lemur, + lemur-static, + eole-postgresql, +# for PIP + python3-pip, + gcc, + python3-dev +Description: Lemur - eolisation + +Package: lemur +Architecture: any +Pre-Depends: dpkg, python3, ${misc:Pre-Depends} +Depends: ${python:Depends}, ${misc:Depends}, + python3-lemur +Description: Lemur + +Package: python3-lemur +Architecture: any +Pre-Depends: dpkg, python3, ${misc:Pre-Depends} +Depends: python3-acme, + python3-alembic, + python3-amqp, + python3-aniso8601, + python3-arrow, + python3-bcrypt, + python3-bs4, + python3-billiard, + python3-blinker, + python3-boto3, + python3-botocore, + python3-celery, + python3-certifi, + python3-cffi, + python3-chardet, + python3-click, + python3-cloudflare, + python3-dnspython, + python3-flask-bcrypt, + python3-flask-cors, + python3-flask-mail, + python3-flask-migrate, + python3-flask-principal, + python3-flask-restful, + python3-flask-script, + python3-flask-sqlalchemy, + python3-flask, + python3-future, + python3-gunicorn, + python3-hvac, + python3-idna, + python3-inflection, + python3-itsdangerous, + python3-jinja2, + python3-jmespath, + python3-josepy, + python3-kombu, + python3-lockfile, + python3-mako, + python3-markupsafe, + python3-marshmallow-sqlalchemy, + python3-ndg-httpsclient, + python3-paramiko, + python3-pem, + python3-psycopg2, + python3-pyasn1-modules, + python3-pyasn1, + python3-pycparser, + python3-jwt, + python3-nacl, + python3-openssl, + python3-rfc3339, + python3-dateutil, + python3-editor, + python3-pythonjsonlogger, + python3-ldap, + python3-tz, + python3-yaml, + python3-redis, + python3-requests-toolbelt, + python3-requests, + python3-retrying, + python3-s3transfer, + python3-six, + python3-soupsieve, + python3-sqlalchemy-utils, + python3-sqlalchemy, + python3-tabulate, + python3-urllib3, + python3-vine, + python3-werkzeug, + python3-xmltodict +Description: Lemur - library part + +Package: lemur-static +Architecture: any +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends} +Description: static HTML/JS/CSS file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..cb31dae5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lemur +Upstream-Contact: Cadoles +Source: https://forge.cadoles.com/Infra/lemur + +Files: * +Copyright: Lemur +License: Apache-2.0 License + +License: Apache-2.0 License diff --git a/debian/eole-lemur.install b/debian/eole-lemur.install new file mode 100644 index 00000000..d46921ee --- /dev/null +++ b/debian/eole-lemur.install @@ -0,0 +1,4 @@ +dicos usr/share/eole/creole/ +tmpl/* usr/share/eole/creole/distrib/ +posttemplate/* usr/share/eole/posttemplate/ +funcs/* usr/share/creole/funcs diff --git a/debian/lemur-static.install b/debian/lemur-static.install new file mode 100644 index 00000000..f5c83b46 --- /dev/null +++ b/debian/lemur-static.install @@ -0,0 +1 @@ +lemur/static/dist/* usr/share/lemur/static/ diff --git a/debian/rules b/debian/rules new file mode 100644 index 00000000..0776d4cf --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#DH_VERBOSE = 1 + +export PYBUILD_NAME = lemur +export PYBUILD_DISABLE_python3 = test + +%: + # suppression requirements version of package + # only last version are supported by lemur + # but Ubuntu has not last version + sed -i "s/==\(\([[:digit:]]\)*\(\.\)*\)*//g" requirements.txt + dh $@ --with python3 --buildsystem=pybuild + +override_dh_install: + rm -rf debian/python3-lemur/usr/lib/python*/dist-packages/lemur/static/ + rm -rf debian/python3-lemur/usr/lib/python*/dist-packages/lemur/tests/ + rm -rf debian/python3-lemur/usr/lib/python*/dist-packages/trustores + mkdir -p debian/lemur/usr + mv debian/python3-lemur/usr/bin debian/lemur/usr + dh_install + +override_dh_auto_build: + npm install --unsafe-perm + node_modules/.bin/gulp build + node_modules/.bin/gulp package --urlContextPath=lemur + dh_auto_build diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)