-# checkout source with
+# use newer zfs-fuse branch
+
+#upstream=http://www.wizy.org/mercurial/zfs-fuse/trunk
+#upstream=http://git.rudd-o.com/zfs/
+upstream=http://git.zfs-fuse.net/official/
all:
- echo "make [checkout deb]"
+ echo "make [checkout deb clean]"
checkout:
- hg clone http://www.wizy.org/mercurial/zfs-fuse/trunk zfs-fuse
+ git clone $(upstream) zfs-fuse
install: uninstall
- cd src && scons install #install_dir=/usr/sbin/
+ cd zfs-fuse/src && scons install #install_dir=/usr/sbin/
uninstall:
rm -vf /usr/local/sbin/zdb /usr/local/sbin/ztest /usr/local/sbin/zpool /usr/local/sbin/zfs /usr/local/sbin/zfs-fuse
-deb: uninstall zfs-fuse
+deb: uninstall
echo "ZFS on FUSE/Linux" > zfs-fuse/description-pak
echo "install:" > zfs-fuse/Makefile
echo " cd src && scons install" >> zfs-fuse/Makefile
cd zfs-fuse && sudo checkinstall \
--pkgname zfs-fuse --pkgversion `hg log --limit 1 | cut -d: -f2 | head -1` \
--pkglicense CDDL --pkggroup contrib/non-free \
- --pkgsource http://www.wizy.org/wiki/ZFS_on_FUSE --maintainer dpavlin@rot13.org \
+ --pkgsource $(upstream) --maintainer dpavlin@rot13.org \
--provides zfs --requires libfuse2,fuse-utils,libaio1 \
--exclude /rest/cvs/zfs-fuse/src/.sconsign.dblite \
+
+depends:
+ sudo apt-get install checkinstall libfuse-dev fuse-utils libaio-dev
+
+clean:
+ rm -Rf zfs-fuse/