From 9a51326d1217c30efec6cf4f1e510f3fa1c49988 Mon Sep 17 00:00:00 2001 From: Thomas Legay Date: Mon, 11 Nov 2024 00:11:03 +0100 Subject: [PATCH] ajout firebird --- ressources/firebirdfdw/README.MD | 13 ++++++ ressources/firebirdfdw/debmaker | 31 +++++++++++++ .../firebirdfdw/rootfs/DEBIAN/changelog | 0 ressources/firebirdfdw/rootfs/DEBIAN/control | 8 ++++ ressources/humhub/README.MD | 16 +++++++ ressources/humhub/debmaker | 46 +++++++++++++++++++ ressources/humhub/rootfs/DEBIAN/changelog | 0 ressources/humhub/rootfs/DEBIAN/control | 8 ++++ ressources/humhub/rootfs/DEBIAN/postinst | 2 + ressources/libfq/README.MD | 14 ++++++ ressources/libfq/debmaker | 31 +++++++++++++ ressources/libfq/rootfs/DEBIAN/changelog | 0 ressources/libfq/rootfs/DEBIAN/control | 7 +++ 13 files changed, 176 insertions(+) create mode 100644 ressources/firebirdfdw/README.MD create mode 100755 ressources/firebirdfdw/debmaker create mode 100644 ressources/firebirdfdw/rootfs/DEBIAN/changelog create mode 100644 ressources/firebirdfdw/rootfs/DEBIAN/control create mode 100644 ressources/humhub/README.MD create mode 100755 ressources/humhub/debmaker create mode 100644 ressources/humhub/rootfs/DEBIAN/changelog create mode 100644 ressources/humhub/rootfs/DEBIAN/control create mode 100755 ressources/humhub/rootfs/DEBIAN/postinst create mode 100644 ressources/libfq/README.MD create mode 100755 ressources/libfq/debmaker create mode 100644 ressources/libfq/rootfs/DEBIAN/changelog create mode 100644 ressources/libfq/rootfs/DEBIAN/control 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