From b4f6bf553d39786ae442454246b570639be4a7cf Mon Sep 17 00:00:00 2001 From: milisarge Date: Sun, 11 Jun 2017 13:28:31 +0300 Subject: [PATCH] pgadmin3.paketlendi --- ayarlar/gerekli_programlar | 1 + .../pgadmin3/pgadmin3-fix-segfault.patch | 11 ++++++++++ talimatname/genel/pgadmin3/talimat | 20 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 talimatname/genel/pgadmin3/pgadmin3-fix-segfault.patch create mode 100644 talimatname/genel/pgadmin3/talimat diff --git a/ayarlar/gerekli_programlar b/ayarlar/gerekli_programlar index bea311ea9..7a2b2f918 100644 --- a/ayarlar/gerekli_programlar +++ b/ayarlar/gerekli_programlar @@ -1,4 +1,5 @@ grub +dmidecode start-stop-daemon dejavu-ttf xorriso diff --git a/talimatname/genel/pgadmin3/pgadmin3-fix-segfault.patch b/talimatname/genel/pgadmin3/pgadmin3-fix-segfault.patch new file mode 100644 index 000000000..1396f8de8 --- /dev/null +++ b/talimatname/genel/pgadmin3/pgadmin3-fix-segfault.patch @@ -0,0 +1,11 @@ +--- a/pgadmin/frm/plugins.cpp ++++ b/pgadmin/frm/plugins.cpp +@@ -380,7 +380,7 @@ bool pluginUtilityFactory::CheckEnable(p + { + // If we need a specific server type, we can't enable unless + // we have a connection. +- if (!obj || !(obj->GetConnection()->GetStatus() == PGCONN_OK)) ++ if (!obj || !obj->GetConnection() || !(obj->GetConnection()->GetStatus() == PGCONN_OK)) + return false; + + // Get the server type. diff --git a/talimatname/genel/pgadmin3/talimat b/talimatname/genel/pgadmin3/talimat new file mode 100644 index 000000000..8d39a6eb6 --- /dev/null +++ b/talimatname/genel/pgadmin3/talimat @@ -0,0 +1,20 @@ +# Description: PostgreSQL administration gui frontend +# URL: http://www.pgadmin.org/ +# Packager: milisarge +# Depends on: wxgtk postgresql libgcrypt libxslt libxml2 libnotify + +name=pgadmin3 +version=1.22.2 +release=1 +source=(https://github.com/postgres/pgadmin3/archive/REL-1_22_2.tar.gz + pgadmin3-fix-segfault.patch) + +build() { + cd $name-REL-1_22_2 + bash bootstrap + patch -p1 -i $SRC/pgadmin3-fix-segfault.patch + ./configure --prefix=/usr --with-wx-version=3.0 --with-libgcrypt + make all + make DESTDIR=$PKG install + find $PKG/usr/share/pgadmin3/docs/* ! -wholename "*tr_TR*" | xargs rm -rf +}