Date: Fri, 06 Jan 2006 23:13:50 -0800 From: Doug Barton <dougb@FreeBSD.org> To: Oliver Lehmann <lehmann@ans-netz.de> Cc: ports@FreeBSD.org, Mike Jakubik <mikej@rogers.com>, ale@FreeBSD.org Subject: Re: [Fwd: Re: FreeBSD Port: security/courier-authlib-base (rc.d changes problem)] Message-ID: <43BF6A2E.9020204@FreeBSD.org> In-Reply-To: <20060106200711.35f99a3e.lehmann@ans-netz.de> References: <43BE5534.5010102@rogers.com> <20060106155437.41af46f3.lehmann@ans-netz.de> <43BE987A.8020506@rogers.com> <20060106195109.083c4f75.lehmann@ans-netz.de> <43BEBEC7.3030608@rogers.com> <20060106200711.35f99a3e.lehmann@ans-netz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Lehmann wrote: > Mike Jakubik wrote: > >> Oliver Lehmann wrote: >>> Ok it just came to my mind that if I'm not mistaken 6 still uses the >>> "old" way which means rcorder is not involved here - or am I wrong? If so >>> please someone correct me. >>> >>> >> I am running 6.0-STABLE #0: Sat Dec 31 19:40:32 EST 2005, not -RELEASE. >> There have been changes committed to it that update RC to use new style >> boot scripts from the local_startup directories. This can be found in >> the thread "HEADS UP: MFC of local_startup changes to rc.d complete" >> under stable. > > Ok, you are right, it is also stated in the 20051220 entry > of /usr/src/UPDATING where I was right looking at now. So this means, > the mysql-client.sh script needs to be converted to rcNG to get > authdaemond working because it adds the /usr/local/lib/mysql path to the > lib search path so authdaemond is able to find libmysqlclient.so.14.... This is excellent detective work, thanks! I looked at the mysql-server script and saw that it PROVIDEs mysql, but it didn't dawn on me that what was needed was the client side. Below is an example of a script that should work for this purpose, modified from misc/compat5x. It requires that you add SUB_LIST+= LDCONFIG="${LDCONFIG}" to the Makefile. hth, Doug #!/bin/sh # # $FreeBSD$ # # PROVIDE: mysql_client # REQUIRE: ldconfig # # Change this setting in /etc/rc.conf[.local] to disable this service # mysql_client_enable="${mysql_client_enable-YES}" . %%RC_SUBR%% name=mysql_client rcvar=`set_rcvar` command=%%LDCONFIG%% command_args='-m %%PREFIX%%/lib/mysql' load_rc_config ${name} run_rc_command "$1" -- This .signature sanitized for your protection
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BF6A2E.9020204>