Page MenuHomeFreeBSD

games/automuteus: Fix a few bugs in the rc script and port Makefile
ClosedPublic

Authored by nc on Jan 11 2021, 11:39 PM.
Tags
None
Referenced Files
F81648240: D28107.diff
Fri, Apr 19, 10:54 AM
Unknown Object (File)
Mar 10 2024, 8:38 PM
Unknown Object (File)
Feb 19 2024, 2:42 PM
Unknown Object (File)
Feb 19 2024, 2:38 PM
Unknown Object (File)
Feb 19 2024, 2:38 PM
Unknown Object (File)
Feb 19 2024, 2:38 PM
Unknown Object (File)
Feb 19 2024, 2:38 PM
Unknown Object (File)
Feb 19 2024, 2:38 PM
Subscribers

Details

Summary

games/automuteus: Fix a few bugs in the rc script and port Makefile

While we're here, bump PORTREVISION.

Test Plan

Tested to start

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

nc requested review of this revision.Jan 11 2021, 11:39 PM

Also, statisfy portclippy.

Personally, I prefer ${ETCDIR} to ${PREFIX}/etc/${PORTNAME} but I'll it to you to decide which one you want to use here.

I think that the rc script functionalities could be expressed fully expressed with variables from rc.subr(8) without any new shell functions. However, I think that's something we could do in another commit.

games/automuteus/files/automuteus.in
22 ↗(On Diff #82127)

Just a suggestion, I don't know if it makes it any easier to understand, but maybe automuteus_log could be replaced with something like automuteus_log_path or automuteus_log_dir to indicate that it is supposed to be a directory, not a standard file?

27 ↗(On Diff #82127)

It could be that if you set procname properly, then you won't need to reimplement stop_cmd.

35 ↗(On Diff #82127)

I am not a great fan of how this script looks like at the moment. We can try to refactor it in another commit.

42 ↗(On Diff #82127)

Could you be looking for pkill -F $pidfile?

This revision is now accepted and ready to land.Jan 16 2021, 3:24 PM
This revision was automatically updated to reflect the committed changes.