diff --git a/README.MD b/README.MD index 4a3c978..d5170b5 100644 --- a/README.MD +++ b/README.MD @@ -65,6 +65,7 @@ To enter in temporary filesystem - [mealie](./ressources/mealie) - [metabase](./ressources/metabase) - [minio](./ressources/minio) + - [mysqlfdw](./ressources/mysqlfdw) - [phpbb](./ressources/phpbb) - [picapport](./ressources/picapport) - [postfixadmin](./ressources/postfixadmin) diff --git a/ressources/mysqlfdw/README.MD b/ressources/mysqlfdw/README.MD new file mode 100644 index 0000000..52221e2 --- /dev/null +++ b/ressources/mysqlfdw/README.MD @@ -0,0 +1,15 @@ +#### mysqlfdw + +##### Information +Site : https://github.com/EnterpriseDB/mysql_fdw + +Source : https://github.com/EnterpriseDB/mysql_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 mysqlfdw +``` diff --git a/ressources/mysqlfdw/debmaker b/ressources/mysqlfdw/debmaker new file mode 100755 index 0000000..1ab1c7f --- /dev/null +++ b/ressources/mysqlfdw/debmaker @@ -0,0 +1,30 @@ +#!/bin/bash + +VERSION=2_9_0 +APP=mysql_fdw +DEPOT=https://github.com/EnterpriseDB/mysql_fdw.git +GIT_VERSION=REL-${VERSION} +DEB_VERSION=$(echo ${VERSION} | sed 's/_/./g' )-$(date +%Y%m%d%H%M) +DEBIAN_VERSION_CODENAME=bookworm +IMAGE_SIZE=4 +PACKAGE_DEPENDENCY="build-essential autoconf libmariadb-dev-compat mariadb-server postgresql-server-dev-15 postgresql" + +main(){ + base_package_upgrade + install_package_dependency + get_git_source + build + makedeb +} + +build() { + cd /tmp/${APP} + make USE_PGXS=1 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/mysqlfdw/rootfs/DEBIAN/changelog b/ressources/mysqlfdw/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/mysqlfdw/rootfs/DEBIAN/control b/ressources/mysqlfdw/rootfs/DEBIAN/control new file mode 100644 index 0000000..e25c029 --- /dev/null +++ b/ressources/mysqlfdw/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: mysqlfdw +Version: %VERSION% +Section: contrib +Priority: optional +Depends: libmariadb-dev-compat +Architecture: all +Maintainer: Thomas Legay +Description: mysql_fdw \ No newline at end of file