2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-09-28 12:19:43 +02:00
|
|
|
#
|
2010-02-09 11:40:47 +01:00
|
|
|
# nbd
|
2006-09-28 12:19:43 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-09-28 12:19:43 +02:00
|
|
|
|
2014-05-23 02:43:48 +02:00
|
|
|
NBD_VERSION = 3.8
|
|
|
|
NBD_SOURCE = nbd-$(NBD_VERSION).tar.xz
|
2012-08-26 01:52:48 +02:00
|
|
|
NBD_SITE = http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION)
|
2014-09-27 21:32:44 +02:00
|
|
|
NBD_CONF_OPTS = $(if $(BR2_LARGEFILE),--enable-lfs,--disable-lfs)
|
2010-02-09 11:40:47 +01:00
|
|
|
NBD_DEPENDENCIES = libglib2
|
2013-04-15 04:42:10 +02:00
|
|
|
NBD_LICENSE = GPLv2
|
2014-06-24 20:55:52 +02:00
|
|
|
NBD_LICENSE_FILES = COPYING
|
2006-09-28 12:19:43 +02:00
|
|
|
|
2013-06-30 21:29:09 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2012-03-11 22:47:59 +01:00
|
|
|
# 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 11:40:47 +01:00
|
|
|
ifneq ($(BR2_NBD_CLIENT),y)
|
2010-09-02 00:12:18 +02:00
|
|
|
NBD_TOREMOVE += nbd-client
|
2009-11-22 21:18:11 +01:00
|
|
|
endif
|
2010-02-09 11:40:47 +01:00
|
|
|
ifneq ($(BR2_NBD_SERVER),y)
|
2010-09-02 00:12:18 +02:00
|
|
|
NBD_TOREMOVE += nbd-server
|
2009-11-22 21:18:11 +01:00
|
|
|
endif
|
2010-09-02 00:12:18 +02: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 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|