contrib/nbd/Pkgfile

23 lines
627 B
Plaintext
Raw Normal View History

2013-04-12 10:11:29 +02:00
# Description: Share or use block devices with the NBD-protocol
# URL: http://nbd.sourceforge.net/
2012-06-01 20:59:42 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
name=nbd
2015-08-10 19:50:23 +02:00
version=3.11
2012-06-01 20:59:42 +02:00
release=1
source=(nbd-server allow \
2014-01-03 20:11:02 +01:00
http://downloads.sourceforge.net/project/nbd/nbd/$version/$name-$version.tar.xz)
2012-06-01 20:59:42 +02:00
build() {
cd $name-$version
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc
make
make DESTDIR=$PKG install
install -d $PKG/etc/nbd-server
install -D -m 600 $SRC/allow $PKG/etc/nbd-server/allow
install -D -m 755 $SRC/nbd-server $PKG/etc/rc.d/nbd-server
}