1 ################################################################################
5 ################################################################################
8 NBD_SOURCE
= nbd-
$(NBD_VERSION
).
tar.xz
9 NBD_SITE
= http
://downloads.sourceforge.net
/project
/nbd
/nbd
/$(NBD_VERSION
)
10 NBD_CONF_OPTS
= --enable-lfs
11 NBD_DEPENDENCIES
= libglib2
13 NBD_LICENSE_FILES
= COPYING
15 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC
),y
)
16 # We have linux/falloc.h
17 # but uClibc lacks fallocate(2) which is a glibc-ism
18 NBD_CONF_ENV
= ac_cv_header_linux_falloc_h
=no
21 ifneq ($(BR2_NBD_CLIENT
),y
)
22 NBD_TOREMOVE
+= nbd-client
24 ifneq ($(BR2_NBD_SERVER
),y
)
25 NBD_TOREMOVE
+= nbd-server
28 define NBD_CLEANUP_AFTER_INSTALL
29 rm -f
$(addprefix $(TARGET_DIR
)/usr
/sbin
/, $(NBD_TOREMOVE
))
32 NBD_POST_INSTALL_TARGET_HOOKS
+= NBD_CLEANUP_AFTER_INSTALL
34 $(eval
$(autotools-package
))