7 set `od -j $o -N 8 -t u1 $pkg`
8 il
=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
9 dl
=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
11 sigsize
=`expr 8 + 16 \* $il + $dl`
12 o
=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
13 set `od -j $o -N 8 -t u1 $pkg`
14 il
=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
15 dl
=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
16 hdrsize
=`expr 8 + 16 \* $il + $dl`
17 o
=`expr $o + $hdrsize`
18 dd if=$pkg ibs
=$o skip
=1 2>/dev
/null | bsdtar
-xf -
23 bsdtar
-xf ${DEB} data.
tar.gz
24 bsdtar
-xf data.
tar.gz
28 if [ "$pkg" = "" -o ! -e "$pkg" ]; then
29 echo "no package supplied" 1>&2
32 ext
=`echo $pkg | awk -F. '{ print $NF }'`
41 echo "Unknown package type: $pkg"