Date: Thu, 16 May 2024 09:41:31 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 279025] net/ptpd2: rc script has no defaults Message-ID: <bug-279025-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279025 Bug ID: 279025 Summary: net/ptpd2: rc script has no defaults Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: skreuzer@FreeBSD.org Reporter: gehm@sudoers.net Assignee: skreuzer@FreeBSD.org Flags: maintainer-feedback?(skreuzer@FreeBSD.org) In a fresh install, ptpd2 won't start because of missing options. The rc file has no configfile default. Here is a fix: #!/bin/sh # PROVIDE: ptpd2 # REQUIRE: NETWORKING DAEMON # KEYWORD: nojail # # Add the following lines to /etc/rc.conf to enable ptpd # # ptpd2_enable (bool): Set to "NO" by default # Set it to "YES" to enable ptpd # ptp2_configfile (str): Set to "/usr/local/etc/ptpd2/ptpd.conf" by default . /etc/rc.subr name=3Dptpd2 rcvar=3Dptpd2_enable load_rc_config "${name}" : ${ptpd2_enable:=3DNO} : ${ptpd2_configfile:=3D/usr/local/etc/ptpd2/ptpd.conf} required_files=3D"${ptpd2_configfile}" command=3D"/usr/local/sbin/${name}" command_args=3D"-c ${ptpd2_configfile}" run_rc_command "$1" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279025-7788>