[packages] mysql: use proper proc file in hostname patch
[openwrt/svn-archive/archive.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.18
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/nbd
16 PKG_MD5SUM:=a327cd23688df45a1c889e28c6494d70
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 PKG_BUILD_DEPENDS:=glib2 libintl
23
24 define Package/nbd
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Network Block Device utilities
28 URL:=http://nbd.sourceforge.net
29 DEPENDS:=@!LINUX_2_4 +kmod-nbd
30 endef
31
32 define Package/nbd/description
33 This package contains the network block device client.
34 endef
35
36 CONFIGURE_ARGS+= \
37 --disable-glibtest
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 nbd-client
42 endef
43
44 define Package/nbd/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nbd-client $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,nbd))