We could have followed the way NetBSD converted their rc.d scripts. But this required checking for /etc/rc.subr and then determining whether to use the RC_NG script or the old rc.d script. To support a combined RC_OLD and RC_NG rc.d script, both the port port maintainer and port commiter would have to ensure that the rc.d scripts function correctly on both RC_OLD and RC_NG systems. The path I finally decided on was to convert the rc.d scripts to only support systems that have rc.subr installed. To make these scripts work on older systems, we need to create a port for rc.subr (PR 54116). These changes allows us to simplify the rc.d scripts, as well as provide additional standard arguments (start, stop, restart, status, ...) as well as custom arguments. Attached are patches to change the rc.d scripts to RC_NG format as used in FreeBSD-5.x for several ports. These rc.d scripts depend on /etc/rc.subr or using the sysutils/rc_subr port (FreeBSD < 5.x), see PR 54116. Fix: The Attached patch affects the following ports: net/freeradius net/openldap12 net/openldap20 net/openldap21 net/openldap22 net/radiusd-cistron net/samba net/samba-devel Changed Files New Files ------------- ------------------ freeradius/Makefile freeradius/files/radiusd.sh openldap12/Makefile openldap12/pkg-plist openldap12/files/slapd.sh openldap12/files/slurpd.sh openldap20/Makefile openldap20/pkg-plist openldap20/files/slapd.sh openldap20/files/slurpd.sh openldap21/Makefile openldap21/pkg-plist openldap21/files/slapd.sh openldap21/files/slurpd.sh openldap22/Makefile openldap22/files/slapd.sh openldap22/files/slurpd.sh radiusd-cistron/Makefile radiusd-cistron/files/radiusd.sh.tmpl samba/Makefile samba/files/nmbd.sh samba/pkg-plist samba/files/smbd.sh samba-devel/Makefile samba-devel/files/nmbd.sh samba-devel/pkg-plist samba-devel/files/smbd.sh samba-devel/files/README.FreeBSD Removed Files ------------- samba/files/samba.sh.sample samba-devel/files/samba.sh.sample
The originator should be hetzels@westbend.net. Scot W. Hetzel
for net/radiusd-cistron I commited part of the suggested changes: - use %%PREFIX%% instead of !!PREFIX!! - use INSTALL_SCRIPT - check pidfile kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]
scripts for ports net/openldap2[012]-server: included with modifications in PR 56077, thanks!
State Changed From-To: feedback->closed mail bounces: <hetzels@westbend.net>: host mail.westbend.net[65.114.87.48] said: 553 5.0.0 <hetzels@westbend.net>... Viruses are not being sent or accepted for this address,Check the message headers and notify the appropriate ISP (in reply to RCPT TO command)
State Changed From-To: open->closed mail bounces: <hetzels@westbend.net>: host mail.westbend.net[65.114.87.48] said: 553 5.0.0 <hetzels@westbend.net>... Viruses are not being sent or accepted for this address,Check the message headers and notify the appropriate ISP (in reply to RCPT TO command)
State Changed From-To: closed->open Closed incorrectly. Submitter's email address has been changed due to spam. Please contact me for followup.
State Changed From-To: open->closed This PR has done its deed.