summaryrefslogtreecommitdiff
path: root/package/avahi
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-12-15 16:09:03 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-12-15 16:09:03 +0000
commit7fdbdfc5590511692f38195ec887795f8489b3dd (patch)
treeae0c7f4d81968693a12e77a641394ede7ee0c5fe /package/avahi
parente2e4950b2d9334e6380e32cf30c7c7968747ccc0 (diff)
avahi: make sure destination dirs exists
Diffstat (limited to 'package/avahi')
-rw-r--r--package/avahi/avahi.mk14
1 files 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)