unbound: moved to github
[packages.git] / net / nbd / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nbd
11 PKG_VERSION:=2.9.23
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/nbd
16 PKG_MD5SUM:=065b6ded41887a08be6dbb8d77280f24
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 # -liconv due to glib2, to be revisited later
23 include $(INCLUDE_DIR)/nls.mk
24
25 PKG_BUILD_DEPENDS:=glib2 libintl
26
27 define Package/nbd
28   SECTION:=net
29   CATEGORY:=Network
30   TITLE:=Network Block Device utilities
31   URL:=http://nbd.sourceforge.net
32   DEPENDS:=+kmod-nbd
33 endef
34
35 define Package/nbd/description
36   This package contains the network block device client.
37 endef
38
39 CONFIGURE_ARGS+= \
40         --disable-glibtest
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 nbd-client
45 endef
46
47 define Package/nbd/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nbd-client $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,nbd))