Bug 244911

Summary: mail/rblcheck - unbreak, improve
Product: Ports & Packages Reporter: Mikhail Teterin <mi>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: arrowd, moro
Priority: --- Keywords: easy, patch, patch-ready
Version: LatestFlags: bugzilla: maintainer-feedback? (moro)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Unbreak, improve none

Description Mikhail Teterin freebsd_committer freebsd_triage 2020-03-19 15:52:51 UTC
Created attachment 212528 [details]
Unbreak, improve

The original SourceForge project has moved to GitHub a while ago, and the port is now broken.

The GitHub code -- unmodified in 18 years (!) -- is almost the same as what the original distfile contained except:

  1. No more configure -- only configure.in
  2. No more RCS variables in code -- git does not support them.
  3. configure.in contains code to find res_query on Cygwin (!), which breaks on   
     FreeBSD

Instead of trying to configure.in -- so that the sole C file can be built with gmake, this patch switches to a bsd.prog.mk.

The corrected version of upstream's rbl.in moves into files/ too -- to be handled by the SUB_FILES-mechanism.

The DOCS-option is removed -- it was never handled properly anyway, and the author does not include useful documentation beyond the program's usage(). Other useless files are omitted too.

Finally, a couple of warnings are fixed in the C-code itself to qualify for WARNS=2.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-04-25 11:42:39 UTC
A commit references this bug:

Author: arrowd
Date: Sat Apr 25 11:42:32 UTC 2020
New revision: 532940
URL: https://svnweb.freebsd.org/changeset/ports/532940

Log:
  mail/rblcheck: Unbreak the port.

  PR:		244911
  Submitted by:	mi

Changes:
  head/mail/rblcheck/Makefile
  head/mail/rblcheck/distinfo
  head/mail/rblcheck/files/BSDmakefile
  head/mail/rblcheck/files/patch-rblcheck.c
  head/mail/rblcheck/files/rbl.in
  head/mail/rblcheck/pkg-plist