From: Nuno Goncalves Date: Wed, 20 May 2015 22:24:12 +0000 (+0100) Subject: usbip: move to github (closes #1259) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c87334ff721253edcec3ebe849a952c8e6214878;p=feed%2Fpackages.git usbip: move to github (closes #1259) Signed-off-by: Cezary Jackiewicz [nunojpg@gmail.com: Added PKG License and changed commit message] Signed-off-by: Nuno Goncalves --- c87334ff721253edcec3ebe849a952c8e6214878 diff --cc net/usbip/Makefile index 0000000000,ee8ebc91e5..8aa0df0eb7 mode 000000,100644..100644 --- a/net/usbip/Makefile +++ b/net/usbip/Makefile @@@ -1,0 -1,107 +1,108 @@@ + # + # Copyright (C) 2010-2015 OpenWrt.org + # + # This is free software, licensed under the GNU General Public License v2. + # See /LICENSE for more information. + # + + include $(TOPDIR)/rules.mk + include $(INCLUDE_DIR)/kernel.mk + + PKG_NAME:=usbip + PKG_RELEASE:=4 ++PKG_LICENSE:=GPL-2.0 + + # Since kernel 2.6.39.1 userspace tools are inside the kernel tree + # Package Automatic match version in kernel + # MD5SUM is not useful kernel package already check it + PKG_VERSION:=$(shell sed -n -e '/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp' $(LINUX_DIR)/tools/usb/usbip/configure.ac) + PKG_SOURCE:= + PKG_SOURCE_URL:= + PKG_MD5SUM:=unknown + + PKG_MAINTAINER:=Nuno Goncalves + + PATCH_DIR:=./patches-$(PKG_VERSION) + + define prepare_source_directory + rm -rf $(PKG_BUILD_DIR) + $(CP) $(LINUX_DIR)/tools/usb/usbip $(PKG_BUILD_DIR) + endef + Hooks/Prepare/Pre += prepare_source_directory + + PKG_BUILD_DEPENDS:=udev + PKG_FIXUP:=autoreconf + PKG_INSTALL:=1 + + include $(INCLUDE_DIR)/package.mk + include $(INCLUDE_DIR)/nls.mk + + define Package/usbip/Common + TITLE:=USB-over-IP + URL:=http://usbip.sourceforge.net/ + DEPENDS:=@USB_SUPPORT + endef + + define Package/usbip/Default + $(call Package/usbip/Common) + SECTION:=net + CATEGORY:=Network + endef + + define Package/usbip + $(call Package/usbip/Default) + TITLE+= (common) + DEPENDS+= +libwrap +kmod-usbip +udev + endef + + define Package/usbip-client + $(call Package/usbip/Default) + TITLE+= (client) + DEPENDS+= usbip +kmod-usbip-client + endef + + define Package/usbip-server + $(call Package/usbip/Default) + TITLE+= (server) + DEPENDS+= usbip +kmod-usbip-server + endef + + CONFIGURE_PATH:=. + MAKE_PATH:=. + LIBTOOL_PATHS:=. + MAKE_FLAGS+=CFLAGS="-Wno-implicit-function-declaration" + + define Build/Configure + (cd $(PKG_BUILD_DIR); ./autogen.sh ); + $(call Build/Configure/Default) + endef + + CFLAGS+="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" + + define Download/usb.ids + URL:=http://www.linux-usb.org/ + FILE:=usb.ids + MD5SUM:= + endef + + define Package/usbip/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbip.so.* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/share/hwdata + $(CP) $(DL_DIR)/usb.ids $(1)/usr/share/hwdata/ + endef + + define Package/usbip-client/install + $(INSTALL_DIR) $(1)/usr/sbin + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/usbip $(1)/usr/sbin/ + endef + + define Package/usbip-server/install + $(INSTALL_DIR) $(1)/usr/sbin + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/usbipd $(1)/usr/sbin/ + endef + + $(eval $(call Download,usb.ids)) + $(eval $(call BuildPackage,usbip)) + $(eval $(call BuildPackage,usbip-client)) + $(eval $(call BuildPackage,usbip-server))