freebsd-ports/devel/root/files/rootlibs.sh.in
Pav Lucistnik 8a185b6142 - Update to 5.02
PR:		ports/84012
Submitted by:	Simon Lang <simon@lang-clan.de> (maintainer)
2005-07-27 15:50:17 +00:00

28 lines
431 B
Bash

#!/bin/sh
# PROVIDE: rootlibs
# REQUIRE: ldconfig
# KEYWORD: Root
. /etc/rc.subr
name=rootlibs
start_cmd=rootlibs_start
stop_cmd=:
root_libdir="%%PREFIX%%/lib/root"
cint_libdir="%%PREFIX%%/lib/root/cint"
rootlibs_start()
{
if [ -d "$root_libdir" ]; then
/sbin/ldconfig -m "$root_libdir"
fi
if [ -d "$root_libdir" ]; then
/sbin/ldconfig -m "$cint_libdir"
fi
}
load_rc_config $name
run_rc_command "$1"