mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
nbd: new package nbd-server
Network block device server allows to export a block device from router to remote host. This is particularly useful if no network filesystem server is feasible or direct access to a block device is needed. It's been tested for nearly a month on ar71xx (TL-WR842ND) and proved to be very stable and efficient solution. The package comes with init.d script and conf.d file allowing to configure most nbd-server options using standard uci interface. Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
This commit is contained in:
+30
-1
@@ -37,12 +37,24 @@ define Package/nbd/description
|
||||
This package contains the network block device client.
|
||||
endef
|
||||
|
||||
define Package/nbd-server
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Network Block Device Server
|
||||
URL:=http://nbd.sourceforge.net
|
||||
DEPENDS:=+glib2
|
||||
endef
|
||||
|
||||
define Package/nbd-server/description
|
||||
This package contains the network block device server.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--disable-glibtest
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
nbd-client
|
||||
nbd-client nbd-server
|
||||
endef
|
||||
|
||||
define Package/nbd/install
|
||||
@@ -51,3 +63,20 @@ define Package/nbd/install
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,nbd))
|
||||
|
||||
define Package/nbd-server/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nbd-server $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/nbd-server.conf $(1)/etc/config/nbd-server
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/nbd-server.init $(1)/etc/init.d/nbd-server
|
||||
endef
|
||||
|
||||
define Package/nbd-server/conffiles
|
||||
/etc/config/nbd-server
|
||||
/etc/nbd-server/conf.d
|
||||
/etc/nbd-server/allow
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,nbd-server))
|
||||
|
||||
Reference in New Issue
Block a user