ports/security/clamav/files/patch-configure
Renato Botelho 37c88c8e12 - Update security/clamav to 0.94 [1] and fix a remote DoS [2]
- Chase libclamav version bump on all dependant ports
- Bump necessary PORTREVISIONS
- Fix some BROKEN messages from ports that were already broken with clamav-0.93
- Mark security/klamav as BROKEN since it doesn't build with clamav-0.94

PR:		ports/127122 [1], ports/127310 [2]
Submitted by:	Gary Palmer <freebsd-gnats@in-addr.com> [1], delphij [2]
Approved by:	portmgr (pav)
2008-09-15 19:56:38 +00:00

46 lines
1.2 KiB
Text

--- configure.orig 2008-09-01 15:41:18.000000000 -0300
+++ configure 2008-09-05 08:57:53.000000000 -0300
@@ -16571,7 +16571,7 @@
;;
freebsd*)
if test "$have_pthreads" = "yes"; then
- THREAD_LIBS="-lthr"
+ THREAD_LIBS="%%PTHREAD_LIBS%%"
TH_SAFE="-thread-safe"
cat >>confdefs.h <<\_ACEOF
@@ -16931,7 +16931,7 @@
if test "$have_milter" = "yes"; then
save_LDFLAGS="$LDFLAGS"
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
+ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $THREAD_LIBS"
if test -d /usr/lib/libmilter ; then
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
fi
@@ -17468,19 +17468,25 @@
sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'`
+if echo "$sendmailver_a" | egrep -q '^[0-9]+$'; then
cat >>confdefs.h <<_ACEOF
#define SENDMAIL_VERSION_A $sendmailver_a
_ACEOF
+fi
+if echo "$sendmailver_b" | egrep -q '^[0-9]+$'; then
cat >>confdefs.h <<_ACEOF
#define SENDMAIL_VERSION_B $sendmailver_b
_ACEOF
+fi
+if echo "$sendmailver_c" | egrep -q '^[0-9]+$'; then
cat >>confdefs.h <<_ACEOF
#define SENDMAIL_VERSION_C $sendmailver_c
_ACEOF
+fi
fi
if test "x$ac_cv_have_lresolv_r" != "xyes"; then