Empaquetage Debian basique

This commit is contained in:
2020-06-17 18:58:27 +02:00
parent 7f7b187296
commit 1d526a37d0
8 changed files with 92 additions and 8 deletions

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

14
debian/control vendored Normal file
View File

@ -0,0 +1,14 @@
Source: daddy
Section: unknown
Priority: optional
Maintainer: Cadoles <contanct@cadoles.com>
Build-Depends: debhelper (>= 8.0.0), wget, ca-certificates, tar, curl
Standards-Version: 3.9.4
Homepage: http://forge.cadoles.com/Cadoles/daddy
Vcs-Git: http://forge.cadoles.com/Cadoles/daddy.git
Vcs-Browser: http://forge.cadoles.com/Cadoles/daddy
Package: daddy
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, nginx-full, super-graph, postgresql
Description: Application de gestion des DADs à Cadoles

12
debian/daddy.service vendored Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Service "super-graph" pour l'application Daddy
After=network-online.target
[Service]
Type=simple
EnvironmentFile=/etc/systemd/system/daddy.env
ExecStart=/usr/bin/super-graph serv --path /usr/share/daddy/server/config
Restart=on-failure
[Install]
WantedBy=multi-user.target

36
debian/rules vendored Normal file
View File

@ -0,0 +1,36 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
ifeq (, $(shell which node 2>/dev/null))
override_dh_auto_build: install-nodejs
endif
%:
dh $@ --with systemd
override_dh_auto_build:
cd frontend && npm install && npm run build
install-nodejs:
wget -O- https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
override_dh_auto_install:
mkdir -p debian/daddy/usr/share/daddy/client/public
mkdir -p debian/daddy/usr/share/daddy/server/config
mkdir -p debian/daddy/etc/nginx/sites-available
mkdir -p debian/daddy/etc/systemd/system
cp -r frontend/dist/* debian/daddy/usr/share/daddy/client/public/
cp -r backend/config/* debian/daddy/usr/share/daddy/server/config/
cp misc/debian/nginx/daddy.conf debian/daddy/etc/nginx/sites-available/
cp misc/debian/systemd/daddy.env debian/daddy/etc/systemd/system/
install -d debian/daddy
override_dh_strip:
override_dh_auto_test:

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)