app=remotefs
version=1.0
build=1sml
homepage="http://remotefs.sourceforge.net/"
download="https://sourceforge.net/projects/remotefs/files/remotefs/1.0/remotefs-1.0-1.tar.bz2"
desc="Simple network file system for use in home NAS with few dependencies"
requires="fuse"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  sed -i 's@-Werror@@g' build/Makefiles/LinuxIcc.mk
  sed -i 's@-Werror@@g' build/Makefiles/Linux.mk
  applypatch $srcdir/client.c.patch

  make -j1 rfs rfsd rfspasswd man 
  make install INSTALL_DIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
2642f2eaa14e9f0831b25b3015041b450adf9b1d4e06aa7fbf9a071eca21739b7d0f52cbf7bab043b41a177eb17e7ce85351aa5667a7eb5ba8b00350f778167a  remotefs-1.0.tar.lz
6828d2a020ec710a021130fbbcd7c962c79b7298676c22028e183d488ce430360257ade5e4958f218cb7578cb9259667a38a8c471162a07292c806a248426ec1  client.c.patch
"
