# fss-0002

main:
  tkis_local_push program squashfs-tools
  sed -i -e 's|#XZ_SUPPORT = 1|XZ_SUPPORT = 1|' Makefile
  sed -i -e 's|#LZO_SUPPORT = 1|LZO_SUPPORT = 1|' Makefile
  sed -i -e  's|attr/xattr.h|sys/xattr.h|g' xattr.c unsquashfs_xattr.c
  sed -i -e 's|COMP_DEFAULT = gzip|COMP_DEFAULT = lzo|' Makefile
  make
  cp -v mksquashfs unsquashfs /bin/
  tkis_local_pop
  chgrp e_compress /bin/{mk,un}squashfs
  chmod o-rx /bin/{mk,un}squashfs
