ports/83899: new port: dns/spfval - A SPF validator

Emanuel Haupt ehaupt at critical.ch
Fri Jul 22 10:42:08 UTC 2005


>Number:         83899
>Category:       ports
>Synopsis:       new port: dns/spfval - A SPF validator
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 22 10:40:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD admin.critical.ch 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Jun 30 09:36:40 CEST 2005 root at admin.critical.ch:/usr/obj/usr/src-release/src/sys/GENERIC i386


	
>Description:
new port: dns/spfval - A SPF validator

Spfval validates SPF records. It does not check them via 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.

- it is currently broken under 4.x


>How-To-Repeat:
	
>Fix:

	



--- spfval.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	spfval
#	spfval/Makefile
#	spfval/pkg-descr
#	spfval/distinfo
#	spfval/files
#	spfval/files/patch-src_spfval_util.h
#
echo c - spfval
mkdir -p spfval > /dev/null 2>&1
echo x - spfval/Makefile
sed 's/^X//' >spfval/Makefile << 'END-of-spfval/Makefile'
X# New ports collection makefile for:	spfval
X# Date created:				22 Jul 2005
X# Whom:					Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	spfval
XPORTVERSION=	0.0.1
XCATEGORIES=	dns mail
XMASTER_SITES=	http://spfval.codeshare.ca/files/
X
XMAINTAINER=	ehaupt at critical.ch
XCOMMENT=	A SPF validator
X
XUSE_LIBTOOL_VER=15
X
XPORTDOCS=	ChangeLog FAQ README TODO
XPLIST_FILES=	bin/spfval
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500000
XBROKEN=		"Does not compile on FreeBSD 4.x"
X.endif
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-spfval/Makefile
echo x - spfval/pkg-descr
sed 's/^X//' >spfval/pkg-descr << 'END-of-spfval/pkg-descr'
XSpfval validates SPF records. It does not check them via network, this was
Xintentionally omitted in favour of focusing purely on syntactically validating
XSPF records. Simply pass the validator a string and it will see if it validates
Xas an SPFv1 or SPF-Classic record.
X
XIf an error is found, it tries its best to report the error in question and the
Xspecific location in the record where the error occured.
X
XWWW: http://spfval.codeshare.ca/
X
X- ehaupt
Xehaupt at critical.ch
END-of-spfval/pkg-descr
echo x - spfval/distinfo
sed 's/^X//' >spfval/distinfo << 'END-of-spfval/distinfo'
XMD5 (spfval-0.0.1.tar.gz) = 022306311f5e27400b975a37625cc5e8
XSIZE (spfval-0.0.1.tar.gz) = 178331
END-of-spfval/distinfo
echo c - spfval/files
mkdir -p spfval/files > /dev/null 2>&1
echo x - spfval/files/patch-src_spfval_util.h
sed 's/^X//' >spfval/files/patch-src_spfval_util.h << 'END-of-spfval/files/patch-src_spfval_util.h'
X--- src/spfval/util.h.orig	Fri Jul 22 10:33:03 2005
X+++ src/spfval/util.h	Fri Jul 22 10:33:25 2005
X@@ -47,6 +47,7 @@
X #include <stdlib.h>       /* malloc / free */
X #include <netinet/in.h>   /* in_addr struct fBSD */
X #include <arpa/inet.h>    /* in_addr struct */
X+#include <sys/types.h>
X 
X 
X #ifndef _WIN32
END-of-spfval/files/patch-src_spfval_util.h
exit
--- spfval.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list