Tuesday, May 28, 2019

How to write a PLIST for a program that does code-as-configuration in /etc

Hello ports@,

I mentioned about a year ago that I was working on porting Netdata. Slow progress, I know :D

I've run into a problem with my port. Netdata does a code-as-configuration thing where it dumps a bunch of python files into folders in /etc when you run it, which it uses to determine how to behave. Right now, make update-plist reports this to me:

Can't put into any plist (no applicable prefix):
/etc/netdata
/etc/netdata/charts.d
/etc/netdata/charts.d/.keep
/etc/netdata/edit-config
/etc/netdata/health.d
/etc/netdata/health.d/.keep
/etc/netdata/node.d
/etc/netdata/node.d/.keep
/etc/netdata/python.d
/etc/netdata/python.d/.keep
/etc/netdata/statsd.d
/etc/netdata/statsd.d/.keep
/var/cache/netdata
/var/cache/netdata/.keep
/var/lib
/var/lib/netdata
/var/lib/netdata/.keep
/var/lib/netdata/registry
/var/lib/netdata/registry/.keep
/var/log/netdata
/var/log/netdata/.keep

Do any of you have experience porting programs like this, where clobbering its own config in /etc is intended behavior? I would appreciate any tips for how to create a PLIST for a program like this. My current port is attached, so you don't have to repeat my work if you want to poke at it.

Also, this is my first from-scratch port. I'm not finished yet, but if you see anything else obviously wrong with what I've done, I'd appreciate guidance there too!

Sincerely,
William Leuschner

No comments:

Post a Comment