contrib/nbd/Pkgfile

29 lines
717 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
2018-10-09 23:20:55 +02:00
# Depends on: glib
2012-06-01 20:59:42 +02:00
name=nbd
2020-06-08 20:06:01 +02:00
version=3.20
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
2017-08-20 23:12:08 +02:00
2018-09-09 00:31:40 +02:00
sed -i 's|CFLAGS+=" |CFLAGS="$CFLAGS |g' configure
sed -i 's|LIBS+=" |LIBS="$LIBS |g' configure
2012-06-01 20:59:42 +02:00
./configure --prefix=/usr \
--sysconfdir=/etc
2017-08-20 23:12:08 +02:00
2012-06-01 20:59:42 +02:00
make
make DESTDIR=$PKG install
2017-08-20 23:12:08 +02:00
2012-06-01 20:59:42 +02:00
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
}