community/acpid: unnecessary zzz dependency
@jirutka as mentioned in some other thread, zzz
is declared as a depend in acpid2
package.
Indeed the provided sample handler.sh
does use zzz
: however, that handler.sh
is just a sample code which is, as noted, to be modified/customized at users' needs: it kindly offers a specific use-case "solution", that users may not use, or eventually implement differently...
Therefore including zzz
dependency (as small it might be) to an independent package may not be desirable by principle: Alpine usually installs just what is needed for the actual target component (plain acpid2
here).
Then, how about removing that explicit dependency, and either:
- declare a function within that sample
handler.sh
script, that would be called instead of invokingzzz
directly: it would simply check ifzzz
is installed (or nicely catch missing file error upon invocation) and eventually throw a message to console/log to warn user to add that specific package if desired. - alternatively do same indirection through an additional script at same level than
lid-closed
/power-supply-ac
(I guess first option is leaner as handler is sample code that user might modify, that function in particular: it avoids seeking/suppressing additional file).
Thanks for consideration.