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);
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)
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
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
I made a small modification (USES=localbase) and it. In general avoid adding -L in CFLAGS