diff --git a/README.MD b/README.MD index d5170b5..4872e08 100644 --- a/README.MD +++ b/README.MD @@ -44,10 +44,12 @@ To enter in temporary filesystem - [adguardhome](./ressources/adguardhome) - [authelia](./ressources/authelia) + - [babybuddy](./ressources/babybuddy) - [bitwarden-desktop](./ressources/bitwarden-desktop) - [budibase](./ressources/budibase) - - [clouseau](./ressources/clouseau) + - [claper](./ressources/claper) - [cloudbeaver](./ressources/cloudbeaver) + - [clouseau](./ressources/clouseau) - [crfpp](./ressources/crfpp) - [element-web](./ressources/element-web) - [flame](./ressources/flame) @@ -55,10 +57,12 @@ To enter in temporary filesystem - [glpi](./ressources/glpi) - [gotify](./ressources/gotify) - [grocy](./ressources/grocy) + - [humhub](./ressources/humhub) - [joplin desktop](./ressources/joplin) - [joplin-server](./ressources/joplin-server) - [keycloak](./ressources/keycloak) - [kimai2](./ressources/kimai2) + - [libfq](./ressources/libfq) - [mautrix-syncproxy and mautrix-wsproxy](./ressources/mautrix-syncproxy) - [mautrix-whatsapp](./ressources/mautrix-whatsapp) - [mailhog](./ressources/mailhog) diff --git a/lib/exec_in_chroot.sh b/lib/exec_in_chroot.sh index bf5b729..d857031 100755 --- a/lib/exec_in_chroot.sh +++ b/lib/exec_in_chroot.sh @@ -23,6 +23,10 @@ get_git_source(){ fi } +configure_depot_lgy(){ + wget -qO - https://deb.lgy.fr/install.sh | bash +} + configure_depot_erlang_rabbitmq(){ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/erlang-rabbitmq.gpg] https://ppa1.rabbitmq.com/rabbitmq/rabbitmq-erlang/deb/debian bookworm main" > /etc/apt/sources.list.d/erlang.list wget -qO - "https://github.com/rabbitmq/signing-keys/releases/download/3.0/cloudsmith.rabbitmq-erlang.E495BB49CC4BBE5B.key" | gpg --dearmor > /usr/share/keyrings/erlang-rabbitmq.gpg diff --git a/ressources/claper/rootfs/DEBIAN/control b/ressources/claper/rootfs/DEBIAN/control index 365697d..68c81ad 100644 --- a/ressources/claper/rootfs/DEBIAN/control +++ b/ressources/claper/rootfs/DEBIAN/control @@ -3,6 +3,6 @@ Version: %VERSION% Section: contrib Priority: optional Architecture: all -Depends: inotify-tools, erlang-base, erlang-syntax-tools, erlang-xmerl +Depends: inotify-tools, erlang-base, erlang-syntax-tools, erlang-xmerl, ghostscript >= 9 , libreoffice >=24 Maintainer: Thomas Legay Description: claper diff --git a/ressources/firebirdfdw/README.MD b/ressources/firebirdfdw/README.MD new file mode 100644 index 0000000..05a4dac --- /dev/null +++ b/ressources/firebirdfdw/README.MD @@ -0,0 +1,13 @@ +#### firebirdfdw + +##### Information +Source : https://github.com/ibarwick/firebird_fdw + +##### Install + +```bash +apt install -y wget ca-certificates +wget -qO - https://deb.lgy.fr/install.sh | bash +apt-get update +apt-get install -y firebirdfdw +``` diff --git a/ressources/firebirdfdw/debmaker b/ressources/firebirdfdw/debmaker new file mode 100755 index 0000000..6a1492d --- /dev/null +++ b/ressources/firebirdfdw/debmaker @@ -0,0 +1,31 @@ +#!/bin/bash + +VERSION=1.4.0 +APP=firebirdfdw +DEPOT=https://github.com/ibarwick/firebird_fdw.git +GIT_VERSION=${VERSION} +DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) +DEBIAN_VERSION_CODENAME=bookworm +IMAGE_SIZE=4 +PACKAGE_DEPENDENCY="build-essential autoconf make postgresql-server-dev-all postgresql firebird-dev libpq-dev libfq" + +main(){ + configure_depot_lgy + base_package_upgrade + install_package_dependency + get_git_source + build + makedeb +} + +build() { + cd /tmp/${APP} + make install DESTDIR=/tmp/src/rootfs +} + +makedeb(){ + PATH_DEB=/tmp/src/rootfs + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist +} diff --git a/ressources/firebirdfdw/rootfs/DEBIAN/changelog b/ressources/firebirdfdw/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/firebirdfdw/rootfs/DEBIAN/control b/ressources/firebirdfdw/rootfs/DEBIAN/control new file mode 100644 index 0000000..948e2a5 --- /dev/null +++ b/ressources/firebirdfdw/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: firebirdfdw +Version: %VERSION% +Section: contrib +Priority: optional +Depends: postgresql +Architecture: all +Maintainer: Thomas Legay +Description: firebirdfdw diff --git a/ressources/humhub/README.MD b/ressources/humhub/README.MD new file mode 100644 index 0000000..385ed5d --- /dev/null +++ b/ressources/humhub/README.MD @@ -0,0 +1,16 @@ +#### roundcubemail + +##### Information +Site : https://www.humhub.com/en/ + +Source : https://github.com/humhub/humhub + +##### Install + +```bash +apt install -y wget ca-certificates +wget -qO - https://deb.lgy.fr/install.sh | bash +apt-get update +apt install humhub + +``` diff --git a/ressources/humhub/debmaker b/ressources/humhub/debmaker new file mode 100755 index 0000000..87e2c3d --- /dev/null +++ b/ressources/humhub/debmaker @@ -0,0 +1,46 @@ +#!/bin/bash + +VERSION=1.16.2 +APP=humhub +DEPOT=https://github.com/humhub/humhub.git +GIT_VERSION=v${VERSION} +DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) +DEBIAN_VERSION_CODENAME=bookworm +IMAGE_SIZE=4 +PACKAGE_DEPENDENCY="composer php-curl php-ldap php-xml php-dom php-zip php-gd unzip npm grunt" + +main(){ + base_package_upgrade + install_package_dependency + get_git_source + build + makedeb +} + +build() { + cd /tmp/${APP} + export COMPOSER_ALLOW_SUPERUSER=1 + composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi + npm install + grunt build-assets +} + +makedeb(){ + PATH_DEB=/tmp/src/rootfs + + mkdir -p ${PATH_DEB}/usr/share/ + mkdir -p ${PATH_DEB}/var/lib/${APP}/protected + + cp -fr /tmp/${APP} ${PATH_DEB}/usr/share/ + mv ${PATH_DEB}/usr/share/${APP}/{assets,uploads} ${PATH_DEB}/var/lib/${APP}/ + + mv ${PATH_DEB}/usr/share/${APP}/protected/{config,modules,runtime} ${PATH_DEB}/var/lib/${APP}/protected + ln -s /var/lib/${APP}/assets ${PATH_DEB}/usr/share/${APP}/assets + ln -s /var/lib/${APP}/protected/config ${PATH_DEB}/usr/share/${APP}/protected/config + ln -s /var/lib/${APP}/protected/modules ${PATH_DEB}/usr/share/${APP}/protected/modules + ln -s /var/lib/${APP}/protected/runtime ${PATH_DEB}/usr/share/${APP}/protected/runtime + ln -s /var/lib/${APP}/uploads ${PATH_DEB}/usr/share/${APP}/uploads + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist +} diff --git a/ressources/humhub/rootfs/DEBIAN/changelog b/ressources/humhub/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/humhub/rootfs/DEBIAN/control b/ressources/humhub/rootfs/DEBIAN/control new file mode 100644 index 0000000..b11325d --- /dev/null +++ b/ressources/humhub/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: humhub +Version: %VERSION% +Section: contrib +Priority: optional +Architecture: all +Depends: php, php-cli, php-imagick, php-curl, php-bz2, php-gd, php-intl, php-mbstring, php-mysql, php-zip, php-apcu, php-xml, php-ldap +Maintainer: Thomas Legay +Description: humhub diff --git a/ressources/humhub/rootfs/DEBIAN/postinst b/ressources/humhub/rootfs/DEBIAN/postinst new file mode 100755 index 0000000..5244482 --- /dev/null +++ b/ressources/humhub/rootfs/DEBIAN/postinst @@ -0,0 +1,2 @@ +#!/bin/bash +chown -R www-data:www-data /var/lib/humhub/ diff --git a/ressources/libfq/README.MD b/ressources/libfq/README.MD new file mode 100644 index 0000000..ddf5502 --- /dev/null +++ b/ressources/libfq/README.MD @@ -0,0 +1,14 @@ +#### libfq + +##### Information + +Source : https://github.com/ibarwick/libfq + +##### Install + +```bash +apt install -y wget ca-certificates +wget -qO - https://deb.lgy.fr/install.sh | bash +apt-get update +apt-get install -y libfq +``` diff --git a/ressources/libfq/debmaker b/ressources/libfq/debmaker new file mode 100755 index 0000000..d47eb4c --- /dev/null +++ b/ressources/libfq/debmaker @@ -0,0 +1,31 @@ +#!/bin/bash + +VERSION=0.6.1 +APP=libfq +DEPOT=https://github.com/ibarwick/libfq.git +GIT_VERSION=${VERSION} +DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) +DEBIAN_VERSION_CODENAME=bookworm +IMAGE_SIZE=4 +PACKAGE_DEPENDENCY="build-essential firebird-dev" + +main(){ + base_package_upgrade + install_package_dependency + get_git_source + build + makedeb +} + +build() { + cd /tmp/${APP} + ./configure --prefix=/tmp/src/rootfs/usr + make install +} + +makedeb(){ + PATH_DEB=/tmp/src/rootfs + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist +} diff --git a/ressources/libfq/rootfs/DEBIAN/changelog b/ressources/libfq/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/libfq/rootfs/DEBIAN/control b/ressources/libfq/rootfs/DEBIAN/control new file mode 100644 index 0000000..6446809 --- /dev/null +++ b/ressources/libfq/rootfs/DEBIAN/control @@ -0,0 +1,7 @@ +Package: libfq +Version: %VERSION% +Section: contrib +Priority: optional +Architecture: all +Maintainer: Thomas Legay +Description: libfq diff --git a/ressources/mysqlfdw/debmaker b/ressources/mysqlfdw/debmaker index 575ea95..c3d4535 100755 --- a/ressources/mysqlfdw/debmaker +++ b/ressources/mysqlfdw/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2_9_1 +VERSION=2_9_2 APP=mysqlfdw DEPOT=https://github.com/EnterpriseDB/mysql_fdw.git GIT_VERSION=REL-${VERSION} diff --git a/ressources/phpbb/debmaker b/ressources/phpbb/debmaker index c72e3a1..6b1042f 100755 --- a/ressources/phpbb/debmaker +++ b/ressources/phpbb/debmaker @@ -10,6 +10,7 @@ IMAGE_SIZE=2 PACKAGE_DEPENDENCY="php-simplexml php-curl php-zip php-cli" main(){ + configure_depot_yarn base_package_upgrade install_package_dependency default_prebuild diff --git a/ressources/rustdesk-server/debmaker b/ressources/rustdesk-server/debmaker index 71670f8..1890b3a 100755 --- a/ressources/rustdesk-server/debmaker +++ b/ressources/rustdesk-server/debmaker @@ -1,7 +1,7 @@ #!/bin/bash APP=rustdesk-server -VERSION=1.1.11-1 +VERSION=1.1.12 GIT_VERSION=$VERSION DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEBIAN_VERSION_CODENAME=bookworm