Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Alexander Rødseth <rodseth@gmail.com>
- pkgname=multipath-tools-git
- pkgver=20120601
- pkgrel=1
- pkgdesc="Tools to drive the Device Mapper multipathing driver (contains kpartx)"
- url="http://christophe.varoqui.free.fr/"
- arch=('x86_64' 'i686')
- license=('GPL2')
- depends=('libaio' 'device-mapper')
- makedepends=('git')
- options=(!emptydirs)
- _gitroot="http://git.opensvc.com/multipath-tools/.git"
- #_gitroot="http://kernel.org/pub/scm/linux/storage/multipath-tools/.git"
- _gitname="multipath-tools"
- build() {
- cd "$srcdir"
- msg "Connecting to github.com GIT server...."
- if [ -d "$_gitname" ] ; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- cd -
- else
- git clone "$_gitroot"
- fi
- msg "GIT checkout done or server timeout"
- cd "$_gitname"
- make
- }
- package() {
- cd "$srcdir/$_gitname"
- make LIB="/usr/lib" DESTDIR="$pkgdir" install
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
- }
- # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement