summaryrefslogtreecommitdiff
path: root/community/nbd/PKGBUILD
blob: 4417ed007754cce0051f74757e4c8fde980ab329 (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
27
28
29
30
31
32
33
# $Id: PKGBUILD 48213 2011-05-30 08:16:09Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Gerhard Brauer <gerbra@archlinux.de>

pkgname=nbd
pkgver=2.9.22
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
	config nbd)
backup=('etc/nbd-server/config')
depends=('glib2')
install=nbd.install
md5sums=('ff79803165a349a84d526bfcea820b12'
         '075be420c3d7d7fc9408def3cb8c470d'
         'e7b13a8b3369e11927d9917664557efa')

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

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

  install -D -m644 README "${pkgdir}"/usr/share/doc/nbd/README
}