From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/nbd/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 community/nbd/PKGBUILD (limited to 'community/nbd/PKGBUILD') diff --git a/community/nbd/PKGBUILD b/community/nbd/PKGBUILD new file mode 100644 index 000000000..bc073921d --- /dev/null +++ b/community/nbd/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 90984 2013-05-16 23:49:59Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +# Contributor: Christian Hesse +# Contributor: Ionut Biru +# Contributor: Gerhard Brauer + +pkgname=nbd +pkgver=3.3 +pkgrel=3 +pkgdesc="tools for network block devices, allowing you to use remote block devices over TCP/IP" +arch=('i686' 'x86_64') +url="http://nbd.sourceforge.net" +license=('GPL') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 + config nbd.service) +backup=('etc/nbd-server/config') +depends=('glib2') +install=nbd.install +md5sums=('cde8fe6e870b8a7459f12e5dcf572d86' + '2d05d426b8c2708d5f8a0d028fcbae05' + '5d1acc143018117174f79eff15afa038') + +build(){ + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr --sysconfdir=/etc --enable-syslog --sbindir=/usr/bin + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + + install -D -m644 "${srcdir}"/config "${pkgdir}"/etc/nbd-server/config + install -D -m644 "${srcdir}"/nbd.service "${pkgdir}"/usr/lib/systemd/system/nbd.service + + install -D -m644 README "${pkgdir}"/usr/share/doc/nbd/README +} -- cgit v1.2.3-54-g00ecf