projects
/
openwrt
/
staging
/
yousong.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iproute2: add ip-tiny, ip-full as alternatives of /sbin/ip
[openwrt/staging/yousong.git]
/
package
/
network
/
utils
/
iproute2
/
Makefile
diff --git
a/package/network/utils/iproute2/Makefile
b/package/network/utils/iproute2/Makefile
index dbebd06f8e20c94efc5a1799cd705218878ad76b..efc60518f155f9fa67e577fd1a4e5e19fdc524a6 100644
(file)
--- a/
package/network/utils/iproute2/Makefile
+++ b/
package/network/utils/iproute2/Makefile
@@
-9,11
+9,11
@@
include $(TOPDIR)/rules.mk
PKG_NAME:=iproute2
PKG_VERSION:=4.4.0
PKG_NAME:=iproute2
PKG_VERSION:=4.4.0
-PKG_RELEASE:=
2
+PKG_RELEASE:=
9
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/net/iproute2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/net/iproute2
-PKG_
MD5SUM:=d762653ec3e1ab0d4a9689e169ca184f
+PKG_
HASH:=bc91c367288a19f78ef800cd6840363be1f22da8436fbae88e1a7250490d6514
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=GPL-2.0
PKG_BUILD_PARALLEL:=1
PKG_LICENSE:=GPL-2.0
@@
-22,22
+22,29
@@
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSI
include $(INCLUDE_DIR)/package.mk
define Package/iproute2/Default
include $(INCLUDE_DIR)/package.mk
define Package/iproute2/Default
- TITLE:=Routing control utility ($(2))
SECTION:=net
CATEGORY:=Network
URL:=http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
SUBMENU:=Routing and Redirection
MAINTAINER:=Russell Senior <russell@personaltelco.net>
DEPENDS:= +libnl-tiny
SECTION:=net
CATEGORY:=Network
URL:=http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
SUBMENU:=Routing and Redirection
MAINTAINER:=Russell Senior <russell@personaltelco.net>
DEPENDS:= +libnl-tiny
- VARIANT:=$(1)
endef
endef
-define Package/ip
-$(call Package/iproute2/Default,tiny,Minimal)
- CONFLICTS:=ip-full
+define Package/ip-tiny
+$(call Package/iproute2/Default)
+ TITLE:=Routing control utility (Minimal)
+ VARIANT:=tiny
+ PROVIDES:=ip
+ ALTERNATIVES:=200:/sbin/ip:/sbin/ip-tiny
endef
endef
-Package/ip-full=$(call Package/iproute2/Default,full,Full)
+define Package/ip-full
+$(call Package/iproute2/Default)
+ TITLE:=Routing control utility (Full)
+ VARIANT:=full
+ PROVIDES:=ip
+ ALTERNATIVES:=300:/sbin/ip:/sbin/ip-full
+endef
define Package/tc
$(call Package/iproute2/Default)
define Package/tc
$(call Package/iproute2/Default)
@@
-101,14
+108,14
@@
define Build/InstallDev
$(CP) $(PKG_BUILD_DIR)/lib/libnetlink.a $(1)/usr/lib/
endef
$(CP) $(PKG_BUILD_DIR)/lib/libnetlink.a $(1)/usr/lib/
endef
-define Package/ip/install
- $(INSTALL_DIR) $(1)/
usr/
bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/
usr/bin/
+define Package/ip
-tiny
/install
+ $(INSTALL_DIR) $(1)/
s
bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/
sbin/ip-tiny
endef
define Package/ip-full/install
endef
define Package/ip-full/install
- $(INSTALL_DIR) $(1)/
usr/
sbin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/
usr/sbin/
+ $(INSTALL_DIR) $(1)/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/
sbin/ip-full
endef
define Package/tc/install
endef
define Package/tc/install
@@
-138,7
+145,7
@@
define Package/nstat/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/nstat $(1)/usr/sbin/
endef
$(INSTALL_BIN) $(PKG_BUILD_DIR)/misc/nstat $(1)/usr/sbin/
endef
-$(eval $(call BuildPackage,ip))
+$(eval $(call BuildPackage,ip
-tiny
))
$(eval $(call BuildPackage,ip-full))
$(eval $(call BuildPackage,tc))
$(eval $(call BuildPackage,genl))
$(eval $(call BuildPackage,ip-full))
$(eval $(call BuildPackage,tc))
$(eval $(call BuildPackage,genl))