replace lots of manual install commands with INSTALL_* variables
authorFelix Fietkau <nbd@openwrt.org>
Thu, 23 Nov 2006 00:29:07 +0000 (00:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 23 Nov 2006 00:29:07 +0000 (00:29 +0000)
SVN-Revision: 5624

46 files changed:
package/alsa/Makefile
package/ar7-atm/Makefile
package/arptables/Makefile
package/base-files/Makefile
package/bridge/Makefile
package/broadcom-wl/Makefile
package/comgt/Makefile
package/dnsmasq/Makefile
package/dropbear/Makefile
package/ebtables/Makefile
package/fuse/Makefile
package/gdbserver/Makefile
package/gmp/Makefile
package/haserl/Makefile
package/hostap-utils/Makefile
package/hostap/Makefile
package/hostapd/Makefile
package/iproute2/Makefile
package/ipsec-tools/Makefile
package/iptables/Makefile
package/isakmpd/Makefile
package/keynote/Makefile
package/libpcap/Makefile
package/linux-atm/Makefile
package/madwifi/Makefile
package/mtd/Makefile
package/nvram/Makefile
package/openssl/Makefile
package/openswan/Makefile
package/pcmcia-cs/Makefile
package/ppp/Makefile
package/pptp/Makefile
package/pwc/Makefile
package/robocfg/Makefile
package/rt2x00/Makefile
package/shfs/Makefile
package/spca5xx/Makefile
package/switch/Makefile
package/ueagle-atm/Makefile
package/util-linux/Makefile
package/wireless-tools/Makefile
package/wlcompat/Makefile
package/wpa_supplicant/Makefile
package/yamonenv/Makefile
package/zd1211/Makefile
package/zlib/Makefile

index 2ac0b9433b97c4612701f3294f78105b9bb990c2..7bd155078ed1377a85b7fdeb9e69cee3749d4ba1 100644 (file)
@@ -72,11 +72,11 @@ define Build/Compile
 endef
 
 define Package/kmod-alsa/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
-       install -m0644 $(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX) \
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/*.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
-       install -d -m0755 $(1)/etc/modules.d
-       install -m0644 ./files/alsa.modules $(1)/etc/modules.d/70-alsa
+       $(INSTALL_DIR) $(1)/etc/modules.d
+       $(INSTALL_DATA) ./files/alsa.modules $(1)/etc/modules.d/70-alsa
 endef
 
 $(eval $(call BuildPackage,kmod-alsa))
index 25ef3728d428eeab6c1eb0626b5a32f8ef3a3dcf..03bd5c119a45e1882399caedd05b1ee9154fad6a 100644 (file)
@@ -47,11 +47,11 @@ define Build/Compile
 endef
 
 define KernelPackage/sangam-atm-annex-a/install
-       install -m0644 $(PKG_BUILD_DIR)/ar0700xx_a.bin $(1)/lib/modules/ar0700xx.bin
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700xx_a.bin $(1)/lib/modules/ar0700xx.bin
 endef
 
 define KernelPackage/sangam-atm-annex-b/install
-       install -m0644 $(PKG_BUILD_DIR)/ar0700xx_b.bin $(1)/lib/modules/ar0700xx.bin
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700xx_b.bin $(1)/lib/modules/ar0700xx.bin
 endef
 
 $(eval $(call KernelPackage,sangam-atm-annex-a))
index 7c2f8a9dd0432f1cbe39f5d6dc3c875fd8ae4b41..ac3639a0fbe2982decd640274731d2e57788d64b 100644 (file)
@@ -36,7 +36,7 @@ define Build/Compile
 endef
 
 define Package/arptables/install
-       install -m0755 -d $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
 endef
 
index 62859294367a19b86f3e52ad9d726651e83a9266..16c6dc1eb82420993de55340d541964e320502f3 100644 (file)
@@ -125,18 +125,18 @@ define Package/base-files$(TARGET)/install
 endef
 
 define Package/libgcc/install
-       install -m0755 -d $(1)/lib
+       $(INSTALL_DIR) $(1)/lib
        $(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(1)/lib/
 endef
 
 define Package/libpthread/install
-       install -m0755 -d $(1)/lib
+       $(INSTALL_DIR) $(1)/lib
        $(CP) $(STAGING_DIR)/lib/libpthread.so.* $(1)/lib/
        $(CP) $(STAGING_DIR)/lib/libpthread-$(UCLIBC_VERSION).so $(1)/lib/
 endef
 
 define Package/uclibc/install
-       install -m0755 -d $(1)/lib
+       $(INSTALL_DIR) $(1)/lib
        for file in ld-uClibc libc libcrypt libdl libm libnsl libresolv librt libuClibc libutil; do \
                $(CP) $(STAGING_DIR)/lib/$$$$file.so.* $(1)/lib/; \
                $(CP) $(STAGING_DIR)/lib/$$$$file-$(UCLIBC_VERSION).so $(1)/lib/; \
index 07149fdee2e98a74874b4a8425255de719562906..0091af5a23337213081af0d6135ddd5757bd5d96 100644 (file)
@@ -38,8 +38,8 @@ define Build/Configure
 endef
 
 define Package/bridge/install
-       install -m0755 -d $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,bridge))
index b1a3573b1706ca9ae03aa243f82a8425a1f3c76b..769cfe8eabc025aa7fe149aab6858d466dd09983 100644 (file)
@@ -107,10 +107,10 @@ define Build/Compile
 endef
 
 define wl_template
-       install -d -m0755 $(1)/etc/modules.d
+       $(INSTALL_DIR) $(1)/etc/modules.d
        echo "wl$(2)" > $(1)/etc/modules.d/20-wl$(2)
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
-       install -m0644 $(PKG_BUILD_DIR)/kmod/wl$(2).o $(PKG_BUILD_DIR)/kmod/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/kmod/wl$(2).o $(PKG_BUILD_DIR)/kmod/wl$(2).o.patch $(1)/lib/modules/$(LINUX_VERSION)/
 endef
 
 define Package/kmod-brcm-wl/install
@@ -123,20 +123,20 @@ endef
 
 define Package/wlc/install
        $(CP) ./files/* $(1)/
-       install -d -m0755 $(1)/sbin
-       install -m0755 $(PKG_BUILD_DIR)/wlc/wlc $(1)/sbin/
+       $(INSTALL_DIR) $(1)/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/wlc/wlc $(1)/sbin/
 endef
 
 define Package/wl/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/wl $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/wl $(1)/usr/sbin/
 endef
 
 define Package/nas/install
-       install -d -m0755 $(1)/usr/lib
-       install -m0755 $(PKG_BUILD_DIR)/libbcmcrypto.so $(1)/usr/lib/
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/nas $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/libbcmcrypto.so $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/nas $(1)/usr/sbin/
        ln -sf nas $(1)/usr/sbin/nas4not
        ln -sf nas $(1)/usr/sbin/nas4wds
 endef
index 82a2e2fe397e330caaefc01b24ffa05e21419579..d22b72c53aa70ad464f676933d5caa2bf3639afd 100644 (file)
@@ -42,23 +42,23 @@ define Build/Compile
 endef
        
 define Package/comgt/install
-       install -d -m0755 $(1)/usr/bin
-       install -m0755 $(PKG_BUILD_DIR)/gcom $(1)/usr/bin/
-       install -d -m0755 $(1)/etc/ppp
-       install -m0755 ./files/3g.connect $(1)/etc/ppp/3g.connect
-       install -d -m0755 $(1)/etc/chatscripts
-       install -m0644 ./files/3g.chat $(1)/etc/chatscripts/3g.chat
-       install -d -m0755 $(1)/lib/network
-       install -m0644 ./files/3g.sh $(1)/lib/network/3g.sh
-       install -d -m0755 $(1)/etc/hotplug.d/button
-       install -m0644 ./files/3g.button $(1)/etc/hotplug.d/button/05-3g
-       install -d -m0755 $(1)/etc/hotplug.d/iface
-       install -m0644 ./files/3g.iface $(1)/etc/hotplug.d/iface/05-3g
-       install -d -m0755 $(1)/etc/gcom
-       install -m0644 ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom
-       install -m0644 ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
-       install -m0644 ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
-       install -m0644 ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/gcom $(1)/usr/bin/
+       $(INSTALL_DIR) $(1)/etc/ppp
+       $(INSTALL_BIN) ./files/3g.connect $(1)/etc/ppp/3g.connect
+       $(INSTALL_DIR) $(1)/etc/chatscripts
+       $(INSTALL_DATA) ./files/3g.chat $(1)/etc/chatscripts/3g.chat
+       $(INSTALL_DIR) $(1)/lib/network
+       $(INSTALL_DATA) ./files/3g.sh $(1)/lib/network/3g.sh
+       $(INSTALL_DIR) $(1)/etc/hotplug.d/button
+       $(INSTALL_DATA) ./files/3g.button $(1)/etc/hotplug.d/button/05-3g
+       $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
+       $(INSTALL_DATA) ./files/3g.iface $(1)/etc/hotplug.d/iface/05-3g
+       $(INSTALL_DIR) $(1)/etc/gcom
+       $(INSTALL_DATA) ./files/setpin.gcom $(1)/etc/gcom/setpin.gcom
+       $(INSTALL_DATA) ./files/setmode.gcom $(1)/etc/gcom/setmode.gcom
+       $(INSTALL_DATA) ./files/getcardinfo.gcom $(1)/etc/gcom/getcardinfo.gcom
+       $(INSTALL_DATA) ./files/getstrength.gcom $(1)/etc/gcom/getstrength.gcom
 endef
 
 $(eval $(call BuildPackage,comgt))
index e4d73332fddd0b668ceb1c525f1c1ca958dd76dc..e6af5672fa238b2b36064b174b607abddcb33afe 100644 (file)
@@ -43,12 +43,12 @@ define Build/Compile
 endef
 
 define Package/dnsmasq/install
-       install -m0755 -d $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
-       install -m0755 -d $(1)/etc
-       install -m0644 ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
-       install -m0755 -d $(1)/etc/init.d
-       install -m0755 ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_DATA) ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
 endef
 
 $(eval $(call BuildPackage,dnsmasq))
index 1f4e47d4e72035e462ec5e3f294b1e94e1b561e5..26a7616e996d1cd030f85c03ecfdb1973851a6c0 100644 (file)
@@ -97,23 +97,23 @@ define Build/Compile
 endef
        
 define Package/dropbear/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/dropbearmulti \
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearmulti \
                $(1)/usr/sbin/dropbear
-       install -d -m0755 $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        ln -sf ../sbin/dropbear $(1)/usr/bin/scp
        ln -sf ../sbin/dropbear $(1)/usr/bin/ssh
        ln -sf ../sbin/dropbear $(1)/usr/bin/dbclient
        ln -sf ../sbin/dropbear $(1)/usr/bin/dropbearkey
-       install -d -m0755 $(1)/etc/config
-       install -m0755 ./files/dropbear.config $(1)/etc/config/dropbear
-       install -d -m0755 $(1)/etc/init.d
-       install -m0755 ./files/dropbear.init $(1)/etc/init.d/dropbear
+       $(INSTALL_DIR) $(1)/etc/config
+       $(INSTALL_BIN) ./files/dropbear.config $(1)/etc/config/dropbear
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/dropbear.init $(1)/etc/init.d/dropbear
 endef
 
 define Package/dropbearconvert/install
-       install -d -m0755 $(1)/usr/bin
-       install -m0755 $(PKG_BUILD_DIR)/dropbearconvert \
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/dropbearconvert \
                $(1)/usr/bin/dropbearconvert
 endef
 
index a0e53a48d37d6f12959103d223c46ec161d452d4..41c1e0fcda62081ef220712e3cbecc1d32c7dfd3 100644 (file)
@@ -29,15 +29,15 @@ define Package/ebtables
 endef
 
 define Package/ebtables/install
-       install -d -m0755 $(1)/etc
-       install -m0644 $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
-       install -d -m0755 $(1)/usr/lib/ebtables
-       install -m0755 $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
-       install -m0755 $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/ethertypes $(1)/etc/
+       $(INSTALL_DIR) $(1)/usr/lib/ebtables
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib*.so $(1)/usr/lib/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/extensions/*.so $(1)/usr/lib/ebtables/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-save $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ebtables-restore $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,ebtables))
index 8c6b2ce56470e2803fb12dc3aa5645653dbc9107..fda8f1c514d81903d91a7b247ace360022e15125 100644 (file)
@@ -129,22 +129,22 @@ define Build/UninstallDev
 endef
 
 define Package/fuse-utils/install
-       install -d -m0755 $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
 endef
 
 define Package/kmod-fuse/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
-       install -d -m0755 $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
 endef
 
 define Package/libfuse/install
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(1)/usr/lib/
 endef
 
index c07eaf992796bd0c42f28e38b65defffb740c846..d4d149102df76be8b75c9b73dcca586b5b9c3af8 100644 (file)
@@ -61,7 +61,7 @@ define Build/Compile
 endef
 
 define Package/gdbserver/install       
-       install -m0755 -d $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
 endef
 
index 1470ead89aa99dfc8110f0cbe4af180eefd59028..5a58f8f8dac8d452e3aa5ece97603cf7da9980bb 100644 (file)
@@ -58,7 +58,7 @@ define Build/UninstallDev
 endef
 
 define Package/libgmp/install
-       install -m0755 -d $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/
 endef
 
index 83a7d848f85e87d7e8d2f4341607ff6652a9b555..15b64f7839a6b5d777d5cfdccf90daffa812fec1 100644 (file)
@@ -29,8 +29,8 @@ define Package/haserl
 endef
 
 define Package/haserl/install
-       install -m0755 -d $(1)/usr/bin
-       install -m0755 $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
 endef
 
 $(eval $(call BuildPackage,haserl))
index 68afdd2709d6d209b9bb608967ad563be0f0940f..4f4be05890b5e66e68c9d51209f9d887844bb8a2 100644 (file)
@@ -36,13 +36,13 @@ define Build/Compile
 endef
 
 define Package/hostap-utils/install    
-       install -m0755 -d $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
-       install -m0755 $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_crypt_conf $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_diag $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_io_debug $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostap_rid $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/prism2_srec $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/split_combined_hex $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,hostap-utils))
index ae20614558672c22f2c8554a09bf9065390913e7..4cc77a2177e7cd147da04741241f9b96cc030f0b 100644 (file)
@@ -121,13 +121,13 @@ ifeq ($(KERNEL),2.4)
   endef
 
   define Package/kmod-hostap-pci/install
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) \
                $(1)/lib/modules/$(LINUX_VERSION)/
   endef
 
   define Package/kmod-hostap-plx/install
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) \
                $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
index 659f3e5ea3ae842e9dff7430eac8a90c98ec547e..5c4ba22458f28cc417de2d0706416fb8e19afee4 100644 (file)
@@ -84,10 +84,10 @@ define Package/InstallTemplate
                rm -f $(PKG_BUILD_DIR)/.built; \
                $(MAKE) $(PKG_BUILD_DIR)/.built; \
        fi
-       install -m0755 -d $$(1)/etc
+       $(INSTALL_DIR) $$(1)/etc
        install -m0600 $(PKG_BUILD_DIR)_$(2)/madwifi.conf $$(1)/etc/hostapd.conf
-       install -m0755 -d $$(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)_$(2)/hostapd $$(1)/usr/sbin/
+       $(INSTALL_DIR) $$(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)_$(2)/hostapd $$(1)/usr/sbin/
 endef
 
 define Package/Template
@@ -120,8 +120,8 @@ define Build/Clean
 endef
 
 define Package/hostapd-utils/install
-       install -m0755 -d $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/hostapd_cli $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd_cli $(1)/usr/sbin/
 endef
 
 $(eval $(call Package/Template,hostapd,default))
index 3aa46bb83860252c7c43a164c26ed3b782fa3c3b..645d0349f496e584c1e546d279e180cc021ce6d3 100644 (file)
@@ -55,13 +55,13 @@ define Build/Compile
 endef
 
 define Package/ip/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/ip/ip $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ip/ip $(1)/usr/sbin/
 endef
 
 define Package/tc/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/tc/tc $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/tc/tc $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,ip))
index 2ae6b27eb5918c692a7e4bd5d9f300210c7461b6..586390a281dc06469ca5a2e546f8a4df36c08a12 100644 (file)
@@ -84,12 +84,12 @@ define Build/Compile
 endef
 
 define Package/ipsec-tools/install
-       install -d -m0755 $(1)/etc
+       $(INSTALL_DIR) $(1)/etc
        install -m0600 $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
-       install -d -m0755 $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
index 5fb069f6de61245ea03ddce953650bed9f7b417a..76014aa141ac3eaca9fe03639a3123e55bf8ed99 100644 (file)
@@ -191,30 +191,30 @@ define Build/UninstallDev
 endef
 
 define Package/iptables/install
-       install -d -m0755 $(1)/etc/config
-       install -m0644 ./files/firewall.config $(1)/etc/config/firewall
-       install -d -m0755 $(1)/etc/init.d
-       install -m0755 ./files/firewall.init $(1)/etc/init.d/firewall
-       install -m0755 ./files/firewall.user $(1)/etc/
-       install -d -m0755 $(1)/usr/lib
-       install -m0644 ./files/firewall.awk $(1)/usr/lib
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/etc/config
+       $(INSTALL_DATA) ./files/firewall.config $(1)/etc/config/firewall
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/firewall.init $(1)/etc/init.d/firewall
+       $(INSTALL_BIN) ./files/firewall.user $(1)/etc/
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_DATA) ./files/firewall.awk $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(1)/usr/sbin/
-       install -d -m0755 $(1)/usr/lib/iptables
+       $(INSTALL_DIR) $(1)/usr/lib/iptables
        (cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
                $(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN:xt_%=ipt_%)) $(1)/usr/lib/iptables/ \
        )
 endef
 
 define Package/iptables-utils/install
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables-{save,restore} $(1)/usr/sbin/
 endef
 
 define Package/ip6tables/install
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(1)/usr/sbin/
-       install -d -m0755 $(1)/usr/lib/iptables
+       $(INSTALL_DIR) $(1)/usr/lib/iptables
        (cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
                $(CP) libip6t_*.so $(1)/usr/lib/iptables/ \
        )
@@ -222,7 +222,7 @@ endef
 
 define BuildPlugin
   define Package/$(1)/install
-       install -m0755 -d $$(1)/usr/lib/iptables
+       $(INSTALL_DIR) $$(1)/usr/lib/iptables
        for m in $$(patsubst xt_%,ipt_%,$(2)); do \
                $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$$$$$${m}.so $$(1)/usr/lib/iptables/ ; \
        done
index a4e7ff7b0333dd723c4b5b74394ea42f546cb088..00153fd736260d3687098071e938e687142c5026 100644 (file)
@@ -44,7 +44,7 @@ define Build/Compile
 endef
 
 define Package/isakmpd/install
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/* $(1)/
 endef
 
index 38f1f6901d969de2dfdd2feb3b02e48841e58719..579300407bc7edc94b3942ee88a1a11c357afcc7 100644 (file)
@@ -61,7 +61,7 @@ define Build/UninstallDev
 endef
 
 define Package/keynote/install
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
 endef
 
index 93a090d3d6bb0682f8c0bcae6e877039adc62467..c33c034e8f040d339b3e1ec36713625717d4a24e 100644 (file)
@@ -89,7 +89,7 @@ define Build/UninstallDev
 endef
 
 define Package/libpcap/install
-       install -m0755 -d $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
 endef
 
index ced3da69ef810afddf6db7628a8f2d7a8d6a568d..9aae0a0b0ed1a4f0b59aedaf1ca5b3811156affe 100644 (file)
@@ -73,15 +73,15 @@ define Build/UninstallDev
 endef
 
 define Package/linux-atm/install
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
 endef
 
 define Package/br2684ctl/install
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(1)/usr/sbin/
-       install -d -m0755 $(1)/etc/hotplug.d/net
-       install -m0644 ./files/br2684.hotplug $(1)/etc/hotplug.d/net/30-br2684
+       $(INSTALL_DIR) $(1)/etc/hotplug.d/net
+       $(INSTALL_DATA) ./files/br2684.hotplug $(1)/etc/hotplug.d/net/30-br2684
 endef
 
 $(eval $(call BuildPackage,linux-atm))
index 2d952d1148658b012df89e462e390a371d7b77f8..dc06effa5be61be128e0a738135d19428a312369 100644 (file)
@@ -138,7 +138,7 @@ define KernelPackage/madwifi/install
        mkdir -p $(1)/etc/init.d
        mkdir -p $(1)/lib/modules/$(LINUX_VERSION)
        mkdir -p $(1)/usr/sbin
-       install -m0755 ./files/madwifi.init $(1)/etc/init.d/madwifi
+       $(INSTALL_BIN) ./files/madwifi.init $(1)/etc/init.d/madwifi
        $(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(1)/usr/sbin/
 endef
 
index 2a27f0f5c31650374d4f584b0205eea089fc3f12..8444bd8029e8f4ef810fa863c3e39a2460e590bf 100644 (file)
@@ -37,8 +37,8 @@ define Build/Compile
 endef
 
 define Package/mtd/install
-       install -d -m0755 $(1)/sbin
-       install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin/
+       $(INSTALL_DIR) $(1)/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/mtd $(1)/sbin/
 endef
 
 $(eval $(call BuildPackage,mtd))
index ab33c115144e963ecc3ae57e1114ac5704262f4a..87e8b0659eaeed14317666a56fc4af5849cbc730 100644 (file)
@@ -40,10 +40,10 @@ define Build/UninstallDev
 endef
 
 define Package/nvram/install
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,nvram))
index 7bb31c8cb311c9d7b8babc3e6db1ed3d7f7bf989..827c4415c00104793343a9e8a367204cc5e37f96 100644 (file)
@@ -115,18 +115,18 @@ define Build/UninstallDev
 endef
 
 define Package/libopenssl/install
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.so.* $(1)/usr/lib/
        chmod 0644 $(1)/usr/lib/*
 endef
 
 define Package/openssl-util/install
-       install -d -m0755 $(1)/etc/ssl
+       $(INSTALL_DIR) $(1)/etc/ssl
        $(CP) $(PKG_INSTALL_DIR)/etc/ssl/openssl.cnf $(1)/etc/ssl/
-       install -d -m0755 $(1)/etc/ssl/certs
-       install -d -m0755 $(1)/etc/ssl/private
+       $(INSTALL_DIR) $(1)/etc/ssl/certs
+       $(INSTALL_DIR) $(1)/etc/ssl/private
        chmod 0700 $(1)/etc/ssl/private
-       install -d -m0755 $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/openssl $(1)/usr/bin/
 endef
 
index b5adc542576f72c0bf3cfc30ad1c149409a405d2..a644b20db0f38d56db305327aa21eb52928f3a9e 100644 (file)
@@ -73,7 +73,7 @@ endef
 
 define Package/openswan/install
        $(CP) $(PKG_INSTALL_DIR)/* $(1)
-       install -d -m0755 $(1)/etc/init.d
+       $(INSTALL_DIR) $(1)/etc/init.d
        $(CP) ./files/ipsec.init $(1)/etc/init.d/ipsec
        rm -rf $(1)/usr/share
        rm -rf $(1)/usr/man
index 78419de75d49f9818e46bc08e04fb65aea61b1b8..2e312fbf12ac1426efe72369b95a87a710b97a8d 100644 (file)
@@ -58,9 +58,9 @@ define Build/Compile
 endef
 
 define Package/pcmcia-cs/install
-       install -d -m0755 $(1)/etc
+       $(INSTALL_DIR) $(1)/etc
        $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
        $(CP) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
 endef
index 7d05db09af7b3133d5e35e81631c29e34a9b3db6..7f11f65c8cc5967b79941bd6354aeebbae66ec10 100644 (file)
@@ -111,64 +111,64 @@ define Build/Compile
 endef
 
 define Package/ppp/install
-       install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppd $(1)/usr/sbin/
-       install -d -m0755 $(1)/lib/network
-       install -m0755 ./files/ppp.sh $(1)/lib/network/
-       install -d -m0755 $(1)/etc/ppp
+       $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppd $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/lib/network
+       $(INSTALL_BIN) ./files/ppp.sh $(1)/lib/network/
+       $(INSTALL_DIR) $(1)/etc/ppp
        install -m0600 ./files/etc/ppp/chap-secrets $(1)/etc/ppp/
-       install -m0644 ./files/etc/ppp/filter $(1)/etc/ppp/
-       install -m0755 ./files/etc/ppp/ip-up $(1)/etc/ppp/
-       install -d -m0755 $(1)/etc/ppp/ip-up.d
-       install -m0755 ./files/etc/ppp/ip-down $(1)/etc/ppp/
-       install -d -m0755 $(1)/etc/ppp/ip-down.d
-       install -m0644 ./files/etc/ppp/options $(1)/etc/ppp/
+       $(INSTALL_DATA) ./files/etc/ppp/filter $(1)/etc/ppp/
+       $(INSTALL_BIN) ./files/etc/ppp/ip-up $(1)/etc/ppp/
+       $(INSTALL_DIR) $(1)/etc/ppp/ip-up.d
+       $(INSTALL_BIN) ./files/etc/ppp/ip-down $(1)/etc/ppp/
+       $(INSTALL_DIR) $(1)/etc/ppp/ip-down.d
+       $(INSTALL_DATA) ./files/etc/ppp/options $(1)/etc/ppp/
        ln -sf /tmp/resolv.conf $(1)/etc/ppp/resolv.conf
 endef
        
 define Package/ppp-mod-pppoa/install
-       install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
-       install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
+       $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
                $(1)/usr/lib/pppd/$(PKG_VERSION)/
-       install -d -m0755 $(1)/lib/network
-       install -m0755 ./files/pppoa.sh $(1)/lib/network/
+       $(INSTALL_DIR) $(1)/lib/network
+       $(INSTALL_BIN) ./files/pppoa.sh $(1)/lib/network/
 endef
 
 define Package/ppp-mod-pppoe/install
-       install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
-       install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
+       $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
                $(1)/usr/lib/pppd/$(PKG_VERSION)/
-       install -d -m0755 $(1)/lib/network
-       install -m0755 ./files/pppoe.sh $(1)/lib/network/
+       $(INSTALL_DIR) $(1)/lib/network
+       $(INSTALL_BIN) ./files/pppoe.sh $(1)/lib/network/
 endef
 
 define Package/ppp-mod-radius/install
-       install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
-       install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
+       $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
                $(1)/usr/lib/pppd/$(PKG_VERSION)/
-       install -d -m0755 $(1)/etc/ppp
-       install -m0644 ./files/etc/ppp/radius.conf $(1)/etc/ppp/
-       install -d -m0755 $(1)/etc/ppp/radius
-       install -m0644 ./files/etc/ppp/radius/dictionary* \
+       $(INSTALL_DIR) $(1)/etc/ppp
+       $(INSTALL_DATA) ./files/etc/ppp/radius.conf $(1)/etc/ppp/
+       $(INSTALL_DIR) $(1)/etc/ppp/radius
+       $(INSTALL_DATA) ./files/etc/ppp/radius/dictionary* \
                $(1)/etc/ppp/radius/
        install -m0600 ./files/etc/ppp/radius/servers \
                $(1)/etc/ppp/radius/
 endef
 
 define Package/chat/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/chat $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chat $(1)/usr/sbin/
 endef
 
 define Package/pppdump/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(1)/usr/sbin/
 endef
 
 define Package/pppstats/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,ppp))
index bb0710419bf92c49b482b32a773c753f0bae47c0..081ff4e52adeb64f0f3f87a18fd067d09717f07a 100644 (file)
@@ -31,12 +31,12 @@ define Package/pptp
 endef
 
 define Package/pptp/install
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
-       install -d -m0755 $(1)/etc/ppp
-       install -m0644 ./files/options.pptp $(1)/etc/ppp/
-       install -d -m0755 $(1)/lib/network
-       install -m0755 ./files/pptp.sh $(1)/lib/network/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
+       $(INSTALL_DIR) $(1)/etc/ppp
+       $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
+       $(INSTALL_DIR) $(1)/lib/network
+       $(INSTALL_BIN) ./files/pptp.sh $(1)/lib/network/
 endef
 
 $(eval $(call BuildPackage,pptp))
index b2c281eed823fcf34ce92bb357e42ca7c980ba91..0b5925b4c8f53e68a03831e94c2e0410b2cff092 100644 (file)
@@ -44,8 +44,8 @@ endef
 
 define Package/kmod-pwc/install
        mkdir -p $(1)/etc/modules.d
-       install -m0644 ./files/pwc.modules $(1)/etc/modules.d/70-pwc
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DATA) ./files/pwc.modules $(1)/etc/modules.d/70-pwc
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/pwc.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
 endef
index c0e7e2c21effd681a0faec513934676179292a94..8538abfcfaf7f1d21cbbe5740b2a9ec0f10faecb 100644 (file)
@@ -31,8 +31,8 @@ define Build/Prepare
 endef
 
 define Package/robocfg/install
-       install -d -m0755 $(1)/sbin
-       install -m0755 $(PKG_BUILD_DIR)/robocfg $(1)/sbin/
+       $(INSTALL_DIR) $(1)/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/robocfg $(1)/sbin/
 endef
 
 $(eval $(call BuildPackage,robocfg))
index 0a49818eb5be0f36cce14c63d390ebf10717af88..c9502d83cccf1514f6abb8d864ec57e0bcfbc6f6 100644 (file)
@@ -42,8 +42,8 @@ endef
 
 define Package/kmod-rt2x00/install
        mkdir -p $(1)/etc/modules.d
-       install -m0644 ./files/rt2x00.modules $(1)/etc/modules.d/10-ralink
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DATA) ./files/rt2x00.modules $(1)/etc/modules.d/10-ralink
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/Module/rt61.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
 endef
index f4383a3f966ec6ebd13917d8e5a27e76e179f4af..2562001b7951377ace5c0246a8f0575909d2a00b 100644 (file)
@@ -77,15 +77,15 @@ define Build/Compile
 endef
 
 define Package/kmod-shfs/install
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
 endef
 
 define Package/shfs-utils/install
-       install -m0755 -d $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
-       install -m0755 -d $(1)/sbin
+       $(INSTALL_DIR) $(1)/sbin
        $(CP) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
 endef
 
index 643e5863f44d1a805c4d37bfc32317ff64e801c4..e2aebfda2e57eed388a56741183acf398b9f4339 100644 (file)
@@ -44,7 +44,7 @@ define Build/Compile
 endef
 
 define Package/kmod-spca5xx/install
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
 endef
index 07208bc30f7679de812ca7914d0417f0dc915b38..a0644abeb155220edc17527409b5dbe0a87c6c31 100644 (file)
@@ -41,12 +41,12 @@ define Build/Compile
 endef
        
 define Package/kmod-switch/install
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)
-       install -m0755 -d $(1)/lib/network/
-       install -m0755 ./files/switch.sh $(1)/lib/network/
-       install -m0755 -d $(1)/etc/modules.d/
+       $(INSTALL_DIR) $(1)/lib/network/
+       $(INSTALL_BIN) ./files/switch.sh $(1)/lib/network/
+       $(INSTALL_DIR) $(1)/etc/modules.d/
        printf 'switch-core\nswitch-robo\nswitch-adm\n' > $(1)/etc/modules.d/20-switch
 endef
 
index 7e93fe1acd80e5b0e14b4c14a6bc397718d8b33e..2e2bf43255a38b791683dbcbadda0f440a6544aa 100644 (file)
@@ -43,12 +43,12 @@ define Build/Compile
 endef
 
 define Package/kmod-ueagle-atm/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP)   $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX) \
                $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
-       install -d -m0755 $(1)/etc/modules.d
-       install -m0644 ./files/$(PKG_NAME).modules \
+       $(INSTALL_DIR) $(1)/etc/modules.d
+       $(INSTALL_DATA) ./files/$(PKG_NAME).modules \
                $(1)/etc/modules.d/10-$(PKG_NAME)
 endef
 
index 8ca8052ea12844506582d0baafc511c3666fa070..e265edb149830715f000a1745e28c8caa2afe202 100644 (file)
@@ -70,7 +70,7 @@ define Package/Template
                rm -f $(PKG_BUILD_DIR)/.built; \
                $(MAKE) $(PKG_BUILD_DIR)/.built; \
        fi
-       install -d -m0755 $(2)
+       $(INSTALL_DIR) $(2)
        $(CP) $(PKG_INSTALL_DIR)/$(1) $(2)/
 endef
 
index f78bef986a0c30456aa3a97f8ad6c9dad1037895..f07a406409f2f139f0014094c7a597d2fb9fcb8e 100644 (file)
@@ -61,10 +61,10 @@ define Build/UninstallDev
 endef
 
 define Package/wireless-tools/install
-       install -d -m0755  $(1)/usr/lib
-       install -m0755 $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
-       install -d -m0755 $(1)/usr/sbin
-       install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
+       $(INSTALL_DIR)  $(1)/usr/lib
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
 endef
 
 $(eval $(call BuildPackage,wireless-tools))
index 4a372946581cd7241f4874ef839cc3bbfae89ed1..44acaee1f1174ca1f7dedae4791d385497d38faf 100644 (file)
@@ -62,14 +62,14 @@ define Build/Compile
 endef
 
 define Package/kmod-wlcompat/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/wlcompat.o $(1)/lib/modules/$(LINUX_VERSION)/
-       install -d -m0755 $(1)/etc/modules.d
+       $(INSTALL_DIR) $(1)/etc/modules.d
        echo "wlcompat" > $(1)/etc/modules.d/30-wlcompat
 endef
 
 define Package/kmod-wlcompat-debug/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/wlcompat-debug.o $(1)/lib/modules/$(LINUX_VERSION)/
 endef
 
index b3fec0c120912cacbadf2cf09bd8fcef66674721..0530a95221235a2ef2612069e7766c164a503b57 100644 (file)
@@ -60,12 +60,12 @@ define Build/Compile
 endef
 
 define Package/wpa-supplicant/install
-       install -m0755 -d $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/wpa_supplicant $(1)/usr/sbin/
 endef
 
 define Package/wpa-cli/install
-       install -m0755 -d $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/wpa_cli $(1)/usr/sbin/
 endef
 
index dfb9bbb59ab8e116e53429ab003b63ea85e825a3..c67658ea9a64dd59276708f47149ee364c3a9a87 100644 (file)
@@ -33,7 +33,7 @@ define Build/Configure
 endef
 
 define Package/yamonenv/install
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/sbin/
 endef
 
index e5d2c2724f23c4d6beae423e0027cf53abddf391..0c152b975fae8a694683641e799db54aebdce1b5 100644 (file)
@@ -52,10 +52,10 @@ define Build/Compile
 endef
 
 define Package/kmod-zd1211/install
-       install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/zd1211.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)/
-       install -d -m0755 $(1)/usr/sbin
+       $(INSTALL_DIR) $(1)/usr/sbin
        $(CP) $(PKG_BUILD_DIR)/apdbg $(1)/usr/sbin/
        $(CP) $(PKG_BUILD_DIR)/sta $(1)/usr/sbin/$(PKG_NAME)-sta
 endef
index 02eb45d858ee3b238a91718463a90466d53cba47..74544bc86a6be57b28f7e31e5a082c773daafe6a 100644 (file)
@@ -67,7 +67,7 @@ define Build/UninstallDev
 endef
 
 define Package/zlib/install
-       install -d -m0755 $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
 endef