From 475e0d886041b4345585e13f0c04bcb9af0c0c5a Mon Sep 17 00:00:00 2001 From: mbm Date: Wed, 1 Feb 2006 23:53:19 +0000 Subject: [PATCH] change cp to $(CP) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3112 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/6tunnel/Makefile | 2 +- openwrt/package/Config.in | 3 +-- openwrt/package/Makefile | 5 ---- openwrt/package/aircrack/Makefile | 10 ++++---- openwrt/package/amwall/Makefile | 6 ++--- openwrt/package/arpd/Makefile | 2 +- openwrt/package/arpwatch/Makefile | 6 ++--- openwrt/package/asterisk/Makefile | 16 ++++++------- openwrt/package/atftp/Config.in | 1 - openwrt/package/atftp/Makefile | 4 ++-- openwrt/package/atftp/ipkg/atftp.control | 1 - openwrt/package/atftp/ipkg/atftpd.control | 1 - openwrt/package/avahi/Makefile | 24 +++++++++---------- openwrt/package/base-files/Makefile | 8 +++---- .../base-files/default/etc/init.d/S45firewall | 7 ++++-- .../base-files/default/sbin/mount_root | 2 +- openwrt/package/bind/Makefile | 8 +++---- openwrt/package/bluez-libs/Makefile | 6 ++--- openwrt/package/bluez-utils/Makefile | 8 +++---- openwrt/package/bridge/Makefile | 2 +- openwrt/package/cgilib/Makefile | 6 ++--- openwrt/package/chillispot/Makefile | 2 +- openwrt/package/clinkc/Makefile | 2 +- openwrt/package/collectd/Makefile | 6 ++--- openwrt/package/config/Makefile | 6 ++--- openwrt/package/cups/Makefile | 24 +++++++++---------- openwrt/package/curl/Makefile | 12 +++++----- openwrt/package/cutter/Makefile | 2 +- openwrt/package/cyrus-sasl/Makefile | 10 ++++---- openwrt/package/dhcp-forwarder/Makefile | 2 +- openwrt/package/dhcp/Makefile | 4 ++-- openwrt/package/dhcp6/Makefile | 2 +- openwrt/package/dnsmasq/Makefile | 6 ++--- openwrt/package/dosfstools/Makefile | 8 +++---- openwrt/package/dsniff/Makefile | 4 ++-- openwrt/package/e2fsprogs/Makefile | 10 ++++---- openwrt/package/ebtables/Makefile | 2 +- openwrt/package/elhttp/Makefile | 2 +- openwrt/package/ether-wake/Makefile | 2 +- openwrt/package/expat/Makefile | 8 +++---- openwrt/package/flac/Makefile | 8 +++---- openwrt/package/fping/Makefile | 4 ++-- openwrt/package/fprobe-ulog/Makefile | 2 +- openwrt/package/fprobe/Makefile | 2 +- openwrt/package/freeradius/Makefile | 18 +++++++------- openwrt/package/freetype/Makefile | 12 +++++----- openwrt/package/fuse/Makefile | 14 +++++------ openwrt/package/gdbserver/Makefile | 2 +- openwrt/package/glib/Makefile | 16 ++++++------- openwrt/package/glib/patches/04-gcc3.4-fix | 2 +- openwrt/package/gmediaserver/Makefile | 2 +- openwrt/package/gmp/Makefile | 6 ++--- openwrt/package/gnutls/Makefile | 18 +++++++------- openwrt/package/gpsd/Makefile | 10 ++++---- openwrt/package/gsm/Makefile | 10 ++++---- openwrt/package/haserl/Makefile | 2 +- openwrt/package/hostapd/Makefile | 2 +- openwrt/package/howl/Makefile | 16 ++++++------- openwrt/package/icecast/Makefile | 8 +++---- .../patches/icecast-2.3.0-curl_config.patch | 2 +- openwrt/package/id3lib/Makefile | 12 +++++----- openwrt/package/ipcad/Makefile | 4 ++-- openwrt/package/iperf/Makefile | 2 +- openwrt/package/ipkg/Makefile | 4 ++-- openwrt/package/iproute2/Makefile | 4 ++-- openwrt/package/ipsec-tools/Makefile | 14 +++++------ openwrt/package/iptables-snmp/Makefile | 2 +- openwrt/package/iptables/Makefile | 18 +++++++------- openwrt/package/irssi/Makefile | 2 +- openwrt/package/jpeg/Makefile | 8 +++---- openwrt/package/kismet/Makefile | 6 ++--- openwrt/package/knock/Makefile | 4 ++-- openwrt/package/l2tpns/Makefile | 6 ++--- openwrt/package/libamsel/Makefile | 8 +++---- openwrt/package/libao/Makefile | 10 ++++---- openwrt/package/libart/Makefile | 10 ++++---- openwrt/package/libaudiofile/Makefile | 16 ++++++------- openwrt/package/libcli/Makefile | 6 ++--- openwrt/package/libdaemon/Makefile | 10 ++++---- openwrt/package/libdb/Makefile | 6 ++--- openwrt/package/libdnet/Makefile | 12 +++++----- openwrt/package/libelf/Makefile | 6 ++--- openwrt/package/libevent/Makefile | 8 +++---- openwrt/package/libffi-sable/Makefile | 6 ++--- openwrt/package/libgcrypt/Makefile | 10 ++++---- openwrt/package/libgd/Makefile | 10 ++++---- openwrt/package/libgdbm/Makefile | 6 ++--- openwrt/package/libgpg-error/Makefile | 10 ++++---- openwrt/package/libid3tag/Makefile | 8 +++---- openwrt/package/liblzo/Makefile | 6 ++--- openwrt/package/libmad/Makefile | 8 +++---- openwrt/package/libnet/Makefile | 8 +++---- openwrt/package/libnids/Makefile | 6 ++--- openwrt/package/libogg/Makefile | 10 ++++---- openwrt/package/libosip2/Makefile | 8 +++---- openwrt/package/libpcap/Makefile | 6 ++--- openwrt/package/libpng/Makefile | 12 +++++----- openwrt/package/libpthread/Makefile | 4 ++-- openwrt/package/libtasn1/Makefile | 10 ++++---- openwrt/package/libtool/Makefile | 6 ++--- openwrt/package/libupnp/Makefile | 14 +++++------ openwrt/package/libusb/Makefile | 8 +++---- openwrt/package/libvorbis/Makefile | 10 ++++---- openwrt/package/libvorbisidec/Makefile | 8 +++---- openwrt/package/libxml2/Makefile | 10 ++++---- openwrt/package/libxslt/Makefile | 10 ++++---- openwrt/package/lighttpd/Makefile | 4 ++-- openwrt/package/linux-atm/Makefile | 8 +++---- .../linux-atm/patches/300-no_autotools.patch | 2 +- openwrt/package/lrzsz/Makefile | 4 ++-- openwrt/package/lua/Makefile | 12 +++++----- openwrt/package/macchanger/Makefile | 2 +- openwrt/package/maradns/Makefile | 4 ++-- openwrt/package/matrixssl/Makefile | 6 ++--- openwrt/package/microcom/Makefile | 2 +- openwrt/package/mini_httpd/Makefile | 2 +- openwrt/package/miredo/Makefile | 8 +++---- openwrt/package/mpd/Makefile | 4 ++-- openwrt/package/mrd6/Makefile | 2 +- openwrt/package/mt-daapd/Makefile | 4 ++-- openwrt/package/mtr/Makefile | 2 +- openwrt/package/mysql/Makefile | 8 +++---- openwrt/package/nano/Makefile | 2 +- openwrt/package/ncurses/Makefile | 20 ++++++++-------- openwrt/package/net-snmp/Makefile | 10 ++++---- openwrt/package/netstat-nat/Makefile | 2 +- openwrt/package/nmap/Makefile | 4 ++-- openwrt/package/nocatsplash/Makefile | 2 +- openwrt/package/nvram/Makefile | 8 +++---- openwrt/package/olsrd/Makefile | 6 ++--- openwrt/package/opencdk/Makefile | 8 +++---- openwrt/package/openldap/Makefile | 12 +++++----- openwrt/package/openser/Makefile | 12 +++++----- openwrt/package/openssh/Makefile | 22 ++++++++--------- openwrt/package/openssl/Makefile | 10 ++++---- openwrt/package/openvpn/Makefile | 2 +- openwrt/package/osiris/Makefile | 2 +- openwrt/package/p910nd/Makefile | 2 +- openwrt/package/pciutils/Makefile | 4 ++-- openwrt/package/pcmcia-cs/Makefile | 6 ++--- openwrt/package/pcre/Makefile | 8 +++---- openwrt/package/peercast/Makefile | 4 ++-- openwrt/package/peerguardian/Makefile | 2 +- openwrt/package/php4/Makefile | 6 ++--- openwrt/package/php5/Makefile | 6 ++--- openwrt/package/pipacs/Makefile | 2 +- openwrt/package/pmacct/Makefile | 2 +- openwrt/package/popt/Makefile | 6 ++--- openwrt/package/portsentry/Makefile | 4 ++-- openwrt/package/postgresql/Makefile | 18 +++++++------- openwrt/package/ppp/Makefile | 6 ++--- openwrt/package/pptpd/Makefile | 4 ++-- openwrt/package/ptunnel/Makefile | 2 +- openwrt/package/quagga/Makefile | 20 ++++++++-------- openwrt/package/raddump/Makefile | 2 +- openwrt/package/rarpd/Makefile | 2 +- openwrt/package/readline/Makefile | 6 ++--- openwrt/package/reaim/Makefile | 2 +- openwrt/package/rp-pppoe/Makefile | 10 ++++---- openwrt/package/rrdcollect/Makefile | 2 +- .../package/rrdcollect/files/rrdcollect.conf | 12 +++++----- openwrt/package/rrdtool/Makefile | 16 ++++++------- openwrt/package/rrdtool1/Makefile | 14 +++++------ openwrt/package/rsync/Makefile | 2 +- openwrt/package/sablevm-classpath/Makefile | 8 +++---- openwrt/package/sablevm/Makefile | 4 ++-- openwrt/package/sane-backends/Makefile | 4 ++-- openwrt/package/scdp/Makefile | 2 +- openwrt/package/sdk/Makefile | 14 +++++------ openwrt/package/serdisplib/Makefile | 6 ++--- openwrt/package/shfs/Makefile | 4 ++-- openwrt/package/siproxd/Makefile | 6 ++--- openwrt/package/sipsak/Makefile | 2 +- openwrt/package/slurm/Makefile | 2 +- openwrt/package/socat/Makefile | 2 +- openwrt/package/speex/Makefile | 8 +++---- openwrt/package/sqlite/Makefile | 10 ++++---- openwrt/package/sqlite2/Makefile | 10 ++++---- openwrt/package/srelay/Makefile | 8 +++---- openwrt/package/ssmtp/Makefile | 2 +- openwrt/package/strace/Makefile | 2 +- openwrt/package/tcp_wrappers/Makefile | 8 +++---- openwrt/package/tinc/Makefile | 2 +- openwrt/package/tinyproxy/Makefile | 8 +++---- openwrt/package/tmsnc/Makefile | 2 +- openwrt/package/tor/Makefile | 2 +- openwrt/package/uclibc++/Makefile | 4 ++-- openwrt/package/udev/Makefile | 18 +++++++------- openwrt/package/udp-broadcast-relay/Makefile | 2 +- openwrt/package/ulogd/Makefile | 8 +++---- openwrt/package/updatedd/Makefile | 2 +- openwrt/package/usbutils/Makefile | 4 ++-- openwrt/package/ustl/Makefile | 12 +++++----- openwrt/package/util-linux/Makefile | 8 +++---- openwrt/package/vgp/Makefile | 2 +- openwrt/package/vnstat/Makefile | 2 +- openwrt/package/vpnc/Makefile | 2 +- openwrt/package/vsftpd/Makefile | 2 +- openwrt/package/watchdog/Makefile | 6 ++--- openwrt/package/wccpd/Makefile | 2 +- openwrt/package/wifidog/Makefile | 6 ++--- openwrt/package/wireless-tools/Makefile | 12 +++++----- openwrt/package/wiviz/Makefile | 6 ++--- openwrt/package/wol/Makefile | 2 +- openwrt/package/wondershaper/Makefile | 4 ++-- openwrt/package/wpa_supplicant/Makefile | 2 +- openwrt/package/wx200d/Makefile | 4 ++-- openwrt/package/xinetd/Makefile | 2 +- openwrt/package/xsupplicant/Makefile | 4 ++-- openwrt/package/zlib/Makefile | 6 ++--- openwrt/rules.mk | 1 + openwrt/scripts/ipkg | 2 +- openwrt/target/linux/Makefile | 12 +++++----- openwrt/target/linux/ar531x-2.4/Makefile | 2 +- openwrt/target/linux/ar7-2.4/Makefile | 6 ++--- openwrt/target/linux/aruba-2.6/Makefile | 4 ++-- openwrt/target/linux/brcm-2.4/Makefile | 6 ++--- openwrt/target/linux/brcm-2.6/Makefile | 2 +- openwrt/target/linux/image/Makefile | 3 ++- openwrt/target/linux/image/ar7/Makefile | 6 ++--- openwrt/target/linux/image/aruba/Makefile | 4 ++-- openwrt/target/linux/image/brcm/Makefile | 20 +++++----------- .../linux/image/brcm/lzma-loader/Makefile | 6 ++--- .../linux/image/generic/lzma-loader/Makefile | 6 ++--- openwrt/target/linux/image/jffs2.mk | 2 +- openwrt/target/linux/image/jffs2/Makefile | 2 +- openwrt/target/linux/image/squashfs.mk | 2 +- openwrt/target/linux/image/squashfs/Makefile | 2 +- openwrt/target/linux/image/x86/Makefile | 8 +++---- openwrt/target/linux/imagebuilder/Makefile | 4 ++-- .../target/linux/package/base-files/Makefile | 6 ++--- .../linux/package/bcm43xx-dscape/Makefile | 6 ++--- openwrt/target/linux/package/diag/Makefile | 2 +- openwrt/target/linux/package/fuse/Makefile | 2 +- openwrt/target/linux/package/hostap/Makefile | 6 ++--- .../linux/package/ieee80211-dscape/Makefile | 6 ++--- openwrt/target/linux/package/madwifi/Makefile | 8 +++---- openwrt/target/linux/package/mini_fo/Makefile | 2 +- .../target/linux/package/openswan/Makefile | 2 +- openwrt/target/linux/package/shfs/Makefile | 2 +- openwrt/target/linux/package/spca5xx/Makefile | 2 +- openwrt/target/linux/package/switch/Makefile | 4 ++-- .../target/linux/package/ueagle-atm/Makefile | 2 +- .../target/linux/package/wlcompat/Makefile | 4 ++-- openwrt/target/linux/rules.mk | 2 +- openwrt/target/linux/x86-2.4/Makefile | 4 ++-- openwrt/target/linux/x86-2.6/Makefile | 4 ++-- openwrt/target/lzma/Makefile | 4 ++-- openwrt/target/utils/Makefile | 2 +- openwrt/toolchain/gcc/Makefile | 2 +- openwrt/toolchain/kernel-headers/Makefile | 2 +- openwrt/toolchain/libnotimpl/Makefile | 2 +- openwrt/toolchain/uClibc/Makefile | 2 +- openwrt/toolchain/utils/Makefile | 2 +- 254 files changed, 771 insertions(+), 783 deletions(-) diff --git a/openwrt/package/6tunnel/Makefile b/openwrt/package/6tunnel/Makefile index 0135ad845..8b24d7baa 100644 --- a/openwrt/package/6tunnel/Makefile +++ b/openwrt/package/6tunnel/Makefile @@ -54,7 +54,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_6TUNNEL): install -d -m0755 $(IDIR_6TUNNEL)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/6tunnel $(IDIR_6TUNNEL)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/6tunnel $(IDIR_6TUNNEL)/usr/sbin/ $(RSTRIP) $(IDIR_6TUNNEL)/ $(IPKG_BUILD) $(IDIR_6TUNNEL) $(PACKAGE_DIR) diff --git a/openwrt/package/Config.in b/openwrt/package/Config.in index 6f1c5fe30..83ef404e1 100644 --- a/openwrt/package/Config.in +++ b/openwrt/package/Config.in @@ -130,7 +130,6 @@ source "package/slurm/Config.in" source "package/snort/Config.in" source "package/snort-wireless/Config.in" source "package/socat/Config.in" -source "package/ssltunnel/Config.in" source "package/ssmtp/Config.in" source "package/srelay/Config.in" source "package/tmsnc/Config.in" @@ -180,7 +179,6 @@ source "package/libamsel/Config.in" source "package/libao/Config.in" source "package/libart/Config.in" source "package/libcli/Config.in" -source "package/clinkc/Config.in" source "package/curl/Config.in" # libcurl source "package/libdaemon/Config.in" source "package/libdb/Config.in" @@ -256,6 +254,7 @@ source "package/setserial/Config.in" comment "Utilities" source "package/bc/Config.in" source "package/gdbserver/Config.in" +source "package/madwifi-tools/Config.in" source "package/pcmcia-cs/Config.in" # pcmcia-utils source "package/usbutils/Config.in" # lsusb source "package/pciutils/Config.in" diff --git a/openwrt/package/Makefile b/openwrt/package/Makefile index 5e29f8807..f2ad1c206 100644 --- a/openwrt/package/Makefile +++ b/openwrt/package/Makefile @@ -21,7 +21,6 @@ package-$(BR2_PACKAGE_BWM) += bwm package-$(BR2_PACKAGE_CGILIB) += cgilib package-$(BR2_PACKAGE_CHILLISPOT) += chillispot package-$(BR2_PACKAGE_CIFSMOUNT) += cifsmount -package-$(BR2_PACKAGE_CLINKC) += clinkc package-$(BR2_PACKAGE_COLLECTD) += collectd package-$(BR2_PACKAGE_CUPS) += cups package-$(BR2_COMPILE_CURL) += curl @@ -210,7 +209,6 @@ package-$(BR2_COMPILE_SPEEX) += speex package-$(BR2_COMPILE_SQLITE) += sqlite package-$(BR2_COMPILE_SQLITE2) += sqlite2 package-$(BR2_PACKAGE_SSMTP) += ssmtp -package-$(BR2_PACKAGE_SSLTUNNEL) += ssltunnel package-$(BR2_PACKAGE_SRELAY) += srelay package-$(BR2_PACKAGE_STRACE) += strace package-$(BR2_PACKAGE_TCPDUMP) += tcpdump @@ -271,7 +269,6 @@ arpwatch-compile: libpcap-compile atftp-compile: readline-compile avahi-compile: libdaemon-compile expat-compile libgdbm-compile bind-compile: openssl-compile -clinkc-compile: expat-compile curl-compile: openssl-compile zlib-compile cyrus-sasl-compile: openssl-compile deco-compile: ncurses-compile @@ -308,7 +305,6 @@ lighttpd-compile: openssl-compile pcre-compile madplay-compile: libid3tag-compile libmad-compile miax-compile: bluez-libs-compile miredo-compile: uclibc++-compile -monit-compile: openssl-compile mt-daapd-compile: howl-compile libgdbm-compile libid3tag-compile mtr-compile: ncurses-compile mysql-compile: ncurses-compile zlib-compile readline-compile @@ -349,7 +345,6 @@ sipsak-compile: openssl-compile socat-compile: openssl-compile sqlite-compile: ncurses-compile readline-compile sqlite2-compile: ncurses-compile readline-compile -ssltunnel-compile: openssl-compile ppp-compile tcpdump-compile: libpcap-compile tinc-compile: zlib-compile openssl-compile liblzo-compile tor-compile: libevent-compile openssl-compile zlib-compile diff --git a/openwrt/package/aircrack/Makefile b/openwrt/package/aircrack/Makefile index 1869d2b82..feb43044d 100644 --- a/openwrt/package/aircrack/Makefile +++ b/openwrt/package/aircrack/Makefile @@ -35,11 +35,11 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_AIRCRACK): install -d -m0755 $(IDIR_AIRCRACK)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/aircrack $(IDIR_AIRCRACK)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/airdecap $(IDIR_AIRCRACK)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/aireplay $(IDIR_AIRCRACK)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/airodump $(IDIR_AIRCRACK)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/arpforge $(IDIR_AIRCRACK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/aircrack $(IDIR_AIRCRACK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/airdecap $(IDIR_AIRCRACK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/aireplay $(IDIR_AIRCRACK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/airodump $(IDIR_AIRCRACK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/arpforge $(IDIR_AIRCRACK)/usr/bin/ $(RSTRIP) $(IDIR_AIRCRACK) $(IPKG_BUILD) $(IDIR_AIRCRACK) $(PACKAGE_DIR) diff --git a/openwrt/package/amwall/Makefile b/openwrt/package/amwall/Makefile index 3fedcab96..a2e3c391b 100644 --- a/openwrt/package/amwall/Makefile +++ b/openwrt/package/amwall/Makefile @@ -38,11 +38,11 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_AMWALL): install -d -m0755 $(IDIR_AMWALL)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_AMWALL)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_AMWALL)/usr/bin install -d -m0755 $(IDIR_AMWALL)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_AMWALL)/usr/sbin + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_AMWALL)/usr/sbin install -d -m0755 $(IDIR_AMWALL)/etc/amsel - cp -fpR $(PKG_INSTALL_DIR)/etc/amsel* $(IDIR_AMWALL)/etc + $(CP) $(PKG_INSTALL_DIR)/etc/amsel* $(IDIR_AMWALL)/etc $(RSTRIP) $(IDIR_AMWALL) $(IPKG_BUILD) $(IDIR_AMWALL) $(PACKAGE_DIR) diff --git a/openwrt/package/arpd/Makefile b/openwrt/package/arpd/Makefile index ad75e22d0..6707eff30 100644 --- a/openwrt/package/arpd/Makefile +++ b/openwrt/package/arpd/Makefile @@ -59,6 +59,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ARPD): mkdir -p $(IDIR_ARPD)/usr/sbin - cp $(PKG_BUILD_DIR)/arpd $(IDIR_ARPD)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/arpd $(IDIR_ARPD)/usr/sbin/ $(STRIP) $(IDIR_ARPD)/usr/sbin/* $(IPKG_BUILD) $(IDIR_ARPD) $(PACKAGE_DIR) diff --git a/openwrt/package/arpwatch/Makefile b/openwrt/package/arpwatch/Makefile index 27e6c795e..a20c58f52 100644 --- a/openwrt/package/arpwatch/Makefile +++ b/openwrt/package/arpwatch/Makefile @@ -55,9 +55,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ARPWATCH): mkdir -p $(IDIR_ARPWATCH)/usr/sbin - cp $(PKG_BUILD_DIR)/arpwatch $(IDIR_ARPWATCH)/usr/sbin/ - cp $(PKG_BUILD_DIR)/arpsnmp $(IDIR_ARPWATCH)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/arpwatch $(IDIR_ARPWATCH)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/arpsnmp $(IDIR_ARPWATCH)/usr/sbin/ $(STRIP) $(IDIR_ARPWATCH)/usr/sbin/* mkdir -p $(IDIR_ARPWATCH)/etc/arpwatch - cp $(PKG_BUILD_DIR)/arp.dat $(IDIR_ARPWATCH)/etc/arpwatch/ + $(CP) $(PKG_BUILD_DIR)/arp.dat $(IDIR_ARPWATCH)/etc/arpwatch/ $(IPKG_BUILD) $(IDIR_ARPWATCH) $(PACKAGE_DIR) diff --git a/openwrt/package/asterisk/Makefile b/openwrt/package/asterisk/Makefile index 8f39127fc..eb6edee1d 100644 --- a/openwrt/package/asterisk/Makefile +++ b/openwrt/package/asterisk/Makefile @@ -82,7 +82,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 @@ -128,23 +128,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 @@ -179,7 +179,7 @@ $(IPKG_ASTERISK_SQLITE): $(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) @@ -191,7 +191,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/atftp/Config.in b/openwrt/package/atftp/Config.in index 296faec84..32ab9512a 100644 --- a/openwrt/package/atftp/Config.in +++ b/openwrt/package/atftp/Config.in @@ -4,7 +4,6 @@ config BR2_COMPILE_ATFTP tristate default n depends BR2_PACKAGE_ATFTP || BR2_PACKAGE_ATFTPD - select BR2_PACKAGE_LIBREADLINE config BR2_PACKAGE_ATFTP prompt "atftp............................. TFTP client" diff --git a/openwrt/package/atftp/Makefile b/openwrt/package/atftp/Makefile index a609c53d3..f49aab670 100644 --- a/openwrt/package/atftp/Makefile +++ b/openwrt/package/atftp/Makefile @@ -60,12 +60,12 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ATFTP): install -d -m0755 $(IDIR_ATFTP)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/atftp $(IDIR_ATFTP)/usr/bin + $(CP) $(PKG_BUILD_DIR)/atftp $(IDIR_ATFTP)/usr/bin $(RSTRIP) $(IDIR_ATFTP) $(IPKG_BUILD) $(IDIR_ATFTP) $(PACKAGE_DIR) $(IPKG_ATFTPD): install -d -m0755 $(IDIR_ATFTPD)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/atftpd $(IDIR_ATFTPD)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/atftpd $(IDIR_ATFTPD)/usr/sbin $(RSTRIP) $(IDIR_ATFTPD) $(IPKG_BUILD) $(IDIR_ATFTPD) $(PACKAGE_DIR) diff --git a/openwrt/package/atftp/ipkg/atftp.control b/openwrt/package/atftp/ipkg/atftp.control index ca4d86a30..d2083fc61 100644 --- a/openwrt/package/atftp/ipkg/atftp.control +++ b/openwrt/package/atftp/ipkg/atftp.control @@ -2,4 +2,3 @@ Package: atftp Priority: optional Section: net Description: tftp client -Depends: libreadline diff --git a/openwrt/package/atftp/ipkg/atftpd.control b/openwrt/package/atftp/ipkg/atftpd.control index acdd2f1ce..efb40299c 100644 --- a/openwrt/package/atftp/ipkg/atftpd.control +++ b/openwrt/package/atftp/ipkg/atftpd.control @@ -2,4 +2,3 @@ Package: atftpd Priority: optional Section: net Description: tftp server -Depends: libreadline diff --git a/openwrt/package/avahi/Makefile b/openwrt/package/avahi/Makefile index a082d5469..16fb20385 100644 --- a/openwrt/package/avahi/Makefile +++ b/openwrt/package/avahi/Makefile @@ -99,36 +99,36 @@ $(IPKG_AVAHI_DAEMON): install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/init.d install -m0755 ./files/avahi-daemon.init $(IDIR_AVAHI_DAEMON)/etc/init.d/avahi-daemon install -d -m0755 $(IDIR_AVAHI_DAEMON)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(IDIR_AVAHI_DAEMON)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(IDIR_AVAHI_DAEMON)/usr/sbin/ $(RSTRIP) $(IDIR_AVAHI_DAEMON) $(IPKG_BUILD) $(IDIR_AVAHI_DAEMON) $(PACKAGE_DIR) $(IPKG_AVAHI_DNSCONFD): install -d -m0755 $(IDIR_AVAHI_DNSCONFD)/etc/avahi - cp -fpR $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(IDIR_AVAHI_DNSCONFD)/etc/avahi/ + $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(IDIR_AVAHI_DNSCONFD)/etc/avahi/ install -d -m0755 $(IDIR_AVAHI_DNSCONFD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/avahi-dnsconfd $(IDIR_AVAHI_DNSCONFD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/avahi-dnsconfd $(IDIR_AVAHI_DNSCONFD)/usr/sbin/ $(RSTRIP) $(IDIR_AVAHI_DNSCONFD) $(IPKG_BUILD) $(IDIR_AVAHI_DNSCONFD) $(PACKAGE_DIR) $(IPKG_LIBAVAHI): install -d -m0755 $(IDIR_LIBAVAHI)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.so.* $(IDIR_LIBAVAHI)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.so.* $(IDIR_LIBAVAHI)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.so.* $(IDIR_LIBAVAHI)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.so.* $(IDIR_LIBAVAHI)/usr/lib/ $(RSTRIP) $(IDIR_LIBAVAHI) $(IPKG_BUILD) $(IDIR_LIBAVAHI) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/avahi.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/avahi-common $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/avahi-core $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/avahi-common $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/avahi-core $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.so* $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/avahi-core.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/avahi-core.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc touch $@ diff --git a/openwrt/package/base-files/Makefile b/openwrt/package/base-files/Makefile index e4753d045..2604e6257 100644 --- a/openwrt/package/base-files/Makefile +++ b/openwrt/package/base-files/Makefile @@ -52,7 +52,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) $(SED) 's,$$R,r$(REV),g' $(IDIR_BASE)/etc/banner $(SED) 's,$$S,$(BOARD)-$(KERNEL),g' $(IDIR_BASE)/etc/ipkg.conf mkdir -p $(IDIR_BASE)/sys @@ -77,8 +77,8 @@ $(IPKG_UCLIBC): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_UCLIBC) ipkg/uclibc.control $(UCLIBC_VERSION)-$(PKG_RELEASE) $(ARCH) mkdir -p $(IDIR_UCLIBC)/lib for file in ld-uClibc libc libcrypt libdl libm libnsl libresolv librt libuClibc libutil; do \ - cp -fpR $(STAGING_DIR)/lib/$$file.so.* $(IDIR_UCLIBC)/lib/; \ - cp -fpR $(STAGING_DIR)/lib/$$file-$(UCLIBC_VERSION).so $(IDIR_UCLIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file.so.* $(IDIR_UCLIBC)/lib/; \ + $(CP) $(STAGING_DIR)/lib/$$file-$(UCLIBC_VERSION).so $(IDIR_UCLIBC)/lib/; \ done -$(STRIP) $(IDIR_UCLIBC)/lib/* $(IPKG_BUILD) $(IDIR_UCLIBC) $(PACKAGE_DIR) @@ -86,7 +86,7 @@ $(IPKG_UCLIBC): $(IPKG_LIBGCC): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBGCC) ipkg/libgcc.control $(LIBGCC_VERSION)-$(PKG_RELEASE) $(ARCH) mkdir -p $(IDIR_LIBGCC)/lib - cp -fpR $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_LIBGCC)/lib/ + $(CP) $(STAGING_DIR)/lib/libgcc_s.so.* $(IDIR_LIBGCC)/lib/ -$(STRIP) $(IDIR_LIBGCC)/lib/* $(IPKG_BUILD) $(IDIR_LIBGCC) $(PACKAGE_DIR) diff --git a/openwrt/package/base-files/default/etc/init.d/S45firewall b/openwrt/package/base-files/default/etc/init.d/S45firewall index 8789fbab6..0110cfc77 100755 --- a/openwrt/package/base-files/default/etc/init.d/S45firewall +++ b/openwrt/package/base-files/default/etc/init.d/S45firewall @@ -81,8 +81,11 @@ iptables -t nat -N postrouting_rule iptables -A FORWARD -j forwarding_rule # allow - iptables -A FORWARD -i br0 -o br0 -j ACCEPT - + # if there is bridge splitting this workaround works too + for iface in $LAN; do + iptables -A FORWARD -i $iface -o $iface -j ACCEPT + [ -z "$WAN" ] || iptables -A FORWARD -i $iface -o $WAN -j ACCEPT + done # reject (what to do with anything not allowed earlier) # uses the default -P DROP diff --git a/openwrt/package/base-files/default/sbin/mount_root b/openwrt/package/base-files/default/sbin/mount_root index 427ff0444..693c694c1 100755 --- a/openwrt/package/base-files/default/sbin/mount_root +++ b/openwrt/package/base-files/default/sbin/mount_root @@ -30,7 +30,7 @@ if [ "$1" != "failsafe" ]; then pivot_root /jffs /jffs/rom mount none /proc -t proc mount none /dev -t devfs - umount /rom/proc /rom/dev >&- + umount /rom/proc rom/dev >&- fi fi fi diff --git a/openwrt/package/bind/Makefile b/openwrt/package/bind/Makefile index eeb428ac3..ba895f3c0 100644 --- a/openwrt/package/bind/Makefile +++ b/openwrt/package/bind/Makefile @@ -70,15 +70,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BIND_SERVER): install -d -m0755 $(IDIR_BIND_SERVER)/usr/sbin install -d -m0755 $(IDIR_BIND_SERVER)/etc/init.d - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/named $(IDIR_BIND_SERVER)/usr/sbin/ - cp -fpR files/bind $(IDIR_BIND_SERVER)/etc - cp -fpR files/named.init $(IDIR_BIND_SERVER)/etc/init.d/S$(PKG_INIT_LEVEL)named + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/named $(IDIR_BIND_SERVER)/usr/sbin/ + $(CP) files/bind $(IDIR_BIND_SERVER)/etc + $(CP) files/named.init $(IDIR_BIND_SERVER)/etc/init.d/S$(PKG_INIT_LEVEL)named find $(IDIR_BIND_SERVER)/etc/bind -name ".svn" | xargs rm -rf $(RSTRIP) $(IDIR_BIND_SERVER) $(IPKG_BUILD) $(IDIR_BIND_SERVER) $(PACKAGE_DIR) $(IPKG_BIND_CLIENT): install -d -m0755 $(IDIR_BIND_CLIENT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(IDIR_BIND_CLIENT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/nsupdate $(IDIR_BIND_CLIENT)/usr/bin/ $(RSTRIP) $(IDIR_BIND_CLIENT) $(IPKG_BUILD) $(IDIR_BIND_CLIENT) $(PACKAGE_DIR) diff --git a/openwrt/package/bluez-libs/Makefile b/openwrt/package/bluez-libs/Makefile index 45d868310..b02d61836 100644 --- a/openwrt/package/bluez-libs/Makefile +++ b/openwrt/package/bluez-libs/Makefile @@ -64,15 +64,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BLUEZ_LIBS): install -d -m0755 $(IDIR_BLUEZ_LIBS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(IDIR_BLUEZ_LIBS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.so.* $(IDIR_BLUEZ_LIBS)/usr/lib/ $(RSTRIP) $(IDIR_BLUEZ_LIBS) $(IPKG_BUILD) $(IDIR_BLUEZ_LIBS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libbluetooth.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include/bluetooth - cp -fpR $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(STAGING_DIR)/usr/include/bluetooth + $(CP) $(PKG_INSTALL_DIR)/usr/include/bluetooth/*.h $(STAGING_DIR)/usr/include/bluetooth mkdir -p $(STAGING_DIR)/usr/lib - cp -fp $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbluetooth.{a,so*} $(STAGING_DIR)/usr/lib/ install-dev: $(STAGING_DIR)/usr/lib/libbluetooth.so diff --git a/openwrt/package/bluez-utils/Makefile b/openwrt/package/bluez-utils/Makefile index 00a609b55..1ac7d345d 100644 --- a/openwrt/package/bluez-utils/Makefile +++ b/openwrt/package/bluez-utils/Makefile @@ -79,12 +79,12 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BLUEZ_UTILS): install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_BLUEZ_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_BLUEZ_UTILS)/usr/bin/ install -d -m0755 $(IDIR_BLUEZ_UTILS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_BLUEZ_UTILS)/usr/sbin/ install -d -m0755 $(IDIR_BLUEZ_UTILS)/etc/bluetooth - cp -fp $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/ - cp -fp $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/ + $(CP) $(PKG_INSTALL_DIR)/../hcid/hcid.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/ + $(CP) $(PKG_INSTALL_DIR)/../rfcomm/rfcomm.conf $(IDIR_BLUEZ_UTILS)/etc/bluetooth/ install -m0700 ./files/givepin $(IDIR_BLUEZ_UTILS)/etc/bluetooth/ $(RSTRIP) $(IDIR_BLUEZ_UTILS) $(IPKG_BUILD) $(IDIR_BLUEZ_UTILS) $(PACKAGE_DIR) diff --git a/openwrt/package/bridge/Makefile b/openwrt/package/bridge/Makefile index 44b22cd72..601373b99 100644 --- a/openwrt/package/bridge/Makefile +++ b/openwrt/package/bridge/Makefile @@ -44,6 +44,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BRIDGE): mkdir -p $(IDIR_BRIDGE)/usr/sbin - cp $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/ $(STRIP) $(IDIR_BRIDGE)/usr/sbin/brctl $(IPKG_BUILD) $(IDIR_BRIDGE) $(PACKAGE_DIR) diff --git a/openwrt/package/cgilib/Makefile b/openwrt/package/cgilib/Makefile index 9a0534fe5..b81effdb0 100644 --- a/openwrt/package/cgilib/Makefile +++ b/openwrt/package/cgilib/Makefile @@ -29,15 +29,15 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_CGILIB): install -d -m0755 $(IDIR_CGILIB)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/libcgi.so.* $(IDIR_CGILIB)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/libcgi.so.* $(IDIR_CGILIB)/usr/lib/ $(RSTRIP) $(IDIR_CGILIB) $(IPKG_BUILD) $(IDIR_CGILIB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libcgi.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_BUILD_DIR)/cgi.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/cgi.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libcgi.so diff --git a/openwrt/package/chillispot/Makefile b/openwrt/package/chillispot/Makefile index 7e6fb7697..1d6323686 100644 --- a/openwrt/package/chillispot/Makefile +++ b/openwrt/package/chillispot/Makefile @@ -68,6 +68,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/clinkc/Makefile b/openwrt/package/clinkc/Makefile index 1d6bf1d6a..caa624ce6 100644 --- a/openwrt/package/clinkc/Makefile +++ b/openwrt/package/clinkc/Makefile @@ -57,7 +57,7 @@ $(PKG_BUILD_DIR)/.built: touch $@ $(IPKG_CLINKC): - cp -fpR $(PKG_INSTALL_DIR) $(IDIR_CLINKC) + $(CP) $(PKG_INSTALL_DIR) $(IDIR_CLINKC) $(RSTRIP) $(IDIR_CLINKC) $(IPKG_BUILD) $(IDIR_CLINKC) $(PACKAGE_DIR) diff --git a/openwrt/package/collectd/Makefile b/openwrt/package/collectd/Makefile index 5d7bc3471..e757f965a 100644 --- a/openwrt/package/collectd/Makefile +++ b/openwrt/package/collectd/Makefile @@ -93,9 +93,9 @@ $(IPKG_COLLECTD): install -d -m0755 $(IDIR_COLLECTD)/usr/lib/collectd install -d -m0755 $(IDIR_COLLECTD)/var/lib/collectd install -d -m0755 $(IDIR_COLLECTD)/var/run - cp -fpR ./files/S80collectd $(IDIR_COLLECTD)/etc/init.d/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/collectd $(IDIR_COLLECTD)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(IDIR_COLLECTD)/usr/lib/collectd/ + $(CP) ./files/S80collectd $(IDIR_COLLECTD)/etc/init.d/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/collectd $(IDIR_COLLECTD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/collectd/*.so $(IDIR_COLLECTD)/usr/lib/collectd/ $(RSTRIP) $(IDIR_COLLECTD) $(IPKG_BUILD) $(IDIR_COLLECTD) $(PACKAGE_DIR) diff --git a/openwrt/package/config/Makefile b/openwrt/package/config/Makefile index 455a33d23..e8a2d4bf1 100644 --- a/openwrt/package/config/Makefile +++ b/openwrt/package/config/Makefile @@ -77,16 +77,16 @@ lex.zconf.o: lex.zconf.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@ lex.zconf.c: lex.zconf.c_shipped - cp lex.zconf.c_shipped lex.zconf.c + $(CP) lex.zconf.c_shipped lex.zconf.c zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(SHARED_DEPS) $(HOSTCC) $(HOSTCFLAGS) -I. -c $< -o $@ zconf.tab.c: zconf.tab.c_shipped - cp zconf.tab.c_shipped zconf.tab.c + $(CP) zconf.tab.c_shipped zconf.tab.c zconf.tab.h: zconf.tab.h_shipped - cp zconf.tab.h_shipped zconf.tab.h + $(CP) zconf.tab.h_shipped zconf.tab.h endif .PHONY: ncurses diff --git a/openwrt/package/cups/Makefile b/openwrt/package/cups/Makefile index 8ffa8665f..bb3e9d33d 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/curl/Makefile b/openwrt/package/curl/Makefile index 02ea0a352..1a4ee8677 100644 --- a/openwrt/package/curl/Makefile +++ b/openwrt/package/curl/Makefile @@ -91,24 +91,24 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_CURL): install -m0755 -d $(IDIR_CURL)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/curl $(IDIR_CURL)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/curl $(IDIR_CURL)/usr/bin/ $(RSTRIP) $(IDIR_CURL) $(IPKG_BUILD) $(IDIR_CURL) $(PACKAGE_DIR) $(IPKG_LIBCURL): install -m0755 -d $(IDIR_LIBCURL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcurl.so.* $(IDIR_LIBCURL)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so.* $(IDIR_LIBCURL)/usr/lib/ $(RSTRIP) $(IDIR_LIBCURL) $(IPKG_BUILD) $(IDIR_LIBCURL) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libcurl.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/curl-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/curl $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/curl $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcurl.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcurl.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcurl.so* $(STAGING_DIR)/usr/lib/ $(SED) 's,-I/usr/include,,g' $(STAGING_DIR)/usr/bin/curl-config $(SED) 's,-L/usr/lib,,g' $(STAGING_DIR)/usr/bin/curl-config touch $@ diff --git a/openwrt/package/cutter/Makefile b/openwrt/package/cutter/Makefile index 361d1e750..418718f1a 100755 --- a/openwrt/package/cutter/Makefile +++ b/openwrt/package/cutter/Makefile @@ -27,6 +27,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_CUTTER): mkdir -p $(IDIR_CUTTER) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_CUTTER)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_CUTTER)/ $(RSTRIP) $(IDIR_CUTTER)/ $(IPKG_BUILD) $(IDIR_CUTTER) $(PACKAGE_DIR) diff --git a/openwrt/package/cyrus-sasl/Makefile b/openwrt/package/cyrus-sasl/Makefile index 84238db55..e89bee189 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 f92107c7f..0a86efcf2 100644 --- a/openwrt/package/dhcp-forwarder/Makefile +++ b/openwrt/package/dhcp-forwarder/Makefile @@ -61,6 +61,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/dhcp/Makefile b/openwrt/package/dhcp/Makefile index 4914cc4ae..8ee56ff4a 100644 --- a/openwrt/package/dhcp/Makefile +++ b/openwrt/package/dhcp/Makefile @@ -38,12 +38,12 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_DHCP_RELAY): install -d -m0755 $(IDIR_DHCP_RELAY)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(IDIR_DHCP_RELAY)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(IDIR_DHCP_RELAY)/usr/sbin/ $(RSTRIP) $(IDIR_DHCP_RELAY) $(IPKG_BUILD) $(IDIR_DHCP_RELAY) $(PACKAGE_DIR) $(IPKG_DHCP_SERVER): install -d -m0755 $(IDIR_DHCP_SERVER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP_SERVER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(IDIR_DHCP_SERVER)/usr/sbin/ $(RSTRIP) $(IDIR_DHCP_SERVER) $(IPKG_BUILD) $(IDIR_DHCP_SERVER) $(PACKAGE_DIR) diff --git a/openwrt/package/dhcp6/Makefile b/openwrt/package/dhcp6/Makefile index 9883ad18f..e007abad2 100755 --- a/openwrt/package/dhcp6/Makefile +++ b/openwrt/package/dhcp6/Makefile @@ -32,6 +32,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_DHCP6): mkdir -p $(IDIR_DHCP6) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_DHCP6)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_DHCP6)/ $(RSTRIP) $(IDIR_DHCP6) $(IPKG_BUILD) $(IDIR_DHCP6) $(PACKAGE_DIR) diff --git a/openwrt/package/dnsmasq/Makefile b/openwrt/package/dnsmasq/Makefile index 405801063..215697cdb 100644 --- a/openwrt/package/dnsmasq/Makefile +++ b/openwrt/package/dnsmasq/Makefile @@ -3,9 +3,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsmasq -PKG_VERSION:=2.26 +PKG_VERSION:=2.25 PKG_RELEASE:=1 -PKG_MD5SUM:=ae04abb5db4a8cc43c24f432f0c44d5c +PKG_MD5SUM:=a5a387aed551acf91990567a5e8e4fa4 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -27,7 +27,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_DNSMASQ): install -d -m0755 $(IDIR_DNSMASQ)/usr/sbin - cp $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_DNSMASQ)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_DNSMASQ)/usr/sbin/ $(STRIP) $(IDIR_DNSMASQ)/usr/sbin/* install -d -m0755 $(IDIR_DNSMASQ)/etc/init.d/ install -m0644 ./files/dnsmasq.conf $(IDIR_DNSMASQ)/etc/dnsmasq.conf diff --git a/openwrt/package/dosfstools/Makefile b/openwrt/package/dosfstools/Makefile index dc1982b90..91b455e9d 100644 --- a/openwrt/package/dosfstools/Makefile +++ b/openwrt/package/dosfstools/Makefile @@ -33,10 +33,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_DOSFSTOOLS): install -d -m0755 $(IDIR_DOSFSTOOLS)/sbin - cp -fpR $(PKG_INSTALL_DIR)/sbin/dosfsck $(IDIR_DOSFSTOOLS)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/fsck.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/mkdosfs $(IDIR_DOSFSTOOLS)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/mkfs.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/dosfsck $(IDIR_DOSFSTOOLS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/fsck.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/mkdosfs $(IDIR_DOSFSTOOLS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.{msdos,vfat} $(IDIR_DOSFSTOOLS)/sbin/ $(RSTRIP) $(IDIR_DOSFSTOOLS) $(IPKG_BUILD) $(IDIR_DOSFSTOOLS) $(PACKAGE_DIR) diff --git a/openwrt/package/dsniff/Makefile b/openwrt/package/dsniff/Makefile index 484f0c54b..ee5a19863 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/e2fsprogs/Makefile b/openwrt/package/e2fsprogs/Makefile index 6bb89078c..b4393e2eb 100644 --- a/openwrt/package/e2fsprogs/Makefile +++ b/openwrt/package/e2fsprogs/Makefile @@ -69,11 +69,11 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_E2FSPROGS): mkdir -p $(IDIR_E2FSPROGS)/sbin - cp -fpR $(PKG_INSTALL_DIR)/sbin/e2fsck $(IDIR_E2FSPROGS)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/mke2fs $(IDIR_E2FSPROGS)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/mkfs.ext{2,3} $(IDIR_E2FSPROGS)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/tune2fs $(IDIR_E2FSPROGS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/e2fsck $(IDIR_E2FSPROGS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/mke2fs $(IDIR_E2FSPROGS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/mkfs.ext{2,3} $(IDIR_E2FSPROGS)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/tune2fs $(IDIR_E2FSPROGS)/sbin/ mkdir -p $(IDIR_E2FSPROGS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{blkid,com_err,e2p,ext2fs,uuid}.so.* $(IDIR_E2FSPROGS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{blkid,com_err,e2p,ext2fs,uuid}.so.* $(IDIR_E2FSPROGS)/usr/lib/ $(RSTRIP) $(IDIR_E2FSPROGS) $(IPKG_BUILD) $(IDIR_E2FSPROGS) $(PACKAGE_DIR) diff --git a/openwrt/package/ebtables/Makefile b/openwrt/package/ebtables/Makefile index a928a2dbb..9abd93a93 100644 --- a/openwrt/package/ebtables/Makefile +++ b/openwrt/package/ebtables/Makefile @@ -27,6 +27,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_EBTABLES): mkdir -p $(IDIR_EBTABLES)/usr/sbin - cp $(PKG_BUILD_DIR)/ebtables $(IDIR_EBTABLES)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/ebtables $(IDIR_EBTABLES)/usr/sbin/ $(IPKG_BUILD) $(IDIR_EBTABLES) $(PACKAGE_DIR) diff --git a/openwrt/package/elhttp/Makefile b/openwrt/package/elhttp/Makefile index 1d747d6fb..6c8318510 100644 --- a/openwrt/package/elhttp/Makefile +++ b/openwrt/package/elhttp/Makefile @@ -31,7 +31,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ELHTTP): mkdir -p $(IDIR_ELHTTP) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_ELHTTP)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_ELHTTP)/ $(RSTRIP) $(IDIR_ELHTTP)/ $(IPKG_BUILD) $(IDIR_ELHTTP) $(PACKAGE_DIR) diff --git a/openwrt/package/ether-wake/Makefile b/openwrt/package/ether-wake/Makefile index 5ebcf46da..9618b3e3e 100644 --- a/openwrt/package/ether-wake/Makefile +++ b/openwrt/package/ether-wake/Makefile @@ -14,7 +14,7 @@ $(eval $(call PKG_template,ETHER_WAKE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE), $(PKG_BUILD_DIR)/.prepared: mkdir -p $(PKG_BUILD_DIR) - cp ./files/$(PKG_NAME).c $(PKG_BUILD_DIR)/ + $(CP) ./files/$(PKG_NAME).c $(PKG_BUILD_DIR)/ $(PATCH) $(PKG_BUILD_DIR) ./patches touch $@ diff --git a/openwrt/package/expat/Makefile b/openwrt/package/expat/Makefile index ef9f3a9b5..47c8e81b1 100644 --- a/openwrt/package/expat/Makefile +++ b/openwrt/package/expat/Makefile @@ -59,17 +59,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBEXPAT): install -m0755 -d $(IDIR_LIBEXPAT)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(IDIR_LIBEXPAT)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(IDIR_LIBEXPAT)/usr/lib/ $(RSTRIP) $(IDIR_LIBEXPAT) $(IPKG_BUILD) $(IDIR_LIBEXPAT) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libexpat.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xmlwf $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/xmlwf $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/expat*.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/expat*.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libexpat.so diff --git a/openwrt/package/flac/Makefile b/openwrt/package/flac/Makefile index 0e18c5f33..b06cf0ec4 100644 --- a/openwrt/package/flac/Makefile +++ b/openwrt/package/flac/Makefile @@ -32,16 +32,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBFLAC): install -m0755 -d $(IDIR_LIBFLAC)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(IDIR_LIBFLAC)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(IDIR_LIBFLAC)/usr/lib/ $(RSTRIP) $(IDIR_LIBFLAC) $(IPKG_BUILD) $(IDIR_LIBFLAC) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libFLAC.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_BUILD_DIR)/include/FLAC $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/include/FLAC $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/obj/release/lib/libFLAC.so $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libFLAC.so diff --git a/openwrt/package/fping/Makefile b/openwrt/package/fping/Makefile index 627d8fc61..998d3485f 100644 --- a/openwrt/package/fping/Makefile +++ b/openwrt/package/fping/Makefile @@ -48,8 +48,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_FPING): mkdir -p $(IDIR_FPING)/usr/bin - cp $(PKG_BUILD_DIR)/$(PKG_NAME)4 $(IDIR_FPING)/usr/bin/$(PKG_NAME) - cp $(PKG_BUILD_DIR)/$(PKG_NAME)6 $(IDIR_FPING)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME)4 $(IDIR_FPING)/usr/bin/$(PKG_NAME) + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME)6 $(IDIR_FPING)/usr/bin/ $(STRIP) $(IDIR_FPING)/usr/bin/* $(IPKG_BUILD) $(IDIR_FPING) $(PACKAGE_DIR) diff --git a/openwrt/package/fprobe-ulog/Makefile b/openwrt/package/fprobe-ulog/Makefile index f5f3c53f6..6ea249309 100644 --- a/openwrt/package/fprobe-ulog/Makefile +++ b/openwrt/package/fprobe-ulog/Makefile @@ -47,6 +47,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_FPROBE_ULOG): mkdir -p $(IDIR_FPROBE_ULOG)/usr/bin - cp $(PKG_BUILD_DIR)/src/fprobe-ulog $(IDIR_FPROBE_ULOG)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/src/fprobe-ulog $(IDIR_FPROBE_ULOG)/usr/bin/ $(RSTRIP) $(IDIR_FPROBE_ULOG) $(IPKG_BUILD) $(IDIR_FPROBE_ULOG) $(PACKAGE_DIR) diff --git a/openwrt/package/fprobe/Makefile b/openwrt/package/fprobe/Makefile index 91f0c05cc..fed7e3b54 100644 --- a/openwrt/package/fprobe/Makefile +++ b/openwrt/package/fprobe/Makefile @@ -49,6 +49,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_FPROBE): mkdir -p $(IDIR_FPROBE)/usr/bin - cp $(PKG_BUILD_DIR)/src/fprobe $(IDIR_FPROBE)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/src/fprobe $(IDIR_FPROBE)/usr/bin/ $(STRIP) $(IDIR_FPROBE)/usr/bin/* $(IPKG_BUILD) $(IDIR_FPROBE) $(PACKAGE_DIR) diff --git a/openwrt/package/freeradius/Makefile b/openwrt/package/freeradius/Makefile index 0f8f4b031..0ae21bbb7 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; 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/freetype/Makefile b/openwrt/package/freetype/Makefile index 5744970f1..429df1d09 100644 --- a/openwrt/package/freetype/Makefile +++ b/openwrt/package/freetype/Makefile @@ -58,20 +58,20 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBFREETYPE): install -d -m0755 $(IDIR_LIBFREETYPE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(IDIR_LIBFREETYPE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.so.* $(IDIR_LIBFREETYPE)/usr/lib/ $(RSTRIP) $(IDIR_LIBFREETYPE) $(IPKG_BUILD) $(IDIR_LIBFREETYPE) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libfreetype.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/freetype-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/freetype2 $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ft2build.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/freetype2 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ft2build.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreetype.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/freetype2.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libfreetype.so diff --git a/openwrt/package/fuse/Makefile b/openwrt/package/fuse/Makefile index 452a4ab7d..7f3572e90 100644 --- a/openwrt/package/fuse/Makefile +++ b/openwrt/package/fuse/Makefile @@ -72,25 +72,25 @@ $(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/ $(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 -fpR $(PKG_INSTALL_DIR)/usr/include/fuse.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/fuse.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libfuse.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir}/fuse,,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/fuse.pc diff --git a/openwrt/package/gdbserver/Makefile b/openwrt/package/gdbserver/Makefile index 7e5d33ba8..922e63123 100644 --- a/openwrt/package/gdbserver/Makefile +++ b/openwrt/package/gdbserver/Makefile @@ -56,7 +56,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_GDBSERVER): install -m0755 -d $(IDIR_GDBSERVER)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(IDIR_GDBSERVER)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(IDIR_GDBSERVER)/usr/bin/ $(RSTRIP) $(IDIR_GDBSERVER) $(IPKG_BUILD) $(IDIR_GDBSERVER) $(PACKAGE_DIR) diff --git a/openwrt/package/glib/Makefile b/openwrt/package/glib/Makefile index 2715d9fcc..cb697995d 100644 --- a/openwrt/package/glib/Makefile +++ b/openwrt/package/glib/Makefile @@ -81,22 +81,22 @@ $(PKG_BUILD_DIR)/.built: $(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/glib/patches/04-gcc3.4-fix b/openwrt/package/glib/patches/04-gcc3.4-fix index 3eddcf6fe..96f10b7fa 100644 --- a/openwrt/package/glib/patches/04-gcc3.4-fix +++ b/openwrt/package/glib/patches/04-gcc3.4-fix @@ -5,7 +5,7 @@ Origin: self-created, http://www.uwe-dueffert.de/lfs/ownpatches/glib-1.2.10-gcc3 Upstream Status: not reported Description: fix compilation of glib1 with gcc34 -$LastChangedBy: bdubbs $ +$LastChangedBy$ $Date$ diff -Naur glib-1.2.10.orig/gstrfuncs.c glib-1.2.10/gstrfuncs.c diff --git a/openwrt/package/gmediaserver/Makefile b/openwrt/package/gmediaserver/Makefile index fb5823e26..bbadfb112 100644 --- a/openwrt/package/gmediaserver/Makefile +++ b/openwrt/package/gmediaserver/Makefile @@ -69,7 +69,7 @@ $(IPKG_GMEDIASERVER): install -m0755 -d $(IDIR_GMEDIASERVER)/etc/init.d install -m0755 ./files/gmediaserver.init $(IDIR_GMEDIASERVER)/etc/init.d/gmediaserver install -m0755 -d $(IDIR_GMEDIASERVER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/gmediaserver $(IDIR_GMEDIASERVER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/gmediaserver $(IDIR_GMEDIASERVER)/usr/sbin/ $(RSTRIP) $(IDIR_GMEDIASERVER) $(IPKG_BUILD) $(IDIR_GMEDIASERVER) $(PACKAGE_DIR) diff --git a/openwrt/package/gmp/Makefile b/openwrt/package/gmp/Makefile index 27d938427..53db9451b 100644 --- a/openwrt/package/gmp/Makefile +++ b/openwrt/package/gmp/Makefile @@ -57,15 +57,15 @@ $(PKG_BUILD_DIR)/.built: $(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/gnutls/Makefile b/openwrt/package/gnutls/Makefile index 4e7ccb95e..525785078 100644 --- a/openwrt/package/gnutls/Makefile +++ b/openwrt/package/gnutls/Makefile @@ -80,34 +80,34 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBGNUTLS): install -m0755 -d $(IDIR_LIBGNUTLS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra}.so.* $(IDIR_LIBGNUTLS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra}.so.* $(IDIR_LIBGNUTLS)/usr/lib/ $(RSTRIP) $(IDIR_LIBGNUTLS) $(IPKG_BUILD) $(IDIR_LIBGNUTLS) $(PACKAGE_DIR) $(IPKG_LIBGNUTLS_OPENSSL): install -m0755 -d $(IDIR_LIBGNUTLS_OPENSSL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgnutls-openssl.so.* $(IDIR_LIBGNUTLS_OPENSSL)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls-openssl.so.* $(IDIR_LIBGNUTLS_OPENSSL)/usr/lib/ $(RSTRIP) $(IDIR_LIBGNUTLS_OPENSSL) $(IPKG_BUILD) $(IDIR_LIBGNUTLS_OPENSSL) $(PACKAGE_DIR) $(IPKG_GNUTLS_UTILS): install -m0755 -d $(IDIR_GNUTLS_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/certtool $(IDIR_GNUTLS_UTILS)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/gnutls-{cli,serv} $(IDIR_GNUTLS_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/certtool $(IDIR_GNUTLS_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/gnutls-{cli,serv} $(IDIR_GNUTLS_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_GNUTLS_UTILS) $(IPKG_BUILD) $(IDIR_GNUTLS_UTILS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgnutls.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libgnutls{,-extra}-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libgnutls{,-extra}-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gnutls $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gnutls $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra,-openssl}.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra,-openssl}.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gnutls{,-extra}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gnutls{,-extra}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ mkdir -p $(STAGING_DIR)/usr/share/aclocal - cp -fpR $(PKG_INSTALL_DIR)/usr/share/aclocal/libgnutls{,-extra}.m4 $(STAGING_DIR)/usr/share/aclocal/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libgnutls{,-extra}.m4 $(STAGING_DIR)/usr/share/aclocal/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgnutls.so diff --git a/openwrt/package/gpsd/Makefile b/openwrt/package/gpsd/Makefile index 43fad851c..45748cb84 100644 --- a/openwrt/package/gpsd/Makefile +++ b/openwrt/package/gpsd/Makefile @@ -63,18 +63,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_GPSD): install -d -m0755 $(IDIR_GPSD)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(IDIR_GPSD)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(IDIR_GPSD)/usr/lib/ install -d -m0755 $(IDIR_GPSD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(IDIR_GPSD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(IDIR_GPSD)/usr/sbin/ $(RSTRIP) $(IDIR_GPSD) $(IPKG_BUILD) $(IDIR_GPSD) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgps.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gps{,d}.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libgpsmm.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gps{,d}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libgpsmm.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgps.so diff --git a/openwrt/package/gsm/Makefile b/openwrt/package/gsm/Makefile index 0599696d8..b30a6c5ab 100644 --- a/openwrt/package/gsm/Makefile +++ b/openwrt/package/gsm/Makefile @@ -35,22 +35,22 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBGSM): install -d -m0755 $(IDIR_LIBGSM)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(IDIR_LIBGSM)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so.* $(IDIR_LIBGSM)/usr/lib/ $(RSTRIP) $(IDIR_LIBGSM) $(IPKG_BUILD) $(IDIR_LIBGSM) $(PACKAGE_DIR) $(IPKG_GSM_UTILS): install -d -m0755 $(IDIR_GSM_UTILS)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_GSM_UTILS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(IDIR_GSM_UTILS)/usr/bin/ $(RSTRIP) $(IDIR_GSM_UTILS) $(IPKG_BUILD) $(IDIR_GSM_UTILS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgsm.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gsm.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gsm.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgsm.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgsm.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgsm.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgsm.so diff --git a/openwrt/package/haserl/Makefile b/openwrt/package/haserl/Makefile index d9e1faacc..05c6b47b1 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/hostapd/Makefile b/openwrt/package/hostapd/Makefile index c3b8ec6aa..7ac6770fc 100644 --- a/openwrt/package/hostapd/Makefile +++ b/openwrt/package/hostapd/Makefile @@ -19,7 +19,7 @@ include $(TOPDIR)/package/rules.mk $(eval $(call PKG_template,HOSTAPD,hostapd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.configured: - cp ./files/config $(PKG_BUILD_DIR)/.config + $(CP) ./files/config $(PKG_BUILD_DIR)/.config touch $@ $(PKG_BUILD_DIR)/.built: diff --git a/openwrt/package/howl/Makefile b/openwrt/package/howl/Makefile index 8969f10fc..02d9b78f2 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/icecast/Makefile b/openwrt/package/icecast/Makefile index ffaee05a7..ec2ed2405 100644 --- a/openwrt/package/icecast/Makefile +++ b/openwrt/package/icecast/Makefile @@ -70,11 +70,11 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ICECAST): install -d -m0755 $(IDIR_ICECAST)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/icecast.xml $(IDIR_ICECAST)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/icecast.xml $(IDIR_ICECAST)/etc/ install -d -m0755 $(IDIR_ICECAST)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/icecast $(IDIR_ICECAST)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/icecast $(IDIR_ICECAST)/usr/bin/ install -d -m0755 $(IDIR_ICECAST)/usr/share/icecast - cp -fpR $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(IDIR_ICECAST)/usr/share/icecast/ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/icecast/web $(IDIR_ICECAST)/usr/share/icecast/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/admin $(IDIR_ICECAST)/usr/share/icecast/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/icecast/web $(IDIR_ICECAST)/usr/share/icecast/ $(RSTRIP) $(IDIR_ICECAST) $(IPKG_BUILD) $(IDIR_ICECAST) $(PACKAGE_DIR) diff --git a/openwrt/package/icecast/patches/icecast-2.3.0-curl_config.patch b/openwrt/package/icecast/patches/icecast-2.3.0-curl_config.patch index 22ab492ab..eb9f46f2a 100644 --- a/openwrt/package/icecast/patches/icecast-2.3.0-curl_config.patch +++ b/openwrt/package/icecast/patches/icecast-2.3.0-curl_config.patch @@ -10,7 +10,7 @@ diff -ruN icecast-2.3.0-old/aclocal.m4 icecast-2.3.0-new/aclocal.m4 -# serial 47 AC_PROG_LIBTOOL +# serial 46 AC_PROG_LIBTOOL -+# Debian $Rev: 189 $ ++# Debian $Rev$ - -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) diff --git a/openwrt/package/id3lib/Makefile b/openwrt/package/id3lib/Makefile index c40d800ec..fd02bef87 100644 --- a/openwrt/package/id3lib/Makefile +++ b/openwrt/package/id3lib/Makefile @@ -63,17 +63,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_ID3LIB): install -d -m0755 $(IDIR_ID3LIB)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(IDIR_ID3LIB)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(IDIR_ID3LIB)/usr/lib/ $(IPKG_BUILD) $(IDIR_ID3LIB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libid3.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/id3 $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/id3.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/id3 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/id3.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3.so $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3.so $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libid3.so diff --git a/openwrt/package/ipcad/Makefile b/openwrt/package/ipcad/Makefile index 870362aee..21231d4c1 100644 --- a/openwrt/package/ipcad/Makefile +++ b/openwrt/package/ipcad/Makefile @@ -63,8 +63,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPCAD): install -d -m0755 $(IDIR_IPCAD)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/ipcad.conf $(IDIR_IPCAD)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/ipcad.conf $(IDIR_IPCAD)/etc/ install -d -m0755 $(IDIR_IPCAD)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/ipcad $(IDIR_IPCAD)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/ipcad $(IDIR_IPCAD)/usr/bin/ $(RSTRIP) $(IDIR_IPCAD) $(IPKG_BUILD) $(IDIR_IPCAD) $(PACKAGE_DIR) diff --git a/openwrt/package/iperf/Makefile b/openwrt/package/iperf/Makefile index 53589dd9e..dc12dc0f4 100644 --- a/openwrt/package/iperf/Makefile +++ b/openwrt/package/iperf/Makefile @@ -63,7 +63,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPERF): install -d -m0755 $(IDIR_IPERF)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/iperf $(IDIR_IPERF)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/iperf $(IDIR_IPERF)/usr/bin $(RSTRIP) $(IDIR_IPERF) $(IPKG_BUILD) $(IDIR_IPERF) $(PACKAGE_DIR) diff --git a/openwrt/package/ipkg/Makefile b/openwrt/package/ipkg/Makefile index 0a55827fb..3dddcc555 100644 --- a/openwrt/package/ipkg/Makefile +++ b/openwrt/package/ipkg/Makefile @@ -60,8 +60,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPKG): install -d -m0755 $(IDIR_IPKG)/bin - cp -fpR $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG)/bin/ipkg + $(CP) $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG)/bin/ipkg install -d -m0755 $(IDIR_IPKG)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG)/usr/lib/ $(RSTRIP) $(IDIR_IPKG) $(IPKG_BUILD) $(IDIR_IPKG) $(PACKAGE_DIR) diff --git a/openwrt/package/iproute2/Makefile b/openwrt/package/iproute2/Makefile index 5b30b8134..f0773e437 100644 --- a/openwrt/package/iproute2/Makefile +++ b/openwrt/package/iproute2/Makefile @@ -36,13 +36,13 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IP): mkdir -p $(IDIR_IP)/usr/sbin - cp $(PKG_BUILD_DIR)/ip/ip $(IDIR_IP)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/ip/ip $(IDIR_IP)/usr/sbin/ $(STRIP) $(IDIR_IP)/usr/sbin/* $(IPKG_BUILD) $(IDIR_IP) $(PACKAGE_DIR) $(IPKG_TC): mkdir -p $(IDIR_TC)/usr/sbin - cp $(PKG_BUILD_DIR)/tc/tc $(IDIR_TC)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/tc/tc $(IDIR_TC)/usr/sbin/ $(STRIP) $(IDIR_TC)/usr/sbin/* $(IPKG_BUILD) $(IDIR_TC) $(PACKAGE_DIR) diff --git a/openwrt/package/ipsec-tools/Makefile b/openwrt/package/ipsec-tools/Makefile index 70b0627b5..06d49e968 100644 --- a/openwrt/package/ipsec-tools/Makefile +++ b/openwrt/package/ipsec-tools/Makefile @@ -72,14 +72,14 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPSEC_TOOLS): install -d -m0755 $(IDIR_IPSEC_TOOLS)/etc - cp -fpR $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(IDIR_IPSEC_TOOLS)/etc/ + $(CP) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(IDIR_IPSEC_TOOLS)/etc/ install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/ install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(IDIR_IPSEC_TOOLS)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/racoon $(IDIR_IPSEC_TOOLS)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(IDIR_IPSEC_TOOLS)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/setkey $(IDIR_IPSEC_TOOLS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(IDIR_IPSEC_TOOLS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(IDIR_IPSEC_TOOLS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(IDIR_IPSEC_TOOLS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(IDIR_IPSEC_TOOLS)/usr/sbin/ $(RSTRIP) $(IDIR_IPSEC_TOOLS) $(IPKG_BUILD) $(IDIR_IPSEC_TOOLS) $(PACKAGE_DIR) diff --git a/openwrt/package/iptables-snmp/Makefile b/openwrt/package/iptables-snmp/Makefile index 269a109a7..dbf35c8f9 100644 --- a/openwrt/package/iptables-snmp/Makefile +++ b/openwrt/package/iptables-snmp/Makefile @@ -56,7 +56,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPTABLES_SNMP): install -d -m0755 $(IDIR_IPTABLES_SNMP)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib $(RSTRIP) $(IDIR_IPTABLES_SNMP) $(IPKG_BUILD) $(IDIR_IPTABLES_SNMP) $(PACKAGE_DIR) diff --git a/openwrt/package/iptables/Makefile b/openwrt/package/iptables/Makefile index ed46df259..1792fe37c 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)) @@ -73,10 +73,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IPTABLES): 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) @@ -86,29 +86,29 @@ $(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 - cp files/l7/*.pat $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols/ + $(CP) files/l7/*.pat $(IDIR_IPTABLES_MOD_FILTER)/etc/l7-protocols/ install-dev: $(STAGING_DIR)/usr/lib/libipq.a diff --git a/openwrt/package/irssi/Makefile b/openwrt/package/irssi/Makefile index fa70e148f..bdf82a304 100644 --- a/openwrt/package/irssi/Makefile +++ b/openwrt/package/irssi/Makefile @@ -61,7 +61,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_IRSSI): mkdir -p $(IDIR_IRSSI)/usr/bin - cp $(PKG_BUILD_DIR)/src/fe-text/$(PKG_NAME) $(IDIR_IRSSI)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/src/fe-text/$(PKG_NAME) $(IDIR_IRSSI)/usr/bin/ $(STRIP) $(IDIR_IRSSI)/usr/bin/* $(IPKG_BUILD) $(IDIR_IRSSI) $(PACKAGE_DIR) diff --git a/openwrt/package/jpeg/Makefile b/openwrt/package/jpeg/Makefile index dbd2bd4ad..11fd017a4 100644 --- a/openwrt/package/jpeg/Makefile +++ b/openwrt/package/jpeg/Makefile @@ -63,16 +63,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBJPEG): install -d -m0755 $(IDIR_LIBJPEG)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libjpeg.so.* $(IDIR_LIBJPEG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjpeg.so.* $(IDIR_LIBJPEG)/usr/lib/ $(RSTRIP) $(IDIR_LIBJPEG) $(IPKG_BUILD) $(IDIR_LIBJPEG) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libjpeg.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/jpeglib.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/j{config,error,morecfg}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/jpeglib.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/j{config,error,morecfg}.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libjpeg.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjpeg.{a,so*} $(STAGING_DIR)/usr/lib/ install-dev: $(STAGING_DIR)/usr/lib/libjpeg.so diff --git a/openwrt/package/kismet/Makefile b/openwrt/package/kismet/Makefile index 58e3f501a..5603a705e 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/knock/Makefile b/openwrt/package/knock/Makefile index 68293f102..d8d6262e8 100644 --- a/openwrt/package/knock/Makefile +++ b/openwrt/package/knock/Makefile @@ -62,7 +62,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KNOCK): install -d -m0755 $(IDIR_KNOCK)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/knock $(IDIR_KNOCK)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/knock $(IDIR_KNOCK)/usr/bin/ $(RSTRIP) $(IDIR_KNOCK) $(IPKG_BUILD) $(IDIR_KNOCK) $(PACKAGE_DIR) @@ -70,6 +70,6 @@ $(IPKG_KNOCKD): install -d -m0755 $(IDIR_KNOCKD)/etc install -m0600 $(PKG_INSTALL_DIR)/etc/knockd.conf $(IDIR_KNOCKD)/etc/ install -d -m0755 $(IDIR_KNOCKD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/knockd $(IDIR_KNOCKD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/knockd $(IDIR_KNOCKD)/usr/sbin/ $(RSTRIP) $(IDIR_KNOCKD) $(IPKG_BUILD) $(IDIR_KNOCKD) $(PACKAGE_DIR) diff --git a/openwrt/package/l2tpns/Makefile b/openwrt/package/l2tpns/Makefile index e138f51a9..278ecdd29 100644 --- a/openwrt/package/l2tpns/Makefile +++ b/openwrt/package/l2tpns/Makefile @@ -33,10 +33,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_L2TPNS): install -d -m0755 $(IDIR_L2TPNS)/etc/l2tpns - cp -fpR $(PKG_INSTALL_DIR)/etc/l2tpns/* $(IDIR_L2TPNS)/etc/l2tpns/ + $(CP) $(PKG_INSTALL_DIR)/etc/l2tpns/* $(IDIR_L2TPNS)/etc/l2tpns/ install -d -m0755 $(IDIR_L2TPNS)/usr/lib/l2tpns - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/l2tpns/* $(IDIR_L2TPNS)/usr/lib/l2tpns/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tpns/* $(IDIR_L2TPNS)/usr/lib/l2tpns/ install -d -m0755 $(IDIR_L2TPNS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_L2TPNS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(IDIR_L2TPNS)/usr/sbin/ $(RSTRIP) $(IDIR_L2TPNS) $(IPKG_BUILD) $(IDIR_L2TPNS) $(PACKAGE_DIR) diff --git a/openwrt/package/libamsel/Makefile b/openwrt/package/libamsel/Makefile index 530582f3c..0a32c73ea 100644 --- a/openwrt/package/libamsel/Makefile +++ b/openwrt/package/libamsel/Makefile @@ -33,18 +33,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBAMSEL): install -d -m0755 $(IDIR_LIBAMSEL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib $(RSTRIP) $(IDIR_LIBAMSEL) $(IPKG_BUILD) $(IDIR_LIBAMSEL) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libamsel.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/include/compat - cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat + $(CP) $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat mkdir -p $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/ touch $(STAGING_DIR)/usr/lib/libamsel.so install-dev: $(STAGING_DIR)/usr/lib/libamsel.so diff --git a/openwrt/package/libao/Makefile b/openwrt/package/libao/Makefile index 5df454c7c..dee885ea2 100644 --- a/openwrt/package/libao/Makefile +++ b/openwrt/package/libao/Makefile @@ -66,18 +66,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBAO): install -m0755 -d $(IDIR_LIBAO)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(IDIR_LIBAO)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(IDIR_LIBAO)/usr/lib/ $(RSTRIP) $(IDIR_LIBAO) $(IPKG_BUILD) $(IDIR_LIBAO) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libao.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ao $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libao.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libao.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/ao.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/ao.pc touch $@ diff --git a/openwrt/package/libart/Makefile b/openwrt/package/libart/Makefile index bbf2ead77..558ff2123 100644 --- a/openwrt/package/libart/Makefile +++ b/openwrt/package/libart/Makefile @@ -59,19 +59,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBART): install -d -m0755 $(IDIR_LIBART)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(IDIR_LIBART)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(IDIR_LIBART)/usr/lib/ $(RSTRIP) $(IDIR_LIBART) $(IPKG_BUILD) $(IDIR_LIBART) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libart_lgpl_2.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libart_lgpl_2.so diff --git a/openwrt/package/libaudiofile/Makefile b/openwrt/package/libaudiofile/Makefile index cefad8cbc..308bf169c 100644 --- a/openwrt/package/libaudiofile/Makefile +++ b/openwrt/package/libaudiofile/Makefile @@ -62,22 +62,22 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBAUDIOFILE): install -m0755 -d $(IDIR_LIBAUDIOFILE)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* $(IDIR_LIBAUDIOFILE)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* $(IDIR_LIBAUDIOFILE)/usr/lib/ $(RSTRIP) $(IDIR_LIBAUDIOFILE) $(IPKG_BUILD) $(IDIR_LIBAUDIOFILE) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libaudiofile.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/audiofile-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/audiofile-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/af_vfs.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/audiofile.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/aupvlist.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/af_vfs.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/audiofile.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/aupvlist.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/audiofile.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/audiofile.pc touch $@ diff --git a/openwrt/package/libcli/Makefile b/openwrt/package/libcli/Makefile index 78fb0b6bf..398ee092d 100755 --- a/openwrt/package/libcli/Makefile +++ b/openwrt/package/libcli/Makefile @@ -31,15 +31,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBCLI): install -d -m0755 $(IDIR_LIBCLI)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcli* $(IDIR_LIBCLI)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli* $(IDIR_LIBCLI)/usr/lib $(RSTRIP) $(IDIR_LIBCLI) $(IPKG_BUILD) $(IDIR_LIBCLI) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libcli.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libcli.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libcli.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcli.so* $(STAGING_DIR)/usr/lib/ install-dev: $(STAGING_DIR)/usr/lib/libcli.so diff --git a/openwrt/package/libdaemon/Makefile b/openwrt/package/libdaemon/Makefile index 97fe890c8..272e8c2b7 100644 --- a/openwrt/package/libdaemon/Makefile +++ b/openwrt/package/libdaemon/Makefile @@ -63,18 +63,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBDAEMON): install -d -m0755 $(IDIR_LIBDAEMON)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so.* $(IDIR_LIBDAEMON)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so.* $(IDIR_LIBDAEMON)/usr/lib/ $(RSTRIP) $(IDIR_LIBDAEMON) $(IPKG_BUILD) $(IDIR_LIBDAEMON) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libdaemon.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libdaemon $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libdaemon $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdaemon.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdaemon.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libdaemon.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libdaemon.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libdaemon.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libdaemon.pc touch $@ diff --git a/openwrt/package/libdb/Makefile b/openwrt/package/libdb/Makefile index 0fc8687b5..d2ecf93f1 100644 --- a/openwrt/package/libdb/Makefile +++ b/openwrt/package/libdb/Makefile @@ -70,15 +70,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBDB): 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 $(STAGING_DIR)/usr/lib/libdb.so install-dev: $(STAGING_DIR)/usr/lib/libdb.so diff --git a/openwrt/package/libdnet/Makefile b/openwrt/package/libdnet/Makefile index bb48d4430..d325a0533 100644 --- a/openwrt/package/libdnet/Makefile +++ b/openwrt/package/libdnet/Makefile @@ -66,20 +66,20 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBDNET): install -m0755 -d $(IDIR_LIBDNET)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* $(IDIR_LIBDNET)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* $(IDIR_LIBDNET)/usr/lib/ install -m0755 -d $(IDIR_LIBDNET)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/dnet $(IDIR_LIBDNET)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnet $(IDIR_LIBDNET)/usr/sbin/ $(RSTRIP) $(IDIR_LIBDNET) $(IPKG_BUILD) $(IDIR_LIBDNET) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libdnet.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet.h $(STAGING_DIR)/usr/include/ - cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/dnet.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/dnet $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdnet.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libdnet.so diff --git a/openwrt/package/libelf/Makefile b/openwrt/package/libelf/Makefile index f6fd702c4..29057b74f 100644 --- a/openwrt/package/libelf/Makefile +++ b/openwrt/package/libelf/Makefile @@ -67,15 +67,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 7d4d56f13..487fe559a 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 26bd2d9db..402ce56f9 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/libgcrypt/Makefile b/openwrt/package/libgcrypt/Makefile index 6a3028797..bf35eef23 100644 --- a/openwrt/package/libgcrypt/Makefile +++ b/openwrt/package/libgcrypt/Makefile @@ -62,19 +62,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBGCRYPT): install -m0755 -d $(IDIR_LIBGCRYPT)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.so.* $(IDIR_LIBGCRYPT)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.so.* $(IDIR_LIBGCRYPT)/usr/lib/ $(RSTRIP) $(IDIR_LIBGCRYPT) $(IPKG_BUILD) $(IDIR_LIBGCRYPT) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgcrypt.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libgcrypt-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gcrypt*.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gcrypt*.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgcrypt.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/share/aclocal - cp -fpR $(PKG_INSTALL_DIR)/usr/share/aclocal/libgcrypt.m4 $(STAGING_DIR)/usr/share/aclocal/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libgcrypt.m4 $(STAGING_DIR)/usr/share/aclocal/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgcrypt.so diff --git a/openwrt/package/libgd/Makefile b/openwrt/package/libgd/Makefile index aedb0af11..0d31287df 100644 --- a/openwrt/package/libgd/Makefile +++ b/openwrt/package/libgd/Makefile @@ -67,18 +67,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 dd8ddce1a..9611e843a 100644 --- a/openwrt/package/libgdbm/Makefile +++ b/openwrt/package/libgdbm/Makefile @@ -62,15 +62,15 @@ $(PKG_BUILD_DIR)/.built: $(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/libgpg-error/Makefile b/openwrt/package/libgpg-error/Makefile index 6b34bb5e6..eb127d3f1 100644 --- a/openwrt/package/libgpg-error/Makefile +++ b/openwrt/package/libgpg-error/Makefile @@ -63,19 +63,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBGPG_ERROR): install -m0755 -d $(IDIR_LIBGPG_ERROR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* $(IDIR_LIBGPG_ERROR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* $(IDIR_LIBGPG_ERROR)/usr/lib/ $(RSTRIP) $(IDIR_LIBGPG_ERROR) $(IPKG_BUILD) $(IDIR_LIBGPG_ERROR) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libgpg-error.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/gpg-error.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/gpg-error.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/share/aclocal - cp -fpR $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 $(STAGING_DIR)/usr/share/aclocal/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 $(STAGING_DIR)/usr/share/aclocal/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libgpg-error.so diff --git a/openwrt/package/libid3tag/Makefile b/openwrt/package/libid3tag/Makefile index 42c9e6862..b4281652c 100644 --- a/openwrt/package/libid3tag/Makefile +++ b/openwrt/package/libid3tag/Makefile @@ -63,16 +63,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBID3TAG): install -m0755 -d $(IDIR_LIBID3TAG)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(IDIR_LIBID3TAG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(IDIR_LIBID3TAG)/usr/lib/ $(RSTRIP) $(IDIR_LIBID3TAG) $(IPKG_BUILD) $(IDIR_LIBID3TAG) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libid3tag.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3tag.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libid3tag.so diff --git a/openwrt/package/liblzo/Makefile b/openwrt/package/liblzo/Makefile index dddc3ce88..60b3710c9 100644 --- a/openwrt/package/liblzo/Makefile +++ b/openwrt/package/liblzo/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/libmad/Makefile b/openwrt/package/libmad/Makefile index 251f9834a..91983eac5 100644 --- a/openwrt/package/libmad/Makefile +++ b/openwrt/package/libmad/Makefile @@ -74,16 +74,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBMAD): install -m0755 -d $(IDIR_LIBMAD)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(IDIR_LIBMAD)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(IDIR_LIBMAD)/usr/lib/ $(RSTRIP) $(IDIR_LIBMAD) $(IPKG_BUILD) $(IDIR_LIBMAD) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libmad.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/mad.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/mad.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libmad.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libmad.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libmad.so diff --git a/openwrt/package/libnet/Makefile b/openwrt/package/libnet/Makefile index cb6e29e04..4e89b3541 100644 --- a/openwrt/package/libnet/Makefile +++ b/openwrt/package/libnet/Makefile @@ -75,17 +75,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 3748e93e0..c7e271e5e 100644 --- a/openwrt/package/libnids/Makefile +++ b/openwrt/package/libnids/Makefile @@ -62,15 +62,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBNIDS): 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/libogg/Makefile b/openwrt/package/libogg/Makefile index 6fe529b81..4459aa25f 100644 --- a/openwrt/package/libogg/Makefile +++ b/openwrt/package/libogg/Makefile @@ -62,18 +62,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBOGG): install -m0755 -d $(IDIR_LIBOGG)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libogg.so.* $(IDIR_LIBOGG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libogg.so.* $(IDIR_LIBOGG)/usr/lib/ $(RSTRIP) $(IDIR_LIBOGG) $(IPKG_BUILD) $(IDIR_LIBOGG) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libogg.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ogg $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ogg $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libogg.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libogg.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libogg.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libogg.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ogg.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ogg.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/ogg.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/ogg.pc touch $@ diff --git a/openwrt/package/libosip2/Makefile b/openwrt/package/libosip2/Makefile index 6fbb73363..bacf07287 100644 --- a/openwrt/package/libosip2/Makefile +++ b/openwrt/package/libosip2/Makefile @@ -65,17 +65,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 42bac4690..670bca0cd 100644 --- a/openwrt/package/libpcap/Makefile +++ b/openwrt/package/libpcap/Makefile @@ -65,15 +65,15 @@ $(PKG_BUILD_DIR)/.built: $(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 228255c30..8033d42c4 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/ $(SED) 's,^[ILR]_opts=".\+",,g' $(STAGING_DIR)/usr/bin/libpng*-config touch $@ diff --git a/openwrt/package/libpthread/Makefile b/openwrt/package/libpthread/Makefile index ad8f44e20..7e6b8d42e 100644 --- a/openwrt/package/libpthread/Makefile +++ b/openwrt/package/libpthread/Makefile @@ -25,8 +25,8 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBPTHREAD): $(PKG_BUILD_DIR)/.built 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/libtasn1/Makefile b/openwrt/package/libtasn1/Makefile index 97a7caef4..9402aa53a 100644 --- a/openwrt/package/libtasn1/Makefile +++ b/openwrt/package/libtasn1/Makefile @@ -70,19 +70,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBTASN1): install -m0755 -d $(IDIR_LIBTASN1)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(IDIR_LIBTASN1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(IDIR_LIBTASN1)/usr/lib/ $(RSTRIP) $(IDIR_LIBTASN1) $(IPKG_BUILD) $(IDIR_LIBTASN1) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libtasn1.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/share/aclocal - cp -fpR $(PKG_INSTALL_DIR)/usr/share/aclocal/libtasn1.m4 $(STAGING_DIR)/usr/share/aclocal/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/aclocal/libtasn1.m4 $(STAGING_DIR)/usr/share/aclocal/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libtasn1.so diff --git a/openwrt/package/libtool/Makefile b/openwrt/package/libtool/Makefile index b5926aa0b..f84d1711e 100644 --- a/openwrt/package/libtool/Makefile +++ b/openwrt/package/libtool/Makefile @@ -57,15 +57,15 @@ $(PKG_BUILD_DIR)/.built: $(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/libupnp/Makefile b/openwrt/package/libupnp/Makefile index d09f60d64..6e862722e 100644 --- a/openwrt/package/libupnp/Makefile +++ b/openwrt/package/libupnp/Makefile @@ -30,19 +30,19 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(IPKG_LIBUPNP): install -m0755 -d $(IDIR_LIBUPNP)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(IDIR_LIBUPNP)/usr/lib/ ; \ - cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(IDIR_LIBUPNP)/usr/lib/ ; \ - cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(IDIR_LIBUPNP)/usr/lib/ ; \ + $(CP) $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(IDIR_LIBUPNP)/usr/lib/ ; \ + $(CP) $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(IDIR_LIBUPNP)/usr/lib/ ; \ + $(CP) $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(IDIR_LIBUPNP)/usr/lib/ ; \ $(RSTRIP) $(IDIR_LIBUPNP) $(IPKG_BUILD) $(IDIR_LIBUPNP) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libupnp.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include/upnp - cp -fpR $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/ + $(CP) $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(STAGING_DIR)/usr/lib/ ; \ - cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(STAGING_DIR)/usr/lib/ ; \ - cp -fpR $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(STAGING_DIR)/usr/lib/ ; \ + $(CP) $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(STAGING_DIR)/usr/lib/ ; \ + $(CP) $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(STAGING_DIR)/usr/lib/ ; \ + $(CP) $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(STAGING_DIR)/usr/lib/ ; \ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libupnp.so diff --git a/openwrt/package/libusb/Makefile b/openwrt/package/libusb/Makefile index 55af3d621..e6cf4ba2b 100644 --- a/openwrt/package/libusb/Makefile +++ b/openwrt/package/libusb/Makefile @@ -61,17 +61,17 @@ $(PKG_BUILD_DIR)/.built: $(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/libvorbis/Makefile b/openwrt/package/libvorbis/Makefile index 204d137ec..ec36018f1 100644 --- a/openwrt/package/libvorbis/Makefile +++ b/openwrt/package/libvorbis/Makefile @@ -70,18 +70,18 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBVORBIS): install -m0755 -d $(IDIR_LIBVORBIS)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libvorbis.so.* $(IDIR_LIBVORBIS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbis.so.* $(IDIR_LIBVORBIS)/usr/lib/ $(RSTRIP) $(IDIR_LIBVORBIS) $(IPKG_BUILD) $(IDIR_LIBVORBIS) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libvorbis.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/vorbis $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/vorbis $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libvorbis.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libvorbis{,enc,file}.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbis.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbis{,enc,file}.so* $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/vorbis{,enc,file}.pc touch $@ diff --git a/openwrt/package/libvorbisidec/Makefile b/openwrt/package/libvorbisidec/Makefile index 4c1fc0bcb..d668a0e9b 100644 --- a/openwrt/package/libvorbisidec/Makefile +++ b/openwrt/package/libvorbisidec/Makefile @@ -62,16 +62,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBVORBISIDEC): install -m0755 -d $(IDIR_LIBVORBISIDEC)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(IDIR_LIBVORBISIDEC)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(IDIR_LIBVORBISIDEC)/usr/lib/ $(RSTRIP) $(IDIR_LIBVORBISIDEC) $(IPKG_BUILD) $(IDIR_LIBVORBISIDEC) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libvorbisidec.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/tremor $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libvorbisidec.so diff --git a/openwrt/package/libxml2/Makefile b/openwrt/package/libxml2/Makefile index d349caa7d..c08d5fe8b 100644 --- a/openwrt/package/libxml2/Makefile +++ b/openwrt/package/libxml2/Makefile @@ -89,19 +89,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBXML2): install -m0755 -d $(IDIR_LIBXML2)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(IDIR_LIBXML2)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so.* $(IDIR_LIBXML2)/usr/lib/ $(RSTRIP) $(IDIR_LIBXML2) $(IPKG_BUILD) $(IDIR_LIBXML2) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libxml2.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/xml2-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libxml2 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libxml2 $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxml2.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxml-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir}/libxml2,,g' $(STAGING_DIR)/usr/bin/xml2-config $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/bin/xml2-config $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xml2-config diff --git a/openwrt/package/libxslt/Makefile b/openwrt/package/libxslt/Makefile index 91738fc1c..dc6544810 100644 --- a/openwrt/package/libxslt/Makefile +++ b/openwrt/package/libxslt/Makefile @@ -70,19 +70,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBXSLT): install -m0755 -d $(IDIR_LIBXSLT)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* $(IDIR_LIBXSLT)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* $(IDIR_LIBXSLT)/usr/lib/ $(RSTRIP) $(IDIR_LIBXSLT) $(IPKG_BUILD) $(IDIR_LIBXSLT) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libxslt.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xslt-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/xslt-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libxslt $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libxslt $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libxslt.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxslt.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc $(STAGING_DIR)/usr/lib/pkgconfig/ $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/bin/xslt-config $(SED) 's,-I$(STAGING_DIR)/usr/include,,g' $(STAGING_DIR)/usr/bin/xslt-config $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/bin/xslt-config diff --git a/openwrt/package/lighttpd/Makefile b/openwrt/package/lighttpd/Makefile index 401895c38..97fa3610a 100644 --- a/openwrt/package/lighttpd/Makefile +++ b/openwrt/package/lighttpd/Makefile @@ -122,10 +122,10 @@ $(IPKG_LIGHTTPD): install -m0755 ./files/lighttpd.init $(IDIR_LIGHTTPD)/etc/init.d/lighttpd install -m0755 -d $(IDIR_LIGHTTPD)/usr/lib/lighttpd for m in dirlisting indexfile staticfile; do \ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lighttpd/mod_$$m.so $(IDIR_LIGHTTPD)/usr/lib/lighttpd/ ; \ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lighttpd/mod_$$m.so $(IDIR_LIGHTTPD)/usr/lib/lighttpd/ ; \ done 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/linux-atm/Makefile b/openwrt/package/linux-atm/Makefile index 3c7bf9c5b..93da3afcd 100644 --- a/openwrt/package/linux-atm/Makefile +++ b/openwrt/package/linux-atm/Makefile @@ -56,13 +56,13 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LINUX_ATM): install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib - cp $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(IDIR_LINUX_ATM)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(IDIR_LINUX_ATM)/usr/lib $(RSTRIP) $(IDIR_LINUX_ATM)/ $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR) $(IPKG_BR2684CTL): install -d -m0755 $(IDIR_BR2684CTL)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(IDIR_BR2684CTL)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/br2684ctl $(IDIR_BR2684CTL)/usr/sbin/ install -d -m0755 $(IDIR_BR2684CTL)/etc/hotplug.d/net install -m0644 ./files/br2684.init $(IDIR_BR2684CTL)/etc/hotplug.d/net/30-br2684 $(RSTRIP) $(IDIR_BR2684CTL)/ @@ -70,9 +70,9 @@ $(IPKG_BR2684CTL): $(STAGING_DIR)/usr/lib/libatm.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libatm.so diff --git a/openwrt/package/linux-atm/patches/300-no_autotools.patch b/openwrt/package/linux-atm/patches/300-no_autotools.patch index 57f8ecb89..a085eca7d 100644 --- a/openwrt/package/linux-atm/patches/300-no_autotools.patch +++ b/openwrt/package/linux-atm/patches/300-no_autotools.patch @@ -836,7 +836,7 @@ diff -urN linux-atm.old/aclocal.m4 linux-atm.dev/aclocal.m4 -# serial 46 AC_PROG_LIBTOOL +# serial 47 AC_PROG_LIBTOOL -+# Debian $Rev: 214 $ ++# Debian $Rev$ + +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) diff --git a/openwrt/package/lrzsz/Makefile b/openwrt/package/lrzsz/Makefile index 3a399c9a3..bc4fb112b 100644 --- a/openwrt/package/lrzsz/Makefile +++ b/openwrt/package/lrzsz/Makefile @@ -59,8 +59,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LRZSZ): install -d -m0755 $(IDIR_LRZSZ)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/lrz $(IDIR_LRZSZ)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/lsz $(IDIR_LRZSZ)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/lrz $(IDIR_LRZSZ)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/lsz $(IDIR_LRZSZ)/usr/bin/ (cd $(IDIR_LRZSZ)/usr/bin; \ ln -fs lrz lrx; \ ln -fs lrz lrb; \ diff --git a/openwrt/package/lua/Makefile b/openwrt/package/lua/Makefile index 4896006f9..ae6d085cf 100644 --- a/openwrt/package/lua/Makefile +++ b/openwrt/package/lua/Makefile @@ -57,19 +57,19 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(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): install -d -m0755 $(IDIR_LUA)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/lua $(IDIR_LUA)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/lua $(IDIR_LUA)/usr/bin/ $(RSTRIP) $(IDIR_LUA) $(IPKG_BUILD) $(IDIR_LUA) $(PACKAGE_DIR) $(IPKG_LUAC): install -d -m0755 $(IDIR_LUAC)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/luac $(IDIR_LUAC)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/luac $(IDIR_LUAC)/usr/bin/ $(RSTRIP) $(IDIR_LUAC) $(IPKG_BUILD) $(IDIR_LUAC) $(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/macchanger/Makefile b/openwrt/package/macchanger/Makefile index aaa74eb19..75cbb9c8d 100755 --- a/openwrt/package/macchanger/Makefile +++ b/openwrt/package/macchanger/Makefile @@ -47,6 +47,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_MACCHANGER): mkdir -p $(IDIR_MACCHANGER) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_MACCHANGER)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_MACCHANGER)/ $(RSTRIP) $(IDIR_MACCHANGER) $(IPKG_BUILD) $(IDIR_MACCHANGER) $(PACKAGE_DIR) diff --git a/openwrt/package/maradns/Makefile b/openwrt/package/maradns/Makefile index 9ebf32d9f..4625ed7c4 100644 --- a/openwrt/package/maradns/Makefile +++ b/openwrt/package/maradns/Makefile @@ -66,8 +66,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} $(IDIR_MARADNS)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/{askmara,getzone} $(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 dcb821452..89bd39a92 100644 --- a/openwrt/package/matrixssl/Makefile +++ b/openwrt/package/matrixssl/Makefile @@ -29,16 +29,16 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(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/microcom/Makefile b/openwrt/package/microcom/Makefile index 493f57ddf..ebd7ddffe 100644 --- a/openwrt/package/microcom/Makefile +++ b/openwrt/package/microcom/Makefile @@ -26,7 +26,7 @@ $(PKG_BUILD_DIR)/.prepared: touch $@ $(PKG_BUILD_DIR)/.configured: - cp $(PKG_BUILD_DIR)/Makefile $(PKG_BUILD_DIR)/Makefile.tmp + $(CP) $(PKG_BUILD_DIR)/Makefile $(PKG_BUILD_DIR)/Makefile.tmp sed 's~gcc~$$(CC)~' $(PKG_BUILD_DIR)/Makefile.tmp > $(PKG_BUILD_DIR)/Makefile touch $@ diff --git a/openwrt/package/mini_httpd/Makefile b/openwrt/package/mini_httpd/Makefile index 2261b54cd..053ac9116 100644 --- a/openwrt/package/mini_httpd/Makefile +++ b/openwrt/package/mini_httpd/Makefile @@ -21,7 +21,7 @@ $(eval $(call PKG_template,MINI_HTTPD_OPENSSL,mini-httpd-openssl,$(PKG_VERSION)- $(PKG_BUILD_DIR)/.configured: - cp -f ./files/matrixssl_helper.{c,h} $(PKG_BUILD_DIR)/ + $(CP) ./files/matrixssl_helper.{c,h} $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/.built: diff --git a/openwrt/package/miredo/Makefile b/openwrt/package/miredo/Makefile index 17c28f68f..4b9837663 100644 --- a/openwrt/package/miredo/Makefile +++ b/openwrt/package/miredo/Makefile @@ -71,21 +71,21 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_MIREDO): install -d -m0755 $(IDIR_MIREDO)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/miredo.conf-dist $(IDIR_MIREDO)/etc/miredo.conf + $(CP) $(PKG_INSTALL_DIR)/etc/miredo.conf-dist $(IDIR_MIREDO)/etc/miredo.conf install -d -m0755 $(IDIR_MIREDO)/etc/init.d install -m0755 ./files/miredo.init $(IDIR_MIREDO)/etc/init.d/miredo install -d -m0755 $(IDIR_MIREDO)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/miredo $(IDIR_MIREDO)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/miredo $(IDIR_MIREDO)/usr/sbin/ $(RSTRIP) $(IDIR_MIREDO) $(IPKG_BUILD) $(IDIR_MIREDO) $(PACKAGE_DIR) $(IPKG_MIREDO_SERVER): install -d -m0755 $(IDIR_MIREDO_SERVER)/etc/ - cp -fpR $(PKG_INSTALL_DIR)/etc/miredo-server.conf-dist $(IDIR_MIREDO_SERVER)/etc/miredo-server.conf + $(CP) $(PKG_INSTALL_DIR)/etc/miredo-server.conf-dist $(IDIR_MIREDO_SERVER)/etc/miredo-server.conf install -d -m0755 $(IDIR_MIREDO_SERVER)/etc/init.d install -m0755 ./files/miredo-server.init $(IDIR_MIREDO_SERVER)/etc/init.d/miredo-server install -d -m0755 $(IDIR_MIREDO_SERVER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/miredo-server $(IDIR_MIREDO_SERVER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/miredo-server $(IDIR_MIREDO_SERVER)/usr/sbin/ $(RSTRIP) $(IDIR_MIREDO_SERVER) $(IPKG_BUILD) $(IDIR_MIREDO_SERVER) $(PACKAGE_DIR) diff --git a/openwrt/package/mpd/Makefile b/openwrt/package/mpd/Makefile index 71775379f..1e97df496 100644 --- a/openwrt/package/mpd/Makefile +++ b/openwrt/package/mpd/Makefile @@ -102,8 +102,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_MPD): install -d -m0755 $(IDIR_MPD)/usr/bin install -d -m0755 $(IDIR_MPD)/etc - cp -fp $(PKG_INSTALL_DIR)/usr/bin/mpd $(IDIR_MPD)/usr/bin - cp -fp $(PKG_BUILD_DIR)/doc/mpdconf.example $(IDIR_MPD)/etc/mpd.conf + $(CP) $(PKG_INSTALL_DIR)/usr/bin/mpd $(IDIR_MPD)/usr/bin + $(CP) $(PKG_BUILD_DIR)/doc/mpdconf.example $(IDIR_MPD)/etc/mpd.conf echo "Depends: $(PKG_DEPENDS)" >> $(IDIR_MPD)/CONTROL/control $(RSTRIP) $(IDIR_MPD) $(IPKG_BUILD) $(IDIR_MPD) $(PACKAGE_DIR) diff --git a/openwrt/package/mrd6/Makefile b/openwrt/package/mrd6/Makefile index 723e7b03c..8b6ab7039 100644 --- a/openwrt/package/mrd6/Makefile +++ b/openwrt/package/mrd6/Makefile @@ -39,6 +39,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_MRD6): mkdir -p $(IDIR_MRD6)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/ $(IDIR_MRD6)/ + $(CP) $(PKG_INSTALL_DIR)/ $(IDIR_MRD6)/ $(RSTRIP) $(IDIR_MRD6)/ $(IPKG_BUILD) $(IDIR_MRD6) $(PACKAGE_DIR) diff --git a/openwrt/package/mt-daapd/Makefile b/openwrt/package/mt-daapd/Makefile index 7a2ab9b43..fb0750086 100644 --- a/openwrt/package/mt-daapd/Makefile +++ b/openwrt/package/mt-daapd/Makefile @@ -73,9 +73,9 @@ $(IPKG_MT_DAAPD): install -m0755 -d $(IDIR_MT_DAAPD)/etc/init.d install -m0755 ./files/mt-daapd.init $(IDIR_MT_DAAPD)/etc/init.d/mt-daapd install -m0755 -d $(IDIR_MT_DAAPD)/usr/share - cp -fpR $(PKG_INSTALL_DIR)/usr/share/mt-daapd $(IDIR_MT_DAAPD)/usr/share/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/mt-daapd $(IDIR_MT_DAAPD)/usr/share/ install -m0755 -d $(IDIR_MT_DAAPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mt-daapd $(IDIR_MT_DAAPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mt-daapd $(IDIR_MT_DAAPD)/usr/sbin/ $(RSTRIP) $(IDIR_MT_DAAPD) $(IPKG_BUILD) $(IDIR_MT_DAAPD) $(PACKAGE_DIR) diff --git a/openwrt/package/mtr/Makefile b/openwrt/package/mtr/Makefile index f49f2ed86..f0885624b 100644 --- a/openwrt/package/mtr/Makefile +++ b/openwrt/package/mtr/Makefile @@ -68,7 +68,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_MTR): install -d -m0755 $(IDIR_MTR)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/mtr $(IDIR_MTR)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(IDIR_MTR)/usr/sbin/ $(RSTRIP) $(IDIR_MTR) $(IPKG_BUILD) $(IDIR_MTR) $(PACKAGE_DIR) diff --git a/openwrt/package/mysql/Makefile b/openwrt/package/mysql/Makefile index ab8d6e500..ad6b5297b 100644 --- a/openwrt/package/mysql/Makefile +++ b/openwrt/package/mysql/Makefile @@ -107,17 +107,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/nano/Makefile b/openwrt/package/nano/Makefile index 5ecad7ec4..aec6fa8e6 100644 --- a/openwrt/package/nano/Makefile +++ b/openwrt/package/nano/Makefile @@ -66,7 +66,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_NANO): install -d -m0755 $(IDIR_NANO)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nano $(IDIR_NANO)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/nano $(IDIR_NANO)/usr/bin/ $(RSTRIP) $(IDIR_NANO) $(IPKG_BUILD) $(IDIR_NANO) $(PACKAGE_DIR) diff --git a/openwrt/package/ncurses/Makefile b/openwrt/package/ncurses/Makefile index 39674bfd9..4223b8033 100644 --- a/openwrt/package/ncurses/Makefile +++ b/openwrt/package/ncurses/Makefile @@ -115,11 +115,11 @@ $(PKG_BUILD_DIR)/.built: $(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 r/rxvt 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) @@ -127,15 +127,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 0b4914d6c..25a1cc6d1 100644 --- a/openwrt/package/net-snmp/Makefile +++ b/openwrt/package/net-snmp/Makefile @@ -150,7 +150,7 @@ endif $(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) @@ -180,17 +180,17 @@ $(IPKG_SNMPD_STATIC): $(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/netstat-nat/Makefile b/openwrt/package/netstat-nat/Makefile index a6fa4e884..3e0ab204c 100644 --- a/openwrt/package/netstat-nat/Makefile +++ b/openwrt/package/netstat-nat/Makefile @@ -58,7 +58,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_NETSTAT-NAT): install -d -m0755 $(IDIR_NETSTAT-NAT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/netstat-nat $(IDIR_NETSTAT-NAT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/netstat-nat $(IDIR_NETSTAT-NAT)/usr/bin/ $(RSTRIP) $(IDIR_NETSTAT-NAT) $(IPKG_BUILD) $(IDIR_NETSTAT-NAT) $(PACKAGE_DIR) diff --git a/openwrt/package/nmap/Makefile b/openwrt/package/nmap/Makefile index 659bff958..23997b88f 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 8820413e4..4d2120e77 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 3e4c2d3fe..dd460fc06 100644 --- a/openwrt/package/nvram/Makefile +++ b/openwrt/package/nvram/Makefile @@ -13,7 +13,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)/.configured: @@ -27,9 +27,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_NVRAM): mkdir -p $(IDIR_NVRAM)/usr/lib - cp $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib + $(CP) $(PKG_BUILD_DIR)/*.so $(IDIR_NVRAM)/usr/lib mkdir -p $(IDIR_NVRAM)/usr/sbin - cp $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/nvram $(IDIR_NVRAM)/usr/sbin $(RSTRIP) $(IDIR_NVRAM) $(IPKG_BUILD) $(IDIR_NVRAM) $(PACKAGE_DIR) @@ -37,6 +37,6 @@ $(IPKG_NVRAM): compile-targets: install-dev install-dev: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/lib - cp $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib + $(CP) $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib diff --git a/openwrt/package/olsrd/Makefile b/openwrt/package/olsrd/Makefile index 0c427a32e..a5092c875 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/opencdk/Makefile b/openwrt/package/opencdk/Makefile index c313c49d2..c40b0c24e 100644 --- a/openwrt/package/opencdk/Makefile +++ b/openwrt/package/opencdk/Makefile @@ -71,17 +71,17 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBOPENCDK): install -m0755 -d $(IDIR_LIBOPENCDK)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* $(IDIR_LIBOPENCDK)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.so.* $(IDIR_LIBOPENCDK)/usr/lib/ $(RSTRIP) $(IDIR_LIBOPENCDK) $(IPKG_BUILD) $(IDIR_LIBOPENCDK) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libopencdk.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/opencdk-config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/opencdk-config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/opencdk.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/opencdk.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopencdk.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libopencdk.so diff --git a/openwrt/package/openldap/Makefile b/openwrt/package/openldap/Makefile index 5909ee530..5eac5807e 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 $@ install-dev: $(STAGING_DIR)/usr/lib/libldap.so diff --git a/openwrt/package/openser/Makefile b/openwrt/package/openser/Makefile index 29d72864f..d3b482678 100644 --- a/openwrt/package/openser/Makefile +++ b/openwrt/package/openser/Makefile @@ -42,17 +42,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 -a $(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 c0d296d23..1dca669fe 100644 --- a/openwrt/package/openssh/Makefile +++ b/openwrt/package/openssh/Makefile @@ -81,42 +81,42 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_OPENSSH_CLIENT): install -m0700 -d $(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 -m0700 -d $(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 f822e9ad5..bc8b43c1d 100644 --- a/openwrt/package/openssl/Makefile +++ b/openwrt/package/openssl/Makefile @@ -63,26 +63,26 @@ $(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 -m0700 $(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 037cb0d73..a34bf4436 100644 --- a/openwrt/package/openvpn/Makefile +++ b/openwrt/package/openvpn/Makefile @@ -81,7 +81,7 @@ $(PKG_BUILD_DIR)/.built: $(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) diff --git a/openwrt/package/osiris/Makefile b/openwrt/package/osiris/Makefile index ba0db6c22..54a4a99c1 100644 --- a/openwrt/package/osiris/Makefile +++ b/openwrt/package/osiris/Makefile @@ -68,6 +68,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/p910nd/Makefile b/openwrt/package/p910nd/Makefile index 917b0fa02..491e6e519 100644 --- a/openwrt/package/p910nd/Makefile +++ b/openwrt/package/p910nd/Makefile @@ -33,7 +33,7 @@ $(IPKG_P910ND): install -m0755 ./files/p910nd.init $(IDIR_P910ND)/etc/init.d/p910nd install -d -m0755 $(IDIR_P910ND)/usr/sbin ln -sf p910nd $(IDIR_P910ND)/etc/init.d/S$(PKG_INIT_PRIO)p910nd - cp -fpR $(PKG_BUILD_DIR)/p910nd $(IDIR_P910ND)/usr/sbin + $(CP) $(PKG_BUILD_DIR)/p910nd $(IDIR_P910ND)/usr/sbin $(RSTRIP) $(IDIR_P910ND) $(IPKG_BUILD) $(IDIR_P910ND) $(PACKAGE_DIR) diff --git a/openwrt/package/pciutils/Makefile b/openwrt/package/pciutils/Makefile index 631834456..b77618242 100644 --- a/openwrt/package/pciutils/Makefile +++ b/openwrt/package/pciutils/Makefile @@ -29,7 +29,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_PCIUTILS): install -d -m0755 $(IDIR_PCIUTILS)/usr/sbin install -d -m0755 $(IDIR_PCIUTILS)/usr/share - cp -fpR $(PKG_BUILD_DIR)/{lspci,setpci} $(IDIR_PCIUTILS)/usr/sbin/ - cp -fpR $(PKG_BUILD_DIR)/pci.ids $(IDIR_PCIUTILS)/usr/share/ + $(CP) $(PKG_BUILD_DIR)/{lspci,setpci} $(IDIR_PCIUTILS)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/pci.ids $(IDIR_PCIUTILS)/usr/share/ $(RSTRIP) $(IDIR_PCIUTILS)/ $(IPKG_BUILD) $(IDIR_PCIUTILS) $(PACKAGE_DIR) diff --git a/openwrt/package/pcmcia-cs/Makefile b/openwrt/package/pcmcia-cs/Makefile index cc74db1f5..b99633a5f 100644 --- a/openwrt/package/pcmcia-cs/Makefile +++ b/openwrt/package/pcmcia-cs/Makefile @@ -47,10 +47,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_PCMCIA_UTILS): install -m0755 -d $(IDIR_PCMCIA_UTILS)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/pcmcia $(IDIR_PCMCIA_UTILS)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(IDIR_PCMCIA_UTILS)/etc/ install -m0755 -d $(IDIR_PCMCIA_UTILS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/sbin/cardctl $(IDIR_PCMCIA_UTILS)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/cardmgr $(IDIR_PCMCIA_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/cardctl $(IDIR_PCMCIA_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/cardmgr $(IDIR_PCMCIA_UTILS)/usr/sbin/ $(RSTRIP) $(IDIR_PCMCIA_UTILS) $(IPKG_BUILD) $(IDIR_PCMCIA_UTILS) $(PACKAGE_DIR) diff --git a/openwrt/package/pcre/Makefile b/openwrt/package/pcre/Makefile index b24d7d8a2..3cd030481 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 $@ install-dev: $(STAGING_DIR)/usr/lib/libpcre.so diff --git a/openwrt/package/peercast/Makefile b/openwrt/package/peercast/Makefile index 575a4041a..36d78163d 100644 --- a/openwrt/package/peercast/Makefile +++ b/openwrt/package/peercast/Makefile @@ -64,9 +64,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_PEERCAST): install -m0755 -d $(IDIR_PEERCAST)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/peercast $(IDIR_PEERCAST)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/peercast $(IDIR_PEERCAST)/usr/sbin/ install -m0755 -d $(IDIR_PEERCAST)/usr/share/peercast/html - cp -fpR $(PKG_INSTALL_DIR)/usr/share/peercast/html/en $(IDIR_PEERCAST)/usr/share/peercast/html/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/peercast/html/en $(IDIR_PEERCAST)/usr/share/peercast/html/ install -m0755 -d $(IDIR_PEERCAST)/etc install -m0644 ./files/peercast.ini $(IDIR_PEERCAST)/etc/ install -m0755 -d $(IDIR_PEERCAST)/etc/init.d diff --git a/openwrt/package/peerguardian/Makefile b/openwrt/package/peerguardian/Makefile index ee34f0739..1410494ae 100755 --- a/openwrt/package/peerguardian/Makefile +++ b/openwrt/package/peerguardian/Makefile @@ -49,6 +49,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_PEERGUARDIAN): mkdir -p $(IDIR_PEERGUARDIAN) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_PEERGUARDIAN)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_PEERGUARDIAN)/ $(RSTRIP) $(IDIR_PEERGUARDIAN)/ $(IPKG_BUILD) $(IDIR_PEERGUARDIAN) $(PACKAGE_DIR) diff --git a/openwrt/package/php4/Makefile b/openwrt/package/php4/Makefile index 2644aa445..cd42c1a7c 100644 --- a/openwrt/package/php4/Makefile +++ b/openwrt/package/php4/Makefile @@ -263,7 +263,7 @@ $(IPKG_PHP4_CLI): install -m0755 -d $(IDIR_PHP4_CLI)/etc install -m0644 ./files/php.ini $(IDIR_PHP4_CLI)/etc/ install -m0755 -d $(IDIR_PHP4_CLI)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/php-cli $(IDIR_PHP4_CLI)/usr/bin/php + $(CP) $(PKG_BUILD_DIR)/php-cli $(IDIR_PHP4_CLI)/usr/bin/php $(RSTRIP) $(IDIR_PHP4_CLI) $(IPKG_BUILD) $(IDIR_PHP4_CLI) $(PACKAGE_DIR) @@ -271,7 +271,7 @@ $(IPKG_PHP4_CGI): install -m0755 -d $(IDIR_PHP4_CGI)/etc install -m0644 ./files/php.ini $(IDIR_PHP4_CGI)/etc/ install -m0755 -d $(IDIR_PHP4_CGI)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/php-cgi $(IDIR_PHP4_CGI)/usr/bin/php + $(CP) $(PKG_BUILD_DIR)/php-cgi $(IDIR_PHP4_CGI)/usr/bin/php $(RSTRIP) $(IDIR_PHP4_CGI) $(IPKG_BUILD) $(IDIR_PHP4_CGI) $(PACKAGE_DIR) @@ -281,7 +281,7 @@ $(IPKG_PHP4_FASTCGI): install -m0755 -d $(IDIR_PHP4_FASTCGI)/etc/init.d install -m0755 ./files/php.init $(IDIR_PHP4_FASTCGI)/etc/init.d/php install -m0755 -d $(IDIR_PHP4_FASTCGI)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/php-fastcgi $(IDIR_PHP4_FASTCGI)/usr/sbin/php + $(CP) $(PKG_BUILD_DIR)/php-fastcgi $(IDIR_PHP4_FASTCGI)/usr/sbin/php $(RSTRIP) $(IDIR_PHP4_FASTCGI) $(IPKG_BUILD) $(IDIR_PHP4_FASTCGI) $(PACKAGE_DIR) diff --git a/openwrt/package/php5/Makefile b/openwrt/package/php5/Makefile index db863ae4a..bc48855d4 100644 --- a/openwrt/package/php5/Makefile +++ b/openwrt/package/php5/Makefile @@ -267,7 +267,7 @@ $(IPKG_PHP5_CLI): install -m0755 -d $(IDIR_PHP5_CLI)/etc install -m0644 ./files/php.ini $(IDIR_PHP5_CLI)/etc/ install -m0755 -d $(IDIR_PHP5_CLI)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/php-cli $(IDIR_PHP5_CLI)/usr/bin/php + $(CP) $(PKG_BUILD_DIR)/php-cli $(IDIR_PHP5_CLI)/usr/bin/php $(RSTRIP) $(IDIR_PHP5_CLI) $(IPKG_BUILD) $(IDIR_PHP5_CLI) $(PACKAGE_DIR) @@ -275,7 +275,7 @@ $(IPKG_PHP5_CGI): install -m0755 -d $(IDIR_PHP5_CGI)/etc install -m0644 ./files/php.ini $(IDIR_PHP5_CGI)/etc/ install -m0755 -d $(IDIR_PHP5_CGI)/usr/bin - cp -fpR $(PKG_BUILD_DIR)/php-cgi $(IDIR_PHP5_CGI)/usr/bin/php + $(CP) $(PKG_BUILD_DIR)/php-cgi $(IDIR_PHP5_CGI)/usr/bin/php $(RSTRIP) $(IDIR_PHP5_CGI) $(IPKG_BUILD) $(IDIR_PHP5_CGI) $(PACKAGE_DIR) @@ -285,7 +285,7 @@ $(IPKG_PHP5_FASTCGI): install -m0755 -d $(IDIR_PHP5_FASTCGI)/etc/init.d install -m0755 ./files/php.init $(IDIR_PHP5_FASTCGI)/etc/init.d/php install -m0755 -d $(IDIR_PHP5_FASTCGI)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/php-fastcgi $(IDIR_PHP5_FASTCGI)/usr/sbin/php + $(CP) $(PKG_BUILD_DIR)/php-fastcgi $(IDIR_PHP5_FASTCGI)/usr/sbin/php $(RSTRIP) $(IDIR_PHP5_FASTCGI) $(IPKG_BUILD) $(IDIR_PHP5_FASTCGI) $(PACKAGE_DIR) diff --git a/openwrt/package/pipacs/Makefile b/openwrt/package/pipacs/Makefile index 5ec35b995..fe2219d9f 100644 --- a/openwrt/package/pipacs/Makefile +++ b/openwrt/package/pipacs/Makefile @@ -13,7 +13,7 @@ $(eval $(call PKG_template,PIPACS,pipacs,$(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)/.configured: diff --git a/openwrt/package/pmacct/Makefile b/openwrt/package/pmacct/Makefile index 04e75366d..4a86c3ae9 100644 --- a/openwrt/package/pmacct/Makefile +++ b/openwrt/package/pmacct/Makefile @@ -161,6 +161,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 2dec25bbb..75ea1a082 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/portsentry/Makefile b/openwrt/package/portsentry/Makefile index 12452596e..18cfec71e 100644 --- a/openwrt/package/portsentry/Makefile +++ b/openwrt/package/portsentry/Makefile @@ -27,8 +27,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_PORTSENTRY): mkdir -p $(IDIR_PORTSENTRY)/usr/bin mkdir -p $(IDIR_PORTSENTRY)/etc - cp $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(IDIR_PORTSENTRY)/etc/ - cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_PORTSENTRY)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(IDIR_PORTSENTRY)/etc/ + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_PORTSENTRY)/usr/bin/ $(STRIP) $(IDIR_PORTSENTRY)/usr/bin/* $(IPKG_BUILD) $(IDIR_PORTSENTRY) $(PACKAGE_DIR) diff --git a/openwrt/package/postgresql/Makefile b/openwrt/package/postgresql/Makefile index 5f269b1b9..2cb3f6d0e 100644 --- a/openwrt/package/postgresql/Makefile +++ b/openwrt/package/postgresql/Makefile @@ -88,27 +88,27 @@ $(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/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/pg_config $(STAGING_DIR)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/pg_config $(STAGING_DIR)/usr/bin/ mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/libpq $(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/pg_config.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 $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/libpq-fe.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/pg_config.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 56a9afb24..4a0b0537a 100644 --- a/openwrt/package/ppp/Makefile +++ b/openwrt/package/ppp/Makefile @@ -116,19 +116,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 a115bd511..32e301d75 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/ptunnel/Makefile b/openwrt/package/ptunnel/Makefile index 8330cb07b..4a2a3fe63 100644 --- a/openwrt/package/ptunnel/Makefile +++ b/openwrt/package/ptunnel/Makefile @@ -64,6 +64,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_PTUNNEL): install -m0755 -d $(IDIR_PTUNNEL)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(IDIR_PTUNNEL)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(IDIR_PTUNNEL)/usr/sbin/ $(RSTRIP) $(IDIR_PTUNNEL) $(IPKG_BUILD) $(IDIR_PTUNNEL) $(PACKAGE_DIR) diff --git a/openwrt/package/quagga/Makefile b/openwrt/package/quagga/Makefile index 32d6d6603..51b424b68 100644 --- a/openwrt/package/quagga/Makefile +++ b/openwrt/package/quagga/Makefile @@ -71,10 +71,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/ @@ -86,38 +86,38 @@ $(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_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/raddump/Makefile b/openwrt/package/raddump/Makefile index 690870430..1526ea80a 100755 --- a/openwrt/package/raddump/Makefile +++ b/openwrt/package/raddump/Makefile @@ -50,6 +50,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RADDUMP): mkdir -p $(IDIR_RADDUMP) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_RADDUMP)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_RADDUMP)/ $(RSTRIP) $(IDIR_RADDUMP) $(IPKG_BUILD) $(IDIR_RADDUMP) $(PACKAGE_DIR) diff --git a/openwrt/package/rarpd/Makefile b/openwrt/package/rarpd/Makefile index 44effa867..b91cd83a4 100644 --- a/openwrt/package/rarpd/Makefile +++ b/openwrt/package/rarpd/Makefile @@ -65,7 +65,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RARPD): install -d -m0755 $(IDIR_RARPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/rarpd $(IDIR_RARPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rarpd $(IDIR_RARPD)/usr/sbin/ install -d -m0755 $(IDIR_RARPD)/etc/default install -m644 ./files/rarpd.default $(IDIR_RARPD)/etc/default/rarpd install -d -m0755 $(IDIR_RARPD)/etc/init.d diff --git a/openwrt/package/readline/Makefile b/openwrt/package/readline/Makefile index e9c8fdb3f..2e044a184 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/reaim/Makefile b/openwrt/package/reaim/Makefile index dc1a0927b..959e0de91 100644 --- a/openwrt/package/reaim/Makefile +++ b/openwrt/package/reaim/Makefile @@ -36,7 +36,7 @@ $(IPKG_REAIM): install -m0755 ./files/reaim.init $(IDIR_REAIM)/etc/init.d/reaim ln -sf reaim $(IDIR_REAIM)/etc/init.d/S63reaim install -d -m0755 $(IDIR_REAIM)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/reaim $(IDIR_REAIM)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/reaim $(IDIR_REAIM)/usr/sbin/ $(RSTRIP) $(IDIR_REAIM) $(IPKG_BUILD) $(IDIR_REAIM) $(PACKAGE_DIR) diff --git a/openwrt/package/rp-pppoe/Makefile b/openwrt/package/rp-pppoe/Makefile index e556afd47..1b829d836 100644 --- a/openwrt/package/rp-pppoe/Makefile +++ b/openwrt/package/rp-pppoe/Makefile @@ -66,8 +66,8 @@ $(IPKG_PPPOE_CLIENT): install -d -m0755 $(IDIR_PPPOE_CLIENT)/etc/ppp install -m0644 $(PKG_INSTALL_DIR)/etc/pppoe.conf $(IDIR_PPPOE_CLIENT)/etc/ install -d -m0755 $(IDIR_PPPOE_CLIENT)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe $(IDIR_PPPOE_CLIENT)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/adsl-* $(IDIR_PPPOE_CLIENT)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe $(IDIR_PPPOE_CLIENT)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/adsl-* $(IDIR_PPPOE_CLIENT)/usr/sbin/ $(RSTRIP) $(IDIR_PPPOE_CLIENT) $(IPKG_BUILD) $(IDIR_PPPOE_CLIENT) $(PACKAGE_DIR) @@ -77,7 +77,7 @@ $(IPKG_PPPOE_RELAY): install -d -m0755 $(IDIR_PPPOE_RELAY)/etc/init.d install -m0755 ./files/pppoe-relay.init $(IDIR_PPPOE_RELAY)/etc/init.d/pppoe-relay install -d -m0755 $(IDIR_PPPOE_RELAY)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe-relay $(IDIR_PPPOE_RELAY)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-relay $(IDIR_PPPOE_RELAY)/usr/sbin/ $(RSTRIP) $(IDIR_PPPOE_RELAY) $(IPKG_BUILD) $(IDIR_PPPOE_RELAY) $(PACKAGE_DIR) @@ -89,13 +89,13 @@ $(IPKG_PPPOE_SERVER): install -d -m0755 $(IDIR_PPPOE_SERVER)/etc/ppp install -m0644 $(PKG_INSTALL_DIR)/etc/ppp/pppoe-server-options $(IDIR_PPPOE_SERVER)/etc/ppp/ install -d -m0755 $(IDIR_PPPOE_SERVER)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe-server $(IDIR_PPPOE_SERVER)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-server $(IDIR_PPPOE_SERVER)/usr/sbin/ $(RSTRIP) $(IDIR_PPPOE_SERVER) $(IPKG_BUILD) $(IDIR_PPPOE_SERVER) $(PACKAGE_DIR) $(IPKG_PPPOE_SNIFF): install -d -m0755 $(IDIR_PPPOE_SNIFF)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/pppoe-sniff $(IDIR_PPPOE_SNIFF)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-sniff $(IDIR_PPPOE_SNIFF)/usr/sbin/ $(RSTRIP) $(IDIR_PPPOE_SNIFF) $(IPKG_BUILD) $(IDIR_PPPOE_SNIFF) $(PACKAGE_DIR) diff --git a/openwrt/package/rrdcollect/Makefile b/openwrt/package/rrdcollect/Makefile index cc2e19ac4..9f105dbe0 100644 --- a/openwrt/package/rrdcollect/Makefile +++ b/openwrt/package/rrdcollect/Makefile @@ -72,7 +72,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RRDCOLLECT): install -d -m0755 $(IDIR_RRDCOLLECT)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/rrdcollect $(IDIR_RRDCOLLECT)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/rrdcollect $(IDIR_RRDCOLLECT)/usr/sbin/ $(RSTRIP) $(IDIR_RRDCOLLECT) $(IPKG_BUILD) $(IDIR_RRDCOLLECT) $(PACKAGE_DIR) diff --git a/openwrt/package/rrdcollect/files/rrdcollect.conf b/openwrt/package/rrdcollect/files/rrdcollect.conf index e34c9bff7..1b374548e 100644 --- a/openwrt/package/rrdcollect/files/rrdcollect.conf +++ b/openwrt/package/rrdcollect/files/rrdcollect.conf @@ -19,15 +19,15 @@ exec:///bin/df # LAN: vlan0, WAN: vlan1, WIFI: eth1 file:///proc/net/dev -" vlan0:%d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:Labi,Lapi,Labo,Lapo -" vlan1:%d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:Wabi,Wapi,Wabo,Wapo -" eth1:%d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:Wibi,Wipi,Wibo,Wipo -#" tun0:%d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:tbi,tpi,tbo,tpo +"vlan0: %d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:Labi,Lapi,Labo,Lapo +"vlan1: %d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:Wabi,Wapi,Wabo,Wapo +"eth1: %d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:Wibi,Wipi,Wibo,Wipo +#"tun0: %d %d %*d %*d %*d %*d %*d %*d %d %d" IF.rrd:tbi,tpi,tbo,tpo file:///proc/slabinfo "ip_conntrack %d %*d %*d %*d %*d %*d" SYS.rrd:con "arp_cache %d %*d %*d %*d %*d %*d" SYS.rrd:arp file:///proc/interrupts -" 4: %d MIPS eth1" SYS.rrd:irw -" 5: %d MIPS eth0" SYS.rrd:ire +"4: %d MIPS eth1" SYS.rrd:irw +"5: %d MIPS eth0" SYS.rrd:ire diff --git a/openwrt/package/rrdtool/Makefile b/openwrt/package/rrdtool/Makefile index eaa0e32b7..3bea4aa9a 100644 --- a/openwrt/package/rrdtool/Makefile +++ b/openwrt/package/rrdtool/Makefile @@ -71,32 +71,32 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RRDTOOL): install -d -m0755 $(IDIR_RRDTOOL)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdtool $(IDIR_RRDTOOL)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdupdate $(IDIR_RRDTOOL)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdtool $(IDIR_RRDTOOL)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdupdate $(IDIR_RRDTOOL)/usr/bin/ $(RSTRIP) $(IDIR_RRDTOOL) $(IPKG_BUILD) $(IDIR_RRDTOOL) $(PACKAGE_DIR) $(IPKG_RRDCGI): install -d -m0755 $(IDIR_RRDCGI)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(IDIR_RRDCGI)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(IDIR_RRDCGI)/usr/bin/ $(RSTRIP) $(IDIR_RRDCGI) $(IPKG_BUILD) $(IDIR_RRDCGI) $(PACKAGE_DIR) $(IPKG_LIBRRD): install -d -m0755 $(IDIR_LIBRRD)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(IDIR_LIBRRD)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(IDIR_LIBRRD)/usr/lib/ install -d -m0755 $(IDIR_LIBRRD)/usr/share/rrdtool/fonts - cp -fpR $(PKG_BUILD_DIR)/src/DejaVuSansMono-Roman.ttf \ + $(CP) $(PKG_BUILD_DIR)/src/DejaVuSansMono-Roman.ttf \ $(IDIR_LIBRRD)/usr/share/rrdtool/fonts/ $(RSTRIP) $(IDIR_LIBRRD) $(IPKG_BUILD) $(IDIR_LIBRRD) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/librrd.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/rrd.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/librrd.so diff --git a/openwrt/package/rrdtool1/Makefile b/openwrt/package/rrdtool1/Makefile index 0dc0a47a5..b0eb9fcc7 100644 --- a/openwrt/package/rrdtool1/Makefile +++ b/openwrt/package/rrdtool1/Makefile @@ -68,29 +68,29 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_RRDTOOL1): install -d -m0755 $(IDIR_RRDTOOL1)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdtool $(IDIR_RRDTOOL1)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdupdate $(IDIR_RRDTOOL1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdtool $(IDIR_RRDTOOL1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdupdate $(IDIR_RRDTOOL1)/usr/bin/ $(RSTRIP) $(IDIR_RRDTOOL1) $(IPKG_BUILD) $(IDIR_RRDTOOL1) $(PACKAGE_DIR) $(IPKG_RRDCGI1): install -d -m0755 $(IDIR_RRDCGI1)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(IDIR_RRDCGI1)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/rrdcgi $(IDIR_RRDCGI1)/usr/bin/ $(RSTRIP) $(IDIR_RRDCGI1) $(IPKG_BUILD) $(IDIR_RRDCGI1) $(PACKAGE_DIR) $(IPKG_LIBRRD1): install -d -m0755 $(IDIR_LIBRRD1)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(IDIR_LIBRRD1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so.* $(IDIR_LIBRRD1)/usr/lib/ $(RSTRIP) $(IDIR_LIBRRD1) $(IPKG_BUILD) $(IDIR_LIBRRD1) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/librrd.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/rrd.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/rrd.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/librrd.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/librrd.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/librrd.so diff --git a/openwrt/package/rsync/Makefile b/openwrt/package/rsync/Makefile index bd0bfab92..0089326e3 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 13fa55513..cbe763402 100644 --- a/openwrt/package/sablevm-classpath/Makefile +++ b/openwrt/package/sablevm-classpath/Makefile @@ -64,21 +64,21 @@ $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install - cp ./files/mini.classlist $(PKG_BUILD_DIR)/lib/ + $(CP) ./files/mini.classlist $(PKG_BUILD_DIR)/lib/ cd $(PKG_BUILD_DIR)/lib ; fastjar -Mcf mini.jar -@ < mini.classlist touch $@ $(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 e57fdb225..7eec3f492 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/sane-backends/Makefile b/openwrt/package/sane-backends/Makefile index b3d10b584..31ac68693 100644 --- a/openwrt/package/sane-backends/Makefile +++ b/openwrt/package/sane-backends/Makefile @@ -63,8 +63,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SANE_BACKENDS): install -d -m0755 $(IDIR_SANE_BACKENDS)/etc/sane.d - cp -fpR $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(IDIR_SANE_BACKENDS)/etc/sane.d/ + $(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(IDIR_SANE_BACKENDS)/etc/sane.d/ install -d -m0755 $(IDIR_SANE_BACKENDS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/saned $(IDIR_SANE_BACKENDS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(IDIR_SANE_BACKENDS)/usr/sbin/ $(RSTRIP) $(IDIR_SANE_BACKENDS) $(IPKG_BUILD) $(IDIR_SANE_BACKENDS) $(PACKAGE_DIR) diff --git a/openwrt/package/scdp/Makefile b/openwrt/package/scdp/Makefile index ce09d2ef9..c8909c6fe 100644 --- a/openwrt/package/scdp/Makefile +++ b/openwrt/package/scdp/Makefile @@ -60,6 +60,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SCDP): install -d -m0755 $(IDIR_SCDP)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/scdp $(IDIR_SCDP)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/scdp $(IDIR_SCDP)/usr/bin/ $(RSTRIP) $(IDIR_SCDP) $(IPKG_BUILD) $(IDIR_SCDP) $(PACKAGE_DIR) diff --git a/openwrt/package/sdk/Makefile b/openwrt/package/sdk/Makefile index cec93b9d8..3f62aec11 100644 --- a/openwrt/package/sdk/Makefile +++ b/openwrt/package/sdk/Makefile @@ -20,13 +20,13 @@ $(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 $(TOPDIR)/rules.mk $(SDK_BUILD_DIR)/ - cp ./files/Makefile.sdk $(SDK_BUILD_DIR)/Makefile - cp ./files/README.SDK $(SDK_BUILD_DIR)/ - cp ./files/depend.mk $(SDK_BUILD_DIR)/package/ - cp $(TOPDIR)/package/rules.mk $(SDK_BUILD_DIR)/package/ + $(CP) $(STAGING_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/ + $(CP) $(TOPDIR)/package/strace $(TOPDIR)/package/iproute2 $(SDK_BUILD_DIR)/examples + $(CP) $(TOPDIR)/rules.mk $(SDK_BUILD_DIR)/ + $(CP) ./files/Makefile.sdk $(SDK_BUILD_DIR)/Makefile + $(CP) ./files/README.SDK $(SDK_BUILD_DIR)/ + $(CP) ./files/depend.mk $(SDK_BUILD_DIR)/package/ + $(CP) $(TOPDIR)/package/rules.mk $(SDK_BUILD_DIR)/package/ egrep '^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config > $(SDK_BUILD_DIR)/.config find $(SDK_BUILD_DIR) -name .svn | xargs rm -rf find $(SDK_BUILD_DIR) -name CVS | xargs rm -rf diff --git a/openwrt/package/serdisplib/Makefile b/openwrt/package/serdisplib/Makefile index 435b340c9..f28b26913 100644 --- a/openwrt/package/serdisplib/Makefile +++ b/openwrt/package/serdisplib/Makefile @@ -56,15 +56,15 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SERDISPLIB): install -d -m0755 $(IDIR_SERDISPLIB)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(IDIR_SERDISPLIB)/usr/lib + $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(IDIR_SERDISPLIB)/usr/lib $(RSTRIP) $(IDIR_SERDISPLIB) $(IPKG_BUILD) $(IDIR_SERDISPLIB) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libserdisp.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libserdisp.so diff --git a/openwrt/package/shfs/Makefile b/openwrt/package/shfs/Makefile index fd6f3e46d..b1509a7c4 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 ac45a255f..78571a621 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 857f685f5..c0dd1c135 100644 --- a/openwrt/package/sipsak/Makefile +++ b/openwrt/package/sipsak/Makefile @@ -61,6 +61,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/slurm/Makefile b/openwrt/package/slurm/Makefile index d3244a112..91467adfb 100644 --- a/openwrt/package/slurm/Makefile +++ b/openwrt/package/slurm/Makefile @@ -64,7 +64,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SLURM): install -d -m0755 $(IDIR_SLURM)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/slurm $(IDIR_SLURM)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/slurm $(IDIR_SLURM)/usr/bin/ $(RSTRIP) $(IDIR_SLURM) $(IPKG_BUILD) $(IDIR_SLURM) $(PACKAGE_DIR) diff --git a/openwrt/package/socat/Makefile b/openwrt/package/socat/Makefile index 968d35e3e..034a6186a 100644 --- a/openwrt/package/socat/Makefile +++ b/openwrt/package/socat/Makefile @@ -60,7 +60,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_SOCAT): install -d -m0755 $(IDIR_SOCAT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/socat $(IDIR_SOCAT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/socat $(IDIR_SOCAT)/usr/bin/ $(RSTRIP) $(IDIR_SOCAT) $(IPKG_BUILD) $(IDIR_SOCAT) $(PACKAGE_DIR) diff --git a/openwrt/package/speex/Makefile b/openwrt/package/speex/Makefile index a79ee02da..87a3de967 100644 --- a/openwrt/package/speex/Makefile +++ b/openwrt/package/speex/Makefile @@ -61,17 +61,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 b85d8944f..aefb458a1 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/sqlite2/Makefile b/openwrt/package/sqlite2/Makefile index 5b5f599b1..41a7382c9 100644 --- a/openwrt/package/sqlite2/Makefile +++ b/openwrt/package/sqlite2/Makefile @@ -66,23 +66,23 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_LIBSQLITE2): install -d -m0755 $(IDIR_LIBSQLITE2)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsqlite.so.* $(IDIR_LIBSQLITE2)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite.so.* $(IDIR_LIBSQLITE2)/usr/lib/ $(RSTRIP) $(IDIR_LIBSQLITE2) $(IPKG_BUILD) $(IDIR_LIBSQLITE2) $(PACKAGE_DIR) $(IPKG_SQLITE2_CLI): install -d -m0755 $(IDIR_SQLITE2_CLI)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/sqlite $(IDIR_SQLITE2_CLI)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/sqlite $(IDIR_SQLITE2_CLI)/usr/bin/ $(RSTRIP) $(IDIR_SQLITE2_CLI) $(IPKG_BUILD) $(IDIR_SQLITE2_CLI) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libsqlite.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/sqlite.h $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/sqlite.h $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libsqlite.{a,so*} $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsqlite.{a,so*} $(STAGING_DIR)/usr/lib/ mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sqlite.pc $(STAGING_DIR)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sqlite.pc $(STAGING_DIR)/usr/lib/pkgconfig/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libsqlite.so diff --git a/openwrt/package/srelay/Makefile b/openwrt/package/srelay/Makefile index 485ea26ab..9dc0b9545 100644 --- a/openwrt/package/srelay/Makefile +++ b/openwrt/package/srelay/Makefile @@ -53,15 +53,15 @@ $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(PKG_BUILD_DIR) \ CC=$(TARGET_CC) \ all - cp $(PKG_BUILD_DIR)/srelay $(PKG_INSTALL_DIR) + $(CP) $(PKG_BUILD_DIR)/srelay $(PKG_INSTALL_DIR) touch $@ $(IPKG_SRELAY): install -m0755 -d $(IDIR_SRELAY)/usr/bin install -m0755 -d $(IDIR_SRELAY)/etc/init.d - cp -fpR $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/ - cp -fpR files/srelay.init $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay - cp -fpR files/srelay.conf $(IDIR_SRELAY)/etc + $(CP) $(PKG_INSTALL_DIR)/srelay $(IDIR_SRELAY)/usr/bin/ + $(CP) files/srelay.init $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay + $(CP) files/srelay.conf $(IDIR_SRELAY)/etc chmod 755 $(IDIR_SRELAY)/etc/init.d/S$(PKG_INIT_LEVEL)srelay $(RSTRIP) $(IDIR_SRELAY) $(IPKG_BUILD) $(IDIR_SRELAY) $(PACKAGE_DIR) diff --git a/openwrt/package/ssmtp/Makefile b/openwrt/package/ssmtp/Makefile index 54235e506..3204ca878 100644 --- a/openwrt/package/ssmtp/Makefile +++ b/openwrt/package/ssmtp/Makefile @@ -59,7 +59,7 @@ $(IPKG_SSMTP): install -m0644 $(PKG_BUILD_DIR)/ssmtp.conf $(IDIR_SSMTP)/etc/ssmtp/ install -m0644 $(PKG_BUILD_DIR)/revaliases $(IDIR_SSMTP)/etc/ssmtp/ install -m0755 -d $(IDIR_SSMTP)/usr/sbin - cp -fpR $(PKG_BUILD_DIR)/ssmtp $(IDIR_SSMTP)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/ssmtp $(IDIR_SSMTP)/usr/sbin/ ln -sf ssmtp $(IDIR_SSMTP)/usr/sbin/sendmail $(RSTRIP) $(IDIR_SSMTP) $(IPKG_BUILD) $(IDIR_SSMTP) $(PACKAGE_DIR) diff --git a/openwrt/package/strace/Makefile b/openwrt/package/strace/Makefile index 000334d95..d356f918a 100644 --- a/openwrt/package/strace/Makefile +++ b/openwrt/package/strace/Makefile @@ -53,7 +53,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_STRACE): mkdir -p $(IDIR_STRACE)/usr/sbin - cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/ $(STRIP) $(IDIR_STRACE)/usr/sbin/* $(IPKG_BUILD) $(IDIR_STRACE) $(PACKAGE_DIR) diff --git a/openwrt/package/tcp_wrappers/Makefile b/openwrt/package/tcp_wrappers/Makefile index cbd68d4f6..9eb1d7753 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 769be7722..912fcc3db 100644 --- a/openwrt/package/tinc/Makefile +++ b/openwrt/package/tinc/Makefile @@ -63,7 +63,7 @@ $(PKG_BUILD_DIR)/.built: $(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/tinyproxy/Makefile b/openwrt/package/tinyproxy/Makefile index c5f9532f9..3f2173ac4 100644 --- a/openwrt/package/tinyproxy/Makefile +++ b/openwrt/package/tinyproxy/Makefile @@ -75,9 +75,9 @@ $(IPKG_TINYPROXY): $(IDIR_TINYPROXY)/etc/init.d \ $(IDIR_TINYPROXY)/var/log \ $(IDIR_TINYPROXY)/usr/share - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(IDIR_TINYPROXY)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/share/tinyproxy $(IDIR_TINYPROXY)/usr/share/ - cp -fpR $(PKG_INSTALL_DIR)/etc/tinyproxy $(IDIR_TINYPROXY)/etc/ - cp -fpR files/$(PKG_NAME).init $(IDIR_TINYPROXY)/etc/init.d/$(PKG_NAME) + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tinyproxy $(IDIR_TINYPROXY)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/share/tinyproxy $(IDIR_TINYPROXY)/usr/share/ + $(CP) $(PKG_INSTALL_DIR)/etc/tinyproxy $(IDIR_TINYPROXY)/etc/ + $(CP) files/$(PKG_NAME).init $(IDIR_TINYPROXY)/etc/init.d/$(PKG_NAME) $(RSTRIP) $(IDIR_TINYPROXY) $(IPKG_BUILD) $(IDIR_TINYPROXY) $(PACKAGE_DIR) diff --git a/openwrt/package/tmsnc/Makefile b/openwrt/package/tmsnc/Makefile index c5414f3b6..32098d000 100644 --- a/openwrt/package/tmsnc/Makefile +++ b/openwrt/package/tmsnc/Makefile @@ -55,6 +55,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_TMSNC): mkdir -p $(IDIR_TMSNC) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_TMSNC)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_TMSNC)/ $(RSTRIP) $(IDIR_TMSNC) $(IPKG_BUILD) $(IDIR_TMSNC) $(PACKAGE_DIR) diff --git a/openwrt/package/tor/Makefile b/openwrt/package/tor/Makefile index 1eced61ef..d961f3740 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 53dbbcdcc..bb0854732 100644 --- a/openwrt/package/uclibc++/Makefile +++ b/openwrt/package/uclibc++/Makefile @@ -32,7 +32,7 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \ ) $(PKG_BUILD_DIR)/.configured: - cp ./files/config.$(UCLIBC_TARGET_ARCH) $(PKG_BUILD_DIR)/.config + $(CP) ./files/config.$(UCLIBC_TARGET_ARCH) $(PKG_BUILD_DIR)/.config touch $@ $(PKG_BUILD_DIR)/.built: @@ -46,7 +46,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_UCLIBCXX): install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++*.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/udev/Makefile b/openwrt/package/udev/Makefile index 34cdba6ce..df3e4afff 100644 --- a/openwrt/package/udev/Makefile +++ b/openwrt/package/udev/Makefile @@ -38,19 +38,19 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_UDEV): install -d -m0775 $(IDIR_UDEV)/etc/udev - cp -fpR $(PKG_INSTALL_DIR)/etc/udev/* $(IDIR_UDEV)/etc/udev/ + $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(IDIR_UDEV)/etc/udev/ install -d -m0775 $(IDIR_UDEV)/lib/udev install -d -m0775 $(IDIR_UDEV)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/udev $(IDIR_UDEV)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/udevcontrol $(IDIR_UDEV)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/udevd $(IDIR_UDEV)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/udevsend $(IDIR_UDEV)/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/udevstart $(IDIR_UDEV)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/udev $(IDIR_UDEV)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(IDIR_UDEV)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(IDIR_UDEV)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/udevsend $(IDIR_UDEV)/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/udevstart $(IDIR_UDEV)/sbin/ install -d -m0775 $(IDIR_UDEV)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(IDIR_UDEV)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/udevtest $(IDIR_UDEV)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(IDIR_UDEV)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(IDIR_UDEV)/usr/bin/ install -d -m0775 $(IDIR_UDEV)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(IDIR_UDEV)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(IDIR_UDEV)/usr/sbin/ $(RSTRIP) $(IDIR_UDEV) $(IPKG_BUILD) $(IDIR_UDEV) $(PACKAGE_DIR) diff --git a/openwrt/package/udp-broadcast-relay/Makefile b/openwrt/package/udp-broadcast-relay/Makefile index 99033e24c..040a7e778 100644 --- a/openwrt/package/udp-broadcast-relay/Makefile +++ b/openwrt/package/udp-broadcast-relay/Makefile @@ -26,7 +26,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_UDP_BROADCAST_RELAY): mkdir -p $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin - cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin/ $(STRIP) $(IDIR_UDP_BROADCAST_RELAY)/usr/sbin/* $(IPKG_BUILD) $(IDIR_UDP_BROADCAST_RELAY) $(PACKAGE_DIR) diff --git a/openwrt/package/ulogd/Makefile b/openwrt/package/ulogd/Makefile index 42d8a8692..893fd5b8f 100644 --- a/openwrt/package/ulogd/Makefile +++ b/openwrt/package/ulogd/Makefile @@ -30,7 +30,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) @@ -92,15 +92,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/updatedd/Makefile b/openwrt/package/updatedd/Makefile index cc88b5a61..1edc3dd4e 100644 --- a/openwrt/package/updatedd/Makefile +++ b/openwrt/package/updatedd/Makefile @@ -74,7 +74,7 @@ $(IPKG_UPDATEDD): install -d -m0755 $(IDIR_UPDATEDD)/etc/init.d install -m0755 ./files/S55ddns $(IDIR_UPDATEDD)/etc/init.d/ install -d -m0755 $(IDIR_UPDATEDD)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/updatedd $(IDIR_UPDATEDD)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(IDIR_UPDATEDD)/usr/bin/ install -d -m0755 $(IDIR_UPDATEDD)/usr/lib/updatedd $(RSTRIP) $(IDIR_UPDATEDD) $(IPKG_BUILD) $(IDIR_UPDATEDD) $(PACKAGE_DIR) diff --git a/openwrt/package/usbutils/Makefile b/openwrt/package/usbutils/Makefile index 8e6112cd9..5ce35bcfb 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/ustl/Makefile b/openwrt/package/ustl/Makefile index 36b77c958..f211f812d 100644 --- a/openwrt/package/ustl/Makefile +++ b/openwrt/package/ustl/Makefile @@ -21,8 +21,8 @@ BR2_PACKAGE_USTL:=m $(eval $(call PKG_template,USTL,ustl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.configured: - cp ./files/config.h $(PKG_BUILD_DIR)/ - cp ./files/Common.mk $(PKG_BUILD_DIR)/ + $(CP) ./files/config.h $(PKG_BUILD_DIR)/ + $(CP) ./files/Common.mk $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/.built: @@ -37,16 +37,16 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_USTL): install -d -m0755 $(IDIR_USTL)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libustl.so.* $(IDIR_USTL)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libustl.so.* $(IDIR_USTL)/usr/lib/ $(RSTRIP) $(IDIR_USTL) $(IPKG_BUILD) $(IDIR_USTL) $(PACKAGE_DIR) $(STAGING_DIR)/usr/lib/libustl.so: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include - cp -fpR $(PKG_INSTALL_DIR)/usr/include/ustl* $(STAGING_DIR)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ustl* $(STAGING_DIR)/usr/include/ mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libustl.a $(STAGING_DIR)/usr/lib/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libustl.so* $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libustl.a $(STAGING_DIR)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libustl.so* $(STAGING_DIR)/usr/lib/ touch $@ install-dev: $(STAGING_DIR)/usr/lib/libustl.so diff --git a/openwrt/package/util-linux/Makefile b/openwrt/package/util-linux/Makefile index 7eb180173..6e8f5abd7 100644 --- a/openwrt/package/util-linux/Makefile +++ b/openwrt/package/util-linux/Makefile @@ -44,20 +44,20 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_FDISK): install -d -m0755 $(IDIR_FDISK)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/sbin/fdisk $(IDIR_FDISK)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/fdisk $(IDIR_FDISK)/usr/sbin/ $(RSTRIP) $(IDIR_FDISK) $(IPKG_BUILD) $(IDIR_FDISK) $(PACKAGE_DIR) $(IPKG_LOSETUP): install -d -m0755 $(IDIR_LOSETUP)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/sbin/losetup $(IDIR_LOSETUP)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/losetup $(IDIR_LOSETUP)/usr/sbin/ $(RSTRIP) $(IDIR_LOSETUP) $(IPKG_BUILD) $(IDIR_LOSETUP) $(PACKAGE_DIR) $(IPKG_SWAP_UTILS): install -d -m0755 $(IDIR_SWAP_UTILS)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/sbin/mkswap $(IDIR_SWAP_UTILS)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/sbin/swap{on,off} $(IDIR_SWAP_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/mkswap $(IDIR_SWAP_UTILS)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/sbin/swap{on,off} $(IDIR_SWAP_UTILS)/usr/sbin/ $(RSTRIP) $(IDIR_SWAP_UTILS) $(IPKG_BUILD) $(IDIR_SWAP_UTILS) $(PACKAGE_DIR) diff --git a/openwrt/package/vgp/Makefile b/openwrt/package/vgp/Makefile index 7e75b0d24..29fd8711e 100755 --- a/openwrt/package/vgp/Makefile +++ b/openwrt/package/vgp/Makefile @@ -45,6 +45,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_VGP): mkdir -p $(IDIR_VGP) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_VGP)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_VGP)/ $(RSTRIP) $(IDIR_VGP) $(IPKG_BUILD) $(IDIR_VGP) $(PACKAGE_DIR) diff --git a/openwrt/package/vnstat/Makefile b/openwrt/package/vnstat/Makefile index 147017568..009388e20 100644 --- a/openwrt/package/vnstat/Makefile +++ b/openwrt/package/vnstat/Makefile @@ -28,6 +28,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_VNSTAT): install -d -m0755 $(IDIR_VNSTAT)/usr/bin - cp $(PKG_BUILD_DIR)/src/vnstat $(IDIR_VNSTAT)/usr/bin/ + $(CP) $(PKG_BUILD_DIR)/src/vnstat $(IDIR_VNSTAT)/usr/bin/ $(STRIP) $(IDIR_VNSTAT)/usr/bin/* $(IPKG_BUILD) $(IDIR_VNSTAT) $(PACKAGE_DIR) diff --git a/openwrt/package/vpnc/Makefile b/openwrt/package/vpnc/Makefile index 55082905d..eb21240c0 100644 --- a/openwrt/package/vpnc/Makefile +++ b/openwrt/package/vpnc/Makefile @@ -35,6 +35,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_VPNC): install -d -m0755 $(IDIR_VPNC) - cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_VPNC)/ + $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_VPNC)/ $(RSTRIP) $(IDIR_VPNC) $(IPKG_BUILD) $(IDIR_VPNC) $(PACKAGE_DIR) diff --git a/openwrt/package/vsftpd/Makefile b/openwrt/package/vsftpd/Makefile index 42044579e..d3c72c859 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/watchdog/Makefile b/openwrt/package/watchdog/Makefile index 5046c1818..415fc40ca 100644 --- a/openwrt/package/watchdog/Makefile +++ b/openwrt/package/watchdog/Makefile @@ -60,12 +60,12 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_WATCHDOG): install -d -m0755 $(IDIR_WATCHDOG)/etc - cp -fpR $(PKG_INSTALL_DIR)/etc/watchdog.conf $(IDIR_WATCHDOG)/etc/ + $(CP) $(PKG_INSTALL_DIR)/etc/watchdog.conf $(IDIR_WATCHDOG)/etc/ install -d -m0755 $(IDIR_WATCHDOG)/etc/init.d install -m0755 ./files/watchdog.init $(IDIR_WATCHDOG)/etc/init.d/watchdog ln -sf watchdog $(IDIR_WATCHDOG)/etc/init.d/S90watchdog install -d -m0755 $(IDIR_WATCHDOG)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/watchdog $(IDIR_WATCHDOG)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/wd_keepalive $(IDIR_WATCHDOG)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/watchdog $(IDIR_WATCHDOG)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/wd_keepalive $(IDIR_WATCHDOG)/usr/sbin/ $(RSTRIP) $(IDIR_WATCHDOG) $(IPKG_BUILD) $(IDIR_WATCHDOG) $(PACKAGE_DIR) diff --git a/openwrt/package/wccpd/Makefile b/openwrt/package/wccpd/Makefile index 044b839ad..0ecb34e1b 100644 --- a/openwrt/package/wccpd/Makefile +++ b/openwrt/package/wccpd/Makefile @@ -60,6 +60,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_WCCPD): install -d -m0755 $(IDIR_WCCPD)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/wccpd $(IDIR_WCCPD)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/wccpd $(IDIR_WCCPD)/usr/sbin/ $(RSTRIP) $(IDIR_WCCPD) $(IPKG_BUILD) $(IDIR_WCCPD) $(PACKAGE_DIR) diff --git a/openwrt/package/wifidog/Makefile b/openwrt/package/wifidog/Makefile index f1b29bc02..3847c8a93 100644 --- a/openwrt/package/wifidog/Makefile +++ b/openwrt/package/wifidog/Makefile @@ -66,9 +66,9 @@ $(IPKG_WIFIDOG): install -m0755 -d $(IDIR_WIFIDOG)/usr/bin install -m0755 -d $(IDIR_WIFIDOG)/usr/lib install -m0755 $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(IDIR_WIFIDOG)/usr/bin/wifidog-init - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/wifidog $(IDIR_WIFIDOG)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/wdctl $(IDIR_WIFIDOG)/usr/bin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(IDIR_WIFIDOG)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(IDIR_WIFIDOG)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(IDIR_WIFIDOG)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(IDIR_WIFIDOG)/usr/lib/ $(RSTRIP) $(IDIR_WIFIDOG) $(IPKG_BUILD) $(IDIR_WIFIDOG) $(PACKAGE_DIR) diff --git a/openwrt/package/wireless-tools/Makefile b/openwrt/package/wireless-tools/Makefile index 71f0a2f21..209f800df 100644 --- a/openwrt/package/wireless-tools/Makefile +++ b/openwrt/package/wireless-tools/Makefile @@ -24,28 +24,28 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -I." \ - libiw.so.28 iwmulticall + all iwmulticall mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ PREFIX="$(PKG_INSTALL_DIR)" \ INSTALL_DIR="$(PKG_INSTALL_DIR)/usr/sbin" \ INSTALL_LIB="$(PKG_INSTALL_DIR)/usr/lib" \ - install-iwmulticall + install install-iwmulticall touch $@ $(IPKG_WIRELESS_TOOLS): mkdir -p $(IDIR_WIRELESS_TOOLS)/usr/lib - cp -fpR $(PKG_BUILD_DIR)/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiw.so.28 $(IDIR_WIRELESS_TOOLS)/usr/lib/ 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: $(PKG_BUILD_DIR)/.built 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/wiviz/Makefile b/openwrt/package/wiviz/Makefile index 73a32a470..d5317f1ba 100644 --- a/openwrt/package/wiviz/Makefile +++ b/openwrt/package/wiviz/Makefile @@ -14,7 +14,7 @@ $(eval $(call PKG_template,WIVIZ,wiviz,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) $(PKG_BUILD_DIR)/.prepared: mkdir -p $(PKG_BUILD_DIR) - cp -fpR ./src/* $(PKG_BUILD_DIR)/ + $(CP) ./src/* $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/.configured: @@ -30,9 +30,9 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_WIVIZ): mkdir -p $(IDIR_WIVIZ)/usr/sbin - cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_WIVIZ)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_WIVIZ)/usr/sbin/ $(RSTRIP) $(IDIR_WIVIZ) - cp -fpR ./files/* $(IDIR_WIVIZ) + $(CP) ./files/* $(IDIR_WIVIZ) find $(IDIR_WIVIZ) -name CVS | xargs rm -rf find $(IDIR_WIVIZ) -name .svn | xargs rm -rf $(IPKG_BUILD) $(IDIR_WIVIZ) $(PACKAGE_DIR) diff --git a/openwrt/package/wol/Makefile b/openwrt/package/wol/Makefile index 3a8811686..efdb67037 100644 --- a/openwrt/package/wol/Makefile +++ b/openwrt/package/wol/Makefile @@ -61,6 +61,6 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_WOL): install -m0755 -d $(IDIR_WOL)/usr/bin - cp $(PKG_INSTALL_DIR)/usr/bin/wol $(IDIR_WOL)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/wol $(IDIR_WOL)/usr/bin/ $(RSTRIP) $(IDIR_WOL) $(IPKG_BUILD) $(IDIR_WOL) $(PACKAGE_DIR) diff --git a/openwrt/package/wondershaper/Makefile b/openwrt/package/wondershaper/Makefile index af441388b..44533c64d 100644 --- a/openwrt/package/wondershaper/Makefile +++ b/openwrt/package/wondershaper/Makefile @@ -28,8 +28,8 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_WONDERSHAPER): install -d -m0755 $(IDIR_WONDERSHAPER)/usr/sbin install -d -m0755 $(IDIR_WONDERSHAPER)/etc/init.d - cp -fpR $(PKG_BUILD_DIR)/wshaper.htb $(IDIR_WONDERSHAPER)/usr/sbin/wshaper - cp -fpR $(PKG_BUILD_DIR)/wshaper.conf $(IDIR_WONDERSHAPER)/etc/wshaper.conf + $(CP) $(PKG_BUILD_DIR)/wshaper.htb $(IDIR_WONDERSHAPER)/usr/sbin/wshaper + $(CP) $(PKG_BUILD_DIR)/wshaper.conf $(IDIR_WONDERSHAPER)/etc/wshaper.conf ln -fs /usr/sbin/wshaper $(IDIR_WONDERSHAPER)/etc/init.d/S60wondershaper $(IPKG_BUILD) $(IDIR_WONDERSHAPER) $(PACKAGE_DIR) diff --git a/openwrt/package/wpa_supplicant/Makefile b/openwrt/package/wpa_supplicant/Makefile index 34e9fcfdd..b1a9bd1b3 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/wx200d/Makefile b/openwrt/package/wx200d/Makefile index 7eb3a4054..4673e83f2 100644 --- a/openwrt/package/wx200d/Makefile +++ b/openwrt/package/wx200d/Makefile @@ -59,12 +59,12 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_WX200D): install -d -m0755 $(IDIR_WX200D)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/wx200 \ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/wx200 \ $(PKG_INSTALL_DIR)/usr/bin/wxstdout \ $(PKG_INSTALL_DIR)/usr/bin/wxfilter \ $(PKG_INSTALL_DIR)/usr/bin/wxdebug $(IDIR_WX200D)/usr/bin/ install -d -m0755 $(IDIR_WX200D)/usr/sbin/ - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/wx200d \ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/wx200d \ $(PKG_INSTALL_DIR)/usr/sbin/wxread $(IDIR_WX200D)/usr/sbin/ $(RSTRIP) $(IDIR_WX200D) $(IPKG_BUILD) $(IDIR_WX200D) $(PACKAGE_DIR) diff --git a/openwrt/package/xinetd/Makefile b/openwrt/package/xinetd/Makefile index 3b22beceb..a3e5d59e6 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/xsupplicant/Makefile b/openwrt/package/xsupplicant/Makefile index dea789947..45663eb43 100644 --- a/openwrt/package/xsupplicant/Makefile +++ b/openwrt/package/xsupplicant/Makefile @@ -65,8 +65,8 @@ $(IPKG_XSUPPLICANT): install -d -m0755 $(IDIR_XSUPPLICANT)/etc install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(IDIR_XSUPPLICANT)/etc/ install -d -m0755 $(IDIR_XSUPPLICANT)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(IDIR_XSUPPLICANT)/usr/bin/ + $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(IDIR_XSUPPLICANT)/usr/bin/ install -d -m0755 $(IDIR_XSUPPLICANT)/usr/sbin - cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(IDIR_XSUPPLICANT)/usr/sbin/ + $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(IDIR_XSUPPLICANT)/usr/sbin/ $(RSTRIP) $(IDIR_XSUPPLICANT) $(IPKG_BUILD) $(IDIR_XSUPPLICANT) $(PACKAGE_DIR) diff --git a/openwrt/package/zlib/Makefile b/openwrt/package/zlib/Makefile index f5a39b268..cfd82800a 100644 --- a/openwrt/package/zlib/Makefile +++ b/openwrt/package/zlib/Makefile @@ -43,15 +43,15 @@ $(PKG_BUILD_DIR)/.built: $(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 diff --git a/openwrt/rules.mk b/openwrt/rules.mk index 31c2b4f91..9d924a5b4 100644 --- a/openwrt/rules.mk +++ b/openwrt/rules.mk @@ -38,6 +38,7 @@ START_TRACE:=: END_TRACE:=: endif +CP=cp -fpR MAKE1=make MAKEFLAGS=-j$(BR2_JLEVEL) V=$(V) $(EXTRA_MAKEFLAGS) # Strip off the annoying quoting diff --git a/openwrt/scripts/ipkg b/openwrt/scripts/ipkg index 6cd1cb440..7ceaeff69 100755 --- a/openwrt/scripts/ipkg +++ b/openwrt/scripts/ipkg @@ -787,7 +787,7 @@ ipkg_install_file_dest() { echo "Package: $pkg Status: install ok pending" | ipkg_status_update_sd $sd $pkg mkdir -p $IPKG_PENDING_DIR - cp $filename $IPKG_PENDING_DIR + cp -f $filename $IPKG_PENDING_DIR rm -r $IPKG_TMP/$pkg/control rm -r $IPKG_TMP/$pkg/data rmdir $IPKG_TMP/$pkg diff --git a/openwrt/target/linux/Makefile b/openwrt/target/linux/Makefile index 626587b5b..4ef6c45a0 100644 --- a/openwrt/target/linux/Makefile +++ b/openwrt/target/linux/Makefile @@ -60,13 +60,13 @@ $(BIN_DIR)/$(IB_NAME).tar.bz2: rm -rf $(IB_DIR) mkdir -p $(IB_DIR)/packages mkdir -p $(IB_DIR)/scripts - cp -fpR ./imagebuilder/* $(IB_DIR)/ - cp -fpR $(TOPDIR)/bin/packages/*.ipk $(IB_DIR)/packages/ - cp $(TOPDIR)/scripts/ipkg $(IB_DIR)/scripts/ + $(CP) ./imagebuilder/* $(IB_DIR)/ + $(CP) $(TOPDIR)/bin/packages/*.ipk $(IB_DIR)/packages/ + $(CP) $(TOPDIR)/scripts/ipkg $(IB_DIR)/scripts/ $(MAKE) install-ib - cp $(TOPDIR)/rules.mk $(IB_DIR) - cp -fpR ./image $(IB_DIR)/ - cp $(TOPDIR)/.config $(IB_DIR)/ + $(CP) $(TOPDIR)/rules.mk $(IB_DIR) + $(CP) ./image $(IB_DIR)/ + $(CP) $(TOPDIR)/.config $(IB_DIR)/ find $(IB_DIR) -name .svn | xargs rm -rf find $(IB_DIR) -name CVS | xargs rm -rf (cd $(BUILD_DIR); tar c $(IB_NAME) | bzip2 -c > $(BIN_DIR)/$(IB_NAME).tar.bz2) diff --git a/openwrt/target/linux/ar531x-2.4/Makefile b/openwrt/target/linux/ar531x-2.4/Makefile index 989bcc458..6e6551b19 100644 --- a/openwrt/target/linux/ar531x-2.4/Makefile +++ b/openwrt/target/linux/ar531x-2.4/Makefile @@ -12,6 +12,6 @@ include ../kernel.mk $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config touch $@ diff --git a/openwrt/target/linux/ar7-2.4/Makefile b/openwrt/target/linux/ar7-2.4/Makefile index daa734107..10be12117 100644 --- a/openwrt/target/linux/ar7-2.4/Makefile +++ b/openwrt/target/linux/ar7-2.4/Makefile @@ -13,13 +13,13 @@ ATM_FIRMWARE_DIR=sangam-atm-firmware-$(ATM_FIRMWARE_VERSION) $(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\ $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \ ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \ - cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \ + $(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \ )) $(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\ $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \ ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \ - cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \ + $(CP) $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \ )) $(eval $(call KMOD_template,CPMAC,cpmac,\ @@ -33,7 +33,7 @@ include ../kernel.mk $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config touch $@ diff --git a/openwrt/target/linux/aruba-2.6/Makefile b/openwrt/target/linux/aruba-2.6/Makefile index 111bfd08a..3e1ee17df 100644 --- a/openwrt/target/linux/aruba-2.6/Makefile +++ b/openwrt/target/linux/aruba-2.6/Makefile @@ -15,9 +15,9 @@ $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) ifeq ($(BR2_ARUBA_RAMDISK),y) - @cp config-ramdisk $(LINUX_DIR)/.config + @$(CP) config-ramdisk $(LINUX_DIR)/.config else - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config endif touch $@ diff --git a/openwrt/target/linux/brcm-2.4/Makefile b/openwrt/target/linux/brcm-2.4/Makefile index 33d5f1b83..ab68b7ae8 100644 --- a/openwrt/target/linux/brcm-2.4/Makefile +++ b/openwrt/target/linux/brcm-2.4/Makefile @@ -30,7 +30,7 @@ include ../kernel.mk $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config touch $@ @@ -56,12 +56,12 @@ $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - # copy binary wlan driver mkdir -p $(LINUX_DIR)/drivers/net/wl - cp -fpR $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl + $(CP) $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl touch $@ $(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done mkdir -p $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl - @-[ -f $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl/wl.o ] || cp $(LINUX_DIR)/drivers/net/wl/wl.o $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl/ + @-[ -f $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl/wl.o ] || $(CP) $(LINUX_DIR)/drivers/net/wl/wl.o $(LINUX_BUILD_DIR)/modules/lib/modules/2.4.32/kernel/drivers/net/wl/ touch $@ linux-dirclean: drivers-clean diff --git a/openwrt/target/linux/brcm-2.6/Makefile b/openwrt/target/linux/brcm-2.6/Makefile index 9b2e16c0b..489278a67 100644 --- a/openwrt/target/linux/brcm-2.6/Makefile +++ b/openwrt/target/linux/brcm-2.6/Makefile @@ -14,6 +14,6 @@ include ../kernel.mk $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config touch $@ diff --git a/openwrt/target/linux/image/Makefile b/openwrt/target/linux/image/Makefile index 7c65b6e3e..e64efbf35 100644 --- a/openwrt/target/linux/image/Makefile +++ b/openwrt/target/linux/image/Makefile @@ -33,12 +33,13 @@ install-ib: @$(TRACE) target/linux/image/$(BOARD)-install-ib -$(MAKE) -C $(BOARD) IB_DIR="$(IB_DIR)" install-ib mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) - cp $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ + $(CP) $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ install-prepare: find $(KDIR)/root -type f -not -perm +0100 | xargs chmod 0644 find $(KDIR)/root -type f -perm +0100 | xargs chmod 0755 find $(KDIR)/root -type d | xargs chmod 0755 + mkdir -p $(KDIR)/root/tmp chmod 0777 $(KDIR)/root/tmp rebuild: clean prepare compile install diff --git a/openwrt/target/linux/image/ar7/Makefile b/openwrt/target/linux/image/ar7/Makefile index 0b7378785..38fce6bdf 100644 --- a/openwrt/target/linux/image/ar7/Makefile +++ b/openwrt/target/linux/image/ar7/Makefile @@ -62,7 +62,7 @@ $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-kernel.bin: $(KDIR)/vmlinux.bin endif $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-kernel.bin: - cp $(KDIR)/vmlinux.bin $@ + $(CP) $(KDIR)/vmlinux.bin $@ ifeq ($(FS),jffs2-8MB) ALIGN:=bs=131072 conv=sync @@ -106,7 +106,7 @@ endif install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-kernel.bin $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).bin install-ib: mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) - cp -fpR $(KDIR)/vmlinux.bin $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ + $(CP) $(KDIR)/vmlinux.bin $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ mkdir -p $(IB_DIR)/staging_dir_$(ARCH) - cp -fpR $(STAGING_DIR)/bin/addpattern $(IB_DIR)/staging_dir_$(ARCH)/bin/ + $(CP) $(STAGING_DIR)/bin/addpattern $(IB_DIR)/staging_dir_$(ARCH)/bin/ diff --git a/openwrt/target/linux/image/aruba/Makefile b/openwrt/target/linux/image/aruba/Makefile index 2a7f2e468..a2cceaf0c 100644 --- a/openwrt/target/linux/image/aruba/Makefile +++ b/openwrt/target/linux/image/aruba/Makefile @@ -62,5 +62,5 @@ endif install-ib: mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) - cp -fpR $(KDIR)/loader.elf $(IB_DIR)/build_$(ARCH)/ - cp -fpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ + $(CP) $(KDIR)/loader.elf $(IB_DIR)/build_$(ARCH)/ + $(CP) $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ diff --git a/openwrt/target/linux/image/brcm/Makefile b/openwrt/target/linux/image/brcm/Makefile index b15e10b41..18bd3265c 100644 --- a/openwrt/target/linux/image/brcm/Makefile +++ b/openwrt/target/linux/image/brcm/Makefile @@ -32,7 +32,7 @@ endif $(KDIR)/loader.tmp.gz: - cp $(BUILD_DIR)/loader.gz $@ + $(CP) $(BUILD_DIR)/loader.gz $@ echo -ne "\\x00" >> $@ $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx: $(KDIR)/loader.tmp.gz @@ -73,19 +73,11 @@ FSNAME:=$(patsubst jffs2-%,jffs2,$(FS)) # ifeq ($(FS),squashfs) # $(BIN_DIR)/openwrt-wap54g-$(KERNEL)-$(FSNAME).trx: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx -# cp $< $@ +# $(CP) $< $@ # echo -ne '\x01' >> $@ # # install: $(BIN_DIR)/openwrt-wap54g-$(KERNEL)-$(FSNAME).trx # endif - -ifneq ($(FS),jffs2-8MB) -$(BIN_DIR)/openwrt-wrt54g3g-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx - $(STAGING_DIR)/bin/addpattern -4 -p W54F -v v1.99.5 -i $< -o $@ -g - -$(BIN_DIR)/openwrt-wrt54g-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx - $(STAGING_DIR)/bin/addpattern -4 -p W54G -v v4.20.6 -i $< -o $@ -g - $(BIN_DIR)/openwrt-wrt54gs_v4-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx $(STAGING_DIR)/bin/addpattern -4 -p W54s -v v1.05.2 -i $< -o $@ -g @@ -120,8 +112,8 @@ endif install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx install-ib: mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin - cp -fpR $(STAGING_DIR)/bin/addpattern $(STAGING_DIR)/bin/trx $(STAGING_DIR)/bin/motorola-bin $(IB_DIR)/staging_dir_$(ARCH)/bin + $(CP) -fpR $(STAGING_DIR)/bin/addpattern $(STAGING_DIR)/bin/trx $(STAGING_DIR)/bin/motorola-bin $(IB_DIR)/staging_dir_$(ARCH)/bin mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) - cp -fpR $(BUILD_DIR)/loader.gz $(IB_DIR)/build_$(ARCH)/ - cp -fpR $(BUILD_DIR)/loader.elf $(IB_DIR)/build_$(ARCH)/ - cp -fpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ + $(CP) $(BUILD_DIR)/loader.gz $(IB_DIR)/build_$(ARCH)/ + $(CP) $(BUILD_DIR)/loader.elf $(IB_DIR)/build_$(ARCH)/ + $(CP) $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ diff --git a/openwrt/target/linux/image/brcm/lzma-loader/Makefile b/openwrt/target/linux/image/brcm/lzma-loader/Makefile index 134fdde9d..1d7b6a319 100644 --- a/openwrt/target/linux/image/brcm/lzma-loader/Makefile +++ b/openwrt/target/linux/image/brcm/lzma-loader/Makefile @@ -9,7 +9,7 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) $(PKG_BUILD_DIR)/.prepared: mkdir $(PKG_BUILD_DIR) - cp -fpR ./src/* $(PKG_BUILD_DIR)/ + $(CP) ./src/* $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.prepared @@ -17,10 +17,10 @@ $(PKG_BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/.prepared LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS) $(BUILD_DIR)/loader.gz: $(PKG_BUILD_DIR)/loader.gz - cp $< $@ + $(CP) $< $@ $(BUILD_DIR)/loader.elf: $(PKG_BUILD_DIR)/loader.o - cp $< $@ + $(CP) $< $@ source: prepare: $(PKG_BUILD_DIR)/.prepared diff --git a/openwrt/target/linux/image/generic/lzma-loader/Makefile b/openwrt/target/linux/image/generic/lzma-loader/Makefile index daa83535e..089254bba 100644 --- a/openwrt/target/linux/image/generic/lzma-loader/Makefile +++ b/openwrt/target/linux/image/generic/lzma-loader/Makefile @@ -9,7 +9,7 @@ PKG_BUILD_DIR := $(KDIR)/$(PKG_NAME)-$(PKG_VERSION) $(PKG_BUILD_DIR)/.prepared: mkdir $(PKG_BUILD_DIR) - cp -fpR ./src/* $(PKG_BUILD_DIR)/ + $(CP) ./src/* $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.lzma @@ -21,10 +21,10 @@ $(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.l $(PKG_BUILD_DIR)/vmlinux.lzma: $(KDIR)/vmlinux.lzma - cp $< $@ + $(CP) $< $@ $(KDIR)/loader.elf: $(PKG_BUILD_DIR)/lzma.elf - cp $< $@ + $(CP) $< $@ source: prepare: $(PKG_BUILD_DIR)/.prepared diff --git a/openwrt/target/linux/image/jffs2.mk b/openwrt/target/linux/image/jffs2.mk index b6396e66a..c7d4335d8 100644 --- a/openwrt/target/linux/image/jffs2.mk +++ b/openwrt/target/linux/image/jffs2.mk @@ -36,7 +36,7 @@ jffs2-install: $(KDIR)/root.jffs2-4MB $(KDIR)/root.jffs2-8MB jffs2-install-ib: compile-targets mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin - cp $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin + $(CP) $(STAGING_DIR)/bin/mkfs.jffs2 $(IB_DIR)/staging_dir_$(ARCH)/bin prepare-targets: jffs2-prepare compile-targets: jffs2-compile diff --git a/openwrt/target/linux/image/jffs2/Makefile b/openwrt/target/linux/image/jffs2/Makefile index d5f03bef4..071bacdd4 100644 --- a/openwrt/target/linux/image/jffs2/Makefile +++ b/openwrt/target/linux/image/jffs2/Makefile @@ -18,7 +18,7 @@ $(MTD_DIR)/util/mkfs.jffs2: $(MTD_DIR)/.unpacked $(MAKE) LINUXDIR=$(LINUX_DIR) -C $(MTD_DIR)/util $(STAGING_DIR)/bin/mkfs.jffs2: $(MTD_DIR)/util/mkfs.jffs2 - cp $< $@ + $(CP) $< $@ source: $(DL_DIR)/$(MTD_SOURCE) prepare: $(MTD_DIR)/.unpacked diff --git a/openwrt/target/linux/image/squashfs.mk b/openwrt/target/linux/image/squashfs.mk index 7fe972a45..0b39aa161 100644 --- a/openwrt/target/linux/image/squashfs.mk +++ b/openwrt/target/linux/image/squashfs.mk @@ -28,7 +28,7 @@ squashfs-install: $(KDIR)/root.squashfs squashfs-install-ib: compile-targets mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin - cp $(STAGING_DIR)/bin/mksquashfs-lzma $(IB_DIR)/staging_dir_$(ARCH)/bin + $(CP) $(STAGING_DIR)/bin/mksquashfs-lzma $(IB_DIR)/staging_dir_$(ARCH)/bin prepare-targets: squashfs-prepare compile-targets: squashfs-compile diff --git a/openwrt/target/linux/image/squashfs/Makefile b/openwrt/target/linux/image/squashfs/Makefile index df21fd256..77792565b 100644 --- a/openwrt/target/linux/image/squashfs/Makefile +++ b/openwrt/target/linux/image/squashfs/Makefile @@ -17,7 +17,7 @@ $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/.unpacke $(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools mksquashfs-lzma LZMAPATH=$(BUILD_DIR)/lzma $(STAGING_DIR)/bin/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma - cp $< $@ + $(CP) $< $@ source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) prepare: $(SQUASHFSLZMA_DIR)/.unpacked diff --git a/openwrt/target/linux/image/x86/Makefile b/openwrt/target/linux/image/x86/Makefile index 37600c91d..5820d022b 100644 --- a/openwrt/target/linux/image/x86/Makefile +++ b/openwrt/target/linux/image/x86/Makefile @@ -6,7 +6,7 @@ KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD) ifeq ($(FS),jffs2-8MB) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img: $(KDIR)/root.$(FS) - cp $^ $@ + $(CP) $^ $@ install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img @@ -16,7 +16,7 @@ endif ifeq ($(FS),tgz) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz: $(KDIR)/root.tar.gz - cp $^ $@ + $(CP) $^ $@ install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz @@ -24,7 +24,7 @@ endif $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz: $(KDIR)/bzImage - cp $^ $@ + $(CP) $^ $@ clean: @@ -33,4 +33,4 @@ compile: install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz install-ib: mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD) - cp -fpR $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ + $(CP) $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/ diff --git a/openwrt/target/linux/imagebuilder/Makefile b/openwrt/target/linux/imagebuilder/Makefile index 0ec71199c..8ed7a5cc0 100644 --- a/openwrt/target/linux/imagebuilder/Makefile +++ b/openwrt/target/linux/imagebuilder/Makefile @@ -40,9 +40,9 @@ build: $(IPKG_KERNEL) install `ls packages/$${package}_*`; \ done if [ -d ./files ]; then \ - cp -a --remove-destination ./files/* $(LINUX_BUILD_DIR)/root; \ + $(CP) --remove-destination ./files/* $(LINUX_BUILD_DIR)/root; \ fi if [ -d ./files.$(LIST) ]; then \ - cp -a --remove-destination ./files.$(LIST)/* $(LINUX_BUILD_DIR)/root; \ + $(CP) --remove-destination ./files.$(LIST)/* $(LINUX_BUILD_DIR)/root; \ fi $(MAKE) -S -C image KERNEL="$(KERNEL)" BOARD="$(BOARD)" BIN_DIR="$(BIN_DIR)/$(LIST)" install diff --git a/openwrt/target/linux/package/base-files/Makefile b/openwrt/target/linux/package/base-files/Makefile index 994ce5338..637904c2e 100644 --- a/openwrt/target/linux/package/base-files/Makefile +++ b/openwrt/target/linux/package/base-files/Makefile @@ -23,7 +23,7 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/jffs2root $(IDIR_OPENWRT)/sbin/jffs2root: $(PKG_BUILD_DIR)/jffs2root mkdir -p $(IDIR_OPENWRT)/sbin - cp $(PKG_BUILD_DIR)/jffs2root $(IDIR_OPENWRT)/sbin + $(CP) $(PKG_BUILD_DIR)/jffs2root $(IDIR_OPENWRT)/sbin $(IPKG_OPENWRT): $(IDIR_OPENWRT)/sbin/jffs2root endif @@ -36,7 +36,7 @@ $(IDIR_OPENWRT): $(SED) s,base-files-arch,base-files-$(BOARD)-$(KERNEL),g $(IDIR_OPENWRT)/CONTROL/control $(IPKG_OPENWRT): $(IDIR_OPENWRT) - [ -d files/$(BOARD)-$(KERNEL) ] && cp -fpR files/$(BOARD)-$(KERNEL)/* $(IDIR_OPENWRT)/ + [ -d files/$(BOARD)-$(KERNEL) ] && $(CP) -fpR files/$(BOARD)-$(KERNEL)/* $(IDIR_OPENWRT)/ find $(IDIR_OPENWRT) -name CVS | xargs rm -rf find $(IDIR_OPENWRT) -name .svn | xargs rm -rf $(RSTRIP) $(IDIR_OPENWRT) @@ -50,4 +50,4 @@ openwrt-install: compile-targets: install-dev $(IPKG_OPENWRT) install-dev: mkdir -p $(STAGING_DIR)/usr/include - cp -fpR ./include/[a-z]* $(STAGING_DIR)/usr/include/ + $(CP) ./include/[a-z]* $(STAGING_DIR)/usr/include/ diff --git a/openwrt/target/linux/package/bcm43xx-dscape/Makefile b/openwrt/target/linux/package/bcm43xx-dscape/Makefile index 5856bf749..3c07e3daa 100644 --- a/openwrt/target/linux/package/bcm43xx-dscape/Makefile +++ b/openwrt/target/linux/package/bcm43xx-dscape/Makefile @@ -26,7 +26,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/fwcutter/.built: mkdir -p $(PKG_BUILD_DIR)/fwcutter - cp ./fwcutter/* $(PKG_BUILD_DIR)/fwcutter/ + $(CP) ./fwcutter/* $(PKG_BUILD_DIR)/fwcutter/ $(SCRIPT_DIR)/download.pl "$(PKG_BUILD_DIR)/fwcutter" "$(FIRMWARE_BLOB)" "$(FIRMWARE_BLOB_MD5SUM)" $(FIRMWARE_BLOB_URL) $(MAKE) -C $(PKG_BUILD_DIR)/fwcutter $(PKG_BUILD_DIR)/fwcutter/fwcutter -w $(PKG_BUILD_DIR)/fwcutter $(PKG_BUILD_DIR)/fwcutter/$(FIRMWARE_BLOB) @@ -50,7 +50,7 @@ $(IPKG_KMOD_BCM43XX_DSCAPE): echo rate_control; \ echo bcm43xx; \ ) >& $(IDIR_KMOD_BCM43XX_DSCAPE)/etc/modules.d/50-bcm43xx - cp -fpR $(PKG_BUILD_DIR)/*.ko $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/modules/$(LINUX_VERSION) + $(CP) $(PKG_BUILD_DIR)/*.ko $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/modules/$(LINUX_VERSION) install -m0755 -d $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/firmware - cp -fpR $(PKG_BUILD_DIR)/fwcutter/*.fw $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/firmware/ + $(CP) $(PKG_BUILD_DIR)/fwcutter/*.fw $(IDIR_KMOD_BCM43XX_DSCAPE)/lib/firmware/ $(IPKG_BUILD) $(IDIR_KMOD_BCM43XX_DSCAPE) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/diag/Makefile b/openwrt/target/linux/package/diag/Makefile index 26bdcc952..3329ee985 100644 --- a/openwrt/target/linux/package/diag/Makefile +++ b/openwrt/target/linux/package/diag/Makefile @@ -27,5 +27,5 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_DIAG): mkdir -p $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION) - cp $(PKG_BUILD_DIR)/diag.o $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION)/ + $(CP) $(PKG_BUILD_DIR)/diag.o $(IDIR_KMOD_DIAG)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_DIAG) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/fuse/Makefile b/openwrt/target/linux/package/fuse/Makefile index 62d6df36d..b9a57d002 100644 --- a/openwrt/target/linux/package/fuse/Makefile +++ b/openwrt/target/linux/package/fuse/Makefile @@ -74,7 +74,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_FUSE): mkdir -p $(IDIR_KMOD_FUSE)/lib/modules/$(LINUX_VERSION) - cp -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/fuse/fuse.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_FUSE)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_FUSE) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/hostap/Makefile b/openwrt/target/linux/package/hostap/Makefile index ac031e3bc..3e8e60498 100644 --- a/openwrt/target/linux/package/hostap/Makefile +++ b/openwrt/target/linux/package/hostap/Makefile @@ -34,7 +34,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_HOSTAP): install -m0755 -d $(IDIR_KMOD_HOSTAP)/lib/modules/$(LINUX_VERSION) - cp -fpR \ + $(CP) \ $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \ @@ -44,14 +44,14 @@ $(IPKG_KMOD_HOSTAP): $(IPKG_KMOD_HOSTAP_PCI): install -m0755 -d $(IDIR_KMOD_HOSTAP_PCI)/lib/modules/$(LINUX_VERSION) - cp -fpR \ + $(CP) \ $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_HOSTAP_PCI)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP_PCI) $(PACKAGE_DIR) $(IPKG_KMOD_HOSTAP_PLX): install -m0755 -d $(IDIR_KMOD_HOSTAP_PLX)/lib/modules/$(LINUX_VERSION) - cp -fpR \ + $(CP) \ $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_HOSTAP_PLX)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP_PLX) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/ieee80211-dscape/Makefile b/openwrt/target/linux/package/ieee80211-dscape/Makefile index 90fe09d3d..3de9b34fb 100644 --- a/openwrt/target/linux/package/ieee80211-dscape/Makefile +++ b/openwrt/target/linux/package/ieee80211-dscape/Makefile @@ -13,7 +13,7 @@ $(eval $(call PKG_template,KMOD_IEEE80211_DSCAPE,$(PKG_NAME),$(LINUX_VERSION)-$( $(PKG_BUILD_DIR)/.prepared: mkdir -p $(PKG_BUILD_DIR) - cp -fpR ./src/* $(PKG_BUILD_DIR)/ + $(CP) ./src/* $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/.configured: @@ -32,12 +32,12 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_IEEE80211_DSCAPE): install -m0755 -d $(IDIR_KMOD_IEEE80211_DSCAPE)/lib/modules/$(LINUX_VERSION) #install -m0755 -d $(IDIR_KMOD_IEEE80211_DSCAPE)/etc/modules.d - cp -fpR $(PKG_BUILD_DIR)/*.ko $(IDIR_KMOD_IEEE80211_DSCAPE)/lib/modules/$(LINUX_VERSION) + $(CP) $(PKG_BUILD_DIR)/*.ko $(IDIR_KMOD_IEEE80211_DSCAPE)/lib/modules/$(LINUX_VERSION) $(IPKG_BUILD) $(IDIR_KMOD_IEEE80211_DSCAPE) $(PACKAGE_DIR) install-dev: mkdir -p $(STAGING_DIR)/usr/include/ieee80211-dscape - cp -fpR src/include/* $(STAGING_DIR)/usr/include/ieee80211-dscape/ + $(CP) src/include/* $(STAGING_DIR)/usr/include/ieee80211-dscape/ uninstall-dev: rm -rf $(STAGING_DIR)/usr/include/ieee80211-dscape diff --git a/openwrt/target/linux/package/madwifi/Makefile b/openwrt/target/linux/package/madwifi/Makefile index da9441540..eabbdd0f2 100644 --- a/openwrt/target/linux/package/madwifi/Makefile +++ b/openwrt/target/linux/package/madwifi/Makefile @@ -77,20 +77,20 @@ $(IPKG_KMOD_MADWIFI): mkdir -p $(IDIR_KMOD_MADWIFI)/usr/sbin install -m0644 ./files/madwifi.modules $(IDIR_KMOD_MADWIFI)/etc/modules.d/20-madwifi install -m0755 ./files/madwifi.init $(IDIR_KMOD_MADWIFI)/etc/init.d/S20madwifi - cp -fpR $(PKG_BUILD_DIR)/net80211/wlan*.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_BUILD_DIR)/net80211/wlan*.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/ath_hal/ath_hal.$(LINUX_KMOD_SUFFIX) \ $(BUS_MODULES) \ $(PKG_BUILD_DIR)/ath_rate/sample/ath_rate_sample.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/net80211/*.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_MADWIFI)/lib/modules/$(LINUX_VERSION)/ - cp -fpR $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(IDIR_KMOD_MADWIFI)/usr/sbin/ + $(CP) $(PKG_BUILD_DIR)/tools/{madwifi_multi,80211debug,80211stats,athchans,athctrl,athdebug,athkey,athstats,wlanconfig} $(IDIR_KMOD_MADWIFI)/usr/sbin/ $(IPKG_BUILD) $(IDIR_KMOD_MADWIFI) $(PACKAGE_DIR) $(STAGING_DIR)/usr/include/madwifi/net80211/ieee80211.h: $(PKG_BUILD_DIR)/.built mkdir -p $(STAGING_DIR)/usr/include/madwifi - cp -fpR $(PKG_BUILD_DIR)/include $(STAGING_DIR)/usr/include/madwifi/ + $(CP) $(PKG_BUILD_DIR)/include $(STAGING_DIR)/usr/include/madwifi/ mkdir -p $(STAGING_DIR)/usr/include/madwifi/net80211 - cp -fpR $(PKG_BUILD_DIR)/net80211/*.h $(STAGING_DIR)/usr/include/madwifi/net80211/ + $(CP) $(PKG_BUILD_DIR)/net80211/*.h $(STAGING_DIR)/usr/include/madwifi/net80211/ touch $@ install-dev: $(STAGING_DIR)/usr/include/madwifi/net80211/ieee80211.h diff --git a/openwrt/target/linux/package/mini_fo/Makefile b/openwrt/target/linux/package/mini_fo/Makefile index 6fea0655d..dcd5b91f3 100644 --- a/openwrt/target/linux/package/mini_fo/Makefile +++ b/openwrt/target/linux/package/mini_fo/Makefile @@ -35,7 +35,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_MINI_FO): install -m0755 -d $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION) install -m0755 -d $(IDIR_KMOD_MINI_FO)/etc/modules.d - cp -fpR $(PKG_BUILD_DIR)/mini_fo.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_BUILD_DIR)/mini_fo.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_MINI_FO)/lib/modules/$(LINUX_VERSION)/ echo "mini_fo" > $(IDIR_KMOD_MINI_FO)/etc/modules.d/15-mini-fo $(IPKG_BUILD) $(IDIR_KMOD_MINI_FO) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/openswan/Makefile b/openwrt/target/linux/package/openswan/Makefile index e7faf3e36..9c1b1829f 100644 --- a/openwrt/target/linux/package/openswan/Makefile +++ b/openwrt/target/linux/package/openswan/Makefile @@ -32,5 +32,5 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_OPENSWAN): mkdir -p $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION) - cp -fpR $(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX) $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)/ + $(CP) $(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX) $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_OPENSWAN) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/shfs/Makefile b/openwrt/target/linux/package/shfs/Makefile index a0ac83947..4625bdb12 100644 --- a/openwrt/target/linux/package/shfs/Makefile +++ b/openwrt/target/linux/package/shfs/Makefile @@ -40,7 +40,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_SHFS): install -m0755 -d $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION) - cp -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_SHFS) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/spca5xx/Makefile b/openwrt/target/linux/package/spca5xx/Makefile index 95ffe5966..6b66262a2 100644 --- a/openwrt/target/linux/package/spca5xx/Makefile +++ b/openwrt/target/linux/package/spca5xx/Makefile @@ -33,7 +33,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_SPCA5XX): install -m0755 -d $(IDIR_KMOD_SPCA5XX)/lib/modules/$(LINUX_VERSION) - cp -fpR $(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_BUILD_DIR)/spca5xx.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_SPCA5XX)/lib/modules/$(LINUX_VERSION)/ $(RSTRIP_KMOD) $(IDIR_KMOD_SPCA5XX) $(IPKG_BUILD) $(IDIR_KMOD_SPCA5XX) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/switch/Makefile b/openwrt/target/linux/package/switch/Makefile index c86147930..812fccb2c 100644 --- a/openwrt/target/linux/package/switch/Makefile +++ b/openwrt/target/linux/package/switch/Makefile @@ -13,7 +13,7 @@ $(eval $(call PKG_template,KMOD_SWITCH,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(P $(PKG_BUILD_DIR)/.prepared: mkdir -p $(PKG_BUILD_DIR) - cp -fpR ./src/* $(PKG_BUILD_DIR)/ + $(CP) ./src/* $(PKG_BUILD_DIR)/ touch $@ $(PKG_BUILD_DIR)/.configured: @@ -31,7 +31,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_SWITCH): install -m0755 -d $(IDIR_KMOD_SWITCH)/lib/modules/$(LINUX_VERSION) - cp -fpR $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_SWITCH)/lib/modules/$(LINUX_VERSION) $(IPKG_BUILD) $(IDIR_KMOD_SWITCH) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/package/ueagle-atm/Makefile b/openwrt/target/linux/package/ueagle-atm/Makefile index 2da1f463e..3872727f5 100644 --- a/openwrt/target/linux/package/ueagle-atm/Makefile +++ b/openwrt/target/linux/package/ueagle-atm/Makefile @@ -34,7 +34,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_UEAGLE_ATM): install -m0755 -d $(IDIR_KMOD_UEAGLE_ATM)/lib/modules/$(LINUX_VERSION) $(IDIR_KMOD_UEAGLE_ATM)/etc/modules.d install -m0644 ./files/$(PKG_NAME).modules $(IDIR_KMOD_UEAGLE_ATM)/etc/modules.d/10-$(PKG_NAME) - cp -fpR $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX) \ + $(CP) $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_UEAGLE_ATM)/lib/modules/$(LINUX_VERSION)/ $(RSTRIP_KMOD) $(IDIR_KMOD_UEAGLE_ATM) diff --git a/openwrt/target/linux/package/wlcompat/Makefile b/openwrt/target/linux/package/wlcompat/Makefile index 718b584aa..cdc02ea22 100644 --- a/openwrt/target/linux/package/wlcompat/Makefile +++ b/openwrt/target/linux/package/wlcompat/Makefile @@ -33,11 +33,11 @@ $(IPKG_KMOD_WLCOMPAT): $(PKG_BUILD_DIR)/wlcompat.o mkdir -p $(IDIR_KMOD_WLCOMPAT)/etc/modules.d echo "wlcompat" > $(IDIR_KMOD_WLCOMPAT)/etc/modules.d/30-wlcompat mkdir -p $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(LINUX_VERSION) - cp $(PKG_BUILD_DIR)/wlcompat.o $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(LINUX_VERSION)/ + $(CP) $(PKG_BUILD_DIR)/wlcompat.o $(IDIR_KMOD_WLCOMPAT)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT) $(PACKAGE_DIR) $(IPKG_KMOD_WLCOMPAT_DEBUG): $(PKG_BUILD_DIR)/wlcompat-debug.o mkdir -p $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(LINUX_VERSION) - cp $(PKG_BUILD_DIR)/wlcompat-debug.o $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(LINUX_VERSION)/ + $(CP) $(PKG_BUILD_DIR)/wlcompat-debug.o $(IDIR_KMOD_WLCOMPAT_DEBUG)/lib/modules/$(LINUX_VERSION)/ $(IPKG_BUILD) $(IDIR_KMOD_WLCOMPAT_DEBUG) $(PACKAGE_DIR) diff --git a/openwrt/target/linux/rules.mk b/openwrt/target/linux/rules.mk index c9cf9c5e5..f0f2e72db 100644 --- a/openwrt/target/linux/rules.mk +++ b/openwrt/target/linux/rules.mk @@ -68,7 +68,7 @@ $$(PKG_$(1)): $(LINUX_DIR)/.modules_done echo "Depends: $$(IDEPEND_$(1))" >> $$(I_$(1))/CONTROL/control ifneq ($(strip $(3)),) mkdir -p $$(I_$(1))/lib/modules/$(LINUX_VERSION) - cp $(3) $$(I_$(1))/lib/modules/$(LINUX_VERSION) + $(CP) $(3) $$(I_$(1))/lib/modules/$(LINUX_VERSION) endif ifneq ($(6),) mkdir -p $$(I_$(1))/etc/modules.d diff --git a/openwrt/target/linux/x86-2.4/Makefile b/openwrt/target/linux/x86-2.4/Makefile index 97ded843f..5f20f1e40 100644 --- a/openwrt/target/linux/x86-2.4/Makefile +++ b/openwrt/target/linux/x86-2.4/Makefile @@ -19,12 +19,12 @@ include ../kernel.mk $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config touch $@ $(LINUX_BUILD_DIR)/bzImage: $(LINUX_DIR)/vmlinux $(MAKE) -C $(LINUX_DIR) TOPDIR=$(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) bzImage $(MAKE_TRACE) - cp -f $(LINUX_DIR)/arch/i386/boot/bzImage $@ + $(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $@ touch $@ compile: $(LINUX_BUILD_DIR)/bzImage diff --git a/openwrt/target/linux/x86-2.6/Makefile b/openwrt/target/linux/x86-2.6/Makefile index 3bb8c4d23..45a2e1c49 100644 --- a/openwrt/target/linux/x86-2.6/Makefile +++ b/openwrt/target/linux/x86-2.6/Makefile @@ -14,12 +14,12 @@ include ../kernel.mk $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) - @cp config $(LINUX_DIR)/.config + @$(CP) config $(LINUX_DIR)/.config touch $@ $(LINUX_BUILD_DIR)/bzImage: $(LINUX_DIR)/vmlinux $(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) bzImage $(MAKE_TRACE) - cp -f $(LINUX_DIR)/arch/i386/boot/bzImage $@ + $(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $@ touch $@ compile: $(LINUX_BUILD_DIR)/bzImage diff --git a/openwrt/target/lzma/Makefile b/openwrt/target/lzma/Makefile index 8969e3d24..6e846c31c 100644 --- a/openwrt/target/lzma/Makefile +++ b/openwrt/target/lzma/Makefile @@ -32,7 +32,7 @@ $(LZMA_DIR)/.built: $(LZMA_DIR)/.unpacked touch $@ lzma: $(TARGETS) - cp -f $^ $(LZMA_DIR) + $(CP) $^ $(LZMA_DIR) lzma-source: $(DL_DIR)/$(LZMA_SOURCE) @@ -49,5 +49,5 @@ lzma-dirclean: prepare: $(LZMA_DIR)/.unpacked compile: lzma install: lzma - cp $(LZMA_DIR)/lzma $(STAGING_DIR)/bin/ + $(CP) $(LZMA_DIR)/lzma $(STAGING_DIR)/bin/ clean: lzma-dirclean diff --git a/openwrt/target/utils/Makefile b/openwrt/target/utils/Makefile index c08bd1a55..753db53de 100644 --- a/openwrt/target/utils/Makefile +++ b/openwrt/target/utils/Makefile @@ -7,7 +7,7 @@ UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils prepare: $(UTILS_BUILD_DIR) compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) mkdir -p $(STAGING_DIR)/bin - cp -a $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/ + $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/ install: compile package: clean: diff --git a/openwrt/toolchain/gcc/Makefile b/openwrt/toolchain/gcc/Makefile index 642662e8f..2d24cdd13 100644 --- a/openwrt/toolchain/gcc/Makefile +++ b/openwrt/toolchain/gcc/Makefile @@ -187,7 +187,7 @@ ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.) echo staging dir specs file is missing ; \ /bin/false ; \ fi; - cp ./$(GCC_VERSION)/specs-$(ARCH)-soft-float $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs + $(CP) ./$(GCC_VERSION)/specs-$(ARCH)-soft-float $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs endif endif # We do another ugly hack here because the standard behaviour is diff --git a/openwrt/toolchain/kernel-headers/Makefile b/openwrt/toolchain/kernel-headers/Makefile index 9f466d321..27da1d5e9 100644 --- a/openwrt/toolchain/kernel-headers/Makefile +++ b/openwrt/toolchain/kernel-headers/Makefile @@ -38,7 +38,7 @@ $(LINUX_HEADERS_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE) touch $(LINUX_HEADERS_DIR)/.unpacked $(LINUX_HEADERS_DIR)/.configured: $(LINUX_HEADERS_DIR)/.unpacked - -cp -af ./files/config.$(LINUX_HEADERS_ARCH) $(LINUX_HEADERS_DIR)/.config + -$(CP) ./files/config.$(LINUX_HEADERS_ARCH) $(LINUX_HEADERS_DIR)/.config $(MAKE) -C $(LINUX_HEADERS_DIR) ARCH=$(LINUX_HEADERS_ARCH) oldconfig include/linux/version.h touch $(LINUX_HEADERS_DIR)/.configured diff --git a/openwrt/toolchain/libnotimpl/Makefile b/openwrt/toolchain/libnotimpl/Makefile index 9ae2bf240..f68346c37 100644 --- a/openwrt/toolchain/libnotimpl/Makefile +++ b/openwrt/toolchain/libnotimpl/Makefile @@ -17,7 +17,7 @@ $(LIBNOTIMPL_DIR)/libnotimpl.a: $(LIBNOTIMPL_OBJS) $(STAGING_DIR)/usr/lib/libnotimpl.a: $(LIBNOTIMPL_DIR)/libnotimpl.a mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $< $@ + $(CP) $< $@ touch -c $@ source: diff --git a/openwrt/toolchain/uClibc/Makefile b/openwrt/toolchain/uClibc/Makefile index 82c979c87..d77f554a1 100644 --- a/openwrt/toolchain/uClibc/Makefile +++ b/openwrt/toolchain/uClibc/Makefile @@ -47,7 +47,7 @@ $(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE) $(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.unpacked $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(UCLIBC_DIR)/Rules.mak - cp ./files/config.$(ARCH) $(UCLIBC_DIR)/.config + $(CP) ./files/config.$(ARCH) $(UCLIBC_DIR)/.config $(SED) 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE=\"$(LINUX_HEADERS_DIR)\",g' \ $(UCLIBC_DIR)/.config ifeq ($(BR2_LARGEFILE),y) diff --git a/openwrt/toolchain/utils/Makefile b/openwrt/toolchain/utils/Makefile index b5dae7347..2af6b139d 100644 --- a/openwrt/toolchain/utils/Makefile +++ b/openwrt/toolchain/utils/Makefile @@ -12,7 +12,7 @@ prepare: $(UTILS_BUILD_DIR) compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) install: compile mkdir -p $(STAGING_DIR)/bin - cp -a $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/ + $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/ package: clean: rm -rf $(UTILS_BUILD_DIR) -- 2.20.1