Commit 9cd5bc5d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play add pgadmin4

parent eb320035
#!/bin/sh
PKGNAME=pgadmin4
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="pgadmin4"
if [ "$1" = "--remove" ] ; then
epm remove pgadmin4-server pgadmin4-desktop
exit
fi
. $(dirname $0)/common.sh
[ "$VERSION" = "*" ] || VERSION="$VERSION-1"
BASEURL=https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/redhat/rhel-8Workstation-x86_64
repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
pkgarch='x86_64'
epm $repack install $BASEURL/pgadmin4-server-$VERSION.el8.$pkgarch.rpm $BASEURL/pgadmin4-desktop-$VERSION.el8.$pkgarch.rpm
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=pgadmin4
PRODUCTDIR=/opt/pgadmin4
UNIREQUIRES="xdg-utils libatomic.so.1"
. $(dirname $0)/common.sh
move_to_opt /usr/pgadmin4
VERSION=$(grep "^Version:" $SPEC | sed -e "s|Version: ||")
add_requires pgadmin4-server = $VERSION
fix_desktop_file /usr/pgadmin4/bin/pgadmin4
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
UNIREQUIRES="python3 libkrb5.so.3 libpq.so.5"
. $(dirname $0)/common.sh
move_to_opt /usr/pgadmin4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment