From a36f18bb8656d24fe28df913befce439f8f5dfb1 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 28 Mar 2022 22:42:52 +0200 Subject: [PATCH] authelia version update --- debmaker | 2 +- lib/function.sh | 8 +++---- ressources/authelia/debmaker | 2 +- ressources/slimbookbattery/debmaker | 35 +++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 6 deletions(-) create mode 100755 ressources/slimbookbattery/debmaker diff --git a/debmaker b/debmaker index 1ba68a2..293500d 100755 --- a/debmaker +++ b/debmaker @@ -25,7 +25,7 @@ chroot) if [ -e cache/$2 ] then . ressources/$2/debmaker - debmaker_chroot cache/$2 + debmaker_chroot else echo no cache file fi diff --git a/lib/function.sh b/lib/function.sh index 86b77f1..6de6fc3 100644 --- a/lib/function.sh +++ b/lib/function.sh @@ -24,11 +24,11 @@ zdebmaker_createOS(){ zdebmaker_createAppOS(){ zdebmaker_getDep [ -f cache/${DEBIAN_VERSION_CODENAME} ] || zdebmaker_createOS - + [ "${IMAGE_SIZE}" == "" ] && IMAGE_SIZE=2 dd if=/dev/zero of=cache/${APP}.tmp bs=1G count=${IMAGE_SIZE} sudo mkfs.ext4 cache/${APP}.tmp - + [ -d ${MOUNT_PATH}/${APP}/ ] || sudo mkdir -p ${MOUNT_PATH}/${APP}/ [ -d ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ ] || sudo mkdir -p ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ sudo mount cache/${APP}.tmp ${MOUNT_PATH}/${APP}/ @@ -72,13 +72,13 @@ debmaker_umount_proc_sys(){ } debmaker_chroot() { - OPEN_FILE=$1 + OPEN_FILE=cache/$2${APP} zdebmaker_getDep debmaker_mount_proc_sys ${OPEN_FILE} ${MOUNT_PATH}/${APP}/ sudo chroot ${MOUNT_PATH}/${APP}/ debmaker_umount_proc_sys ${MOUNT_PATH}/${APP}/ } - + debmaker_run(){ zdebmaker_getDep [ -f cache/${APP} ] || zdebmaker_createAppOS diff --git a/ressources/authelia/debmaker b/ressources/authelia/debmaker index 77a8d71..17b7cc4 100755 --- a/ressources/authelia/debmaker +++ b/ressources/authelia/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=4.34.5 +VERSION=4.34.6 RELEASE=1 [ -e ./lib/function.sh ] && source ./lib/function.sh diff --git a/ressources/slimbookbattery/debmaker b/ressources/slimbookbattery/debmaker new file mode 100755 index 0000000..a6e4e5f --- /dev/null +++ b/ressources/slimbookbattery/debmaker @@ -0,0 +1,35 @@ +#!/bin/bash + +VERSION=4.0.4 + +[ -e ./lib/function.sh ] && source ./lib/function.sh + +APP=slimbookbattery +DEPOT=https://launchpad.net/~slimbook/+archive/ubuntu/slimbook/+sourcefiles/slimbookbattery/${VERSION}/slimbookbattery_${VERSION}.tar.gz +DEBIAN_VERSION_CODENAME=bullseye +IMAGE_SIZE=1 + +STEP="envinit prebuild build makedeb" + +envinit() { + if [ $(dpkg -l | grep -e 'ii debhelper ' | wc -l) -eq 1 ]; + then + apt-get update + apt-get dist-upgrade -y + else + apt install -y --no-install-recommends wget ca-certificates debhelper build-essential + fi +} + +prebuild(){ + wget -qO - ${DEPOT} | tar -zx -C /tmp/ +} + +build() { + cd /tmp/slimbookbattery-${VERSION} + dpkg-buildpackage --no-sign +} + +makedeb(){ + mv /tmp/slimbookbattery_${VERSION}_all.deb /tmp/dist +}