summaryrefslogtreecommitdiffstats
path: root/abs/extra/nbd/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 20:35:37 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 20:35:37 (GMT)
commitc16d87c6431130c7ef4081ced7372ebbf1c83ad5 (patch)
tree111b28bd625d2771885fe18269550b3364667d96 /abs/extra/nbd/PKGBUILD
parent2194e3567f7560cfbbe986444f0fc8cc4683922c (diff)
downloadlinhes_pkgbuild-c16d87c6431130c7ef4081ced7372ebbf1c83ad5.zip
linhes_pkgbuild-c16d87c6431130c7ef4081ced7372ebbf1c83ad5.tar.gz
linhes_pkgbuild-c16d87c6431130c7ef4081ced7372ebbf1c83ad5.tar.bz2
nbd: 3.2
Diffstat (limited to 'abs/extra/nbd/PKGBUILD')
-rw-r--r--abs/extra/nbd/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/abs/extra/nbd/PKGBUILD b/abs/extra/nbd/PKGBUILD
new file mode 100644
index 0000000..e02e890
--- /dev/null
+++ b/abs/extra/nbd/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 73924 2012-07-17 05:54:37Z 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=3.2
+pkgrel=2
+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 nbd.service)
+backup=('etc/nbd-server/config')
+depends=('glib2')
+install=nbd.install
+md5sums=('9cafce4ecfb55e670d7ded4c8f4e6bc9'
+ '2d05d426b8c2708d5f8a0d028fcbae05'
+ 'e7b13a8b3369e11927d9917664557efa'
+ '5d1acc143018117174f79eff15afa038')
+
+build(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --sysconfdir=/etc
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ 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 "${srcdir}"/nbd.service "${pkgdir}"/usr/lib/systemd/system/nbd.service
+
+ install -D -m644 README "${pkgdir}"/usr/share/doc/nbd/README
+}