mdnsreponder: use install paths instead of build ones 14241/head
authorRosen Penev <rosenp@gmail.com>
Wed, 16 Dec 2020 01:07:38 +0000 (17:07 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 16 Dec 2020 02:18:47 +0000 (18:18 -0800)
For some reason, the build ones do not get generated when compiling in
parallel. PKG_INSTALL_DIR is the correct solution anyway.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/mdnsresponder/Makefile

index ccc1eeeb75a27335e87e79bbe9c15a778a13e213..f2aa82ca9359b96997befdef37a42ea8e6603319 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mDNSResponder
 PKG_VERSION:=IETF104
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=mDNSResponder-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://opensource.apple.com/tarballs/mDNSResponder/IETF/
@@ -122,9 +122,9 @@ endef
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
-       $(CP) $(PKG_BUILD_DIR)/mDNSShared/dns_sd.h $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/dns_sd.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/*.so* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so* $(1)/usr/lib/
 endef
 
 define Package/mdns-utils/install
@@ -152,8 +152,7 @@ define Package/mdnsd/install
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/mdnsd.init $(1)/etc/init.d/mdnsd
        $(INSTALL_DIR) $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so.1 $(1)/usr/lib/
-       $(LN) -s libdns_sd.so.1 $(1)/usr/lib/libdns_sd.so
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so* $(1)/usr/lib/
 endef
 
 define Package/mdnsresponder/install