MDNSRESPONDER_SOURCE:=mDNSResponder-$(MDNSRESPONDER_VERSION).tar.gz
MDNSRESPONDER_SITE:=http://www.opensource.apple.com/darwinsource/tarballs/other/$(MDNSRESPONDER_SOURCE)
MDNSRESPONDER_DIR:=$(BUILD_DIR)/mDNSResponder-$(MDNSRESPONDER_VERSION)
-MDNSRESPONDER_CAT:=zcat
+MDNSRESPONDER_CAT:=$(ZCAT)
MDNSRESPONDER_INSTDEPS:=
ifeq ($(BR2_PACKAGE_MDNSRESPONDER_UTILS),y)
$(MDNSRESPONDER_DIR)/.unpacked: $(DL_DIR)/$(MDNSRESPONDER_SOURCE)
$(MDNSRESPONDER_CAT) $(DL_DIR)/$(MDNSRESPONDER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(MDNSRESPONDER_DIR)/.unpacked
+ touch $@
$(MDNSRESPONDER_DIR)/.configured: $(MDNSRESPONDER_DIR)/.unpacked
$(SED) 's:OPTIONALTARG = nss_mdns::' $(MDNSRESPONDER_DIR)/mDNSPosix/Makefile
- touch $(MDNSRESPONDER_DIR)/.configured
+ touch $@
$(MDNSRESPONDER_DIR)/.built: $(MDNSRESPONDER_DIR)/.configured
$(MAKE1) CC=$(TARGET_CC) os="linux" LD="$(TARGET_CC) -shared" LOCALBASE="/usr" -C $(MDNSRESPONDER_DIR)/mDNSPosix
- touch $(MDNSRESPONDER_DIR)/.built
+ touch $@
$(STAGING_DIR)/usr/lib/libdns_sd.so: $(MDNSRESPONDER_DIR)/.built
# lib
mdnsresponder-clean:
rm -f $(MDNSRESPONDER_DIR)/.configured $(MDNSRESPONDER_DIR)/.built $(MDNSRESPONDER_DIR)/.staged
-$(MAKE1) os=linux -C $(MDNSRESPONDER_DIR)/mDNSPosix clean
- rm -f $(TARGET_DIR)/usr/sbin/dnsextd
- rm -f $(TARGET_DIR)/usr/sbin/mDNSResponderPosix
- rm -f $(TARGET_DIR)/usr/sbin/mDNSNetMonitor
- rm -f $(TARGET_DIR)/usr/sbin/mdnsd
- rm -f $(TARGET_DIR)/usr/bin/dns-sd
- rm -f $(TARGET_DIR)/usr/bin/mDNSProxyResponderPosix
- rm -f $(TARGET_DIR)/usr/bin/mDNSIdentify
- rm -f $(TARGET_DIR)/usr/bin/mDNSClientPosix
- rm -f $(TARGET_DIR)/usr/lib/libdns_sd.so*
- rm -f $(STAGING_DIR)/usr/lib/libdns_sd.so*
- rm -f $(STAGING_DIR)/usr/include/dns_sd.h
- rm -f $(TARGET_DIR)/etc/mDNSResponderPosix.conf
- rm -f $(TARGET_DIR)/etc/init.d/S80mdnsresponder
+ rm -f $(TARGET_DIR)/usr/sbin/dnsextd \
+ $(TARGET_DIR)/usr/sbin/mDNSResponderPosix \
+ $(TARGET_DIR)/usr/sbin/mDNSNetMonitor \
+ $(TARGET_DIR)/usr/sbin/mdnsd \
+ $(TARGET_DIR)/usr/bin/dns-sd \
+ $(TARGET_DIR)/usr/bin/mDNSProxyResponderPosix \
+ $(TARGET_DIR)/usr/bin/mDNSIdentify \
+ $(TARGET_DIR)/usr/bin/mDNSClientPosix \
+ $(TARGET_DIR)/usr/lib/libdns_sd.so* \
+ $(STAGING_DIR)/usr/lib/libdns_sd.so* \
+ $(STAGING_DIR)/usr/include/dns_sd.h \
+ $(TARGET_DIR)/etc/mDNSResponderPosix.conf \
+ $(TARGET_DIR)/etc/init.d/S80mdnsresponder
mdnsresponder-dirclean:
rm -rf $(MDNSRESPONDER_DIR)
$(WGET) -P $(DL_DIR) $(NCFTP_SITE)/$(NCFTP_SOURCE)
$(NCFTP_DIR)/.source: $(DL_DIR)/$(NCFTP_SOURCE)
- bzcat $(DL_DIR)/$(NCFTP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(BZCAT) $(DL_DIR)/$(NCFTP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
touch $@
$(NCFTP_DIR)/.configured: $(NCFTP_DIR)/.source
PHP_SOURCE:=php-$(PHP_VER).tar.bz2
PHP_SITE:=http://us.php.net/get/${PHP_SOURCE}/from/us2.php.net/mirror
PHP_DIR:=$(BUILD_DIR)/php-$(PHP_VER)
-PHP_CAT=bzcat
+PHP_CAT=$(BZCAT)
PHP_DEPS=
PHP_TARGET_DEPS=
$(PHP_DIR)/.unpacked: $(DL_DIR)/$(PHP_SOURCE)
$(PHP_CAT) $(DL_DIR)/$(PHP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(PHP_DIR)/.unpacked
+ touch $@
$(PHP_DIR)/.configured: $(PHP_DIR)/.unpacked
(cd $(PHP_DIR); rm -rf config.cache; \
$(PHP_CGI) \
$(PHP_ZLIB) \
)
- touch $(PHP_DIR)/.configured
+ touch $@
$(PHP_DIR)/.built: $(PHP_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(PHP_DIR)
- touch $(PHP_DIR)/.built
+ touch $@
$(PHP_DIR)/.staged: $(PHP_DIR)/.built
$(MAKE) DESTDIR=$(STAGING_DIR) INSTALL_ROOT=$(STAGING_DIR) CC=$(TARGET_CC) -C $(PHP_DIR) install
- touch $(PHP_DIR)/.staged
+ touch $@
$(TARGET_DIR)/usr/bin/php: $(PHP_DIR)/.staged
cp -dpf $(STAGING_DIR)/usr/bin/php $(TARGET_DIR)/usr/bin/php
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/php-cgi
$(TARGET_DIR)/etc/php.ini: $(PHP_DIR)/.staged
- cp $(PHP_DIR)/php.ini-dist $(TARGET_DIR)/etc/php.ini
+ cp -f $(PHP_DIR)/php.ini-dist $(TARGET_DIR)/etc/php.ini
php: uclibc $(PHP_DEPS) $(PHP_TARGET_DEPS) $(TARGET_DIR)/etc/php.ini
PROFTPD_SOURCE:=proftpd-$(PROFTPD_VERSION).tar.bz2
PROFTPD_SITE:=ftp://ftp.proftpd.org/distrib/source/
PROFTPD_DIR:=$(BUILD_DIR)/proftpd-$(PROFTPD_VERSION)
-PROFTPD_CAT:=bzcat
+PROFTPD_CAT:=$(BZCAT)
PROFTPD_BINARY:=proftpd
PROFTPD_TARGET_BINARY:=usr/sbin/proftpd
$(PROFTPD_DIR)/.unpacked: $(DL_DIR)/$(PROFTPD_SOURCE)
$(PROFTPD_CAT) $(DL_DIR)/$(PROFTPD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
$(CONFIG_UPDATE) $(PROFTPD_DIR)
- touch $(PROFTPD_DIR)/.unpacked
+ touch $@
$(PROFTPD_DIR)/.configured: $(PROFTPD_DIR)/.unpacked
(cd $(PROFTPD_DIR); rm -rf config.cache; \
$(ENABLE_IPV6) \
--with-gnu-ld \
)
- touch $(PROFTPD_DIR)/.configured
+ touch $@
$(PROFTPD_DIR)/$(PROFTPD_BINARY): $(PROFTPD_DIR)/.configured
$(MAKE) CC="$(HOSTCC)" CFLAGS="" LDFLAGS="" \
$(MAKE) -C $(PROFTPD_DIR)
$(TARGET_DIR)/$(PROFTPD_TARGET_BINARY): $(PROFTPD_DIR)/$(PROFTPD_BINARY)
- cp -a $(PROFTPD_DIR)/$(PROFTPD_BINARY) \
+ cp -dpf $(PROFTPD_DIR)/$(PROFTPD_BINARY) \
$(TARGET_DIR)/$(PROFTPD_TARGET_BINARY)
@if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ]; then \
$(INSTALL) -m 0644 -D $(PROFTPD_DIR)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \