mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 15:29:15 -04:00
the script gets ordered prior to ldconfig, that script won't blow away the work done by this one.
27 lines
459 B
Bash
27 lines
459 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: compat4x
|
|
# REQUIRE: ldconfig
|
|
#
|
|
# Add the following to /etc/rc.conf[.local] to enable this service
|
|
#
|
|
# compat4x_enable="YES"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=compat4x
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%LDCONFIG%%
|
|
command_args='-m %%PREFIX%%/lib/compat'
|
|
%%AMD64%%
|
|
%%AMD64%%start_postcmd=${name}_poststart
|
|
%%AMD64%%compat4x_poststart () {
|
|
%%AMD64%% %%LDCONFIG%% -32 -m %%TARGET32_DIR%%
|
|
%%AMD64%%}
|
|
|
|
load_rc_config ${name}
|
|
run_rc_command "$1"
|