Convert GMAKE to MAKE_CMD
Please note that lots of invocation of MAKE_CMD here are wrong as they do not
properly respect MAKE_ENV and friends
With hat: portmgr
Even if it is stupid, people will modify the default.vcl file, so, treat it as
a normal configuration file and install it as .sample.
While there, remove a remnant of STAGE conversion.
Sponsored by: Absolight
www/varnish: Update to 3.0.5, Enable STAGE support
- Update to 3.0.5
- Enable STAGE support, update pkg-plist accordingly
- Update LICENSE
- Modernize LIB_DEPENDS
- Pet portlint (space->tab)
Changes:
* A bad interaction between -b, -c and -m in the varnishlog tool has
been fixed.
* A malformed request could in some configurations lead to Varnish
crashing has been corrected. This is CVE-2013-4484.
* Duplicate Content-Length headers were in some cases sent to clients
when streaming is enabled, this has been fixed
* ESI parse errors are no longer printed to standard output.
* Stop segfaulting if the first part of a synthetic page is NULL.
PR: ports/185188
PR: ports/185543
Submitted by: feld, Hung-Yi Chen <gaod@hychen.org>
Approved by: maintainer timeout (1 month)
Security: http://www.vuxml.org/freebsd/d9dbe6e8-84da-11e3-98bd-080027f2d077.html
Add the test-target for running vendor's self-tests and attempt to
make sure, the tests complete.
Add one more header to the installation list -- this is required in 3.0.3
for 3rd-party modules to build.
Approved by: maintainer
Feature safe: yes
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""
These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.
In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.
In a few places, add $FreeBSD$
No functional changes, so no PORTREVISION bumps
Reorganize the rc scripts; there were several things about the old ones
that simply didn't make sense. Add a pkg-message containing a very brief
quick-start guide and a warning to existing users about the rc changes.
Varnish has its own mechanism for dropping privs, and will not work if
started with su as rc.subr wants. If we unset varnishd_{user,group}
before calling run_rc_command, rc.subr won't see them, but we can still
use them to specify which user and group Varnish should use.
Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.
To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.
To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.
Changes to Mk/*:
- Add runtime detection magic in bsd.port.mk
(Only the first 15 lines of the commit message are shown above )
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them. This is determined by running ``configure --help'' in
do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
subdirectory detection.
PR: ports/111470
Approved by: portmgr
Discussed with: stas (Mk/*), gerald (info related stuffs)
Tested by: pointyhat exp run