Page MenuHomeFreeBSD

Add `varnish_extra_flags` variable.
ClosedPublic

Authored by feld on May 21 2015, 2:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 2:15 PM
Unknown Object (File)
Tue, May 7, 8:23 PM
Unknown Object (File)
Mon, May 6, 3:06 AM
Unknown Object (File)
Fri, May 3, 8:54 PM
Unknown Object (File)
Fri, May 3, 8:54 PM
Unknown Object (File)
Fri, May 3, 8:49 PM
Unknown Object (File)
Fri, May 3, 8:49 PM
Unknown Object (File)
Mon, Apr 29, 1:10 AM
Subscribers
None

Details

Summary

Currently, if I want to add a single extra flag to varnishd_flags I need
to rebuild the whole thing:

${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} \
  -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} \
  -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"}

This commit adds a varnishd_extra_flags variable that I can use for these
kinds of minor tweaks (e.g., adding -p send_timeout=XXX).

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jonathan retitled this revision from to Add `varnish_extra_flags` variable..
jonathan updated this object.
jonathan edited the test plan for this revision. (Show Details)
jonathan added a reviewer: feld.

Thanks for the patch. We definitely want to make it easy for users to be able to pass any flag they want.

Great: if things look ok to you, would you be the right person to commit the change (I'm not a ports committer)?

Yes, I'll be the one comitting it.

I haven't done so yet as I recently inherited this port and haven't touched the rc script files yet. They need some changes to pass the devel/rclint tests to ensure they're following modern best practices. I've made the majority of the required changes, but was caught on one issue that doesn't have a workaround, so I'll just have to leave it as-is.

I'll be uploading the changes to this review momentarily.

feld edited reviewers, added: jonathan; removed: feld.

Bump PORTREVISION
Clean up rc scripts to pass rclint as much as possible

Would you mind giving this diff a spin and letting me know if you run into any issues? I haven't been able to reproduce any so far.

This revision was automatically updated to reflect the committed changes.