aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2004-05-30 00:36:16 +0800
committerume <ume@FreeBSD.org>2004-05-30 00:36:16 +0800
commit6258e87dca62b1ddff61887571b422bd4e63d643 (patch)
tree67b9428745563e87ebf80033ae68b237818c7cd1 /mail
parentafeb4b65e5622ef8c1a79e9754d70627af4ccc56 (diff)
downloadfreebsd-ports-gnome-6258e87dca62b1ddff61887571b422bd4e63d643.tar.gz
freebsd-ports-gnome-6258e87dca62b1ddff61887571b422bd4e63d643.tar.zst
freebsd-ports-gnome-6258e87dca62b1ddff61887571b422bd4e63d643.zip
Since net-snmp-5.X support was added in 2.2.5, change the default
of WITH_SNMP from net-snmp4 to net-snmp. However, if there is net-snmp4 installed, we still use net-snmp4 for backward compatibility.
Diffstat (limited to 'mail')
-rw-r--r--mail/cyrus-imapd22/Makefile17
-rw-r--r--mail/cyrus-imapd22/files/extra-patch-aclocal.m411
-rw-r--r--mail/cyrus-imapd22/files/patch-ac11
-rw-r--r--mail/cyrus-imapd23/Makefile17
-rw-r--r--mail/cyrus-imapd23/files/extra-patch-aclocal.m411
-rw-r--r--mail/cyrus-imapd23/files/patch-ac11
-rw-r--r--mail/cyrus-imapd24/Makefile17
-rw-r--r--mail/cyrus-imapd24/files/extra-patch-aclocal.m411
-rw-r--r--mail/cyrus-imapd24/files/patch-ac11
9 files changed, 108 insertions, 9 deletions
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index 0c5e8e4b8086..555eb20cc5c4 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -110,8 +110,23 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.include <bsd.port.pre.mk>
-.if defined(WITH_SNMP)
+.if !defined(WITH_SNMP_VER) && defined(WITH_SNMP)
+.if exists(${LOCALBASE}/lib/libsnmp.so.6)
+WITH_SNMP_VER= 5
+.elif exists(${LOCALBASE}/lib/libsnmp.so.4)
+WITH_SNMP_VER= 4
+.else
+WITH_SNMP_VER= 5
+.endif
+.endif
+.if defined(WITH_SNMP_VER)
+.if ${WITH_SNMP_VER} == 4
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
+.elif ${WITH_SNMP_VER} == 5
+LIB_DEPENDS+= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
+.else
+BROKEN= "WITH_SNMP_VER must be 4 or 5"
+.endif
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no
diff --git a/mail/cyrus-imapd22/files/extra-patch-aclocal.m4 b/mail/cyrus-imapd22/files/extra-patch-aclocal.m4
index b6cafac0a496..0fb00562c04e 100644
--- a/mail/cyrus-imapd22/files/extra-patch-aclocal.m4
+++ b/mail/cyrus-imapd22/files/extra-patch-aclocal.m4
@@ -1,7 +1,7 @@
Index: aclocal.m4
diff -u aclocal.m4.orig aclocal.m4
--- aclocal.m4.orig Sat May 29 03:08:14 2004
-+++ aclocal.m4 Sat May 29 04:57:43 2004
++++ aclocal.m4 Sat May 29 07:10:54 2004
@@ -505,7 +505,7 @@
BDB_LIBADD=""
fi
@@ -20,6 +20,15 @@ diff -u aclocal.m4.orig aclocal.m4
dblib="no")
CPPFLAGS=$cmu_save_CPPFLAGS
+@@ -1806,7 +1806,7 @@
+
+ if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
+ CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
+- LIB_UCDSNMP=$SNMP_LIBS
++ LIB_UCDSNMP="$SNMP_LIBS -lwrap"
+ AC_DEFINE(HAVE_NETSNMP,1,[Do we have Net-SNMP support?])
+ AC_SUBST(LIB_UCDSNMP)
+ AC_MSG_RESULT(yes)
@@ -1834,7 +1834,7 @@
LIB_UCDSNMP=""
if test "$with_snmp" != no; then
diff --git a/mail/cyrus-imapd22/files/patch-ac b/mail/cyrus-imapd22/files/patch-ac
index d2d3c3c729f7..4f6476d7498a 100644
--- a/mail/cyrus-imapd22/files/patch-ac
+++ b/mail/cyrus-imapd22/files/patch-ac
@@ -1,7 +1,7 @@
Index: configure
diff -u configure.orig configure
--- configure.orig Sat May 29 03:08:17 2004
-+++ configure Sat May 29 04:38:20 2004
++++ configure Sat May 29 06:43:27 2004
@@ -6551,7 +6551,7 @@
BDB_LIBADD=""
fi
@@ -33,6 +33,15 @@ diff -u configure.orig configure
PERL_CCCDLFLAGS="$cccdlflags"
fi
+@@ -14020,7 +14021,7 @@
+
+ if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
+ CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
+- LIB_UCDSNMP=$SNMP_LIBS
++ LIB_UCDSNMP="$SNMP_LIBS -lwrap"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_NETSNMP 1
@@ -14251,7 +14252,7 @@
#define HAVE_UCDSNMP 1
_ACEOF
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile
index 0c5e8e4b8086..555eb20cc5c4 100644
--- a/mail/cyrus-imapd23/Makefile
+++ b/mail/cyrus-imapd23/Makefile
@@ -110,8 +110,23 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.include <bsd.port.pre.mk>
-.if defined(WITH_SNMP)
+.if !defined(WITH_SNMP_VER) && defined(WITH_SNMP)
+.if exists(${LOCALBASE}/lib/libsnmp.so.6)
+WITH_SNMP_VER= 5
+.elif exists(${LOCALBASE}/lib/libsnmp.so.4)
+WITH_SNMP_VER= 4
+.else
+WITH_SNMP_VER= 5
+.endif
+.endif
+.if defined(WITH_SNMP_VER)
+.if ${WITH_SNMP_VER} == 4
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
+.elif ${WITH_SNMP_VER} == 5
+LIB_DEPENDS+= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
+.else
+BROKEN= "WITH_SNMP_VER must be 4 or 5"
+.endif
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no
diff --git a/mail/cyrus-imapd23/files/extra-patch-aclocal.m4 b/mail/cyrus-imapd23/files/extra-patch-aclocal.m4
index b6cafac0a496..0fb00562c04e 100644
--- a/mail/cyrus-imapd23/files/extra-patch-aclocal.m4
+++ b/mail/cyrus-imapd23/files/extra-patch-aclocal.m4
@@ -1,7 +1,7 @@
Index: aclocal.m4
diff -u aclocal.m4.orig aclocal.m4
--- aclocal.m4.orig Sat May 29 03:08:14 2004
-+++ aclocal.m4 Sat May 29 04:57:43 2004
++++ aclocal.m4 Sat May 29 07:10:54 2004
@@ -505,7 +505,7 @@
BDB_LIBADD=""
fi
@@ -20,6 +20,15 @@ diff -u aclocal.m4.orig aclocal.m4
dblib="no")
CPPFLAGS=$cmu_save_CPPFLAGS
+@@ -1806,7 +1806,7 @@
+
+ if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
+ CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
+- LIB_UCDSNMP=$SNMP_LIBS
++ LIB_UCDSNMP="$SNMP_LIBS -lwrap"
+ AC_DEFINE(HAVE_NETSNMP,1,[Do we have Net-SNMP support?])
+ AC_SUBST(LIB_UCDSNMP)
+ AC_MSG_RESULT(yes)
@@ -1834,7 +1834,7 @@
LIB_UCDSNMP=""
if test "$with_snmp" != no; then
diff --git a/mail/cyrus-imapd23/files/patch-ac b/mail/cyrus-imapd23/files/patch-ac
index d2d3c3c729f7..4f6476d7498a 100644
--- a/mail/cyrus-imapd23/files/patch-ac
+++ b/mail/cyrus-imapd23/files/patch-ac
@@ -1,7 +1,7 @@
Index: configure
diff -u configure.orig configure
--- configure.orig Sat May 29 03:08:17 2004
-+++ configure Sat May 29 04:38:20 2004
++++ configure Sat May 29 06:43:27 2004
@@ -6551,7 +6551,7 @@
BDB_LIBADD=""
fi
@@ -33,6 +33,15 @@ diff -u configure.orig configure
PERL_CCCDLFLAGS="$cccdlflags"
fi
+@@ -14020,7 +14021,7 @@
+
+ if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
+ CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
+- LIB_UCDSNMP=$SNMP_LIBS
++ LIB_UCDSNMP="$SNMP_LIBS -lwrap"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_NETSNMP 1
@@ -14251,7 +14252,7 @@
#define HAVE_UCDSNMP 1
_ACEOF
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index 0c5e8e4b8086..555eb20cc5c4 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -110,8 +110,23 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.include <bsd.port.pre.mk>
-.if defined(WITH_SNMP)
+.if !defined(WITH_SNMP_VER) && defined(WITH_SNMP)
+.if exists(${LOCALBASE}/lib/libsnmp.so.6)
+WITH_SNMP_VER= 5
+.elif exists(${LOCALBASE}/lib/libsnmp.so.4)
+WITH_SNMP_VER= 4
+.else
+WITH_SNMP_VER= 5
+.endif
+.endif
+.if defined(WITH_SNMP_VER)
+.if ${WITH_SNMP_VER} == 4
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
+.elif ${WITH_SNMP_VER} == 5
+LIB_DEPENDS+= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
+.else
+BROKEN= "WITH_SNMP_VER must be 4 or 5"
+.endif
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no
diff --git a/mail/cyrus-imapd24/files/extra-patch-aclocal.m4 b/mail/cyrus-imapd24/files/extra-patch-aclocal.m4
index b6cafac0a496..0fb00562c04e 100644
--- a/mail/cyrus-imapd24/files/extra-patch-aclocal.m4
+++ b/mail/cyrus-imapd24/files/extra-patch-aclocal.m4
@@ -1,7 +1,7 @@
Index: aclocal.m4
diff -u aclocal.m4.orig aclocal.m4
--- aclocal.m4.orig Sat May 29 03:08:14 2004
-+++ aclocal.m4 Sat May 29 04:57:43 2004
++++ aclocal.m4 Sat May 29 07:10:54 2004
@@ -505,7 +505,7 @@
BDB_LIBADD=""
fi
@@ -20,6 +20,15 @@ diff -u aclocal.m4.orig aclocal.m4
dblib="no")
CPPFLAGS=$cmu_save_CPPFLAGS
+@@ -1806,7 +1806,7 @@
+
+ if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
+ CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
+- LIB_UCDSNMP=$SNMP_LIBS
++ LIB_UCDSNMP="$SNMP_LIBS -lwrap"
+ AC_DEFINE(HAVE_NETSNMP,1,[Do we have Net-SNMP support?])
+ AC_SUBST(LIB_UCDSNMP)
+ AC_MSG_RESULT(yes)
@@ -1834,7 +1834,7 @@
LIB_UCDSNMP=""
if test "$with_snmp" != no; then
diff --git a/mail/cyrus-imapd24/files/patch-ac b/mail/cyrus-imapd24/files/patch-ac
index d2d3c3c729f7..4f6476d7498a 100644
--- a/mail/cyrus-imapd24/files/patch-ac
+++ b/mail/cyrus-imapd24/files/patch-ac
@@ -1,7 +1,7 @@
Index: configure
diff -u configure.orig configure
--- configure.orig Sat May 29 03:08:17 2004
-+++ configure Sat May 29 04:38:20 2004
++++ configure Sat May 29 06:43:27 2004
@@ -6551,7 +6551,7 @@
BDB_LIBADD=""
fi
@@ -33,6 +33,15 @@ diff -u configure.orig configure
PERL_CCCDLFLAGS="$cccdlflags"
fi
+@@ -14020,7 +14021,7 @@
+
+ if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
+ CPPFLAGS="$CPPFLAGS -I${SNMP_PREFIX}/include"
+- LIB_UCDSNMP=$SNMP_LIBS
++ LIB_UCDSNMP="$SNMP_LIBS -lwrap"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_NETSNMP 1
@@ -14251,7 +14252,7 @@
#define HAVE_UCDSNMP 1
_ACEOF