From 334dbdc7a6663d23834b14fd7752bf4d60b80649 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sat, 7 Jan 2006 13:23:48 +0000 Subject: - Rename the startup script ${PORTNAME}.sh to 000.${PORTNAME}.sh to prevent non-rcNG scripts from being invoked before it. - Bump PORTREVISION. PR: conf/91444 --- misc/compat4x/Makefile | 4 ++-- misc/compat4x/files/000.compat4x.sh.in | 27 +++++++++++++++++++++++++++ misc/compat4x/files/compat4x.sh.in | 27 --------------------------- 3 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 misc/compat4x/files/000.compat4x.sh.in delete mode 100644 misc/compat4x/files/compat4x.sh.in (limited to 'misc/compat4x') diff --git a/misc/compat4x/Makefile b/misc/compat4x/Makefile index 12ffd88d0efa..d7accfbc8a85 100644 --- a/misc/compat4x/Makefile +++ b/misc/compat4x/Makefile @@ -7,7 +7,7 @@ PORTNAME= compat4x PORTVERSION= ${COMPAT4X_PORTVERSION} -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= misc MASTER_SITES= ${COMPAT4X_MASTER_SITES} MASTER_SITE_SUBDIR= ${COMPAT4X_MASTER_SITE_SUBDIR} @@ -23,7 +23,7 @@ NO_MTREE= yes TARGET_DIR= ${PREFIX}/lib/compat TARGET32_DIR= ${PREFIX}/lib32/compat -USE_RC_SUBR= ${PORTNAME}.sh +USE_RC_SUBR= 000.${PORTNAME}.sh INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/compat diff --git a/misc/compat4x/files/000.compat4x.sh.in b/misc/compat4x/files/000.compat4x.sh.in new file mode 100644 index 000000000000..c7d329ade982 --- /dev/null +++ b/misc/compat4x/files/000.compat4x.sh.in @@ -0,0 +1,27 @@ +#!/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" diff --git a/misc/compat4x/files/compat4x.sh.in b/misc/compat4x/files/compat4x.sh.in deleted file mode 100644 index c7d329ade982..000000000000 --- a/misc/compat4x/files/compat4x.sh.in +++ /dev/null @@ -1,27 +0,0 @@ -#!/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" -- cgit v1.2.3