ajout du moddule leo moodle
This commit is contained in:
parent
679d31630b
commit
ffb7217f7f
3 changed files with 40 additions and 0 deletions
32
ressources/moodle-tool-leo/debmaker
Executable file
32
ressources/moodle-tool-leo/debmaker
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=$(date +%Y%m%d%H%M)
|
||||
APP=moodle-tool-leo
|
||||
DEPOT=https://git.leolagrange-gestion.org/FLL/moodle-leo.git
|
||||
GIT_VERSION=last
|
||||
DEB_VERSION=$VERSION
|
||||
DEBIAN_VERSION_CODENAME=bookworm
|
||||
IMAGE_SIZE=1
|
||||
PACKAGE_DEPENDENCY=""
|
||||
|
||||
main(){
|
||||
base_package_upgrade
|
||||
install_package_dependency
|
||||
default_prebuild
|
||||
build
|
||||
makedeb
|
||||
}
|
||||
|
||||
build(){
|
||||
cd /tmp/${APP}
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
|
||||
mkdir -p ${PATH_DEB}/usr/share/moodle/admin/tool/
|
||||
mv /tmp/${APP} ${PATH_DEB}/usr/share/moodle/admin/tool/leo
|
||||
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
0
ressources/moodle-tool-leo/rootfs/DEBIAN/changelog
Normal file
0
ressources/moodle-tool-leo/rootfs/DEBIAN/changelog
Normal file
8
ressources/moodle-tool-leo/rootfs/DEBIAN/control
Normal file
8
ressources/moodle-tool-leo/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: moodle-tool-leo
|
||||
Version: %VERSION%
|
||||
Section: contrib
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Depends: moodle
|
||||
Description: moodle-tool-leo
|
Loading…
Reference in a new issue