[BACK]Return to fix_ldconfig CVS log [TXT][DIR] Up to [local] / openbsd / fill_chroot

Annotation of openbsd/fill_chroot/fix_ldconfig, Revision 1.5

1.1       andrew      1: #!/bin/sh
1.5     ! andrew      2: # $RedRiver: fix_ldconfig,v 1.4 2006/06/29 18:44:19 andrew Exp $
1.1       andrew      3:
1.3       andrew      4: CHROOT=${CHROOT:=/var/www}
1.1       andrew      5:
                      6: if [ ${CHROOT}"X" == "X" ]; then
                      7:   echo No CHROOT Specified!
                      8:   exit 255
                      9: fi
                     10:
                     11: mkdir -p ${CHROOT}/bin
                     12: mkdir -p ${CHROOT}/var/run
                     13:
1.5     ! andrew     14: LDPATH=/usr/lib
        !            15: for d in /usr/X11R6/lib /usr/local/lib; do
        !            16:        if [ -d $d ]; then
        !            17:                LDPATH="$LDPATH $d"
        !            18:        fi
        !            19: done
        !            20:
1.1       andrew     21: cp /sbin/ldconfig ${CHROOT}/bin
1.5     ! andrew     22: chroot ${CHROOT} /bin/ldconfig  ${LDPATH}
1.1       andrew     23: rm -f ${CHROOT}/bin/ldconfig

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>