include $(TOPDIR)/rules.mk
PKG_NAME:=mDNSResponder
-PKG_VERSION:=379.37
-PKG_RELEASE:=2
+PKG_VERSION:=544
+PKG_RELEASE:=1
PKG_SOURCE:=mDNSResponder-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://opensource.apple.com/tarballs/mDNSResponder/
-PKG_MD5SUM:=dd557e1058b51ac2f29cd01d67be0145
+PKG_MD5SUM:=39142ab70bd82a096801ce346f86cbab
PKG_BUILD_DIR:=$(BUILD_DIR)/mDNSResponder-$(PKG_VERSION)
define Package/mdnsd/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/mdnsd $(1)/usr/sbin/
+ $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
+ $(INSTALL_DATA) ./files/mdnsd.hotplug $(1)/etc/hotplug.d/iface
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/mdnsd.init $(1)/etc/init.d/mdnsd
$(INSTALL_DIR) $(1)/usr/lib/
--- /dev/null
+#!/bin/sh
+/etc/init.d/mdnsd enabled || exit 0
+[ "$ACTION" = ifupdate -a -z "$IFUPDATE_ADDRESSES" ] && exit 0
+logger -t mdnsd "Restarting mdnsd due to $ACTION of $INTERFACE ($DEVICE)"
+/etc/init.d/mdnsd restart
#!/bin/sh /etc/rc.common
-# Copyright (C) 2009-2011 OpenWrt.org
+# Copyright (C) 2009-2014 OpenWrt.org
START=60
-
-SERVICE_USE_PID=1
-
-start() {
- service_start /usr/sbin/mdnsd
+STOP=10
+USE_PROCD=1
+
+start_service() {
+ procd_open_instance
+ procd_set_param command /usr/sbin/mdnsd -debug
+ procd_set_param respawn
+ procd_close_instance
}
-stop() {
- service_stop /usr/sbin/mdnsd
-}