mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
pciutils: use ALTERNATIVES
Use the ALTERNATIVES symlink handling to avoid conflicts with busybox lspci tool. Otherwise this package can not be installed if you also have enabled lspci from busybox. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
ba27353e34
commit
31b6d1c8c3
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=pciutils
|
PKG_NAME:=pciutils
|
||||||
PKG_VERSION:=3.14.0
|
PKG_VERSION:=3.14.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
|
PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
|
||||||
@@ -28,6 +28,7 @@ define Package/pciutils
|
|||||||
TITLE:=Linux PCI Utilities
|
TITLE:=Linux PCI Utilities
|
||||||
URL:=http://mj.ucw.cz/pciutils.shtml
|
URL:=http://mj.ucw.cz/pciutils.shtml
|
||||||
DEPENDS:=+libkmod +libpci +pciids
|
DEPENDS:=+libkmod +libpci +pciids
|
||||||
|
ALTERNATIVES:=200:/usr/bin/lspci:/usr/libexec/lspci-pciutils
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/pciutils/description
|
define Package/pciutils/description
|
||||||
@@ -71,8 +72,8 @@ define Build/InstallDev
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/pciutils/install
|
define Package/pciutils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/usr/libexec
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lspci $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lspci $(1)/usr/libexec/lspci-pciutils
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/setpci $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/setpci $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user