# fss-0002

main:
  sed -i -e 's/-DTEST/$(ALL_CFLAGS) &/' lib/e2p/Makefile.in
  ./configure $CONF $DOCDIR --enable-dynamic-e2fsck --enable-elf-shlibs --disable-evms --with-gnu-ld --enable-compression --enable-htree --disable-tls
  make
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  make pkgconfigdir=${TC}lib/pkgconfig/ install-libs
  rm -Rf /lib/*.a /bin/compile_et /sbin/fsck.ext{2,3,4} /sbin/mkfs.ext{2,3,4} /sbin/{mkfs,fsck}.ext4dev
  ln -vsf e2fsck /sbin/fsck.ext2
  ln -vsf e2fsck /sbin/fsck.ext3
  ln -vsf e2fsck /sbin/fsck.ext4
  ln -vsf mke2fs /sbin/mkfs.ext2
  ln -vsf mke2fs /sbin/mkfs.ext3
  ln -vsf mke2fs /sbin/mkfs.ext4
  cp -v ${PR}mke2fs.conf /etc/
  chgrp e_public /lib/libuuid.so*
  chgrp e_checkfs /lib/lib{blkid,com_err,ext2fs,ss,e2p}.so* /bin/{lsattr,uuidgen,mk_cmds} /sbin/{badblocks,blkid,e2fsck,e2image,filefrag,findfs,logsave,fsck,dumpe2fs,e2freefrag}
  chgrp e_partition /bin/chattr /sbin/{debugfs,e2label,mke2fs,e2undo,mklost+found,resize2fs,tune2fs} /etc/mke2fs.conf
  chgrp e_checkfs -R /share/{ss,et}
  chgrp e_public /lib/lib{ext2fs,com_err}.so*
  chmod o-rx /lib/libuuid.so*
  chmod o-rx /lib/lib{blkid,com_err,ext2fs,ss,e2p}.so* /bin/{lsattr,uuidgen,mk_cmds} /sbin/{badblocks,blkid,e2fsck,e2image,filefrag,findfs,logsave,fsck,dumpe2fs,e2freefrag}
  chmod o-rx /bin/chattr /sbin/{debugfs,e2label,mke2fs,e2undo,mklost+found,resize2fs,tune2fs} /etc/mke2fs.conf
  chmod o-rx -R /share/{ss,et}
  chmod o-rx /lib/lib{ext2fs,com_err}.so*
  mv -v /lib/pkgconfig/* ${TC}lib/pkgconfig
  rmdir -v /lib/pkgconfig
  rm -Rf /lib/e2initrd_helper /share/locale
  rm -vf /sbin/uuidd
  tkis_handle_documentation info standard /share/info
