Bug 219370 - [NEW PORT] dns/dnsforwarder: simple dns forwarder
Summary: [NEW PORT] dns/dnsforwarder: simple dns forwarder
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-18 07:44 UTC by Jov
Modified: 2017-05-27 08:58 UTC (History)
1 user (show)

See Also:


Attachments
new port shar file (2.43 KB, text/plain)
2017-05-18 07:44 UTC, Jov
no flags Details
dnsforwarder.shar v2 (2.26 KB, text/plain)
2017-05-27 08:38 UTC, Jov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jov 2017-05-18 07:44:38 UTC
Created attachment 182685 [details]
new port shar file

a dns forwarder.
Fetures:
1.Forwarding queries to customized domains (and their subdomains) to specified servers over a specified protocol (UDP or TCP). non-standard ports are supported;
2.DNS cache and its controls (including modifying TTL for different domains);
3.Ignoring DNS responses from upstream servers containing particular IPs;
4.Loading hosts from file (including the support for wildcards, CName redirections and remote hosts files);
5.Refusing queries to specified domains (for ads blocking?);
6.Cross-platform (Windows, Linux);
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2017-05-25 21:03:29 UTC
Typo on the dependency
actually should be LIB_DEPENDS btw
GH_PROJECT is useless here as it defaults on the PORTNAME
do-build is wrong
you should just define the MAKEFILE variable and it will do the right thing

do-install is wrong

INSTALL_PROGRAM will do all you need (including handling strip)
Comment 2 Jov 2017-05-27 08:38:30 UTC
Created attachment 182956 [details]
dnsforwarder.shar v2

Typo on the dependency
actually should be LIB_DEPENDS btw-----fixed

GH_PROJECT is useless here as it defaults on the PORTNAME---fixed
do-build is wrong
you should just define the MAKEFILE variable and it will do the right thing---fixed

do-install is wrong

INSTALL_PROGRAM will do all you need (including handling strip)---fixed
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-05-27 08:58:08 UTC
A commit references this bug:

Author: bapt
Date: Sat May 27 08:57:40 UTC 2017
New revision: 441830
URL: https://svnweb.freebsd.org/changeset/ports/441830

Log:
  Dnsforwarder is A simple DNS forwarder.Main fetures:

   1.Forwarding queries to customized domains (and their subdomains) to
     specified servers over a specified protocol (UDP or TCP).non-standard
     ports are supported;
   2.DNS cache and its controls(including modifying TTL for different domains);
   3.Ignoring DNS responses from upstream servers containing particular IPs;
   4.Loading hosts from file (including the support for wildcards, CName
     redirections and remote hosts files);
   5.Refusing queries to specified domains (for ads blocking);
   6.Cross-platform (Windows, Linux);

  WWW: https://github.com/holmium/dnsforwarder

  PR:		219370
  Submitted by:	Jov <amutu@amutu.com>

Changes:
  head/dns/Makefile
  head/dns/dnsforwarder/
  head/dns/dnsforwarder/Makefile
  head/dns/dnsforwarder/distinfo
  head/dns/dnsforwarder/pkg-descr
Comment 4 Baptiste Daroussin freebsd_committer freebsd_triage 2017-05-27 08:58:23 UTC
I made a small modification (USES=localbase) and  it.

In general avoid adding -L in CFLAGS