mise en place des scripts pour la génération du package python et deb
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#PACKAGE# (#VERSION#-1) stable; urgency=medium
|
||||
|
||||
* Initial release
|
||||
|
||||
-- #USERNAME# <#EMAIL#> #DATE#
|
||||
@@ -0,0 +1 @@
|
||||
11
|
||||
@@ -0,0 +1,12 @@
|
||||
Source: #PACKAGE#
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Maintainer: #USERNAME# <#EMAIL#>
|
||||
Build-Depends: #BUILD_DEPS#
|
||||
Standards-Version: #POLICY#
|
||||
Homepage: https://git.nas.benserv.fr/vincent/KineIntercom
|
||||
|
||||
Package: #PACKAGE#
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}
|
||||
Description: Installation des fichiers nécessaires au fonctionnement du processus KineIntercom
|
||||
@@ -0,0 +1,3 @@
|
||||
db.json.schema /usr/share/kineintercom/
|
||||
database_origin.json /usr/share/kineintercom/
|
||||
kineintercom.service /lib/systemd/system/
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# postinst script for sclesignrestfulmisc
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
user="root"
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
userpi="pi"
|
||||
dirname="kineintercom"
|
||||
|
||||
# create conf directory
|
||||
/usr/bin/mkdir -p /etc/$dirname
|
||||
/usr/bin/chown -R $user:$userpi /etc/$dirname
|
||||
/usr/bin/chmod -R 770 /etc/$dirname
|
||||
|
||||
# create log directory
|
||||
/usr/bin/mkdir -p /var/log/$dirname
|
||||
/usr/bin/chown -R $user:$userpi /var/log/$dirname
|
||||
|
||||
# Restart service
|
||||
/usr/bin/systemctl restart kineintercom.service
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/make -f
|
||||
# See debhelper(7) (uncomment to enable)
|
||||
# output every command that modifies files on the build system.
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
#RULES_START_TEXT#
|
||||
%:
|
||||
dh $@#DH_ADDON#
|
||||
|
||||
override_dh_auto_install:
|
||||
|
||||
#RULES_END_TEXT#
|
||||
Reference in New Issue
Block a user