Add mysqlfdw
This commit is contained in:
parent
3fe05c2313
commit
f33c5da59c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
```
|
|
@ -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
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue