From owner-svn-ports-head@freebsd.org Sat Apr 25 11:42:32 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43B772AD5F2; Sat, 25 Apr 2020 11:42:32 +0000 (UTC) (envelope-from arrowd@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 498Tfw16q1z3QTr; Sat, 25 Apr 2020 11:42:32 +0000 (UTC) (envelope-from arrowd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 21B4F70AB; Sat, 25 Apr 2020 11:42:32 +0000 (UTC) (envelope-from arrowd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03PBgWVt024055; Sat, 25 Apr 2020 11:42:32 GMT (envelope-from arrowd@FreeBSD.org) Received: (from arrowd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03PBgUSZ024049; Sat, 25 Apr 2020 11:42:30 GMT (envelope-from arrowd@FreeBSD.org) Message-Id: <202004251142.03PBgUSZ024049@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: arrowd set sender to arrowd@FreeBSD.org using -f From: Gleb Popov Date: Sat, 25 Apr 2020 11:42:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532940 - in head/mail/rblcheck: . files X-SVN-Group: ports-head X-SVN-Commit-Author: arrowd X-SVN-Commit-Paths: in head/mail/rblcheck: . files X-SVN-Commit-Revision: 532940 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2020 11:42:32 -0000 Author: arrowd Date: Sat Apr 25 11:42:30 2020 New Revision: 532940 URL: https://svnweb.freebsd.org/changeset/ports/532940 Log: mail/rblcheck: Unbreak the port. PR: 244911 Submitted by: mi Added: head/mail/rblcheck/files/BSDmakefile (contents, props changed) head/mail/rblcheck/files/rbl.in (contents, props changed) Modified: head/mail/rblcheck/Makefile head/mail/rblcheck/distinfo head/mail/rblcheck/files/patch-rblcheck.c head/mail/rblcheck/pkg-plist Modified: head/mail/rblcheck/Makefile ============================================================================== --- head/mail/rblcheck/Makefile Sat Apr 25 11:36:24 2020 (r532939) +++ head/mail/rblcheck/Makefile Sat Apr 25 11:42:30 2020 (r532940) @@ -5,29 +5,22 @@ PORTNAME= rblcheck 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 -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2020-05-05 +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 Modified: head/mail/rblcheck/distinfo ============================================================================== --- head/mail/rblcheck/distinfo Sat Apr 25 11:36:24 2020 (r532939) +++ head/mail/rblcheck/distinfo Sat Apr 25 11:42:30 2020 (r532940) @@ -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 Added: head/mail/rblcheck/files/BSDmakefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rblcheck/files/BSDmakefile Sat Apr 25 11:42:30 2020 (r532940) @@ -0,0 +1,9 @@ +PROG= rblcheck +MK_MAN= no + +CFLAGS+= -DPACKAGE='"${PORTNAME}"' -DVERSION='"${PORTVERSION}"' +CFLAGS+= -DSTDC_HEADERS + +WARNS= 2 + +.include Modified: head/mail/rblcheck/files/patch-rblcheck.c ============================================================================== --- head/mail/rblcheck/files/patch-rblcheck.c Sat Apr 25 11:36:24 2020 (r532939) +++ head/mail/rblcheck/files/patch-rblcheck.c Sat Apr 25 11:42:30 2020 (r532940) @@ -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 ) { Added: head/mail/rblcheck/files/rbl.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rblcheck/files/rbl.in Sat Apr 25 11:42:30 2020 (r532940) @@ -0,0 +1,4 @@ +#!/bin/sh +exec %%PREFIX%%/bin/rblcheck ` + [ -f "%%PREFIX%%/etc/rblcheckrc" ] && cat "%%PREFIX%%/etc/rblcheckrc"; + [ -f "$HOME/.rblcheckrc" ] && cat "$HOME/.rblcheckrc"` "$@" Modified: head/mail/rblcheck/pkg-plist ============================================================================== --- head/mail/rblcheck/pkg-plist Sat Apr 25 11:36:24 2020 (r532939) +++ head/mail/rblcheck/pkg-plist Sat Apr 25 11:42:30 2020 (r532940) @@ -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