diff options
Diffstat (limited to 'community/mfs/PKGBUILD')
-rw-r--r-- | community/mfs/PKGBUILD | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/community/mfs/PKGBUILD b/community/mfs/PKGBUILD index bbfe1a88d..fcf870eb4 100644 --- a/community/mfs/PKGBUILD +++ b/community/mfs/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 68131 2012-03-18 14:31:17Z arodseth $ +# $Id: PKGBUILD 71606 2012-05-30 19:22:00Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Thomas S Hatch <thatch45@gmail.com> pkgbase=mfs pkgname=('mfs-client' 'mfs-chunkserver' 'mfs-master') -pkgver=1.6.24 +pkgver=1.6.25 pkgrel=1 pkgdesc="MooseFS, fault tolerant, network distributed file system" license=("GPL3") @@ -17,16 +17,16 @@ source=("http://www.moosefs.org/tl_files/mfscode/mfs-$pkgver.tar.gz" "mfschunkserver" "mfsmetalogger" "mfscgiserv") -sha256sums=('823c2c63d66dc8ba9d409e8af0f6c452cebc3a073f1d89b034e65320104eaa25' - '6e75a33996120cb5d240075bcc92522d490892fae5f9f5c4f2d1b020db54c9c1' - '48dc7a4e2ba23668456a2593154a850cebca649412f8c11e8f1a94038831638e' - 'aae5fdf39469eb47bb4962b51bbdb3c51772930f574010c29bb5a36f1820d0ee' - '357304173688536ab70b9978ae44317b07de1fdcf3736b31a94b2a6186e8e9fa') +sha256sums=('64b7ce749699e437f47e1561e8044362ea714a8dd2d3bad0c6a7165e9ad142ee' + '7c307f7be520644ac5d9c71e39ff7ec7e26800aa77c8a18c51a2d0087e5b2f48' + '2d07e544f4bfeb497c24276936d3a8ce9f906597d6b9c898dc491426b21e74e0' + 'd9c072cbb9d9645e5131d08b08628ccc2a2bef0a4e9c6fd8c3c33e50efce39f3' + 'a2e1951888887e928e68a3a010047fa3528182e93c086e4addb5abc14ea72c3b') build() { cd "$srcdir" - # Build the client + msg2 "Building client..." cp -r $pkgbase-$pkgver $pkgbase-client cd $pkgbase-client ./configure \ @@ -41,7 +41,7 @@ build() { cd .. - # Build the chunkserver + msg2 "Building chunkserver..." cp -r $pkgbase-$pkgver $pkgbase-chunk cd $pkgbase-chunk ./configure \ @@ -56,7 +56,7 @@ build() { cd .. - # Build the Master + msg2 "Building master..." cp -r $pkgbase-$pkgver $pkgbase-master cd $pkgbase-master ./configure \ @@ -72,31 +72,34 @@ package_mfs-client() { depends=('zlib' 'fuse' 'bash') cd "$srcdir/$pkgbase-client" make DESTDIR="$pkgdir" install - rm -rf $pkgdir/usr/share/man/man7 + rm -rf "$pkgdir/usr/share/man/man7" + rmdir "$pkgdir/usr/share/man/man5" } package_mfs-chunkserver() { depends=('zlib' 'bash') cd "$srcdir/$pkgbase-chunk" make DESTDIR="$pkgdir" install - rm -rf $pkgdir/usr/share/man/man7 - install -m 755 -D $srcdir/mfschunkserver $pkgdir/etc/rc.d/mfschunkserver + rm -rf "$pkgdir/usr/share/man/man7" + rmdir "$pkgdir/usr/share/man/man1" + install -Dm755 "$srcdir/mfschunkserver" "$pkgdir/etc/rc.d/mfschunkserver" + mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin" } package_mfs-master() { depends=('zlib' 'python2') cd "$srcdir/$pkgbase-master" make DESTDIR="$pkgdir" install - install -D -m0644 README $pkgdir/usr/share/doc/$pkgbase/README - install -D -m0644 INSTALL $pkgdir/usr/share/doc/$pkgbase/INSTALL - install -D -m0644 NEWS $pkgdir/usr/share/doc/$pkgbase/NEWS - install -D -m0644 UPGRADE $pkgdir/usr/share/doc/$pkgbase/UPGRADE - install -m 755 -D $srcdir/mfsmaster $pkgdir/etc/rc.d/mfsmaster - install -m 755 -D $srcdir/mfsmetalogger $pkgdir/etc/rc.d/mfsmetalogger - install -m 755 -D $srcdir/mfscgiserv $pkgdir/etc/rc.d/mfscgiserv - find "$pkgdir" -name 'mfscgiserv' -print0 |xargs -0 \ - sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \ - -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,' + install -Dm644 README "$pkgdir/usr/share/doc/$pkgbase/README" + install -Dm644 INSTALL "$pkgdir/usr/share/doc/$pkgbase/INSTALL" + install -Dm644 NEWS "$pkgdir/usr/share/doc/$pkgbase/NEWS" + install -Dm644 UPGRADE "$pkgdir/usr/share/doc/$pkgbase/UPGRADE" + install -Dm755 "$srcdir/mfsmaster" "$pkgdir/etc/rc.d/mfsmaster" + install -Dm755 "$srcdir/mfsmetalogger" "$pkgdir/etc/rc.d/mfsmetalogger" + install -Dm755 "$srcdir/mfscgiserv" "$pkgdir/etc/rc.d/mfscgiserv" + rmdir "$pkgdir/usr/share/man/man1" + mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin" + sed -i '0,/on/s//on2/' "$pkgdir/usr/bin/mfscgiserv" } # vim:set ts=2 sw=2 et: |