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

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

1
VERSION Normal file
View File

@@ -0,0 +1 @@
1.0.0

42
build.sh Executable file
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 ...***"

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

View File

@@ -1 +0,0 @@
11

View File

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

5
template/changelog Normal file
View File

@@ -0,0 +1,5 @@
#PACKAGE# (#VERSION#) stable; urgency=medium
* Initial release
-- #USERNAME# <#EMAIL#> #DATE#

View File

@@ -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

View File

@@ -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#