blob: 4b12d3b9a5013f1b9d748c0ab2e439b28d647f7d (
plain)
1 # Description: Share or use block devices with the NBD-protocol
2 # URL: http://nbd.sourceforge.net/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Depends on: glib
5
6 name=nbd
7 version=3.18
8 release=1
9 source=(nbd-server allow \
10 http://downloads.sourceforge.net/project/nbd/nbd/$version/$name-$version.tar.xz)
11
12 build() {
13 cd $name-$version
14
15 sed -i 's|CFLAGS+=" |CFLAGS="$CFLAGS |g' configure
16 sed -i 's|LIBS+=" |LIBS="$LIBS |g' configure
17
18 ./configure --prefix=/usr \
19 --sysconfdir=/etc
20
21 make
22 make DESTDIR=$PKG install
23
24 install -d $PKG/etc/nbd-server
25 install -D -m 600 $SRC/allow $PKG/etc/nbd-server/allow
26 install -D -m 755 $SRC/nbd-server $PKG/etc/rc.d/nbd-server
27
28 }
|