Add mysqlfdw

This commit is contained in:
Thomas Legay 2023-06-13 17:25:30 +02:00
parent 3fe05c2313
commit f33c5da59c
5 changed files with 54 additions and 0 deletions

View File

@ -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)

View File

@ -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
```

30
ressources/mysqlfdw/debmaker Executable file
View File

@ -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
}

View File

@ -0,0 +1,8 @@
Package: mysqlfdw
Version: %VERSION%
Section: contrib
Priority: optional
Depends: libmariadb-dev-compat
Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: mysql_fdw