1 |
# checkout source with |
2 |
|
3 |
all: |
4 |
echo "make [checkout deb clean]" |
5 |
|
6 |
checkout: |
7 |
hg clone http://www.wizy.org/mercurial/zfs-fuse/trunk zfs-fuse |
8 |
|
9 |
install: uninstall |
10 |
cd src && scons install #install_dir=/usr/sbin/ |
11 |
|
12 |
uninstall: |
13 |
rm -vf /usr/local/sbin/zdb /usr/local/sbin/ztest /usr/local/sbin/zpool /usr/local/sbin/zfs /usr/local/sbin/zfs-fuse |
14 |
|
15 |
deb: uninstall zfs-fuse |
16 |
echo "ZFS on FUSE/Linux" > zfs-fuse/description-pak |
17 |
echo "install:" > zfs-fuse/Makefile |
18 |
echo " cd src && scons install" >> zfs-fuse/Makefile |
19 |
cd zfs-fuse && sudo checkinstall \ |
20 |
--pkgname zfs-fuse --pkgversion `hg log --limit 1 | cut -d: -f2 | head -1` \ |
21 |
--pkglicense CDDL --pkggroup contrib/non-free \ |
22 |
--pkgsource http://www.wizy.org/wiki/ZFS_on_FUSE --maintainer dpavlin@rot13.org \ |
23 |
--provides zfs --requires libfuse2,fuse-utils,libaio1 \ |
24 |
--exclude /rest/cvs/zfs-fuse/src/.sconsign.dblite \ |
25 |
|
26 |
clean: |
27 |
rm -Rf zfs-fuse/ |