2006-09-28 18:19:43 +08:00
|
|
|
#############################################################
|
|
|
|
#
|
2010-02-09 18:40:47 +08:00
|
|
|
# nbd
|
2006-09-28 18:19:43 +08:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2013-04-13 22:23:41 +08:00
|
|
|
NBD_VERSION = 3.3
|
2010-02-09 18:40:47 +08:00
|
|
|
NBD_SOURCE = nbd-$(NBD_VERSION).tar.bz2
|
2012-08-26 07:52:48 +08:00
|
|
|
NBD_SITE = http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION)
|
2010-02-09 18:40:47 +08:00
|
|
|
NBD_CONF_OPT = $(if $(BR2_LARGEFILE),--enable-lfs,--disable-lfs)
|
|
|
|
NBD_DEPENDENCIES = libglib2
|
2006-09-28 18:19:43 +08:00
|
|
|
|
2012-03-12 05:47:59 +08:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_BUILDROOT)$(BR2_TOOLCHAIN_EXTERNAL_UCLIBC)$(BR2_TOOLCHAIN_CTNG_uClibc),y)
|
|
|
|
# We have linux/falloc.h
|
|
|
|
# but uClibc lacks fallocate(2) which is a glibc-ism
|
|
|
|
NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no
|
|
|
|
endif
|
|
|
|
|
2010-02-09 18:40:47 +08:00
|
|
|
ifneq ($(BR2_NBD_CLIENT),y)
|
2010-09-02 06:12:18 +08:00
|
|
|
NBD_TOREMOVE += nbd-client
|
2009-11-23 04:18:11 +08:00
|
|
|
endif
|
2010-02-09 18:40:47 +08:00
|
|
|
ifneq ($(BR2_NBD_SERVER),y)
|
2010-09-02 06:12:18 +08:00
|
|
|
NBD_TOREMOVE += nbd-server
|
2009-11-23 04:18:11 +08:00
|
|
|
endif
|
2010-09-02 06:12:18 +08:00
|
|
|
|
|
|
|
define NBD_CLEANUP_AFTER_INSTALL
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(NBD_TOREMOVE))
|
|
|
|
endef
|
|
|
|
|
|
|
|
NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|