summaryrefslogtreecommitdiff
path: root/devel/root/files/rootlibs.sh.in
blob: 82bff8bb4b5ad69c1e41a69ed9d55a0369d4fb75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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"