Index: Makefile =================================================================== --- Makefile (revision 528723) +++ Makefile (working copy) @@ -5,27 +5,22 @@ PORTVERSION= 1.5 PORTREVISION= 2 CATEGORIES= mail -MASTER_SITES= SF MAINTAINER= moro@remus.dti.ne.jp COMMENT= Command-line interface to Paul Vixie's RBL filter -BROKEN= unfetchable +LICENSE= GPLv2 -USES= gmake -GNU_CONFIGURE= yes +USE_GITHUB= yes +GH_ACCOUNT= logic +GH_TAGNAME= d7eb2e5 +MAKEFILE= ${FILESDIR}/BSDmakefile +MAKE_ENV= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} +SUB_FILES= rbl -CONFIGURE_ARGS+= --prefix=${PREFIX} - -OPTIONS_DEFINE= DOCS - do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/rbl ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/rbl ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/rblcheck ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${FILESDIR}/rblcheckrc.sample ${STAGEDIR}${PREFIX}/etc - @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for f in AUTHORS COPYING ChangeLog INSTALL NEWS README - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} -.endfor .include Index: distinfo =================================================================== --- distinfo (revision 528723) +++ distinfo (working copy) @@ -1,2 +1,3 @@ -SHA256 (rblcheck-1.5.tar.gz) = c0f28cb0ec215ce2244e2a2008dac76bb6426adf0804f53c6784e6baeec13a47 -SIZE (rblcheck-1.5.tar.gz) = 150395 +TIMESTAMP = 1584629155 +SHA256 (logic-rblcheck-1.5-d7eb2e5_GH0.tar.gz) = 7e407aad6e0bc3aadb71116def92bfdeff90ab957f5d40d9078ef5982b388899 +SIZE (logic-rblcheck-1.5-d7eb2e5_GH0.tar.gz) = 48343 Index: files/BSDmakefile =================================================================== --- files/BSDmakefile (nonexistent) +++ files/BSDmakefile (working copy) @@ -0,0 +1,9 @@ +PROG= rblcheck +MK_MAN= no + +CFLAGS+= -DPACKAGE='"${PORTNAME}"' -DVERSION='"${PORTVERSION}"' +CFLAGS+= -DSTDC_HEADERS + +WARNS= 2 + +.include Property changes on: files/BSDmakefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-rblcheck.c =================================================================== --- files/patch-rblcheck.c (revision 528723) +++ files/patch-rblcheck.c (working copy) @@ -1,6 +1,13 @@ ---- rblcheck.c.orig Thu Nov 8 14:05:27 2001 -+++ rblcheck.c Wed May 1 08:19:16 2002 -@@ -28,8 +28,10 @@ +--- rblcheck.c 2002-11-16 21:32:39 UTC ++++ rblcheck.c 2020-03-19 11:45:01 EST +@@ -21,15 +21,15 @@ + ** + */ + +-#include "config.h" +- + #include + #include #include #include #include @@ -11,7 +18,7 @@ /*-- PORTABILITY ------------------------------------------------------------*/ -@@ -184,7 +186,7 @@ +@@ -184,23 +184,26 @@ struct rbl * togglesite( char * sitename * domain. If "txt" is non-zero, we perform a TXT record lookup. We * return the text returned from a TXT match, or an empty string, on * a successful match, or NULL on an unsuccessful match. */ @@ -20,9 +27,16 @@ { char * domain; char * result = NULL; -@@ -195,12 +197,15 @@ - const u_char * cend; - const u_char * rend; + u_char fixedans[ PACKETSZ ]; + u_char * answer; +- const u_char * cp; +- u_char * rp; +- const u_char * cend; +- const u_char * rend; ++ const char * cp; ++ char * rp; ++ const char * cend; ++ const char * rend; int len; + u_char *p; + int i, j; @@ -37,8 +51,12 @@ /* Make our DNS query. */ res_init(); -@@ -242,8 +247,8 @@ - cp = answer + sizeof( HEADER ); +@@ -239,11 +242,11 @@ char * rblcheck( int a, int b, int c, in + } + + /* Skip the header and the address we queried. */ +- cp = answer + sizeof( HEADER ); ++ cp = (const char *)answer + sizeof(HEADER); while( *cp != '\0' ) { - a = *cp++; @@ -48,7 +66,7 @@ cp++; } -@@ -258,8 +263,8 @@ +@@ -258,8 +261,8 @@ char * rblcheck( int a, int b, int c, in cp += ( NS_INT16SZ * 2 ) + NS_INT32SZ; /* Get the length and end of the buffer. */ @@ -59,7 +77,7 @@ /* Iterate over any multiple answers we might have. In this context, it's unlikely, but anyway. */ -@@ -267,10 +272,10 @@ +@@ -267,10 +270,10 @@ char * rblcheck( int a, int b, int c, in rend = result + RESULT_SIZE - 1; while( cp < cend && rp < rend ) { @@ -74,7 +92,7 @@ { if( *cp == '\n' || *cp == '"' || *cp == '\\' ) -@@ -289,22 +294,39 @@ +@@ -289,22 +292,38 @@ char * rblcheck( int a, int b, int c, in * RBL listing, handling output of results if necessary. */ int full_rblcheck( char * addr ) { @@ -86,7 +104,6 @@ char * response; struct rbl * ptr; + int fail; -+ int c; for( ptr = rblsites; ptr != NULL; ptr = ptr->next ) { Index: files/rbl.in =================================================================== --- files/rbl.in (nonexistent) +++ files/rbl.in (working copy) @@ -0,0 +1,4 @@ +#!/bin/sh +exec %%PREFIX%%/bin/rblcheck ` + [ -f "%%PREFIX%%/etc/rblcheckrc" ] && cat "%%PREFIX%%/etc/rblcheckrc"; + [ -f "$HOME/.rblcheckrc" ] && cat "$HOME/.rblcheckrc"` "$@" Property changes on: files/rbl.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: pkg-plist =================================================================== --- pkg-plist (revision 528723) +++ pkg-plist (working copy) @@ -1,9 +1,3 @@ bin/rbl bin/rblcheck etc/rblcheckrc.sample -%%PORTDOCS%%share/doc/rblcheck/AUTHORS -%%PORTDOCS%%share/doc/rblcheck/COPYING -%%PORTDOCS%%share/doc/rblcheck/ChangeLog -%%PORTDOCS%%share/doc/rblcheck/INSTALL -%%PORTDOCS%%share/doc/rblcheck/NEWS -%%PORTDOCS%%share/doc/rblcheck/README