There is a missing ${CR} after the 'Connection: close' line that breaks posting ports to the server ... the following patch corrects it ... # diff -cr /tmp/300.statistics 300.statistics *** /tmp/300.statistics Sat Feb 4 08:07:42 2017 --- 300.statistics Sat Feb 4 08:09:20 2017 *************** *** 159,165 **** if [ -n "${http_header_proxy_auth}" ]; then txt="${txt}${CR}${NL}Proxy-Authorization: ${http_header_proxy_auth}"; fi txt="${txt}${CR}${NL}User-Agent: bsdstats-${CURR_VERSION}" txt="${txt}${CR}${NL}Connection: close" ! if [ -n "${content_type}" ]; then txt="${txt}${NL}Content-Type: ${content_type}"; fi if [ -n "${body}" ]; then txt="${txt}${CR}${NL}Content-Length: ${#body}"; fi txt="${txt}${CR}${NL}${CR}${NL}${body}" --- 159,165 ---- if [ -n "${http_header_proxy_auth}" ]; then txt="${txt}${CR}${NL}Proxy-Authorization: ${http_header_proxy_auth}"; fi txt="${txt}${CR}${NL}User-Agent: bsdstats-${CURR_VERSION}" txt="${txt}${CR}${NL}Connection: close" ! if [ -n "${content_type}" ]; then txt="${txt}${CR}${NL}Content-Type: ${content_type}"; fi if [ -n "${body}" ]; then txt="${txt}${CR}${NL}Content-Length: ${#body}"; fi txt="${txt}${CR}${NL}${CR}${NL}${body}”
Marc, you need to attach the patch. > (cd /usr/ports && svn diff sysutils/bsdstats) >> bsdstats.patch
Created attachment 179625 [details] Patch for missing ${CR}
Take.
(In reply to Marc Fournier from comment #2) Why did you update PORTVERSION to 6.1?
PORTREVISION=1 should be set, PORTVERSION shouldn't change.
A commit references this bug: Author: cpm Date: Mon Feb 6 10:48:10 UTC 2017 New revision: 433482 URL: https://svnweb.freebsd.org/changeset/ports/433482 Log: - Add missing ${CR} variable in 300.statistics.in - Bump PORTREVISION PR: 216808 Submitted by: Marc Fournier <yscrappy@gmail.com> Approved by: Yuri Victorovich <yuri@rawbw.com> (maintainer) Changes: head/sysutils/bsdstats/Makefile head/sysutils/bsdstats/files/300.statistics.in
Committed! Thanks
Its up to you, but from my perspective, it was a bug fix release for the software itself, not a bug fix for the port ... I thought PORTREVISION was for changes to / fixes for port related stuff (ie. Makefile) ...