From: Felix Fietkau Date: Tue, 12 Sep 2006 12:32:27 +0000 (+0000) Subject: replace cp -fpR and cp -a with $(CP) X-Git-Tag: whiterussian_rc6~135 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=07218b03f321ee8a428966e8847cc09deb3bdb6c;p=openwrt%2Fsvn-archive%2Fopenwrt.git replace cp -fpR and cp -a with $(CP) SVN-Revision: 4782 --- diff --git a/openwrt/package/asterisk/Makefile b/openwrt/package/asterisk/Makefile index ddc8a4f79a..ae7b1c10f5 100644 --- a/openwrt/package/asterisk/Makefile +++ b/openwrt/package/asterisk/Makefile @@ -74,7 +74,7 @@ $(PKG_BUILD_DIR)/.built: touch $@ $(IPKG_ASTERISK): - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_ASTERISK) + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_ASTERISK) rm -rf $(IDIR_ASTERISK)/usr/sbin/astgenkey rm -rf $(IDIR_ASTERISK)/usr/bin rm -rf $(IDIR_ASTERISK)/usr/share @@ -118,23 +118,23 @@ $(IPKG_ASTERISK): $(IPKG_ASTERISK_MINI): install -d -m0755 $(IDIR_ASTERISK_MINI)/etc/asterisk for f in asterisk enum extconfig extensions features iax iaxprov logger manager modules musiconhold rtp sip; do \ - cp -fpR $(PKG_INSTALL_DIR)/etc/asterisk/$$f.conf $(IDIR_ASTERISK_MINI)/etc/asterisk/ ; \ + $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$f.conf $(IDIR_ASTERISK_MINI)/etc/asterisk/ ; \ done install -m0644 ./files/modules.conf $(IDIR_ASTERISK)/etc/asterisk/ $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/keys install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/modules for f in chan_iax2 chan_local chan_sip codec_gsm codec_ulaw format_gsm format_pcm format_wav \ format_wav_gsm pbx_config res_features res_musiconhold; do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$f.so $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/modules/ ; \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$f.so $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/modules/ ; \ done install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/mohmp3 install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/sounds install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(IDIR_ASTERISK_MINI)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(IDIR_ASTERISK_MINI)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(IDIR_ASTERISK_MINI)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(IDIR_ASTERISK_MINI)/usr/sbin/ install -d -m0755 $(IDIR_ASTERISK_MINI)/etc/default install -m0644 ./files/asterisk.default $(IDIR_ASTERISK_MINI)/etc/default/asterisk install -d -m0755 $(IDIR_ASTERISK_MINI)/etc/init.d @@ -163,7 +163,7 @@ $(IPKG_ASTERISK_PGSQL): $(IPKG_ASTERISK_SOUNDS): install -d -m0755 $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds - cp -fpR $(PKG_BUILD_DIR)/sounds/* $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/ + $(CP) $(PKG_BUILD_DIR)/sounds/* $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/ rm -f $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/*.mp3 rm -f $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/vm-* $(IPKG_BUILD) $(IDIR_ASTERISK_SOUNDS) $(PACKAGE_DIR) @@ -175,7 +175,7 @@ $(IPKG_ASTERISK_VOICEMAIL): install -m0755 $(PKG_BUILD_DIR)/apps/*voicemail.so $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/modules/ install -m0755 $(PKG_BUILD_DIR)/res/res_adsi.so $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/modules/ install -d -m0755 $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/sounds - cp -fpR $(PKG_BUILD_DIR)/sounds/vm-*.gsm $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/sounds/ + $(CP) $(PKG_BUILD_DIR)/sounds/vm-*.gsm $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/sounds/ $(RSTRIP) $(IDIR_ASTERISK_VOICEMAIL) $(IPKG_BUILD) $(IDIR_ASTERISK_VOICEMAIL) $(PACKAGE_DIR) diff --git a/openwrt/package/base-files/Makefile b/openwrt/package/base-files/Makefile index dfe7c38664..30e6cfef23 100644 --- a/openwrt/package/base-files/Makefile +++ b/openwrt/package/base-files/Makefile @@ -39,7 +39,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BASE): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH) - cp -a ./default/* $(IDIR_BASE) + $(CP) ./default/* $(IDIR_BASE) mkdir -p $(IDIR_BASE)/dev mkdir -p $(IDIR_BASE)/etc/crontabs mkdir -p $(IDIR_BASE)/jffs @@ -61,8 +61,8 @@ $(IPKG_LIBC): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBC) ipkg/uclibc.control $(LIBC_VERSION)-$(PKG_RELEASE) $(ARCH) mkdir -p $(IDIR_LIBC)/lib for file in ld-uClibc libc libcrypt libdl libm libnsl libresolv librt libuClibc libutil; do \ - cp -fpR $(STAGING_DIR)/lib/$$file.so.* $(IDIR_LIBC)/lib/; \ - cp -fpR $(STAGING_DIR)/lib/$$file-$(LIBC_VERSION).so $(IDIR_LIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file.so.* $(IDIR_LIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file-$(LIBC_VERSION).so $(IDIR_LIBC)/lib/; \ done -$(STRIP) $(IDIR_LIBC)/lib/* $(IPKG_BUILD) $(IDIR_LIBC) $(PACKAGE_DIR) @@ -70,7 +70,7 @@ $(IPKG_LIBC): $(IPKG_GCC): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_GCC) ipkg/libgcc.control $(GCC_VERSION)-$(PKG_RELEASE) $(ARCH) mkdir -p $(IDIR_GCC)/lib - cp -fpR $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_GCC)/lib/ + $(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_GCC)/lib/ -$(STRIP) $(IDIR_GCC)/lib/* $(IPKG_BUILD) $(IDIR_GCC) $(PACKAGE_DIR) diff --git a/openwrt/package/chillispot/Makefile b/openwrt/package/chillispot/Makefile index a1e852948c..e141789fbb 100644 --- a/openwrt/package/chillispot/Makefile +++ b/openwrt/package/chillispot/Makefile @@ -65,6 +65,6 @@ $(IPKG_CHILLISPOT): install -m0755 -d $(IDIR_CHILLISPOT)/etc install -m0644 $(PKG_BUILD_DIR)/doc/chilli.conf $(IDIR_CHILLISPOT)/etc/ install -m0755 -d $(IDIR_CHILLISPOT)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/chilli $(IDIR_CHILLISPOT)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli $(IDIR_CHILLISPOT)/usr/sbin/ $(RSTRIP) $(IDIR_CHILLISPOT) $(IPKG_BUILD) $(IDIR_CHILLISPOT) $(PACKAGE_DIR) diff --git a/openwrt/package/cups/Makefile b/openwrt/package/cups/Makefile index 635ac5cde3..4f9e26b9a4 100644 --- a/openwrt/package/cups/Makefile +++ b/openwrt/package/cups/Makefile @@ -73,24 +73,24 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_CUPS): rm -rf $(IDIR_CUPS)/etc/cups install -d -m0755 $(IDIR_CUPS)/etc/cups - cp -fpR $(PKG_INSTALL_DIR)/etc/cups/* $(IDIR_CUPS)/etc/cups/ + $(CP) $(PKG_INSTALL_DIR)/etc/cups/* $(IDIR_CUPS)/etc/cups/ rm -rf $(IDIR_CUPS)/etc/cups/certs ln -sf /tmp $(IDIR_CUPS)/etc/cups/certs install -d -m0755 $(IDIR_CUPS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_CUPS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_CUPS)/usr/bin/ rm -f $(IDIR_CUPS)/usr/bin/cups-config install -d -m0755 $(IDIR_CUPS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcups.so.* $(IDIR_CUPS)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/cups $(IDIR_CUPS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.so.* $(IDIR_CUPS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/cups $(IDIR_CUPS)/usr/lib/ install -d -m0755 $(IDIR_CUPS)/usr/share/cups/templates - cp -fpR $(PKG_INSTALL_DIR)/usr/share/cups/templates/*.tmpl $(IDIR_CUPS)/usr/share/cups/templates/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/cups/templates/*.tmpl $(IDIR_CUPS)/usr/share/cups/templates/ install -d -m0755 $(IDIR_CUPS)/usr/share/doc/cups - cp -fpR $(PKG_INSTALL_DIR)/usr/share/doc/cups/index.html $(IDIR_CUPS)/usr/share/doc/cups/ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/doc/cups/images $(IDIR_CUPS)/usr/share/doc/cups/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/index.html $(IDIR_CUPS)/usr/share/doc/cups/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/cups/images $(IDIR_CUPS)/usr/share/doc/cups/ install -d -m0755 $(IDIR_CUPS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_CUPS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_CUPS)/usr/sbin/ # overwrite default config with our own - cp -fpR ./files/etc/cups/* $(IDIR_CUPS)/etc/cups/ + $(CP) ./files/etc/cups/* $(IDIR_CUPS)/etc/cups/ # install initscript with priority 60 install -d -m0755 $(IDIR_CUPS)/etc/init.d install -m0755 ./files/cupsd.init $(IDIR_CUPS)/etc/init.d/S60cupsd @@ -100,11 +100,11 @@ $(IPKG_CUPS): $(STAGING_DIR)/usr/lib/libcups.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/cups-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/cups-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/cups $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/cups $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcups.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcups.{a,so*} $(STAGING_DIR)/usr/lib/ install-dev: $(STAGING_DIR)/usr/lib/libcups.so diff --git a/openwrt/package/cyrus-sasl/Makefile b/openwrt/package/cyrus-sasl/Makefile index 2729883102..5fdc06f031 100644 --- a/openwrt/package/cyrus-sasl/Makefile +++ b/openwrt/package/cyrus-sasl/Makefile @@ -100,21 +100,21 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBSASL2): install -m0755 -d $(IDIR_LIBSASL2)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(IDIR_LIBSASL2)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.so.* $(IDIR_LIBSASL2)/usr/lib/ install -m0755 -d $(IDIR_LIBSASL2)/usr/lib/sasl2 - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(IDIR_LIBSASL2)/usr/lib/sasl2/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.so.* $(IDIR_LIBSASL2)/usr/lib/sasl2/ $(RSTRIP) $(IDIR_LIBSASL2) $(IPKG_BUILD) $(IDIR_LIBSASL2) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libsasl2.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/sasl $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/sasl $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsasl2.{a,so*} $(STAGING_DIR)/usr/lib/ ln -sf libsasl2.a $(STAGING_DIR)/usr/lib/libsasl.a ln -sf libsasl2.so $(STAGING_DIR)/usr/lib/libsasl.so mkdir -p $(STAGING_DIR)/usr/lib/sasl2 - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(STAGING_DIR)/usr/lib/sasl2/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/sasl2/lib*.{a,so*} $(STAGING_DIR)/usr/lib/sasl2/ install-dev: $(STAGING_DIR)/usr/lib/libsasl2.so diff --git a/openwrt/package/dhcp-forwarder/Makefile b/openwrt/package/dhcp-forwarder/Makefile index 3478fa0929..086d8e6d5a 100644 --- a/openwrt/package/dhcp-forwarder/Makefile +++ b/openwrt/package/dhcp-forwarder/Makefile @@ -62,6 +62,6 @@ $(IPKG_DHCP_FORWARDER): install -m0755 -d $(IDIR_DHCP_FORWARDER)/etc/init.d install -m0755 ./files/dhcp-fwd.init $(IDIR_DHCP_FORWARDER)/etc/init.d/dhcp-fwd install -m0755 -d $(IDIR_DHCP_FORWARDER)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(IDIR_DHCP_FORWARDER)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(IDIR_DHCP_FORWARDER)/usr/bin/ $(RSTRIP) $(IDIR_DHCP_FORWARDER) $(IPKG_BUILD) $(IDIR_DHCP_FORWARDER) $(PACKAGE_DIR) diff --git a/openwrt/package/dnsmasq/Makefile b/openwrt/package/dnsmasq/Makefile index 6b278a5ece..7b011e4825 100644 --- a/openwrt/package/dnsmasq/Makefile +++ b/openwrt/package/dnsmasq/Makefile @@ -27,7 +27,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_DNSMASQ): install -d -m0755 $(IDIR_DNSMASQ)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_DNSMASQ)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_DNSMASQ)/usr/sbin/ install -d -m0755 $(IDIR_DNSMASQ)/etc/init.d/ install -m0644 ./files/dnsmasq.conf $(IDIR_DNSMASQ)/etc/dnsmasq.conf install -m0755 ./files/S50dnsmasq $(IDIR_DNSMASQ)/etc/init.d/S50dnsmasq diff --git a/openwrt/package/dsniff/Makefile b/openwrt/package/dsniff/Makefile index 35dea6f077..92a75120a6 100644 --- a/openwrt/package/dsniff/Makefile +++ b/openwrt/package/dsniff/Makefile @@ -66,8 +66,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_DSNIFF): install -d -m0755 $(IDIR_DSNIFF)/usr/lib install -d -m0755 $(IDIR_DSNIFF)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_DSNIFF)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_DSNIFF)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_DSNIFF)/usr/sbin + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_DSNIFF)/usr/lib $(RSTRIP) $(IDIR_DSNIFF) $(IPKG_BUILD) $(IDIR_DSNIFF) $(PACKAGE_DIR) diff --git a/openwrt/package/fakeidentd/Makefile b/openwrt/package/fakeidentd/Makefile index f4050aa375..04459f450d 100644 --- a/openwrt/package/fakeidentd/Makefile +++ b/openwrt/package/fakeidentd/Makefile @@ -30,8 +30,8 @@ $(IPKG_FAKEIDENTD): $(IDIR_FAKEIDENTD)/etc/init.d \ $(IDIR_FAKEIDENTD)/etc/default/ echo $(whoami) > $(IDIR_FAKEIDENTD)/etc/default/$(PKG_NAME) - cp -fpR $(PKG_BUILD_DIR)/fakeidentd $(IDIR_FAKEIDENTD)/usr/sbin/ - cp -fpR ./files/$(PKG_NAME).init $(IDIR_FAKEIDENTD)/etc/init.d/$(PKG_NAME) + $(CP) $(PKG_BUILD_DIR)/fakeidentd $(IDIR_FAKEIDENTD)/usr/sbin/ + $(CP) ./files/$(PKG_NAME).init $(IDIR_FAKEIDENTD)/etc/init.d/$(PKG_NAME) $(RSTRIP) $(IDIR_FAKEIDENTD) $(IPKG_BUILD) $(IDIR_FAKEIDENTD) $(PACKAGE_DIR) diff --git a/openwrt/package/freeradius/Makefile b/openwrt/package/freeradius/Makefile index 4d84170d02..f9653577a5 100644 --- a/openwrt/package/freeradius/Makefile +++ b/openwrt/package/freeradius/Makefile @@ -83,12 +83,12 @@ define PKG_mod_template $$(IPKG_$(1)): [ -z "$(2)" ] || install -d -m0755 $$(IDIR_$(1))/usr/lib/freeradius for m in $(2); do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/freeradius/$$$${m}{,-*}.so \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius/$$$${m}{,-*}.so \ $$(IDIR_$(1))/usr/lib/freeradius/ ; \ done [ -z "$(3)" ] || install -d -m0755 $$(IDIR_$(1))/etc/freeradius for f in $(3); do \ - cp -fpR $(PKG_INSTALL_DIR)/etc/freeradius/$$$${f} \ + $(CP) $(PKG_INSTALL_DIR)/etc/freeradius/$$$${f} \ $$(IDIR_$(1))/etc/freeradius/ ; \ done $(RSTRIP) $$(IDIR_$(1)) @@ -186,28 +186,28 @@ $(IPKG_FREERADIUS): install -m0755 ./files/radiusd.init $(IDIR_FREERADIUS)/etc/init.d/radiusd install -m0755 -d $(IDIR_FREERADIUS)/etc/freeradius for f in clients.conf dictionary radiusd.conf; do \ - cp -fpR $(PKG_INSTALL_DIR)/etc/freeradius/$${f} \ + $(CP) $(PKG_INSTALL_DIR)/etc/freeradius/$${f} \ $(IDIR_FREERADIUS)/etc/freeradius/ ; \ done install -m0755 -d $(IDIR_FREERADIUS)/usr/share/freeradius - cp -fpR $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary \ + $(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary \ $(IDIR_FREERADIUS)/usr/share/freeradius/ for f in cisco freeradius microsoft tunnel wispr; do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary.$${f} \ + $(CP) $(PKG_INSTALL_DIR)/usr/share/freeradius/dictionary.$${f} \ $(IDIR_FREERADIUS)/usr/share/freeradius/ ; \ done install -m0755 -d $(IDIR_FREERADIUS)/usr/lib/freeradius - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/freeradius/libradius{,-*}.so \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/freeradius/libradius{,-*}.so \ $(IDIR_FREERADIUS)/usr/lib/freeradius/ install -m0755 -d $(IDIR_FREERADIUS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/radiusd \ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/radiusd \ $(IDIR_FREERADIUS)/usr/sbin/ $(RSTRIP) $(IDIR_FREERADIUS) $(IPKG_BUILD) $(IDIR_FREERADIUS) $(PACKAGE_DIR) $(IPKG_FREERADIUS_DEMOCERTS): install -m0755 -d $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius - cp -fpR $(PKG_INSTALL_DIR)/etc/freeradius/certs \ + $(CP) $(PKG_INSTALL_DIR)/etc/freeradius/certs \ $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/ rm -rf $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/certs/README rm -rf $(IDIR_FREERADIUS_DEMOCERTS)/etc/freeradius/certs/new* @@ -219,7 +219,7 @@ $(IPKG_FREERADIUS_DEMOCERTS): $(IPKG_FREERADIUS_UTILS): install -m0755 -d $(IDIR_FREERADIUS_UTILS)/usr/bin for f in radclient radeapclient radtest; do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/$${f} \ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/$${f} \ $(IDIR_FREERADIUS_UTILS)/usr/bin/ ; \ done $(RSTRIP) $(IDIR_FREERADIUS_UTILS) diff --git a/openwrt/package/fuse/Makefile b/openwrt/package/fuse/Makefile index 30b03a8d97..38b88bd398 100644 --- a/openwrt/package/fuse/Makefile +++ b/openwrt/package/fuse/Makefile @@ -70,23 +70,23 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBFUSE): mkdir -p $(IDIR_LIBFUSE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(IDIR_LIBFUSE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so.* $(IDIR_LIBFUSE)/usr/lib/ chmod 0644 $(IDIR_LIBFUSE)/usr/lib/lib*.so* $(RSTRIP) $(IDIR_LIBFUSE) $(IPKG_BUILD) $(IDIR_LIBFUSE) $(PACKAGE_DIR) $(IPKG_FUSE_UTILS): mkdir -p $(IDIR_FUSE_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/fusermount $(IDIR_FUSE_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(IDIR_FUSE_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_FUSE_UTILS) $(IPKG_BUILD) $(IDIR_FUSE_UTILS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libfuse.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/fuse* $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse* $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/ install-dev: $(STAGING_DIR)/usr/lib/libfuse.so diff --git a/openwrt/package/glib/Makefile b/openwrt/package/glib/Makefile index 473e8b6354..e82cd523ee 100644 --- a/openwrt/package/glib/Makefile +++ b/openwrt/package/glib/Makefile @@ -81,22 +81,22 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_GLIB1): install -m0755 -d $(IDIR_GLIB1)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-1.2.so.* $(IDIR_GLIB1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-1.2.so.* $(IDIR_GLIB1)/usr/lib/ $(RSTRIP) $(IDIR_GLIB1) $(IPKG_BUILD) $(IDIR_GLIB1) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libglib.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/glib-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/glib-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/glib-1.2 $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_BUILD_DIR)/glibconfig-sysdefs.h $(STAGING_DIR)/usr/include/glib-1.2/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/glib-1.2 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/glibconfig-sysdefs.h $(STAGING_DIR)/usr/include/glib-1.2/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}.{a,so} $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-*.so.* $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/glib $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}.{a,so} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libg{lib,module,thread}-*.so.* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/glib $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/g{lib,module,thread}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/g{lib,module,thread}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $(STAGING_DIR)/usr/lib/libglib.so install-dev: $(STAGING_DIR)/usr/lib/libglib.so diff --git a/openwrt/package/gmp/Makefile b/openwrt/package/gmp/Makefile index 975c4452d4..1f1a9c8b4e 100644 --- a/openwrt/package/gmp/Makefile +++ b/openwrt/package/gmp/Makefile @@ -60,15 +60,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBGMP): install -m0755 -d $(IDIR_LIBGMP)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(IDIR_LIBGMP)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(IDIR_LIBGMP)/usr/lib/ $(RSTRIP) $(IDIR_LIBGMP) $(IPKG_BUILD) $(IDIR_LIBGMP) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgmp.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gmp* $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgmp.so diff --git a/openwrt/package/haserl/Makefile b/openwrt/package/haserl/Makefile index d9e1faacc1..05c6b47b1e 100644 --- a/openwrt/package/haserl/Makefile +++ b/openwrt/package/haserl/Makefile @@ -55,7 +55,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_HASERL): install -m0755 -d $(IDIR_HASERL)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/haserl $(IDIR_HASERL)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/haserl $(IDIR_HASERL)/usr/bin/ $(RSTRIP) $(IDIR_HASERL) $(IPKG_BUILD) $(IDIR_HASERL) $(PACKAGE_DIR) diff --git a/openwrt/package/howl/Makefile b/openwrt/package/howl/Makefile index 9bb7c7ecdc..661121d5da 100644 --- a/openwrt/package/howl/Makefile +++ b/openwrt/package/howl/Makefile @@ -63,13 +63,13 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBHOWL): install -m0755 -d $(IDIR_LIBHOWL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.so.* $(IDIR_LIBHOWL)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.so.* $(IDIR_LIBHOWL)/usr/lib/ $(RSTRIP) $(IDIR_LIBHOWL) $(IPKG_BUILD) $(IDIR_LIBHOWL) $(PACKAGE_DIR) $(IPKG_HOWL_UTILS): install -m0755 -d $(IDIR_HOWL_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/mDNS{Browse,Publish,Query,Resolve} $(IDIR_HOWL_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/mDNS{Browse,Publish,Query,Resolve} $(IDIR_HOWL_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_HOWL_UTILS) $(IPKG_BUILD) $(IDIR_HOWL_UTILS) $(PACKAGE_DIR) @@ -79,7 +79,7 @@ $(IPKG_MDNSRESPONDER): install -m0755 -d $(IDIR_MDNSRESPONDER)/etc/init.d install -m0644 ./files/mDNSResponder.init $(IDIR_MDNSRESPONDER)/etc/init.d/mDNSResponder install -m0755 -d $(IDIR_MDNSRESPONDER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/mDNSResponder $(IDIR_MDNSRESPONDER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/mDNSResponder $(IDIR_MDNSRESPONDER)/usr/sbin/ $(RSTRIP) $(IDIR_MDNSRESPONDER) $(IPKG_BUILD) $(IDIR_MDNSRESPONDER) $(PACKAGE_DIR) @@ -87,7 +87,7 @@ $(IPKG_AUTOIPD): install -m0755 -d $(IDIR_AUTOIPD)/etc/init.d install -m0644 ./files/autoipd.init $(IDIR_AUTOIPD)/etc/init.d/autoipd install -m0755 -d $(IDIR_AUTOIPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/autoipd $(IDIR_AUTOIPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(IDIR_AUTOIPD)/usr/sbin/ $(RSTRIP) $(IDIR_AUTOIPD) $(IPKG_BUILD) $(IDIR_AUTOIPD) $(PACKAGE_DIR) @@ -95,17 +95,17 @@ $(IPKG_NIFD): install -m0755 -d $(IDIR_NIFD)/etc/init.d install -m0644 ./files/nifd.init $(IDIR_NIFD)/etc/init.d/nifd install -m0755 -d $(IDIR_NIFD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nifd $(IDIR_NIFD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/nifd $(IDIR_NIFD)/usr/sbin/ $(RSTRIP) $(IDIR_NIFD) $(IPKG_BUILD) $(IDIR_NIFD) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libhowl.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/howl $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/howl $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/howl.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/howl.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $(STAGING_DIR)/usr/lib/libhowl.so install-dev: $(STAGING_DIR)/usr/lib/libhowl.so diff --git a/openwrt/package/ipkg/Makefile b/openwrt/package/ipkg/Makefile index 8556796ff1..83ead33a17 100644 --- a/openwrt/package/ipkg/Makefile +++ b/openwrt/package/ipkg/Makefile @@ -61,9 +61,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPKG_C): install -d -m0755 $(IDIR_IPKG_C)/bin - cp -fpR $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG_C)/bin/ipkg + $(CP) $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG_C)/bin/ipkg install -d -m0755 $(IDIR_IPKG_C)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG_C)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG_C)/usr/lib/ $(RSTRIP) $(IDIR_IPKG_C) $(IPKG_BUILD) $(IDIR_IPKG_C) $(PACKAGE_DIR) diff --git a/openwrt/package/iptables/Makefile b/openwrt/package/iptables/Makefile index fa12f5953a..594785ef0e 100644 --- a/openwrt/package/iptables/Makefile +++ b/openwrt/package/iptables/Makefile @@ -22,7 +22,7 @@ define IPKG_plugin_template $$(IPKG_$(1)): install -m0755 -d $$(IDIR_$(1))/usr/lib/iptables for m in $(2); do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$${m}.so $$(IDIR_$(1))/usr/lib/iptables/ ; \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables/lib$$$${m}.so $$(IDIR_$(1))/usr/lib/iptables/ ; \ done @[ -z "$(3)" ] || $(MAKE) $(3) $(RSTRIP) $$(IDIR_$(1)) @@ -80,10 +80,10 @@ $(IPKG_IPTABLES): install -d -m0755 $(IDIR_IPTABLES)/usr/lib install -m0644 ./files/firewall.awk $(IDIR_IPTABLES)/usr/lib install -d -m0755 $(IDIR_IPTABLES)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/iptables $(IDIR_IPTABLES)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(IDIR_IPTABLES)/usr/sbin/ install -d -m0755 $(IDIR_IPTABLES)/usr/lib/iptables (cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \ - cp -fpR $(patsubst %,lib%.so,$(IPT_BUILTIN)) $(IDIR_IPTABLES)/usr/lib/iptables/ \ + $(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN)) $(IDIR_IPTABLES)/usr/lib/iptables/ \ ) $(RSTRIP) $(IDIR_IPTABLES) $(IPKG_BUILD) $(IDIR_IPTABLES) $(PACKAGE_DIR) @@ -93,25 +93,25 @@ $(IPKG_IPTABLES_EXTRA): $(IPKG_IPTABLES_UTILS): install -d -m0755 $(IDIR_IPTABLES_UTILS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/iptables-{save,restore} $(IDIR_IPTABLES_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables-{save,restore} $(IDIR_IPTABLES_UTILS)/usr/sbin/ $(RSTRIP) $(IDIR_IPTABLES_UTILS) $(IPKG_BUILD) $(IDIR_IPTABLES_UTILS) $(PACKAGE_DIR) $(IPKG_IP6TABLES): install -d -m0755 $(IDIR_IP6TABLES)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(IDIR_IP6TABLES)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(IDIR_IP6TABLES)/usr/sbin/ install -d -m0755 $(IDIR_IP6TABLES)/usr/lib/iptables (cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \ - cp -fpR libip6t_*.so $(IDIR_IP6TABLES)/usr/lib/iptables/ \ + $(CP) libip6t_*.so $(IDIR_IP6TABLES)/usr/lib/iptables/ \ ) $(RSTRIP) $(IDIR_IP6TABLES) $(IPKG_BUILD) $(IDIR_IP6TABLES) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libipq.a: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libipq.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libipq.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libipq.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipq.a $(STAGING_DIR)/usr/lib/ layer7-install: mkdir -p $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols diff --git a/openwrt/package/kismet/Makefile b/openwrt/package/kismet/Makefile index 5ccaadf9de..9d82c1499d 100644 --- a/openwrt/package/kismet/Makefile +++ b/openwrt/package/kismet/Makefile @@ -74,7 +74,7 @@ $(IPKG_KISMET_CLIENT): install -m0644 ./files/kismet.conf $(IDIR_KISMET_CLIENT)/etc/kismet/ install -m0644 ./files/kismet_ui.conf $(IDIR_KISMET_CLIENT)/etc/kismet/ install -d -m0755 $(IDIR_KISMET_CLIENT)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/kismet_client $(IDIR_KISMET_CLIENT)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/kismet_client $(IDIR_KISMET_CLIENT)/usr/bin/ $(RSTRIP) $(IDIR_KISMET_CLIENT) $(IPKG_BUILD) $(IDIR_KISMET_CLIENT) $(PACKAGE_DIR) @@ -82,7 +82,7 @@ $(IPKG_KISMET_DRONE): install -d -m0755 $(IDIR_KISMET_DRONE)/etc/kismet/ install -m0644 ./files/kismet_drone.conf $(IDIR_KISMET_DRONE)/etc/kismet/ install -d -m0755 $(IDIR_KISMET_DRONE)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/kismet_drone $(IDIR_KISMET_DRONE)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/kismet_drone $(IDIR_KISMET_DRONE)/usr/bin/ $(RSTRIP) $(IDIR_KISMET_DRONE) $(IPKG_BUILD) $(IDIR_KISMET_DRONE) $(PACKAGE_DIR) @@ -92,7 +92,7 @@ $(IPKG_KISMET_SERVER): install -m0644 ./files/client_manuf $(IDIR_KISMET_SERVER)/etc/kismet/ install -m0644 ./files/kismet.conf $(IDIR_KISMET_SERVER)/etc/kismet/ mkdir -p $(IDIR_KISMET_SERVER)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/kismet_server $(IDIR_KISMET_SERVER)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/kismet_server $(IDIR_KISMET_SERVER)/usr/bin/ $(RSTRIP) $(IDIR_KISMET_SERVER) $(IPKG_BUILD) $(IDIR_KISMET_SERVER) $(PACKAGE_DIR) diff --git a/openwrt/package/libdb/Makefile b/openwrt/package/libdb/Makefile index d54ab7b87b..753fb3fb60 100644 --- a/openwrt/package/libdb/Makefile +++ b/openwrt/package/libdb/Makefile @@ -69,15 +69,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBDB): $(STAGING_DIR)/usr/lib/libdb.so install -m0755 -d $(IDIR_LIBDB)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(IDIR_LIBDB)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(IDIR_LIBDB)/usr/lib/ $(RSTRIP) $(IDIR_LIBDB) $(IPKG_BUILD) $(IDIR_LIBDB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libdb.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/db.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libdb.so diff --git a/openwrt/package/libelf/Makefile b/openwrt/package/libelf/Makefile index 02ea765b0e..dc9295f163 100644 --- a/openwrt/package/libelf/Makefile +++ b/openwrt/package/libelf/Makefile @@ -69,15 +69,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBELF): install -d -m0755 $(IDIR_LIBELF)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(IDIR_LIBELF)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(IDIR_LIBELF)/usr/lib/ $(RSTRIP) $(IDIR_LIBELF) $(IPKG_BUILD) $(IDIR_LIBELF) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libelf.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libelf* $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libelf* $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libelf.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf.{a,so*} $(STAGING_DIR)/usr/lib/ install-dev: $(STAGING_DIR)/usr/lib/libelf.so diff --git a/openwrt/package/libevent/Makefile b/openwrt/package/libevent/Makefile index 4b00f1dd27..a835bea377 100644 --- a/openwrt/package/libevent/Makefile +++ b/openwrt/package/libevent/Makefile @@ -59,16 +59,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBEVENT): install -d -m0755 $(IDIR_LIBEVENT)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libevent-$(PKG_VERSION).so.* $(IDIR_LIBEVENT)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-$(PKG_VERSION).so.* $(IDIR_LIBEVENT)/usr/lib/ $(RSTRIP) $(IDIR_LIBEVENT) $(IPKG_BUILD) $(IDIR_LIBEVENT) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libevent.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/event.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/event.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libevent.{a,so} $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libevent-$(PKG_VERSION).so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.{a,so} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-$(PKG_VERSION).so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libevent.so diff --git a/openwrt/package/libffi-sable/Makefile b/openwrt/package/libffi-sable/Makefile index 8b9a368f91..54c6fba89d 100644 --- a/openwrt/package/libffi-sable/Makefile +++ b/openwrt/package/libffi-sable/Makefile @@ -62,15 +62,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBFFI_SABLE): install -m0755 -d $(IDIR_LIBFFI_SABLE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* $(IDIR_LIBFFI_SABLE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.so.* $(IDIR_LIBFFI_SABLE)/usr/lib/ $(RSTRIP) $(IDIR_LIBFFI_SABLE) $(IPKG_BUILD) $(IDIR_LIBFFI_SABLE) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libffi.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ffi{,target}.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libffi.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libffi.so diff --git a/openwrt/package/libgd/Makefile b/openwrt/package/libgd/Makefile index c180dd8151..619e090825 100644 --- a/openwrt/package/libgd/Makefile +++ b/openwrt/package/libgd/Makefile @@ -65,18 +65,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBGD): install -d -m0755 $(IDIR_LIBGD)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgd.so.* $(IDIR_LIBGD)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgd.so.* $(IDIR_LIBGD)/usr/lib/ $(RSTRIP) $(IDIR_LIBGD) $(IPKG_BUILD) $(IDIR_LIBGD) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgd.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/gdlib-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/gdlib-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/entities.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gd*.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/entities.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gd*.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgd.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgd.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgd.so diff --git a/openwrt/package/libgdbm/Makefile b/openwrt/package/libgdbm/Makefile index fa8a3dc020..73b675a4f4 100644 --- a/openwrt/package/libgdbm/Makefile +++ b/openwrt/package/libgdbm/Makefile @@ -62,15 +62,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBGDBM): $(STAGING_DIR)/usr/lib/libgdbm.so install -m0755 -d $(IDIR_LIBGDBM)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(IDIR_LIBGDBM)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(IDIR_LIBGDBM)/usr/lib/ $(RSTRIP) $(IDIR_LIBGDBM) $(IPKG_BUILD) $(IDIR_LIBGDBM) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgdbm.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libgdbm.so install-dev: $(STAGING_DIR)/usr/lib/libgdbm.so diff --git a/openwrt/package/libnet/Makefile b/openwrt/package/libnet/Makefile index 97b228e98f..fa80d76ebb 100644 --- a/openwrt/package/libnet/Makefile +++ b/openwrt/package/libnet/Makefile @@ -70,17 +70,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBNET): install -m0755 -d $(IDIR_LIBNET)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnet.so.* $(IDIR_LIBNET)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnet.so.* $(IDIR_LIBNET)/usr/lib/ $(RSTRIP) $(IDIR_LIBNET) $(IPKG_BUILD) $(IDIR_LIBNET) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libnet.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libnet-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libnet-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libnet* $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libnet* $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnet.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnet.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libnet.so diff --git a/openwrt/package/libnids/Makefile b/openwrt/package/libnids/Makefile index 8cb773e3e2..89cd835a04 100644 --- a/openwrt/package/libnids/Makefile +++ b/openwrt/package/libnids/Makefile @@ -62,15 +62,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBNIDS): $(STAGING_DIR)/usr/lib/libnids.so install -m0755 -d $(IDIR_LIBNIDS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnids.so.* $(IDIR_LIBNIDS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.so.* $(IDIR_LIBNIDS)/usr/lib/ $(RSTRIP) $(IDIR_LIBNIDS) $(IPKG_BUILD) $(IDIR_LIBNIDS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libnids.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/nids.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/nids.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnids.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libnids.so install-dev: $(STAGING_DIR)/usr/lib/libnids.so diff --git a/openwrt/package/libosip2/Makefile b/openwrt/package/libosip2/Makefile index d4e6d61518..dffb8f8ff9 100644 --- a/openwrt/package/libosip2/Makefile +++ b/openwrt/package/libosip2/Makefile @@ -68,17 +68,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBOSIP2): install -m0755 -d $(IDIR_LIBOSIP2)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(IDIR_LIBOSIP2)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(IDIR_LIBOSIP2)/usr/lib/ $(RSTRIP) $(IDIR_LIBOSIP2) $(IPKG_BUILD) $(IDIR_LIBOSIP2) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libosip2.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libosip2.so diff --git a/openwrt/package/libpcap/Makefile b/openwrt/package/libpcap/Makefile index d954294c95..1f59957e79 100644 --- a/openwrt/package/libpcap/Makefile +++ b/openwrt/package/libpcap/Makefile @@ -65,15 +65,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBPCAP): install -m0755 -d $(IDIR_LIBPCAP)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(IDIR_LIBPCAP)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(IDIR_LIBPCAP)/usr/lib/ $(RSTRIP) $(IDIR_LIBPCAP) $(IPKG_BUILD) $(IDIR_LIBPCAP) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libpcap.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/pcap* $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/pcap* $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libpcap.so install-dev: $(STAGING_DIR)/usr/lib/libpcap.so diff --git a/openwrt/package/libpng/Makefile b/openwrt/package/libpng/Makefile index 104331ba73..b95525ece2 100644 --- a/openwrt/package/libpng/Makefile +++ b/openwrt/package/libpng/Makefile @@ -60,20 +60,20 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBPNG): install -d -m0755 $(IDIR_LIBPNG)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.so.* $(IDIR_LIBPNG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.so.* $(IDIR_LIBPNG)/usr/lib/ $(RSTRIP) $(IDIR_LIBPNG) $(IPKG_BUILD) $(IDIR_LIBPNG) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libpng.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libpng{,12}-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libpng{,12}-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/png{,conf}.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libpng $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/png{,conf}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libpng $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpng{,12}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpng{,12}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ install-dev: $(STAGING_DIR)/usr/lib/libpng.so diff --git a/openwrt/package/libpthread/Makefile b/openwrt/package/libpthread/Makefile index e74eda78f0..a642959ce1 100644 --- a/openwrt/package/libpthread/Makefile +++ b/openwrt/package/libpthread/Makefile @@ -27,8 +27,8 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBPTHREAD): mkdir -p $(IDIR_LIBPTHREAD)/lib - cp -fpR $(STAGING_DIR)/lib/libpthread.so.* $(IDIR_LIBPTHREAD)/lib/ - cp -fpR $(STAGING_DIR)/lib/libpthread-*.so $(IDIR_LIBPTHREAD)/lib/ + $(CP) $(STAGING_DIR)/lib/libpthread.so.* $(IDIR_LIBPTHREAD)/lib/ + $(CP) $(STAGING_DIR)/lib/libpthread-*.so $(IDIR_LIBPTHREAD)/lib/ $(RSTRIP) $(IDIR_LIBPTHREAD) $(IPKG_BUILD) $(IDIR_LIBPTHREAD) $(PACKAGE_DIR) diff --git a/openwrt/package/libtool/Makefile b/openwrt/package/libtool/Makefile index e1047e1ec6..3d7651876b 100644 --- a/openwrt/package/libtool/Makefile +++ b/openwrt/package/libtool/Makefile @@ -61,15 +61,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBLTDL): install -m0755 -d $(IDIR_LIBLTDL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libltdl.so.* $(IDIR_LIBLTDL)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libltdl.so.* $(IDIR_LIBLTDL)/usr/lib/ $(RSTRIP) $(IDIR_LIBLTDL) $(IPKG_BUILD) $(IDIR_LIBLTDL) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libltdl.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ltdl.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ltdl.h $(STAGING_DIR)/usr/include/ mkdir -p $(I_LIBLTDL_DEV)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libltdl.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libltdl.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libltdl.so diff --git a/openwrt/package/libusb/Makefile b/openwrt/package/libusb/Makefile index 486de904c7..538a05a4f3 100644 --- a/openwrt/package/libusb/Makefile +++ b/openwrt/package/libusb/Makefile @@ -61,17 +61,17 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBUSB): install -m0755 -d $(IDIR_LIBUSB)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(IDIR_LIBUSB)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(IDIR_LIBUSB)/usr/lib/ $(RSTRIP) $(IDIR_LIBUSB) $(IPKG_BUILD) $(IDIR_LIBUSB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libusb.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/usb.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/usb.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libusb*.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libusb.so diff --git a/openwrt/package/lighttpd/Makefile b/openwrt/package/lighttpd/Makefile index 4636c73cf6..8f0adb8d30 100644 --- a/openwrt/package/lighttpd/Makefile +++ b/openwrt/package/lighttpd/Makefile @@ -98,7 +98,7 @@ $(IPKG_LIGHTTPD): install -m0755 -d $(IDIR_LIGHTTPD)/etc/init.d install -m0755 ./files/lighttpd.init $(IDIR_LIGHTTPD)/etc/init.d/lighttpd install -m0755 -d $(IDIR_LIGHTTPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/lighttpd $(IDIR_LIGHTTPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lighttpd $(IDIR_LIGHTTPD)/usr/sbin/ $(RSTRIP) $(IDIR_LIGHTTPD) $(IPKG_BUILD) $(IDIR_LIGHTTPD) $(PACKAGE_DIR) diff --git a/openwrt/package/lua/Makefile b/openwrt/package/lua/Makefile index 95f5fec12a..b17b60a5de 100644 --- a/openwrt/package/lua/Makefile +++ b/openwrt/package/lua/Makefile @@ -57,19 +57,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBLUA): install -d -m0755 $(IDIR_LIBLUA)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/liblua{,lib}.so.* $(IDIR_LIBLUA)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblua{,lib}.so.* $(IDIR_LIBLUA)/usr/lib/ $(RSTRIP) $(IDIR_LIBLUA) $(IPKG_BUILD) $(IDIR_LIBLUA) $(PACKAGE_DIR) $(IPKG_LUA_INTERPRETER): install -d -m0755 $(IDIR_LUA_INTERPRETER)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/lua $(IDIR_LUA_INTERPRETER)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/lua $(IDIR_LUA_INTERPRETER)/usr/bin/ $(RSTRIP) $(IDIR_LUA_INTERPRETER) $(IPKG_BUILD) $(IDIR_LUA_INTERPRETER) $(PACKAGE_DIR) $(IPKG_LUA_COMPILER): install -d -m0755 $(IDIR_LUA_COMPILER)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/luac $(IDIR_LUA_COMPILER)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/luac $(IDIR_LUA_COMPILER)/usr/bin/ $(RSTRIP) $(IDIR_LUA_COMPILER) $(IPKG_BUILD) $(IDIR_LUA_COMPILER) $(PACKAGE_DIR) @@ -82,10 +82,10 @@ $(IPKG_LUA_EXAMPLES): $(STAGING_DIR)/usr/lib/liblua.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/lua{,lib}.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/lauxlib.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/lua{,lib}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/lauxlib.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/liblua{,lib}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblua{,lib}.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/liblua.so diff --git a/openwrt/package/lzo/Makefile b/openwrt/package/lzo/Makefile index 81c749b0c0..b7e6324117 100644 --- a/openwrt/package/lzo/Makefile +++ b/openwrt/package/lzo/Makefile @@ -60,15 +60,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBLZO): install -d -m0755 $(IDIR_LIBLZO)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/liblzo.so.* $(IDIR_LIBLZO)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo.so.* $(IDIR_LIBLZO)/usr/lib $(RSTRIP) $(IDIR_LIBLZO) $(IPKG_BUILD) $(IDIR_LIBLZO) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/liblzo.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/lzo*.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo*.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/liblzo.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/liblzo.so install-dev: $(STAGING_DIR)/usr/lib/liblzo.so diff --git a/openwrt/package/madwifi-tools/Makefile b/openwrt/package/madwifi-tools/Makefile index 202c927d3a..05c249663b 100644 --- a/openwrt/package/madwifi-tools/Makefile +++ b/openwrt/package/madwifi-tools/Makefile @@ -27,7 +27,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_MADWIFI_TOOLS): mkdir -p $(IDIR_MADWIFI_TOOLS)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/tools/athstats \ + $(CP) $(PKG_BUILD_DIR)/tools/athstats \ $(PKG_BUILD_DIR)/tools/athdebug \ $(PKG_BUILD_DIR)/tools/80211stats \ $(PKG_BUILD_DIR)/tools/80211debug \ diff --git a/openwrt/package/maradns/Makefile b/openwrt/package/maradns/Makefile index 4b037d7c64..0e8f81f467 100644 --- a/openwrt/package/maradns/Makefile +++ b/openwrt/package/maradns/Makefile @@ -45,8 +45,8 @@ $(IPKG_MARADNS): install -d -m0755 $(IDIR_MARADNS)/etc/init.d install -m0755 ./files/maradns.init $(IDIR_MARADNS)/etc/init.d/S60maradns install -d -m0755 $(IDIR_MARADNS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/{askmara,getzone,fetchzone,duende} $(IDIR_MARADNS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/{askmara,getzone,fetchzone,duende} $(IDIR_MARADNS)/usr/bin/ install -d -m0755 $(IDIR_MARADNS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/{maradns,zoneserver} $(IDIR_MARADNS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/{maradns,zoneserver} $(IDIR_MARADNS)/usr/sbin/ $(RSTRIP) $(IDIR_MARADNS) $(IPKG_BUILD) $(IDIR_MARADNS) $(PACKAGE_DIR) diff --git a/openwrt/package/matrixssl/Makefile b/openwrt/package/matrixssl/Makefile index f106c4de81..32caef5a55 100644 --- a/openwrt/package/matrixssl/Makefile +++ b/openwrt/package/matrixssl/Makefile @@ -29,16 +29,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBMATRIXSSL): install -d -m0755 $(IDIR_LIBMATRIXSSL)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(IDIR_LIBMATRIXSSL)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(IDIR_LIBMATRIXSSL)/usr/lib/ $(RSTRIP) $(IDIR_LIBMATRIXSSL) $(IPKG_BUILD) $(IDIR_LIBMATRIXSSL) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libmatrixssl.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include/matrixSsl - cp -fpR $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl + $(CP) $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl ln -sf matrixSsl/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl.h mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib + $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib install-dev: $(STAGING_DIR)/usr/lib/libmatrixssl.so diff --git a/openwrt/package/monit/Makefile b/openwrt/package/monit/Makefile index bbb7c86701..a7fe422463 100644 --- a/openwrt/package/monit/Makefile +++ b/openwrt/package/monit/Makefile @@ -55,6 +55,6 @@ $(IPKG_MONIT): install -d -m0755 $(IDIR_MONIT)/etc/init.d install -m0755 ./files/monit.init $(IDIR_MONIT)/etc/init.d/monit install -d -m0755 $(IDIR_MONIT)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/monit $(IDIR_MONIT)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/monit $(IDIR_MONIT)/usr/sbin/ $(STRIP) $(IDIR_MONIT)/usr/sbin/monit $(IPKG_BUILD) $(IDIR_MONIT) $(PACKAGE_DIR) diff --git a/openwrt/package/mysql/Makefile b/openwrt/package/mysql/Makefile index b0af5d7e3b..3cde749dde 100644 --- a/openwrt/package/mysql/Makefile +++ b/openwrt/package/mysql/Makefile @@ -104,17 +104,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBMYSQLCLIENT): install -d -m0755 $(IDIR_LIBMYSQLCLIENT)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(IDIR_LIBMYSQLCLIENT)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(IDIR_LIBMYSQLCLIENT)/usr/lib/ $(RSTRIP) $(IDIR_LIBMYSQLCLIENT) $(IPKG_BUILD) $(IDIR_LIBMYSQLCLIENT) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/mysql_config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/mysql $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/mysql $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/mysql $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql $(STAGING_DIR)/usr/lib/ rm -f $(STAGING_DIR)/usr/lib/mysql/libmysqlclient.la touch $@ diff --git a/openwrt/package/ncurses/Makefile b/openwrt/package/ncurses/Makefile index c5442fb6e3..e56c3a5bb7 100644 --- a/openwrt/package/ncurses/Makefile +++ b/openwrt/package/ncurses/Makefile @@ -122,11 +122,11 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBNCURSES): install -d -m0755 $(IDIR_LIBNCURSES)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu}*.so.* $(IDIR_LIBNCURSES)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu}*.so.* $(IDIR_LIBNCURSES)/usr/lib/ install -d -m0755 $(IDIR_LIBNCURSES)/usr/share/terminfo for f in a/ansi d/dumb l/linux s/screen v/vt100 v/vt102 x/xterm x/xterm-color; do \ install -d -m0755 $(IDIR_LIBNCURSES)/usr/share/terminfo/`dirname $${f}`; \ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/terminfo/$${f} \ + $(CP) $(PKG_INSTALL_DIR)/usr/share/terminfo/$${f} \ $(IDIR_LIBNCURSES)/usr/share/terminfo/$${f}; \ done $(RSTRIP) $(IDIR_LIBNCURSES) @@ -134,15 +134,15 @@ $(IPKG_LIBNCURSES): $(STAGING_DIR)/usr/lib/libncurses.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/curses.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/{ncurses,panel}.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/panel.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/term{,cap}.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/unctrl.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/menu.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/curses.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/{ncurses,panel}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/panel.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/term{,cap}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/unctrl.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/menu.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcurses.so $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurses.so $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel,menu}.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libncurses.so diff --git a/openwrt/package/net-snmp/Makefile b/openwrt/package/net-snmp/Makefile index 95e01f6610..1f28573f59 100644 --- a/openwrt/package/net-snmp/Makefile +++ b/openwrt/package/net-snmp/Makefile @@ -139,7 +139,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBNETSNMP): install -d -m0755 $(IDIR_LIBNETSNMP)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.so.* $(IDIR_LIBNETSNMP)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.so.* $(IDIR_LIBNETSNMP)/usr/lib/ $(RSTRIP) $(IDIR_LIBNETSNMP) $(IPKG_BUILD) $(IDIR_LIBNETSNMP) $(PACKAGE_DIR) @@ -151,23 +151,23 @@ $(IPKG_SNMPD): install -d -m0755 $(IDIR_SNMPD)/etc/init.d install -m0755 ./files/snmpd.init $(IDIR_SNMPD)/etc/init.d/snmpd install -d -m0755 $(IDIR_SNMPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/snmpd $(IDIR_SNMPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/snmpd $(IDIR_SNMPD)/usr/sbin/ $(RSTRIP) $(IDIR_SNMPD) $(IPKG_BUILD) $(IDIR_SNMPD) $(PACKAGE_DIR) $(IPKG_SNMP_UTILS): install -d -m0755 $(IDIR_SNMP_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/snmp{get,set,status,test,trap,walk} $(IDIR_SNMP_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/snmp{get,set,status,test,trap,walk} $(IDIR_SNMP_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_SNMP_UTILS) $(IPKG_BUILD) $(IDIR_SNMP_UTILS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libnetsnmp.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/net-snmp-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/net-snmp-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/net-snmp $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/net-snmp $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnetsnmp{,agent,helpers,mibs}.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libnetsnmp.so diff --git a/openwrt/package/nmap/Makefile b/openwrt/package/nmap/Makefile index 882180b971..d95f8cfddc 100644 --- a/openwrt/package/nmap/Makefile +++ b/openwrt/package/nmap/Makefile @@ -67,10 +67,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_NMAP): install -d -m0755 $(IDIR_NMAP)/usr/share/nmap for file in mac-prefixes os-fingerprints protocols rpc service-probes services; do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \ + $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \ done install -d -m0755 $(IDIR_NMAP)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/ $(RSTRIP) $(IDIR_NMAP) $(IPKG_BUILD) $(IDIR_NMAP) $(PACKAGE_DIR) diff --git a/openwrt/package/nocatsplash/Makefile b/openwrt/package/nocatsplash/Makefile index 7d05e504ee..55c5fae41b 100644 --- a/openwrt/package/nocatsplash/Makefile +++ b/openwrt/package/nocatsplash/Makefile @@ -58,7 +58,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_NOCATSPLASH): mkdir -p $(IDIR_NOCATSPLASH) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_NOCATSPLASH)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_NOCATSPLASH)/ $(RSTRIP) $(IDIR_NOCATSPLASH) $(IPKG_BUILD) $(IDIR_NOCATSPLASH) $(PACKAGE_DIR) diff --git a/openwrt/package/nvram/Makefile b/openwrt/package/nvram/Makefile index dd2f17c6f4..bcdbd24bfe 100644 --- a/openwrt/package/nvram/Makefile +++ b/openwrt/package/nvram/Makefile @@ -20,7 +20,7 @@ $(eval $(call PKG_template,NVRAM,nvram,$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.prepared: mkdir -p $(PKG_BUILD_DIR) - cp -a ./src/* $(PKG_BUILD_DIR) + $(CP) ./src/* $(PKG_BUILD_DIR) touch $@ $(PKG_BUILD_DIR)/.built: diff --git a/openwrt/package/olsrd/Makefile b/openwrt/package/olsrd/Makefile index 0c427a32ed..a5092c8758 100644 --- a/openwrt/package/olsrd/Makefile +++ b/openwrt/package/olsrd/Makefile @@ -61,9 +61,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_OLSRD): install -d -m0755 $(IDIR_OLSRD)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/olsrd.conf $(IDIR_OLSRD)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/olsrd.conf $(IDIR_OLSRD)/etc/ install -d -m0755 $(IDIR_OLSRD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/olsrd $(IDIR_OLSRD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/olsrd $(IDIR_OLSRD)/usr/sbin/ install -d -m0755 $(IDIR_OLSRD)/etc/init.d install -m0755 ./files/olsrd.init $(IDIR_OLSRD)/etc/init.d/S60olsrd $(RSTRIP) $(IDIR_OLSRD) @@ -73,4 +73,4 @@ $(IPKG_OLSRD_MOD_SECURE): $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d/olsrd_secure_key $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d/olsrd_secure_key: install -d -m0755 $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d - cp -fpR ./files/olsrd_secure_key $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d/ + $(CP) ./files/olsrd_secure_key $(IDIR_OLSRD_MOD_SECURE)/etc/olsrd.d/ diff --git a/openwrt/package/openldap/Makefile b/openwrt/package/openldap/Makefile index 35a15b37e2..8c247c2e09 100644 --- a/openwrt/package/openldap/Makefile +++ b/openwrt/package/openldap/Makefile @@ -109,25 +109,25 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBOPENLDAP): mkdir -p $(IDIR_LIBOPENLDAP)/etc/openldap - cp -fpR $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(IDIR_LIBOPENLDAP)/etc/openldap/ + $(CP) $(PKG_INSTALL_DIR)/etc/openldap/ldap.conf $(IDIR_LIBOPENLDAP)/etc/openldap/ mkdir -p $(IDIR_LIBOPENLDAP)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(IDIR_LIBOPENLDAP)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.so.* $(IDIR_LIBOPENLDAP)/usr/lib/ mkdir -p $(IDIR_LIBOPENLDAP)/usr/share/openldap - cp -fpR $(PKG_INSTALL_DIR)/usr/share/openldap/* $(IDIR_LIBOPENLDAP)/usr/share/openldap/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/openldap/* $(IDIR_LIBOPENLDAP)/usr/share/openldap/ $(RSTRIP) $(IDIR_LIBOPENLDAP) $(IPKG_BUILD) $(IDIR_LIBOPENLDAP) $(PACKAGE_DIR) $(IPKG_OPENLDAP_UTILS): mkdir -p $(IDIR_OPENLDAP_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ldap* $(IDIR_OPENLDAP_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ldap* $(IDIR_OPENLDAP_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_OPENLDAP_UTILS) $(IPKG_BUILD) $(IDIR_OPENLDAP_UTILS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libldap.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/{lber,ldap}*.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{lber,ldap}*.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libldap.so install-dev: $(STAGING_DIR)/usr/lib/libldap.so diff --git a/openwrt/package/openser/Makefile b/openwrt/package/openser/Makefile index fbfc3dc847..72a8fe3a43 100644 --- a/openwrt/package/openser/Makefile +++ b/openwrt/package/openser/Makefile @@ -22,7 +22,7 @@ define PKG_mod_template $$(IPKG_$(1)): [ -z "$(2)" ] || install -d -m 0755 $$(IDIR_$(1))/usr/lib/openser/modules/ - cp -fpR $(PKG_BUILD_DIR)/modules/$(2)/$(2).so \ + $(CP) $(PKG_BUILD_DIR)/modules/$(2)/$(2).so \ $$(IDIR_$(1))/usr/lib/openser/modules/ ; \ $(RSTRIP) $$(IDIR_$(1)) $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR) @@ -111,17 +111,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_OPENSER): mkdir -p $(IDIR_OPENSER)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_OPENSER)/usr/sbin/ - cp -fpR $(PKG_BUILD_DIR)/utils/gen_ha1/gen_ha1 $(IDIR_OPENSER)/usr/sbin/openser_gen_ha1 - cp -fpR $(PKG_BUILD_DIR)/scripts/sc $(IDIR_OPENSER)/usr/sbin/openserctl + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_OPENSER)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/utils/gen_ha1/gen_ha1 $(IDIR_OPENSER)/usr/sbin/openser_gen_ha1 + $(CP) $(PKG_BUILD_DIR)/scripts/sc $(IDIR_OPENSER)/usr/sbin/openserctl chmod 744 $(IDIR_OPENSER)/usr/sbin/openserctl - cp -fpR $(PKG_BUILD_DIR)/scripts/sc.dbtext $(IDIR_OPENSER)/usr/sbin/dbtextctl + $(CP) $(PKG_BUILD_DIR)/scripts/sc.dbtext $(IDIR_OPENSER)/usr/sbin/dbtextctl chmod 744 $(IDIR_OPENSER)/usr/sbin/dbtextctl mkdir -p $(IDIR_OPENSER)/usr/lib/openser/modules (cd $(PKG_BUILD_DIR);\ - cp -fpR $(OPENSER_MODULE_FILES) $(IDIR_OPENSER)/usr/lib/openser/modules/; \ + $(CP) $(OPENSER_MODULE_FILES) $(IDIR_OPENSER)/usr/lib/openser/modules/; \ ) mkdir -p $(IDIR_OPENSER)/etc/openser - cp -fpR $(PKG_BUILD_DIR)/etc/openser.cfg $(IDIR_OPENSER)/etc/openser/ + $(CP) $(PKG_BUILD_DIR)/etc/openser.cfg $(IDIR_OPENSER)/etc/openser/ $(RSTRIP) $(IDIR_OPENSER) $(IPKG_BUILD) $(IDIR_OPENSER) $(PACKAGE_DIR) diff --git a/openwrt/package/openssh/Makefile b/openwrt/package/openssh/Makefile index b3a12f64c5..a720de7b87 100644 --- a/openwrt/package/openssh/Makefile +++ b/openwrt/package/openssh/Makefile @@ -82,43 +82,43 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_OPENSSH_CLIENT): install -m0755 -d $(IDIR_OPENSSH_CLIENT)/etc/ssh chmod 0700 $(IDIR_OPENSSH_CLIENT)/etc/ssh - cp -fpR $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(IDIR_OPENSSH_CLIENT)/etc/ssh/ + $(CP) $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(IDIR_OPENSSH_CLIENT)/etc/ssh/ install -m0755 -d $(IDIR_OPENSSH_CLIENT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh $(IDIR_OPENSSH_CLIENT)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/scp $(IDIR_OPENSSH_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh $(IDIR_OPENSSH_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/scp $(IDIR_OPENSSH_CLIENT)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSH_CLIENT) $(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT) $(PACKAGE_DIR) $(IPKG_OPENSSH_CLIENT_UTILS): install -m0755 -d $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-add $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-agent $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-keyscan $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-add $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-agent $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-keyscan $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSH_CLIENT_UTILS) $(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT_UTILS) $(PACKAGE_DIR) $(IPKG_OPENSSH_SERVER): install -m0755 -d $(IDIR_OPENSSH_SERVER)/etc/ssh chmod 0700 $(IDIR_OPENSSH_SERVER)/etc/ssh - cp -fpR $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(IDIR_OPENSSH_SERVER)/etc/ssh/ + $(CP) $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(IDIR_OPENSSH_SERVER)/etc/ssh/ install -m0755 -d $(IDIR_OPENSSH_SERVER)/etc/init.d install -m0755 ./files/S50sshd $(IDIR_OPENSSH_SERVER)/etc/init.d/ install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ssh-keygen $(IDIR_OPENSSH_SERVER)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-keygen $(IDIR_OPENSSH_SERVER)/usr/bin/ install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/sshd $(IDIR_OPENSSH_SERVER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sshd $(IDIR_OPENSSH_SERVER)/usr/sbin/ $(RSTRIP) $(IDIR_OPENSSH_SERVER) $(IPKG_BUILD) $(IDIR_OPENSSH_SERVER) $(PACKAGE_DIR) $(IPKG_OPENSSH_SFTP_CLIENT): install -m0755 -d $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/sftp $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/sftp $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSH_SFTP_CLIENT) $(IPKG_BUILD) $(IDIR_OPENSSH_SFTP_CLIENT) $(PACKAGE_DIR) $(IPKG_OPENSSH_SFTP_SERVER): install -m0755 -d $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib/ install -m0755 -d $(IDIR_OPENSSH_SFTP_SERVER)/usr/libexec ln -sf ../lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/libexec/sftp-server $(RSTRIP) $(IDIR_OPENSSH_SFTP_SERVER) diff --git a/openwrt/package/openssl/Makefile b/openwrt/package/openssl/Makefile index ee6e69ea88..4a938d36e5 100644 --- a/openwrt/package/openssl/Makefile +++ b/openwrt/package/openssl/Makefile @@ -65,27 +65,27 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBOPENSSL): install -d -m0755 $(IDIR_LIBOPENSSL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.so.* $(IDIR_LIBOPENSSL)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.so.* $(IDIR_LIBOPENSSL)/usr/lib/ chmod 0644 $(IDIR_LIBOPENSSL)/usr/lib/* $(RSTRIP) $(IDIR_LIBOPENSSL) $(IPKG_BUILD) $(IDIR_LIBOPENSSL) $(PACKAGE_DIR) $(IPKG_OPENSSL_UTIL): install -d -m0755 $(IDIR_OPENSSL_UTIL)/etc/ssl - cp -fpR $(PKG_INSTALL_DIR)/etc/ssl/openssl.cnf $(IDIR_OPENSSL_UTIL)/etc/ssl/ + $(CP) $(PKG_INSTALL_DIR)/etc/ssl/openssl.cnf $(IDIR_OPENSSL_UTIL)/etc/ssl/ install -d -m0755 $(IDIR_OPENSSL_UTIL)/etc/ssl/certs install -d -m0755 $(IDIR_OPENSSL_UTIL)/etc/ssl/private chmod 0700 $(IDIR_OPENSSL_UTIL)/etc/ssl/private install -d -m0755 $(IDIR_OPENSSL_UTIL)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/openssl $(IDIR_OPENSSL_UTIL)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/openssl $(IDIR_OPENSSL_UTIL)/usr/bin/ $(RSTRIP) $(IDIR_OPENSSL_UTIL) $(IPKG_BUILD) $(IDIR_OPENSSL_UTIL) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libssl.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/openssl $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/openssl $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{crypto,ssl}.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libssl.so diff --git a/openwrt/package/openvpn/Makefile b/openwrt/package/openvpn/Makefile index 4c7495d632..87b20e0add 100644 --- a/openwrt/package/openvpn/Makefile +++ b/openwrt/package/openvpn/Makefile @@ -99,14 +99,14 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_OPENVPN): install -d -m0755 $(IDIR_OPENVPN)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/openvpn $(IDIR_OPENVPN)/usr/sbin/ $(RSTRIP) $(IDIR_OPENVPN) echo "Depends: $(PKG_DEPEND)" >> $(IDIR_OPENVPN)/CONTROL/control $(IPKG_BUILD) $(IDIR_OPENVPN) $(PACKAGE_DIR) $(IPKG_OPENVPN_EASY_RSA): install -d -m0755 $(IDIR_OPENVPN_EASY_RSA)/usr/sbin $(IDIR_OPENVPN_EASY_RSA)/etc/easy-rsa - cp -fpR $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req} $(IDIR_OPENVPN_EASY_RSA)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/easy-rsa/2.0/{build-*,clean-all,inherit-inter,list-crl,pkitool,revoke-full,sign-req} $(IDIR_OPENVPN_EASY_RSA)/usr/sbin install -m 0644 $(PKG_BUILD_DIR)/easy-rsa/2.0/openssl.cnf $(IDIR_OPENVPN_EASY_RSA)/etc/easy-rsa/openssl.cnf install -m 0644 $(PKG_BUILD_DIR)/easy-rsa/2.0/vars $(IDIR_OPENVPN_EASY_RSA)/etc/easy-rsa/vars $(IPKG_BUILD) $(IDIR_OPENVPN_EASY_RSA) $(PACKAGE_DIR) diff --git a/openwrt/package/osiris/Makefile b/openwrt/package/osiris/Makefile index b119f6e039..1359f7b28e 100644 --- a/openwrt/package/osiris/Makefile +++ b/openwrt/package/osiris/Makefile @@ -65,6 +65,6 @@ $(IPKG_OSIRISD): install -d -m0755 $(IDIR_OSIRISD)/etc/init.d install -m0755 ./files/osirisd.init $(IDIR_OSIRISD)/etc/init.d/osirisd install -d -m0755 $(IDIR_OSIRISD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/osirisd $(IDIR_OSIRISD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/osirisd $(IDIR_OSIRISD)/usr/sbin/ $(RSTRIP) $(IDIR_OSIRISD) $(IPKG_BUILD) $(IDIR_OSIRISD) $(PACKAGE_DIR) diff --git a/openwrt/package/pcre/Makefile b/openwrt/package/pcre/Makefile index 0172c28869..d429dbf70c 100644 --- a/openwrt/package/pcre/Makefile +++ b/openwrt/package/pcre/Makefile @@ -67,17 +67,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBPCRE): install -d -m0755 $(IDIR_LIBPCRE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.so.* $(IDIR_LIBPCRE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.so.* $(IDIR_LIBPCRE)/usr/lib/ $(RSTRIP) $(IDIR_LIBPCRE) $(IPKG_BUILD) $(IDIR_LIBPCRE) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libpcre.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/pcre-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/pcre-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/pcre{,posix}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/pcre{,posix}.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libpcre.so install-dev: $(STAGING_DIR)/usr/lib/libpcre.so diff --git a/openwrt/package/pmacct/Makefile b/openwrt/package/pmacct/Makefile index fd657984b4..a9bd44b52b 100644 --- a/openwrt/package/pmacct/Makefile +++ b/openwrt/package/pmacct/Makefile @@ -179,6 +179,6 @@ $(PKG_BUILD_DIR)/.built: $(BUILD_TARGETS) $(IPKG_PMACCT_CLIENT): install -d -m0755 $(IDIR_PMACCT_CLIENT)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/pmacct $(IDIR_PMACCT_CLIENT)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/pmacct $(IDIR_PMACCT_CLIENT)/usr/sbin/ $(RSTRIP) $(IDIR_PMACCT_CLIENT) $(IPKG_BUILD) $(IDIR_PMACCT_CLIENT) $(PACKAGE_DIR) diff --git a/openwrt/package/popt/Makefile b/openwrt/package/popt/Makefile index 87cb45cff1..2d9c2c16a6 100644 --- a/openwrt/package/popt/Makefile +++ b/openwrt/package/popt/Makefile @@ -59,15 +59,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBPOPT): install -d -m0755 $(IDIR_LIBPOPT)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(IDIR_LIBPOPT)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.so.* $(IDIR_LIBPOPT)/usr/lib/ $(RSTRIP) $(IDIR_LIBPOPT) $(IPKG_BUILD) $(IDIR_LIBPOPT) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libpopt.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/popt.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/popt.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpopt.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpopt.{a,so*} $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libpopt.so install-dev: $(STAGING_DIR)/usr/lib/libpopt.so diff --git a/openwrt/package/postgresql/Makefile b/openwrt/package/postgresql/Makefile index de021ba35b..27dc0717a7 100644 --- a/openwrt/package/postgresql/Makefile +++ b/openwrt/package/postgresql/Makefile @@ -83,23 +83,23 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBPQ): install -d -m0755 $(IDIR_LIBPQ)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpq.so.* $(IDIR_LIBPQ)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpq.so.* $(IDIR_LIBPQ)/usr/lib/ $(RSTRIP) $(IDIR_LIBPQ) $(IPKG_BUILD) $(IDIR_LIBPQ) $(PACKAGE_DIR) $(IPKG_PGSQL_CLI): install -d -m0755 $(IDIR_PGSQL_CLI)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/psql $(IDIR_PGSQL_CLI)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/psql $(IDIR_PGSQL_CLI)/usr/bin/ $(RSTRIP) $(IDIR_PGSQL_CLI) $(IPKG_BUILD) $(IDIR_PGSQL_CLI) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libpq.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libpq-fe.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/postgres_ext.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/postgresql $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libpq-fe.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/postgres_ext.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/postgresql $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpq.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpq.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libpq.so diff --git a/openwrt/package/ppp/Makefile b/openwrt/package/ppp/Makefile index da75d4ea77..79e03c037e 100644 --- a/openwrt/package/ppp/Makefile +++ b/openwrt/package/ppp/Makefile @@ -123,19 +123,19 @@ $(IPKG_PPP_MOD_RADIUS): $(IDIR_PPP_MOD_RADIUS)/etc/ppp/radius.conf $(IPKG_CHAT): install -d -m0755 $(IDIR_CHAT)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/chat $(IDIR_CHAT)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chat $(IDIR_CHAT)/usr/sbin/ $(RSTRIP) $(IDIR_CHAT) $(IPKG_BUILD) $(IDIR_CHAT) $(PACKAGE_DIR) $(IPKG_PPPDUMP): install -d -m0755 $(IDIR_PPPDUMP)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(IDIR_PPPDUMP)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(IDIR_PPPDUMP)/usr/sbin/ $(RSTRIP) $(IDIR_PPPDUMP) $(IPKG_BUILD) $(IDIR_PPPDUMP) $(PACKAGE_DIR) $(IPKG_PPPSTATS): $(IPKG_PPP) install -d -m0755 $(IDIR_PPPSTATS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(IDIR_PPPSTATS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(IDIR_PPPSTATS)/usr/sbin/ $(RSTRIP) $(IDIR_PPPSTATS) $(IPKG_BUILD) $(IDIR_PPPSTATS) $(PACKAGE_DIR) diff --git a/openwrt/package/pptpd/Makefile b/openwrt/package/pptpd/Makefile index cde7ee59a2..a4b1cbcada 100644 --- a/openwrt/package/pptpd/Makefile +++ b/openwrt/package/pptpd/Makefile @@ -63,7 +63,7 @@ $(IPKG_PPTPD): install -d -m0755 $(IDIR_PPTPD)/etc/ppp install -m0644 ./files/options.pptpd $(IDIR_PPTPD)/etc/ppp/ install -d -m0755 $(IDIR_PPTPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(IDIR_PPTPD)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(IDIR_PPTPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(IDIR_PPTPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(IDIR_PPTPD)/usr/sbin/ $(RSTRIP) $(IDIR_PPTPD) $(IPKG_BUILD) $(IDIR_PPTPD) $(PACKAGE_DIR) diff --git a/openwrt/package/psmisc/Makefile b/openwrt/package/psmisc/Makefile index acd2cd1ef7..1e8f06683b 100644 --- a/openwrt/package/psmisc/Makefile +++ b/openwrt/package/psmisc/Makefile @@ -62,9 +62,9 @@ $(PKG_BUILD_DIR)/.built: LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ $(TARGET_CONFIGURE_OPTS) \ prefix="$(PKG_INSTALL_DIR)" - [ -n "$(BR2_PACKAGE_PSMISC_KILLALL)" ] && cp -a $(PKG_BUILD_DIR)/src/killall $(PKG_INSTALL_DIR)/usr/bin/ - [ -n "$(BR2_PACKAGE_PSMISC_FUSER)" ] && cp -a $(PKG_BUILD_DIR)/src/fuser $(PKG_INSTALL_DIR)/sbin/ - [ -n "$(BR2_PACKAGE_PSMISC_PSTREE)" ] && cp -a $(PKG_BUILD_DIR)/src/pstree $(PKG_INSTALL_DIR)/usr/bin/ + [ -n "$(BR2_PACKAGE_PSMISC_KILLALL)" ] && $(CP) $(PKG_BUILD_DIR)/src/killall $(PKG_INSTALL_DIR)/usr/bin/ + [ -n "$(BR2_PACKAGE_PSMISC_FUSER)" ] && $(CP) $(PKG_BUILD_DIR)/src/fuser $(PKG_INSTALL_DIR)/sbin/ + [ -n "$(BR2_PACKAGE_PSMISC_PSTREE)" ] && $(CP) $(PKG_BUILD_DIR)/src/pstree $(PKG_INSTALL_DIR)/usr/bin/ touch $@ $(IPKG_PSMISC): diff --git a/openwrt/package/quagga/Makefile b/openwrt/package/quagga/Makefile index 5a73e57689..8902e14505 100644 --- a/openwrt/package/quagga/Makefile +++ b/openwrt/package/quagga/Makefile @@ -74,10 +74,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_QUAGGA): install -d -m0755 $(IDIR_QUAGGA)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libzebra.so.* $(IDIR_QUAGGA)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libzebra.so.* $(IDIR_QUAGGA)/usr/lib/ install -d -m0755 $(IDIR_QUAGGA)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/zebra $(IDIR_QUAGGA)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/watchquagga $(IDIR_QUAGGA)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/zebra $(IDIR_QUAGGA)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/watchquagga $(IDIR_QUAGGA)/usr/sbin/ # avoid /etc being set to 0750 install -d -m0755 $(IDIR_QUAGGA)/etc/quagga/ chmod 0750 $(IDIR_QUAGGA)/etc/quagga/ @@ -89,44 +89,44 @@ $(IPKG_QUAGGA): $(IPKG_QUAGGA_BGPD): install -d -m0755 $(IDIR_QUAGGA_BGPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(IDIR_QUAGGA_BGPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(IDIR_QUAGGA_BGPD)/usr/sbin/ $(RSTRIP) $(IDIR_QUAGGA_BGPD) $(IPKG_BUILD) $(IDIR_QUAGGA_BGPD) $(PACKAGE_DIR) $(IPKG_QUAGGA_OSPFD): install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(IDIR_QUAGGA_OSPFD)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(IDIR_QUAGGA_OSPFD)/usr/lib/ install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPFD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPFD)/usr/sbin/ $(RSTRIP) $(IDIR_QUAGGA_OSPFD) $(IPKG_BUILD) $(IDIR_QUAGGA_OSPFD) $(PACKAGE_DIR) $(IPKG_QUAGGA_OSPF6D): install -d -m0755 $(IDIR_QUAGGA_OSPF6D)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ospf6d $(IDIR_QUAGGA_OSPF6D)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ospf6d $(IDIR_QUAGGA_OSPF6D)/usr/sbin/ $(RSTRIP) $(IDIR_QUAGGA_OSPF6D) $(IPKG_BUILD) $(IDIR_QUAGGA_OSPF6D) $(PACKAGE_DIR) $(IPKG_QUAGGA_RIPD): install -d -m0755 $(IDIR_QUAGGA_RIPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ripd $(IDIR_QUAGGA_RIPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ripd $(IDIR_QUAGGA_RIPD)/usr/sbin/ $(RSTRIP) $(IDIR_QUAGGA_RIPD) $(IPKG_BUILD) $(IDIR_QUAGGA_RIPD) $(PACKAGE_DIR) $(IPKG_QUAGGA_RIPNGD): install -d -m0755 $(IDIR_QUAGGA_RIPNGD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(IDIR_QUAGGA_RIPNGD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(IDIR_QUAGGA_RIPNGD)/usr/sbin/ $(RSTRIP) $(IDIR_QUAGGA_RIPNGD) $(IPKG_BUILD) $(IDIR_QUAGGA_RIPNGD) $(PACKAGE_DIR) $(IPKG_QUAGGA_ISISD): install -d -m0755 $(IDIR_QUAGGA_ISISD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/isisd $(IDIR_QUAGGA_ISISD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/isisd $(IDIR_QUAGGA_ISISD)/usr/sbin/ $(RSTRIP) $(IDIR_QUAGGA_ISISD) $(IPKG_BUILD) $(IDIR_QUAGGA_ISISD) $(PACKAGE_DIR) $(IPKG_QUAGGA_VTYSH): install -d -m0755 $(IDIR_QUAGGA_VTYSH)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/vtysh $(IDIR_QUAGGA_VTYSH)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/vtysh $(IDIR_QUAGGA_VTYSH)/usr/bin/ $(RSTRIP) $(IDIR_QUAGGA_VTYSH) $(IPKG_BUILD) $(IDIR_QUAGGA_VTYSH) $(PACKAGE_DIR) diff --git a/openwrt/package/radiusclient-ng/Makefile b/openwrt/package/radiusclient-ng/Makefile index d68bb1c737..bd9900afab 100644 --- a/openwrt/package/radiusclient-ng/Makefile +++ b/openwrt/package/radiusclient-ng/Makefile @@ -57,23 +57,23 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RADIUSCLIENT_NG): install -d -m0755 $(IDIR_RADIUSCLIENT_NG)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(IDIR_RADIUSCLIENT_NG)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/radiusclient-ng $(IDIR_RADIUSCLIENT_NG)/etc/ install -d -m0755 $(IDIR_RADIUSCLIENT_NG)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_RADIUSCLIENT_NG)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_RADIUSCLIENT_NG)/usr/sbin/ $(RSTRIP) $(IDIR_RADIUSCLIENT_NG)/ $(IPKG_BUILD) $(IDIR_RADIUSCLIENT_NG) $(PACKAGE_DIR) $(IPKG_LIBRADIUSCLIENT_NG): install -d -m0755 $(IDIR_LIBRADIUSCLIENT_NG)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.so.* $(IDIR_LIBRADIUSCLIENT_NG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.so.* $(IDIR_LIBRADIUSCLIENT_NG)/usr/lib/ $(RSTRIP) $(IDIR_LIBRADIUSCLIENT_NG)/ $(IPKG_BUILD) $(IDIR_LIBRADIUSCLIENT_NG) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libradiusclient-ng.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/radiusclient-ng.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/radiusclient-ng.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiusclient-ng.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libradiusclient-ng.so diff --git a/openwrt/package/readline/Makefile b/openwrt/package/readline/Makefile index c4380ded36..6493b711eb 100644 --- a/openwrt/package/readline/Makefile +++ b/openwrt/package/readline/Makefile @@ -60,15 +60,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBREADLINE): install -m0755 -d $(IDIR_LIBREADLINE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(IDIR_LIBREADLINE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(IDIR_LIBREADLINE)/usr/lib/ $(RSTRIP) $(IDIR_LIBREADLINE) $(IPKG_BUILD) $(IDIR_LIBREADLINE) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libreadline.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/readline $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libreadline.so diff --git a/openwrt/package/rsync/Makefile b/openwrt/package/rsync/Makefile index 0cad9c7d23..6ed05e026d 100644 --- a/openwrt/package/rsync/Makefile +++ b/openwrt/package/rsync/Makefile @@ -58,6 +58,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RSYNC): install -d -m0755 $(IDIR_RSYNC)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_RSYNC)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_RSYNC)/usr/bin $(RSTRIP) $(IDIR_RSYNC) $(IPKG_BUILD) $(IDIR_RSYNC) $(PACKAGE_DIR) diff --git a/openwrt/package/sablevm-classpath/Makefile b/openwrt/package/sablevm-classpath/Makefile index 13fa555135..b50ae7d9bd 100644 --- a/openwrt/package/sablevm-classpath/Makefile +++ b/openwrt/package/sablevm-classpath/Makefile @@ -70,15 +70,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBSABLEVM_CLASSPATH): install -d -m0755 $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/sablevm-classpath/libjava*.so $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/sablevm-classpath/libjava*.so $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/sablevm-classpath/ install -d -m0755 $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/security/classpath.security $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/security/classpath.security $(IDIR_LIBSABLEVM_CLASSPATH)/usr/lib/security/ $(RSTRIP) $(IDIR_LIBSABLEVM_CLASSPATH) $(IPKG_BUILD) $(IDIR_LIBSABLEVM_CLASSPATH) $(PACKAGE_DIR) $(IPKG_SABLEVM_CLASSPATH_FULL): install -d -m0755 $(IDIR_SABLEVM_CLASSPATH_FULL)/usr/share/sablevm-classpath - cp -fpR $(PKG_INSTALL_DIR)/usr/share/sablevm-classpath/{libclasspath,resources}.jar \ + $(CP) $(PKG_INSTALL_DIR)/usr/share/sablevm-classpath/{libclasspath,resources}.jar \ $(IDIR_SABLEVM_CLASSPATH_FULL)/usr/share/sablevm-classpath/ $(IPKG_BUILD) $(IDIR_SABLEVM_CLASSPATH_FULL) $(PACKAGE_DIR) diff --git a/openwrt/package/sablevm/Makefile b/openwrt/package/sablevm/Makefile index b683d64781..25fd2450df 100644 --- a/openwrt/package/sablevm/Makefile +++ b/openwrt/package/sablevm/Makefile @@ -61,8 +61,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SABLEVM): install -m0755 -d $(IDIR_SABLEVM)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/{java-,}sablevm $(IDIR_SABLEVM)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/{java-,}sablevm $(IDIR_SABLEVM)/usr/bin/ install -m0755 -d $(IDIR_SABLEVM)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsablevm-*.so $(IDIR_SABLEVM)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsablevm-*.so $(IDIR_SABLEVM)/usr/lib/ $(RSTRIP) $(IDIR_SABLEVM) $(IPKG_BUILD) $(IDIR_SABLEVM) $(PACKAGE_DIR) diff --git a/openwrt/package/sdk/Makefile b/openwrt/package/sdk/Makefile index 384b696b7a..485395badb 100644 --- a/openwrt/package/sdk/Makefile +++ b/openwrt/package/sdk/Makefile @@ -21,10 +21,10 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: ) rm -rf $(SDK_BUILD_DIR) mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/examples $(SDK_BUILD_DIR)/package - cp -a $(STAGING_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/ - cp -a $(TOPDIR)/package/strace $(TOPDIR)/package/iproute2 $(SDK_BUILD_DIR)/examples + $(CP) $(STAGING_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/ + $(CP) $(TOPDIR)/package/strace $(TOPDIR)/package/iproute2 $(SDK_BUILD_DIR)/examples cp $(TOPDIR)/package/rules.mk $(SDK_BUILD_DIR)/package/ - -cp -a ./files/* $(SDK_BUILD_DIR)/ + -$(CP) ./files/* $(SDK_BUILD_DIR)/ egrep '^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config > $(SDK_BUILD_DIR)/.config egrep '^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config | sed -e s,BR2_,CONFIG_,g >> $(SDK_BUILD_DIR)/.config find $(SDK_BUILD_DIR) -name .svn | xargs rm -rf diff --git a/openwrt/package/shfs/Makefile b/openwrt/package/shfs/Makefile index f87a63b418..4945722a5b 100644 --- a/openwrt/package/shfs/Makefile +++ b/openwrt/package/shfs/Makefile @@ -35,8 +35,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SHFS_UTILS): install -m0755 -d $(IDIR_SHFS_UTILS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/shfs{,u}mount $(IDIR_SHFS_UTILS)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mount.shfs $(IDIR_SHFS_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/shfs{,u}mount $(IDIR_SHFS_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mount.shfs $(IDIR_SHFS_UTILS)/usr/sbin/ $(RSTRIP) $(IDIR_SHFS_UTILS) $(IPKG_BUILD) $(IDIR_SHFS_UTILS) $(PACKAGE_DIR) diff --git a/openwrt/package/siproxd/Makefile b/openwrt/package/siproxd/Makefile index 2b4f427a91..630cc3e93a 100644 --- a/openwrt/package/siproxd/Makefile +++ b/openwrt/package/siproxd/Makefile @@ -58,11 +58,11 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SIPROXD): install -d -m0755 $(IDIR_SIPROXD)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/siproxd.conf.example $(IDIR_SIPROXD)/etc/siproxd.conf - cp -fpR $(PKG_INSTALL_DIR)/etc/siproxd_passwd.cfg $(IDIR_SIPROXD)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/siproxd.conf.example $(IDIR_SIPROXD)/etc/siproxd.conf + $(CP) $(PKG_INSTALL_DIR)/etc/siproxd_passwd.cfg $(IDIR_SIPROXD)/etc/ install -d -m0755 $(IDIR_SIPROXD)/etc/init.d install -m0755 files/siproxd.init $(IDIR_SIPROXD)/etc/init.d/siproxd install -d -m0755 $(IDIR_SIPROXD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(IDIR_SIPROXD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/siproxd $(IDIR_SIPROXD)/usr/sbin/ $(RSTRIP) $(IDIR_SIPROXD) $(IPKG_BUILD) $(IDIR_SIPROXD) $(PACKAGE_DIR) diff --git a/openwrt/package/sipsak/Makefile b/openwrt/package/sipsak/Makefile index fc6e7fc54c..1a4f083c6f 100644 --- a/openwrt/package/sipsak/Makefile +++ b/openwrt/package/sipsak/Makefile @@ -60,6 +60,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SIPSAK): install -d -m0755 $(IDIR_SIPSAK)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/sipsak $(IDIR_SIPSAK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/sipsak $(IDIR_SIPSAK)/usr/bin/ $(RSTRIP) $(IDIR_SIPSAK) $(IPKG_BUILD) $(IDIR_SIPSAK) $(PACKAGE_DIR) diff --git a/openwrt/package/speex/Makefile b/openwrt/package/speex/Makefile index e1d7f2d92b..7a06fd9146 100644 --- a/openwrt/package/speex/Makefile +++ b/openwrt/package/speex/Makefile @@ -63,17 +63,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBSPEEX): install -d -m0755 $(IDIR_LIBSPEEX)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(IDIR_LIBSPEEX)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.so.* $(IDIR_LIBSPEEX)/usr/lib/ $(RSTRIP) $(IDIR_LIBSPEEX) $(IPKG_BUILD) $(IDIR_LIBSPEEX) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libspeex.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/speex $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/speex $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspeex.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/speex.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libspeex.so diff --git a/openwrt/package/sqlite/Makefile b/openwrt/package/sqlite/Makefile index 080d92f23c..5accbef860 100644 --- a/openwrt/package/sqlite/Makefile +++ b/openwrt/package/sqlite/Makefile @@ -67,23 +67,23 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBSQLITE): install -d -m0755 $(IDIR_LIBSQLITE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.so.* $(IDIR_LIBSQLITE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.so.* $(IDIR_LIBSQLITE)/usr/lib/ $(RSTRIP) $(IDIR_LIBSQLITE) $(IPKG_BUILD) $(IDIR_LIBSQLITE) $(PACKAGE_DIR) $(IPKG_SQLITE_CLI): install -d -m0755 $(IDIR_SQLITE_CLI)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/sqlite3 $(IDIR_SQLITE_CLI)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/sqlite3 $(IDIR_SQLITE_CLI)/usr/bin/ $(RSTRIP) $(IDIR_SQLITE_CLI) $(IPKG_BUILD) $(IDIR_SQLITE_CLI) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libsqlite3.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/sqlite3.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/sqlite3.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite3.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sqlite3.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sqlite3.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libsqlite3.so diff --git a/openwrt/package/tcp_wrappers/Makefile b/openwrt/package/tcp_wrappers/Makefile index cb24ed5276..2ca5d0d9d2 100644 --- a/openwrt/package/tcp_wrappers/Makefile +++ b/openwrt/package/tcp_wrappers/Makefile @@ -41,16 +41,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBWRAP): install -d -m0755 $(IDIR_LIBWRAP)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/shared/libwrap.so.* $(IDIR_LIBWRAP)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/shared/libwrap.so.* $(IDIR_LIBWRAP)/usr/lib/ $(RSTRIP) $(IDIR_LIBWRAP) $(IPKG_BUILD) $(IDIR_LIBWRAP) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libwrap.a: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_BUILD_DIR)/tcpd.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/tcpd.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/libwrap.a $(STAGING_DIR)/usr/lib/ -# cp -fpR $(PKG_BUILD_DIR)/shared/libwrap.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/libwrap.a $(STAGING_DIR)/usr/lib/ +# $(CP) $(PKG_BUILD_DIR)/shared/libwrap.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libwrap.a diff --git a/openwrt/package/tinc/Makefile b/openwrt/package/tinc/Makefile index c0e653fb26..e3f2d94658 100644 --- a/openwrt/package/tinc/Makefile +++ b/openwrt/package/tinc/Makefile @@ -63,7 +63,7 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_TINC): install -m0755 -d $(IDIR_TINC)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/ $(RSTRIP) $(IDIR_TINC) $(IPKG_BUILD) $(IDIR_TINC) $(PACKAGE_DIR) diff --git a/openwrt/package/tor/Makefile b/openwrt/package/tor/Makefile index 3a5c199e9c..40d239b28d 100644 --- a/openwrt/package/tor/Makefile +++ b/openwrt/package/tor/Makefile @@ -70,7 +70,7 @@ $(IPKG_TOR): install -d -m0755 $(IDIR_TOR)/etc/tor install -m0644 ./files/torrc $(IDIR_TOR)/etc/tor/torrc install -d -m0755 $(IDIR_TOR)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/tor $(IDIR_TOR)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tor $(IDIR_TOR)/usr/sbin/ $(RSTRIP) $(IDIR_TOR) $(IPKG_BUILD) $(IDIR_TOR) $(PACKAGE_DIR) diff --git a/openwrt/package/uclibc++/Makefile b/openwrt/package/uclibc++/Makefile index e14682b39b..323327e313 100644 --- a/openwrt/package/uclibc++/Makefile +++ b/openwrt/package/uclibc++/Makefile @@ -46,8 +46,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_UCLIBCXX): install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++-$(PKG_VERSION).so $(IDIR_UCLIBCXX)/usr/lib/ - cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++.so.* $(IDIR_UCLIBCXX)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/src/libuClibc++-$(PKG_VERSION).so $(IDIR_UCLIBCXX)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/src/libuClibc++.so.* $(IDIR_UCLIBCXX)/usr/lib/ $(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so* mkdir -p $(PACKAGE_DIR) $(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR) diff --git a/openwrt/package/ulogd/Makefile b/openwrt/package/ulogd/Makefile index ffe08eac06..4837d8347d 100644 --- a/openwrt/package/ulogd/Makefile +++ b/openwrt/package/ulogd/Makefile @@ -36,7 +36,7 @@ define IPKG_plugin_template $$(IPKG_$(1)): install -m0755 -d $$(IDIR_$(1))/usr/lib/ulogd for m in $(2); do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/ulogd/ulogd_$$$${m}.so $$(IDIR_$(1))/usr/lib/ulogd/ ; \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ulogd/ulogd_$$$${m}.so $$(IDIR_$(1))/usr/lib/ulogd/ ; \ done $(RSTRIP) $$(IDIR_$(1)) $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR) @@ -101,15 +101,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ULOGD): install -d -m0755 $(IDIR_ULOGD)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/ulogd.conf $(IDIR_ULOGD)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/ulogd.conf $(IDIR_ULOGD)/etc/ install -d -m0755 $(IDIR_ULOGD)/etc/default install -m0644 ./files/ulogd.default $(IDIR_ULOGD)/etc/default/ulogd install -d -m0755 $(IDIR_ULOGD)/etc/init.d install -m0755 ./files/ulogd.init $(IDIR_ULOGD)/etc/init.d/ulogd ln -sf ulogd $(IDIR_ULOGD)/etc/init.d/S49ulogd install -d -m0755 $(IDIR_ULOGD)/usr/lib/ulogd - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/ulogd/ulogd_BASE.so $(IDIR_ULOGD)/usr/lib/ulogd/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ulogd/ulogd_BASE.so $(IDIR_ULOGD)/usr/lib/ulogd/ install -d -m0755 $(IDIR_ULOGD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ulogd $(IDIR_ULOGD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ulogd $(IDIR_ULOGD)/usr/sbin/ $(RSTRIP) $(IDIR_ULOGD) $(IPKG_BUILD) $(IDIR_ULOGD) $(PACKAGE_DIR) diff --git a/openwrt/package/usbutils/Makefile b/openwrt/package/usbutils/Makefile index 8e6112cd97..5ce35bcfb5 100644 --- a/openwrt/package/usbutils/Makefile +++ b/openwrt/package/usbutils/Makefile @@ -60,8 +60,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LSUSB): install -d -m0755 $(IDIR_LSUSB)/usr/share - cp -fpR $(PKG_INSTALL_DIR)/usr/share/usb.ids $(IDIR_LSUSB)/usr/share/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/usb.ids $(IDIR_LSUSB)/usr/share/ install -d -m0755 $(IDIR_LSUSB)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(IDIR_LSUSB)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lsusb $(IDIR_LSUSB)/usr/sbin/ $(RSTRIP) $(IDIR_LSUSB) $(IPKG_BUILD) $(IDIR_LSUSB) $(PACKAGE_DIR) diff --git a/openwrt/package/vsftpd/Makefile b/openwrt/package/vsftpd/Makefile index 42044579e0..d3c72c8598 100644 --- a/openwrt/package/vsftpd/Makefile +++ b/openwrt/package/vsftpd/Makefile @@ -37,6 +37,6 @@ $(IPKG_VSFTPD): install -d -m0755 $(IDIR_VSFTPD)/etc/init.d install -m0755 ./files/vsftpd.init $(IDIR_VSFTPD)/etc/init.d/vsftpd install -d -m0755 $(IDIR_VSFTPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(IDIR_VSFTPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/vsftpd $(IDIR_VSFTPD)/usr/sbin/ $(RSTRIP) $(IDIR_VSFTPD) $(IPKG_BUILD) $(IDIR_VSFTPD) $(PACKAGE_DIR) diff --git a/openwrt/package/webif/Makefile b/openwrt/package/webif/Makefile index d216e1cc22..cf2e65ff2d 100644 --- a/openwrt/package/webif/Makefile +++ b/openwrt/package/webif/Makefile @@ -17,7 +17,7 @@ define PKG_mod_template $$(IPKG_$(1)): [ -z "$(2)" ] || install -d -m0755 $$(IDIR_$(1))/usr/lib/webif/lang/$(2) - cp -fpR ./files/usr/lib/webif/lang/$(2)/common.txt $$(IDIR_$(1))/usr/lib/webif/lang/$(2)/ + $(CP) ./files/usr/lib/webif/lang/$(2)/common.txt $$(IDIR_$(1))/usr/lib/webif/lang/$(2)/ $(RSTRIP) $$(IDIR_$(1)) $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR) @@ -70,7 +70,7 @@ $(PKG_BUILD_DIR)/.built: touch $@ $(IPKG_WEBIF): - cp -a ./files/* $(IDIR_WEBIF)/ + $(CP) ./files/* $(IDIR_WEBIF)/ rm -rf $(IDIR_WEBIF)/usr/lib/webif/lang/ install -d $(IDIR_WEBIF)/usr/bin install -m0755 $(PKG_BUILD_DIR)/webif-page $(IDIR_WEBIF)/usr/bin/webif-page diff --git a/openwrt/package/wireless-tools/Makefile b/openwrt/package/wireless-tools/Makefile index fb9cca0fee..de8c8ad10b 100644 --- a/openwrt/package/wireless-tools/Makefile +++ b/openwrt/package/wireless-tools/Makefile @@ -36,21 +36,21 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_IWLIB): mkdir -p $(IDIR_IWLIB)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_IWLIB)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_IWLIB)/usr/lib/ $(RSTRIP) $(IDIR_IWLIB) $(IPKG_BUILD) $(IDIR_IWLIB) $(PACKAGE_DIR) $(IPKG_WIRELESS_TOOLS): mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(IDIR_WIRELESS_TOOLS)/usr/sbin/ $(RSTRIP) $(IDIR_WIRELESS_TOOLS) $(IPKG_BUILD) $(IDIR_WIRELESS_TOOLS) $(PACKAGE_DIR) install-dev: mkdir -p $(STAGING_DIR)/usr/{lib,include} - cp -a $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/libiw.so* $(STAGING_DIR)/usr/lib/ ln -sf libiw.so.28 $(STAGING_DIR)/usr/lib/libiw.so - cp -a $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/{iwlib,wireless}.h $(STAGING_DIR)/usr/include/ uninstall-dev: rm -f $(STAGING_DIR)/usr/lib/libiw.* diff --git a/openwrt/package/wpa_supplicant/Makefile b/openwrt/package/wpa_supplicant/Makefile index 0ed11b1703..00a61e4e99 100644 --- a/openwrt/package/wpa_supplicant/Makefile +++ b/openwrt/package/wpa_supplicant/Makefile @@ -18,7 +18,7 @@ include $(TOPDIR)/package/rules.mk $(eval $(call PKG_template,WPA_SUPPLICANT,wpa-supplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.configured: - cp -fpR ./files/config $(PKG_BUILD_DIR)/.config + $(CP) ./files/config $(PKG_BUILD_DIR)/.config touch $@ $(PKG_BUILD_DIR)/.built: diff --git a/openwrt/package/xinetd/Makefile b/openwrt/package/xinetd/Makefile index 3b22beceb9..a3e5d59e6a 100644 --- a/openwrt/package/xinetd/Makefile +++ b/openwrt/package/xinetd/Makefile @@ -66,6 +66,6 @@ $(IPKG_XINETD): install -d -m0755 $(IDIR_XINETD)/etc/init.d install -m0755 ./files/xinetd.init $(IDIR_XINETD)/etc/init.d/xinetd install -d -m0755 $(IDIR_XINETD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(IDIR_XINETD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xinetd $(IDIR_XINETD)/usr/sbin/ $(RSTRIP) $(IDIR_XINETD) $(IPKG_BUILD) $(IDIR_XINETD) $(PACKAGE_DIR) diff --git a/openwrt/package/zlib/Makefile b/openwrt/package/zlib/Makefile index 2d88d51a25..be3fab8ba8 100644 --- a/openwrt/package/zlib/Makefile +++ b/openwrt/package/zlib/Makefile @@ -42,15 +42,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_ZLIB): install -m0755 -d $(IDIR_ZLIB)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(IDIR_ZLIB)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(IDIR_ZLIB)/usr/lib/ $(RSTRIP) $(IDIR_ZLIB) $(IPKG_BUILD) $(IDIR_ZLIB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libz.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib touch $(STAGING_DIR)/usr/lib/libz.so install-dev: $(STAGING_DIR)/usr/lib/libz.so