summaryrefslogtreecommitdiffstats
path: root/mail/libspf2
diff options
context:
space:
mode:
authorvsevolod <vsevolod@FreeBSD.org>2005-09-11 21:26:39 +0000
committervsevolod <vsevolod@FreeBSD.org>2005-09-11 21:26:39 +0000
commitcc392818344fe80f757051b4137e543bf3070e41 (patch)
tree7d0d07baf8c707aad0212679b7852bb76d3cfa8c /mail/libspf2
parent9ce51103f5bf4332e231a337196e386ea87fecfc (diff)
downloadFreeBSD-ports-cc392818344fe80f757051b4137e543bf3070e41.zip
FreeBSD-ports-cc392818344fe80f757051b4137e543bf3070e41.tar.gz
Completing repo-copy of mail/libspf2 to mail/libspf2-10.
PR: 85000 Submitted by: Marcus Grando <marcus@corp.grupos.com.br> Repocopy by: marcus
Diffstat (limited to 'mail/libspf2')
-rw-r--r--mail/libspf2/Makefile8
-rw-r--r--mail/libspf2/distinfo4
-rw-r--r--mail/libspf2/files/patch-configure54
-rw-r--r--mail/libspf2/files/patch-src_include_spf__server.h10
-rw-r--r--mail/libspf2/files/patch-src_libspf2_spf__dns__resolv.c28
-rw-r--r--mail/libspf2/files/patch-src_libspf2_spf__dns__rr.c11
-rw-r--r--mail/libspf2/files/patch-src_libspf2_spf__request.c12
-rw-r--r--mail/libspf2/files/patch-src_libspf2_spf__response.c12
-rw-r--r--mail/libspf2/files/patch-src_spf__example_spf__example.c69
-rw-r--r--mail/libspf2/files/patch-src_spfquery_spfquery.c11
-rw-r--r--mail/libspf2/pkg-descr14
-rw-r--r--mail/libspf2/pkg-plist10
12 files changed, 230 insertions, 13 deletions
diff --git a/mail/libspf2/Makefile b/mail/libspf2/Makefile
index 8141923..42e9c92 100644
--- a/mail/libspf2/Makefile
+++ b/mail/libspf2/Makefile
@@ -6,16 +6,18 @@
#
PORTNAME= libspf2
-PORTVERSION= 1.0.4
+PORTVERSION= 1.2.5
CATEGORIES= mail
MASTER_SITES= http://www.libspf2.org/%SUBDIR%/
MASTER_SITE_SUBDIR= spf
-MAINTAINER= mail-libspf2-freebsd-ports@snowchyld.org
+MAINTAINER= marcus@corp.grupos.com.br
COMMENT= Sender Rewriting Scheme 2 C Implementation
+CONFLICTS= ${PORTNAME}-1.0.*
+
INSTALLS_SHLIB= yes
-GNU_CONFIGURE= yes
+HAS_CONFIGURE= yes
USE_LIBTOOL_VER= 15
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
diff --git a/mail/libspf2/distinfo b/mail/libspf2/distinfo
index f7fc71c..04246a3 100644
--- a/mail/libspf2/distinfo
+++ b/mail/libspf2/distinfo
@@ -1,2 +1,2 @@
-MD5 (libspf2-1.0.4.tar.gz) = 5fe69ba13bf35d505b733247032a8a64
-SIZE (libspf2-1.0.4.tar.gz) = 427613
+MD5 (libspf2-1.2.5.tar.gz) = 06ed6a3b0b54c8590679315ae2d28ad9
+SIZE (libspf2-1.2.5.tar.gz) = 517945
diff --git a/mail/libspf2/files/patch-configure b/mail/libspf2/files/patch-configure
new file mode 100644
index 0000000..11f7b2a
--- /dev/null
+++ b/mail/libspf2/files/patch-configure
@@ -0,0 +1,54 @@
+--- configure.orig Wed Feb 23 23:14:51 2005
++++ configure Thu Jul 28 20:12:32 2005
+@@ -19332,10 +19332,10 @@
+
+
+ # This can be used to rebuild libtool when needed
+-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool15/ltmain.sh"
+
+ # Always use our own libtool.
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
++LIBTOOL='$(SHELL) /usr/local/bin/libtool15'
+
+ # Prevent multiple expansion
+
+@@ -22349,13 +22349,13 @@
+ fi
+
+
+-echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
+-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
++echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
++echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6
+ if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lpthread $LIBS"
++LIBS="-pthread $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -22418,7 +22418,7 @@
+ #define HAVE_LIBPTHREAD 1
+ _ACEOF
+
+- LIBS="-lpthread $LIBS"
++ LIBS="-pthread $LIBS"
+
+ fi
+
+@@ -23661,12 +23661,6 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+
+- #ifdef HAVE_SYS_SOCKET_H
+- # include <sys/socket.h> /* inet_ functions / structs */
+- #endif
+- #ifdef HAVE_NETINET_IN_H
+- # include <netinet/in.h> /* inet_ functions / structs */
+- #endif
+ #ifdef HAVE_ARPA_NAMESER_H
+ # include <arpa/nameser.h> /* DNS HEADER struct */
+ #endif
diff --git a/mail/libspf2/files/patch-src_include_spf__server.h b/mail/libspf2/files/patch-src_include_spf__server.h
new file mode 100644
index 0000000..2feb8fe
--- /dev/null
+++ b/mail/libspf2/files/patch-src_include_spf__server.h
@@ -0,0 +1,10 @@
+--- src/include/spf_server.h.orig Thu Jul 28 18:35:53 2005
++++ src/include/spf_server.h Thu Jul 28 18:35:59 2005
+@@ -20,7 +20,6 @@
+
+ #include "spf_record.h"
+ #include "spf_dns.h"
+-#include "spf_dns_internal.h"
+
+ #ifndef SPF_MAX_DNS_MECH
+ /* It is a bad idea to change this for two reasons.
diff --git a/mail/libspf2/files/patch-src_libspf2_spf__dns__resolv.c b/mail/libspf2/files/patch-src_libspf2_spf__dns__resolv.c
new file mode 100644
index 0000000..f04ac01
--- /dev/null
+++ b/mail/libspf2/files/patch-src_libspf2_spf__dns__resolv.c
@@ -0,0 +1,28 @@
+--- src/libspf2/spf_dns_resolv.c.orig Wed Mar 2 22:59:01 2005
++++ src/libspf2/spf_dns_resolv.c Wed Mar 2 23:01:06 2005
+@@ -77,7 +77,9 @@
+ static void
+ SPF_dns_resolv_thread_term(void *arg)
+ {
++#if HAVE_DECL_RES_NINIT
+ res_nclose( (struct __res_state *)arg );
++#endif
+ free(arg);
+ }
+
+@@ -144,9 +146,15 @@
+ if (res_spec == NULL) {
+ res_state = (struct __res_state *)
+ malloc(sizeof(struct __res_state));
++#if HAVE_DECL_RES_NINIT
+ if (res_ninit(res_state) != 0) {
+ SPF_error("Failed to call res_ninit()");
+ }
++#else
++ if (res_init() != 0) {
++ SPF_error("Failed to call res_init()");
++ }
++#endif
+ pthread_setspecific(res_state_key, (void *)res_state);
+ }
+ else {
diff --git a/mail/libspf2/files/patch-src_libspf2_spf__dns__rr.c b/mail/libspf2/files/patch-src_libspf2_spf__dns__rr.c
new file mode 100644
index 0000000..4a12b19
--- /dev/null
+++ b/mail/libspf2/files/patch-src_libspf2_spf__dns__rr.c
@@ -0,0 +1,11 @@
+--- src/libspf2/spf_dns_rr.c.orig Thu Jul 28 18:40:13 2005
++++ src/libspf2/spf_dns_rr.c Thu Jul 28 18:40:29 2005
+@@ -45,7 +45,7 @@
+ const char *domain)
+ {
+ return SPF_dns_rr_new_init(spf_dns_server,
+- domain, ns_t_any, 0, NXDOMAIN);
++ domain, ns_t_any, 0, HOST_NOT_FOUND);
+ }
+
+ SPF_dns_rr_t *
diff --git a/mail/libspf2/files/patch-src_libspf2_spf__request.c b/mail/libspf2/files/patch-src_libspf2_spf__request.c
new file mode 100644
index 0000000..21eff88
--- /dev/null
+++ b/mail/libspf2/files/patch-src_libspf2_spf__request.c
@@ -0,0 +1,12 @@
+--- src/libspf2/spf_request.c.orig Mon Feb 21 23:38:57 2005
++++ src/libspf2/spf_request.c Mon Mar 28 10:37:52 2005
+@@ -307,6 +307,9 @@
+ char *record;
+ size_t len;
+
++ if ( (spf_request == NULL) || (rcpt_to == NULL) )
++ return SPF_E_INVALID_OPT;
++
+ SPF_ASSERT_NOTNULL(spf_request);
+ spf_server = spf_request->spf_server;
+ SPF_ASSERT_NOTNULL(spf_server);
diff --git a/mail/libspf2/files/patch-src_libspf2_spf__response.c b/mail/libspf2/files/patch-src_libspf2_spf__response.c
new file mode 100644
index 0000000..7a2f018
--- /dev/null
+++ b/mail/libspf2/files/patch-src_libspf2_spf__response.c
@@ -0,0 +1,12 @@
+--- src/libspf2/spf_response.c.orig Tue Oct 19 11:05:19 2004
++++ src/libspf2/spf_response.c Mon Mar 28 10:58:26 2005
+@@ -132,6 +132,9 @@
+ SPF_result_t
+ SPF_response_result(SPF_response_t *rp)
+ {
++ if (rp == NULL)
++ return SPF_RESULT_NONE;
++
+ return rp->result;
+ }
+
diff --git a/mail/libspf2/files/patch-src_spf__example_spf__example.c b/mail/libspf2/files/patch-src_spf__example_spf__example.c
new file mode 100644
index 0000000..0ccf053
--- /dev/null
+++ b/mail/libspf2/files/patch-src_spf__example_spf__example.c
@@ -0,0 +1,69 @@
+--- src/spf_example/spf_example.c.orig Mon Mar 28 14:17:20 2005
++++ src/spf_example/spf_example.c Mon Mar 28 14:22:46 2005
+@@ -90,17 +90,17 @@
+ "\n"
+ "Valid data options are:\n"
+ " -i <IP address> The IP address that is sending email\n"
+- " -s <email address> The email address used as the\n"
+- " envelope-from. If no username (local\n"
+- " part) is given, 'postmaster' will be\n"
+- " assumed.\n"
+- " -r <email address> [optional] The email address used as\n"
+- " the envelope-to email address, for\n"
+- " secondary-MX checking.\n"
+- " -h <domain name> The domain name given on the SMTP HELO\n"
+- " command. This is only needed if the\n"
+- " -sender option is not given.\n"
+- " -d [debug level] debug level.\n"
++ " -s <email address> The email address used as the\n"
++ " envelope-from. If no username (local\n"
++ " part) is given, 'postmaster' will be\n"
++ " assumed.\n"
++ " -r <email address> [optional] The email address used as\n"
++ " the envelope-to email address, for\n"
++ " secondary-MX checking.\n"
++ " -h <domain name> The domain name given on the SMTP HELO\n"
++ " command. This is only needed if the\n"
++ " -sender option is not given.\n"
++ " -d [debug level] debug level.\n"
+ );
+ }
+
+@@ -206,7 +206,7 @@
+ * destroyed when you are finished.
+ */
+
+- spf_server = SPF_server_new(SPF_DNS_CACHE, 1);
++ spf_server = SPF_server_new(SPF_DNS_CACHE, opt_debug);
+
+ if (spf_server == NULL) {
+ fprintf( stderr, "SPF_create_config failed.\n" );
+@@ -264,10 +264,24 @@
+ * message.
+ */
+
+- if ( SPF_request_set_helo_dom( spf_request, opt_helo ) ) {
+- printf( "Invalid HELO domain.\n" );
+- res = 255;
+- goto error;
++ if (opt_helo == NULL) {
++ if (opt_sender != NULL) {
++ if (strstr(opt_sender, "@") != NULL) {
++ opt_helo = strdup(strstr(opt_sender, "@") + 1);
++
++ if ( SPF_request_set_helo_dom( spf_request, opt_helo ) ) {
++ printf( "Invalid HELO domain.\n" );
++ res = 255;
++ goto error;
++ }
++ }
++ }
++ } else {
++ if ( SPF_request_set_helo_dom( spf_request, opt_helo ) ) {
++ printf( "Invalid HELO domain.\n" );
++ res = 255;
++ goto error;
++ }
+ }
+
+ /*
diff --git a/mail/libspf2/files/patch-src_spfquery_spfquery.c b/mail/libspf2/files/patch-src_spfquery_spfquery.c
new file mode 100644
index 0000000..133a2e5
--- /dev/null
+++ b/mail/libspf2/files/patch-src_spfquery_spfquery.c
@@ -0,0 +1,11 @@
+--- src/spfquery/spfquery.c.orig Thu Jul 28 19:04:46 2005
++++ src/spfquery/spfquery.c Thu Jul 28 19:04:54 2005
+@@ -261,7 +261,7 @@
+ response_print_errors(const char *context,
+ SPF_response_t *spf_response, SPF_errcode_t err)
+ {
+- SPF_error_t *spf_error;;
++ SPF_error_t *spf_error;
+ int i;
+
+ printf("StartError\n");
diff --git a/mail/libspf2/pkg-descr b/mail/libspf2/pkg-descr
index 8643c91..5c5bb52 100644
--- a/mail/libspf2/pkg-descr
+++ b/mail/libspf2/pkg-descr
@@ -1,6 +1,10 @@
-libsrs2 is the next generation SRS library from the original designer of SRS.
-It implements the Sender Rewriting Scheme, a part of the SPF/SRS protocol pair.
+libspf2 implements the Sender Policy Framework, a part of the SPF/SRS
+protocol pair. libspf2 is a library which allows email systems such as
+Sendmail, Postfix, Exim, Zmailer and MS Exchange to check SPF records
+and make sure that the email is authorized by the domain name that it
+is coming from. This prevents email forgery, commonly used by spammers,
+scammers and email viruses/worms.
-WWW: http://www.libsrs2.org/
-- snowchyld
- <mail-libsrs2-freebsd-ports@snowchyld.org>
+WWW: http://www.libspf2.org/
+
+snowchyld <mail-libsrs2-freebsd-ports@snowchyld.org>
diff --git a/mail/libspf2/pkg-plist b/mail/libspf2/pkg-plist
index 73bf799..1fc3a9a 100644
--- a/mail/libspf2/pkg-plist
+++ b/mail/libspf2/pkg-plist
@@ -1,6 +1,4 @@
bin/spf_example
-bin/spf_example_2mx
-bin/spf_example_2mx_static
bin/spf_example_static
bin/spfd
bin/spfd_static
@@ -13,10 +11,16 @@ include/spf2/spf_dns.h
include/spf2/spf_dns_cache.h
include/spf2/spf_dns_null.h
include/spf2/spf_dns_resolv.h
+include/spf2/spf_dns_rr.h
include/spf2/spf_dns_test.h
include/spf2/spf_dns_zone.h
include/spf2/spf_lib_version.h
+include/spf2/spf_log.h
+include/spf2/spf_record.h
+include/spf2/spf_request.h
+include/spf2/spf_response.h
+include/spf2/spf_server.h
@dirrm include/spf2
lib/libspf2.a
lib/libspf2.so
-lib/libspf2.so.1
+lib/libspf2.so.2
OpenPOWER on IntegriCloud