ré-organisation des fichiers et ajout du script de création du paquet debian
This commit is contained in:
42
build.sh
Executable file
42
build.sh
Executable 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 ...***"
|
||||||
@@ -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 +0,0 @@
|
|||||||
11
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
3.0 (native)
|
|
||||||
5
template/changelog
Normal file
5
template/changelog
Normal 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
|
Section: misc
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Vincent BENOIT <vincent.benoit@scle.fr>
|
Maintainer: #USERNAME# <#EMAIL#>
|
||||||
Build-Depends: debhelper (>= 11)
|
Build-Depends: #BUILD_DEPS#
|
||||||
Standards-Version: 4.1.3
|
Standards-Version: #POLICY#
|
||||||
Homepage: https://git.nas.benserv.fr/vincent/KineRPISys
|
Homepage: https://git.nas.benserv.fr/vincent/KineRPISys
|
||||||
|
|
||||||
Package: kinerpisys
|
Package: #PACKAGE#
|
||||||
Architecture: all
|
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
|
Description: Meta-paquet pour la configuration du Système Linux de la Raspberry Pi pour le projet KineInterCOM
|
||||||
@@ -3,5 +3,10 @@
|
|||||||
# output every command that modifies files on the build system.
|
# output every command that modifies files on the build system.
|
||||||
#export DH_VERBOSE = 1
|
#export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
#RULES_START_TEXT#
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@#DH_ADDON#
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
|
||||||
|
#RULES_END_TEXT#
|
||||||
Reference in New Issue
Block a user