mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
Quick and dirty hack to fix build if postgresql is build with ssl
support. PR: ports/23588
This commit is contained in:
parent
6f3359592f
commit
a2df0a9f40
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36422
3 changed files with 24 additions and 3 deletions
|
@ -97,6 +97,9 @@ while [ "$1" ]; do
|
|||
\"PostgreSQL\")
|
||||
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
|
||||
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
|
||||
if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then
|
||||
LIBS="-lcrypto -lssl"
|
||||
fi
|
||||
;;
|
||||
\"SybaseDB\")
|
||||
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
|
||||
|
@ -126,7 +129,7 @@ while [ "$1" ]; do
|
|||
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
|
||||
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
|
||||
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
|
||||
echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
|
||||
LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
|
||||
fi
|
||||
;;
|
||||
\"SNMP\")
|
||||
|
@ -154,3 +157,7 @@ while [ "$1" ]; do
|
|||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ "${LIBS}" ]; then
|
||||
echo "CONFIGURE_ENV+= LIBS='${LIBS}'"
|
||||
fi
|
||||
|
|
|
@ -101,6 +101,9 @@ while [ "$1" ]; do
|
|||
\"PostgreSQL\")
|
||||
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
|
||||
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
|
||||
if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then
|
||||
LIBS="-lcrypto -lssl"
|
||||
fi
|
||||
;;
|
||||
\"SybaseDB\")
|
||||
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
|
||||
|
@ -130,7 +133,7 @@ while [ "$1" ]; do
|
|||
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
|
||||
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
|
||||
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
|
||||
echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
|
||||
LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
|
||||
fi
|
||||
;;
|
||||
\"SNMP\")
|
||||
|
@ -177,3 +180,7 @@ EOF
|
|||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ "${LIBS}" ]; then
|
||||
echo "CONFIGURE_ENV+= LIBS='${LIBS}'"
|
||||
fi
|
||||
|
|
|
@ -101,6 +101,9 @@ while [ "$1" ]; do
|
|||
\"PostgreSQL\")
|
||||
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
|
||||
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
|
||||
if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then
|
||||
LIBS="-lcrypto -lssl"
|
||||
fi
|
||||
;;
|
||||
\"SybaseDB\")
|
||||
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
|
||||
|
@ -130,7 +133,7 @@ while [ "$1" ]; do
|
|||
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
|
||||
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
|
||||
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
|
||||
echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
|
||||
LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
|
||||
fi
|
||||
;;
|
||||
\"SNMP\")
|
||||
|
@ -177,3 +180,7 @@ EOF
|
|||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ "${LIBS}" ]; then
|
||||
echo "CONFIGURE_ENV+= LIBS='${LIBS}'"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue