summaryrefslogtreecommitdiff
path: root/community/nbd/PKGBUILD
blob: 7727dc7a9eea4a5e4d249e276fd0eebeef71eba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 38970 2011-02-04 10:43:11Z ibiru $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Gerhard Brauer <gerbra@archlinux.de>
pkgname=nbd
pkgver=2.9.20
pkgrel=1
pkgdesc="Tools for network block devices, allowing you to use remote block devices over TCP/IP."
arch=('i686' 'x86_64' 'mips64el')
url="http://nbd.sourceforge.net"
license=('GPL')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
	nbd.conf.d nbd)
depends=('glib2')
md5sums=('aec35f6beb7bb4cb2ee267fe0f72c8d6'
         '6d746f377a28b92dd2c80f01176cb811'
         'ab9c431881f5e3c98a8f6c04016f0e00')

build(){
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
  make DESTDIR="${pkgdir}" install

  install -D -m644 "${srcdir}"/nbd.conf.d "${pkgdir}"/etc/conf.d/nbd
  install -D -m755 "${srcdir}"/nbd "${pkgdir}"/etc/rc.d/nbd
}