1 # Maintainer: Hubert Kario <kario@wit.edu.pl>
6 pkgdesc="High performance inline data deduplicating file system for FUSE"
9 url="http://www.lessfs.com/"
11 makedepends=('gcc' 'make' 'fuse' 'tokyocabinet' 'mhash' 'openssl')
12 depends=('tokyocabinet' 'mhash' 'openssl' 'lzo2')
13 optdepends=('hamsterdb: alternative database to tokyo cabinet'
14 'db: different alternative database to tokyo cabinet')
15 backup=('etc/lessfs/sample.cfg')
16 #conflicts=("$_pkgname")
17 #provides=("$_pkgname=$pkgver")
19 source=(http://sourceforge.net/projects/lessfs/files/lessfs/lessfs-$pkgver/lessfs-$pkgver.tar.gz/download)
20 sha1sums=('2f839a99d5e61afd1aca339f45ac97f1cda50cb4')
24 depts="--with-crypto --with-lzo"
26 if ( pacman -Q hamsterdb 2>/dev/null >/dev/null ); then
27 depts="$depts --with-hamsterdb"
29 echo "==================================";
31 echo "hamsterdb not found, skipping dependancy!";
32 echo "==================================";
35 if ( pacman -Q db 2>/dev/null >/dev/null ); then
36 depts="$depts --with-berkeleydb"
38 echo "==================================";
40 echo "Berkley DB (db) not found, skipping dependancy!";
41 echo "==================================";
44 if ( pacman -Q snappy 2>/dev/null >/dev/null ); then
45 depts="$depts --with-snappy"
47 echo "==================================";
49 echo "Google Snappy (snappy) not found, skipping dependancy!";
50 echo "==================================";
53 ./configure $depts --prefix=/usr || return 1 ;
56 make prefix="$pkgdir/usr" install || return 1
57 mkdir -p "$pkgdir/etc/lessfs"
58 install -m 644 -D etc/lessfs.cfg-hamsterdb $pkgdir/etc/lessfs/sample.cfg-hamsterdb
59 install -m 644 -D etc/lessfs.cfg-tokyocabinet $pkgdir/etc/lessfs/sample.cfg-tokyocabinet
60 install -m 644 -D etc/lessfs.cfg $pkgdir/etc/lessfs/sample.cfg
61 mkdir -p "$pkgdir/usr/share/doc/lessfs"
62 install -m 644 -D COLLISION.probability COPYING FAQ README README.berkeleydb README.chunk_io README.crypto README.file_io README.performance_or_suffer README.replication README.upgrade_to_1.5.2_with_replication ChangeLog "$pkgdir/usr/share/doc/lessfs"