policycoreutils: fix ALTERNATIVES install location
[openwrt/staging/yousong.git] / package / utils / policycoreutils / Makefile
index 3fd0e390811f7eed70bf73cf7cb1fe6a1c06bb5b..03b3fd4879f5efecb53a8d001bb3092eab2acd9c 100644 (file)
@@ -135,7 +135,7 @@ endef
 define BuildUtil
   define Package/$(1)/install
        $(INSTALL_DIR) $$(1)$(2)
-       $(INSTALL_BIN) $$(PKG_INSTALL_DIR)$(2)/$(3) $$(1)$(2)
+       $(INSTALL_BIN) $$(PKG_INSTALL_DIR)$(2)/$(3) $$(1)$(2)/$(if $(ALTS_$(3)),policycoreutils-$(3),$(3))
   endef
 
   $$(eval $$(call BuildPackage,$(1)))