From 7fdbdfc5590511692f38195ec887795f8489b3dd Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 15 Dec 2008 16:09:03 +0000 Subject: avahi: make sure destination dirs exists --- package/avahi/avahi.mk | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk index 1e53c82c4..0b656932b 100644 --- a/package/avahi/avahi.mk +++ b/package/avahi/avahi.mk @@ -151,20 +151,19 @@ $(AVAHI_DIR)/.installed: $(AVAHI_DIR)/.compiled touch $@ $(TARGET_DIR)/usr/sbin/avahi-autoipd: $(AVAHI_DIR)/.installed - mkdir -p $(TARGET_DIR)/etc/avahi - mkdir -p $(TARGET_DIR)/etc/init.d - mkdir -p $(TARGET_DIR)/var/lib - mkdir -p $(TARGET_DIR)/usr/share/udhcpc + mkdir -p $(addprefix $(TARGET_DIR),\ + /etc/avahi /etc/init.d /var/lib /usr/share/udhcpc /usr/sbin) cp -af $(STAGING_DIR)/etc/avahi/avahi-autoipd.action $(TARGET_DIR)/etc/avahi/ cp -af package/avahi/busybox-udhcpc-default.script $(TARGET_DIR)/usr/share/udhcpc/default.script chmod 0755 $(TARGET_DIR)/usr/share/udhcpc/default.script cp -af package/avahi/S05avahi-setup.sh $(TARGET_DIR)/etc/init.d/ - cp $(STAGING_DIR)/usr/sbin/avahi-autoipd $(TARGET_DIR)/usr/sbin/avahi-autoipd + cp $(STAGING_DIR)/usr/sbin/avahi-autoipd $@ ln -sf /tmp/avahi-autoipd $(TARGET_DIR)/var/lib/avahi-autoipd $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ $(TARGET_DIR)/usr/sbin/avahi-daemon: $(AVAHI_DIR)/.installed - mkdir -p $(TARGET_DIR)/etc/avahi/services $(TARGET_DIR)/usr/lib + mkdir -p $(addprefix $(TARGET_DIR),\ + /etc/avahi/services /usr/lib /usr/bin /usr/sbin) cp -dpf $(STAGING_DIR)/usr/lib/libavahi-*.so* $(TARGET_DIR)/usr/lib/ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libavahi-*.so* cp -af $(STAGING_DIR)/etc/avahi/avahi-daemon.conf $(TARGET_DIR)/etc/avahi/ @@ -176,8 +175,7 @@ ifeq ($(BR2_PACKAGE_DBUS),y) cp -r $(STAGING_DIR)/etc/dbus-1/system.d/avahi-* \ $(TARGET_DIR)/etc/dbus-1/system.d/ endif - cp $(STAGING_DIR)/usr/sbin/avahi-daemon \ - $(TARGET_DIR)/usr/sbin/avahi-daemon + cp $(STAGING_DIR)/usr/sbin/avahi-daemon $@ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ avahi: host-autoconf uclibc libdaemon $(if $(BR2_ENABLE_LOCALE),gettext libintl) $(AVAHI_TARGETS) -- cgit v1.2.3