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)
Fri, Nov 29, 8:06 AM
Unknown Object (File)
Thu, Nov 28, 4:03 AM
Unknown Object (File)
Wed, Nov 27, 11:58 AM
Unknown Object (File)
Sat, Nov 23, 6:52 PM
Unknown Object (File)
Sat, Nov 23, 6:00 PM
Unknown Object (File)
Sat, Nov 23, 7:45 AM
Unknown Object (File)
Fri, Nov 22, 6:12 PM
Unknown Object (File)
Fri, Nov 22, 8:43 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.