pciutils: install to /usr/bin rather than /usr/sbin
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 27 Nov 2014 22:51:11 +0000 (19:51 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 27 Nov 2014 23:07:01 +0000 (00:07 +0100)
Somehow busybox thinks debian standards are the rule and installs lspci
to /usr/bin instead of /usr/sbin where upstream says it belongs.
So install pciutils binaries there as well to really win over busybox
PATH-wise and overwrite the little bugger symlink.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pciutils/pciutils.mk

index 3abbf1840bc3707d6b0a0a086dbab31117194d03..2eefdc546bf98c1706936b9a6623b072701c63af 100644 (file)
@@ -65,12 +65,14 @@ endef
 
 define PCIUTILS_INSTALL_TARGET_CMDS
        $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
-               PREFIX=$(TARGET_DIR)/usr install install-lib install-pcilib
+               PREFIX=$(TARGET_DIR)/usr SBINDIR=$(TARGET_DIR)/usr/bin \
+               install install-lib install-pcilib
 endef
 
 define PCIUTILS_INSTALL_STAGING_CMDS
        $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) $(PCIUTILS_MAKE_OPTS) \
-               PREFIX=$(STAGING_DIR)/usr install install-lib install-pcilib
+               PREFIX=$(STAGING_DIR)/usr SBINDIR=$(STAGING_DIR)/usr/bin \
+               install install-lib install-pcilib
 endef
 
 $(eval $(generic-package))