diff options
author | dirk <dirk@FreeBSD.org> | 2001-03-11 23:29:48 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2001-03-11 23:29:48 +0800 |
commit | 30373435760dcc8817d304253ccf31584d06595f (patch) | |
tree | 9ee2de6d1c7b6e012306a2abc5bd5741328781ac /www | |
parent | cecc40fcfc8d35f0c425e11edaf24e8d177c78b3 (diff) | |
download | freebsd-ports-gnome-30373435760dcc8817d304253ccf31584d06595f.tar.gz freebsd-ports-gnome-30373435760dcc8817d304253ccf31584d06595f.tar.zst freebsd-ports-gnome-30373435760dcc8817d304253ccf31584d06595f.zip |
- Fix SNMP support by adding OpenSSL libs (net-snmp has an hidden
dependency to OpenSSL)
- USE_OPENSSL for PostgreSQL and SNMP support
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_php4/scripts/configure.php | 11 | ||||
-rw-r--r-- | www/mod_php5/scripts/configure.php | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php index 10fbfbec5abb..664c7de99291 100644 --- a/www/mod_php4/scripts/configure.php +++ b/www/mod_php4/scripts/configure.php @@ -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" diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php index 10fbfbec5abb..664c7de99291 100644 --- a/www/mod_php5/scripts/configure.php +++ b/www/mod_php5/scripts/configure.php @@ -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" |