[Fwd: Re: FreeBSD Port: security/courier-authlib-base (rc.d
changes problem)]
Doug Barton
dougb at FreeBSD.org
Fri Jan 6 23:13:54 PST 2006
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
More information about the freebsd-ports
mailing list