ré-organisation des fichiers et ajout du script de création du paquet debian

This commit is contained in:
Vincent BENOIT committed 2022-11-22 11:33:13 +01:00
1 parent b1e0925ce8
commit 739f752c4e
21 files changed
+60 -14

No files matched your search

+1
View File
@@ -0,0 +1 @@
1.0.0
Executable
+42
View File
@@ -0,0 +1,42 @@
#!/bin/bash
#
# Author : vincent.benoit@benserv.fr
# Date : 11/2022
# Version : 1.0
# Brief : création du package Debian pour la configuration du systeme RPI
#
###########################################################################
create_deb() {
dirname=kinerpisys-$1
/usr/bin/mkdir -p bdist_deb/$dirname
cd bdist_deb/$dirname
debvers=`/usr/bin/cat /etc/debian_version`
echo "$debvers"
IFS='.'
read -ra vers <<< "$debvers"
if [ "$vers" == "10" ]; then
# Write compat file to deb template for Debian 10.x
cat > $2/template/compat << EOF
11
EOF
fi
/usr/bin/dh_make -t $2/template -n -y -i -d
/usr/bin/find $2/misc -type f -exec /usr/bin/cp -a {} . \;
/usr/bin/dpkg-buildpackage -b -uc -us -rfakeroot
/usr/bin/rm -f $2/template/compat
cd ..
if [ $? == "0" ] && [ ! -d "$2/dist" ]; then
/usr/bin/mkdir -p $2/dist
/usr/bin/find . -type f -name "*.deb" -exec /usr/bin/cp -a {} $2/dist \;
fi
}
echo "*** Remove old dirs ***"
/usr/bin/rm -rf bdist_deb build dist
echo "*** read version ***"
vers=`/usr/bin/cat VERSION`
rootpath=`pwd`
echo "*** Create Debian Misc Package ***"
create_deb "$vers" "$rootpath"
echo "*** that's All Folks ...***"
-5
View File
@@ -1,5 +0,0 @@
kinerpisys (1.0.0) stable; urgency=medium
* Initial Release.
-- Vincent BENOIT <vincent.benoit@benserv.fr> Mon, 21 Nov 2022 17:26:48 +0100
-1
View File
@@ -1 +0,0 @@
11
-1
View File
@@ -1 +0,0 @@
3.0 (native)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+5
View File
@@ -0,0 +1,5 @@
#PACKAGE# (#VERSION#) stable; urgency=medium
* Initial release
-- #USERNAME# <#EMAIL#> #DATE#
@@ -1,12 +1,12 @@
Source: kinerpisys
Source: #PACKAGE#
Section: misc
Priority: optional
Maintainer: Vincent BENOIT <vincent.benoit@scle.fr>
Build-Depends: debhelper (>= 11)
Standards-Version: 4.1.3
Maintainer: #USERNAME# <#EMAIL#>
Build-Depends: #BUILD_DEPS#
Standards-Version: #POLICY#
Homepage: https://git.nas.benserv.fr/vincent/KineRPISys
Package: kinerpisys
Package: #PACKAGE#
Architecture: all
Depends: ${misc:Depends}, dnsmasq, hostapd, iptables
Depends: ${misc:Depends}, dhcpcd5, dnsmasq, hostapd, iptables, rsyslog, logrotate
Description: Meta-paquet pour la configuration du Système Linux de la Raspberry Pi pour le projet KineInterCOM
File renamed without changes.
File renamed without changes.
@@ -3,5 +3,10 @@
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
#RULES_START_TEXT#
%:
dh $@
dh $@#DH_ADDON#
override_dh_auto_install:
#RULES_END_TEXT#