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)
Sat, Apr 20, 6:11 PM
Unknown Object (File)
Feb 10 2024, 7:23 AM
Unknown Object (File)
Feb 10 2024, 7:22 AM
Unknown Object (File)
Feb 10 2024, 7:18 AM
Unknown Object (File)
Feb 10 2024, 7:14 AM
Unknown Object (File)
Feb 10 2024, 6:58 AM
Unknown Object (File)
Oct 21 2023, 9:15 AM
Unknown Object (File)
Oct 14 2023, 5:47 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.