From 356f2723f1b4282cde4c195128a2c079cf2e2877 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 21 Oct 2020 11:57:15 +0200 Subject: [PATCH] debian --- debian/compat | 1 + debian/control | 19 +++++++++++++++++++ debian/copyright | 10 ++++++++++ debian/eole-lemur.install | 5 +++++ debian/eole-lemur.postinst | 12 ++++++++++++ debian/lemur.service | 1 + debian/rules | 8 ++++++++ debian/source/format | 1 + 8 files changed, 57 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/eole-lemur.postinst create mode 120000 debian/lemur.service create mode 100644 debian/rules create mode 100644 debian/source/format diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..50508cb --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: eole-lemur +Section: admin +Priority: extra +Maintainer: Cadoles +Build-depends: debhelper (>=11) +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 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..cb31dae --- /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 0000000..996b3a4 --- /dev/null +++ b/debian/eole-lemur.install @@ -0,0 +1,5 @@ +dicos usr/share/eole/creole/ +tmpl/* usr/share/eole/creole/distrib/ +posttemplate/* usr/share/eole/posttemplate/ +funcs/* usr/share/creole/funcs +db/* /usr/share/eole/db/lemur/gen/ diff --git a/debian/eole-lemur.postinst b/debian/eole-lemur.postinst new file mode 100644 index 0000000..5a474b5 --- /dev/null +++ b/debian/eole-lemur.postinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + # Make sure the administrative user exists + if ! getent passwd lemur > /dev/null; then + adduser --system --home /usr/share/lemur --no-create-home --group --gecos "User for lemur" lemur --quiet + fi +fi + +exit 0 diff --git a/debian/lemur.service b/debian/lemur.service new file mode 120000 index 0000000..926b128 --- /dev/null +++ b/debian/lemur.service @@ -0,0 +1 @@ +../lemur.service \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..218df65 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)