1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Fix SNMP support by adding OpenSSL libs (net-snmp has an hidden

dependency to OpenSSL)

- USE_OPENSSL for PostgreSQL and SNMP support
This commit is contained in:
Dirk Froemberg 2001-03-11 15:29:48 +00:00
parent ff8ae451ce
commit 80fbae31e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39591
2 changed files with 10 additions and 12 deletions

View File

@ -107,8 +107,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"
if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres 2> /dev/null | /usr/bin/grep -q "libssl"; then
echo "USE_OPENSSL= yes"
LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl"
fi
;;
\"SybaseDB\")
@ -143,12 +144,10 @@ while [ "$1" ]; do
fi
;;
\"SNMP\")
echo "SNMP is DISABLED for now. Ignoring." > /dev/stderr
;;
\"nothing\")
echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp"
echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack"
echo "USE_OPENSSL= yes"
LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl"
;;
\"XML\")
echo "BUILD_DEPENDS+= \${PREFIX}/lib/libexpat.a:\${PORTSDIR}/textproc/expat"

View File

@ -107,8 +107,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"
if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres 2> /dev/null | /usr/bin/grep -q "libssl"; then
echo "USE_OPENSSL= yes"
LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl"
fi
;;
\"SybaseDB\")
@ -143,12 +144,10 @@ while [ "$1" ]; do
fi
;;
\"SNMP\")
echo "SNMP is DISABLED for now. Ignoring." > /dev/stderr
;;
\"nothing\")
echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp"
echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack"
echo "USE_OPENSSL= yes"
LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl"
;;
\"XML\")
echo "BUILD_DEPENDS+= \${PREFIX}/lib/libexpat.a:\${PORTSDIR}/textproc/expat"