1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Add spfval.

Spfval validates SPF records. It does not check them via the network, this was
intentionally omitted in favour of focusing purely on syntactically validating
SPF records. Simply pass the validator a string and it will see if it validates
as an SPFv1 or SPF-Classic record.

If an error is found, it tries its best to report the error in question and the
specific location in the record where the error occured.

WWW: http://spfval.codeshare.ca/

PR:		ports/83899
Submitted by:	Emanuel Haupt <ehaupt@critical.ch>
This commit is contained in:
Jean-Yves Lefort 2005-07-25 05:51:35 +00:00
parent d075de0076
commit 89752096b8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140057
6 changed files with 59 additions and 0 deletions

View File

@ -485,6 +485,7 @@
SUBDIR += spampd
SUBDIR += spamprobe
SUBDIR += spamstats
SUBDIR += spfval
SUBDIR += spruce
SUBDIR += sqlgrey
SUBDIR += squirrelmail

24
mail/spfval/Makefile Normal file
View File

@ -0,0 +1,24 @@
# New ports collection makefile for: spfval
# Date created: 22 Jul 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= spfval
PORTVERSION= 0.0.1
CATEGORIES= mail
MASTER_SITES= http://spfval.codeshare.ca/files/
MAINTAINER= ehaupt@critical.ch
COMMENT= A SPF validator
USE_BZIP2= yes
GNU_CONFIGURE= yes
PLIST_FILES= bin/spfval
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/spfval ${PREFIX}/bin
.include <bsd.port.mk>

2
mail/spfval/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (spfval-0.0.1.tar.bz2) = 512b0c3cb4020a6a1b2584f7e4b85700
SIZE (spfval-0.0.1.tar.bz2) = 131635

View File

@ -0,0 +1,10 @@
--- src/spfval/spfval.c.orig Mon Jul 25 07:46:21 2005
+++ src/spfval/spfval.c Mon Jul 25 07:46:30 2005
@@ -44,6 +44,7 @@
#include <stdio.h> /* printf */
#include <stdlib.h> /* malloc / free */
#include <string.h> /* printf */
+#include <sys/types.h>
#include <sys/socket.h> /* inet_ntoa */
#include <netinet/in.h> /* inet_ntoa / ntohl */
#include <arpa/inet.h> /* inet_ntoa */

View File

@ -0,0 +1,10 @@
--- src/spfval/util.h.orig Mon Jul 25 07:43:56 2005
+++ src/spfval/util.h Mon Jul 25 07:44:25 2005
@@ -45,6 +45,7 @@
#define _UTIL_H 1
#include <stdlib.h> /* malloc / free */
+#include <sys/types.h>
#include <netinet/in.h> /* in_addr struct fBSD */
#include <arpa/inet.h> /* in_addr struct */

12
mail/spfval/pkg-descr Normal file
View File

@ -0,0 +1,12 @@
Spfval validates SPF records. It does not check them via the network, this was
intentionally omitted in favour of focusing purely on syntactically validating
SPF records. Simply pass the validator a string and it will see if it validates
as an SPFv1 or SPF-Classic record.
If an error is found, it tries its best to report the error in question and the
specific location in the record where the error occured.
WWW: http://spfval.codeshare.ca/
- ehaupt
ehaupt@critical.ch