Changeset 13 for devel/sshgw


Ignore:
Timestamp:
05/22/07 14:59:00 (5 years ago)
Author:
bruno
Message:

Fix a bug on X11 libs not in the path so moved to usr/lib of the chroot (xauth OK now)
Fix a bug on computelibs where libnss_files was not seen (open dynamically probably)

Location:
devel/sshgw/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/sshgw/bin/computelibs

    r11 r13  
    11# Give all symlinks recursively of a full path name 
     2LOGFILE=/tmp/computelibs.log 
     3 
    24ReadAllLink() { 
    35    file="$1" 
     
    2123 
    2224for i in $*; do 
    23     libs="$libs `ldd $i 2> /dev/null | awk '{if (match($1,/\//)) {print $1} else {if (match($3,/\//)) print $3} fi}'`" 
     25    libs="$libs `ldd $i 2> /dev/null | awk '{if (match($1,/\//)) {print $1} else {if (match($3,/\//)) print $3} fi}'` /lib/libnss_files*" 
    2426    for j in $libs; do 
    2527        echo "$j" 
  • devel/sshgw/bin/createrootskel

    r11 r13  
    3333 
    3434    mkdir -p $d/etc 
     35    cat > $d/etc/passwd << EOF 
     36root:x:99:99:Mister Root:/bin/false 
     37adm:x:4:4:Mister adm:/bin/false 
     38EOF 
    3539    cat > $d/etc/group << EOF 
    3640root:x:99: 
     
    5155rpc:        files 
    5256services:   files 
    53 EOF 
    54     cat > $d/etc/passwd << EOF 
    55 root:x:99: 
    56 adm:x:4: 
    5757EOF 
    5858    cp /etc/resolv.conf $d/etc 
     
    115115    done 
    116116 
     117    # X11R6/lib is not in the default search path for libs => moved to usr/lib 
     118    for i in $d/usr/X11R6/lib/*; do 
     119        mv $i $d/usr/lib 
     120    done 
    117121 
    118122    # Adjust modes and rights 
Note: See TracChangeset for help on using the changeset viewer.