Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 19 additions & 48 deletions libs/avahi/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
#
# Copyright (C) 2007-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=avahi
PKG_VERSION:=0.8
PKG_RELEASE:=8
PKG_VERSION:=0.9_rc4
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION) \
https://avahi.org/download
PKG_HASH:=060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda
PKG_SOURCE:=$(PKG_NAME)-0.9-rc4.tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/avahi/avahi/tar.gz/v0.9-rc4?
PKG_HASH:=08fcc57377ed05416ec4b3d8a179da716a7a9376821551a5ae16f8276a1ef0b5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-0.9-rc4

PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:avahi:avahi
Expand All @@ -31,7 +29,7 @@ define Package/avahi/Default
SECTION:=net
CATEGORY:=Network
TITLE:=An mDNS/DNS-SD implementation
URL:=http://www.avahi.org/
URL:=https://avahi.org/
endef

define Package/avahi/Default/description
Expand Down Expand Up @@ -67,6 +65,7 @@ define Package/avahi-autoipd
SUBMENU:=IP Addresses and Names
DEPENDS:=+libdaemon
TITLE:=IPv4LL network address configuration daemon
USERID:=avahi=105:avahi=105
endef

define Package/avahi-autoipd/description
Expand All @@ -86,6 +85,7 @@ define Package/avahi-dbus-daemon
SUBMENU:=IP Addresses and Names
DEPENDS:=+libavahi-dbus-support +libexpat +librt +libdaemon
TITLE+= (daemon)
USERID:=avahi=105:avahi=105
endef

define Package/avahi-nodbus-daemon
Expand Down Expand Up @@ -153,6 +153,7 @@ define Package/avahi-dnsconfd
SUBMENU:=IP Addresses and Names
DEPENDS:=+libavahi +libdaemon +libpthread
TITLE:=A Unicast DNS server using avahi-daemon
USERID:=avahi=105:avahi=105
endef

define Package/avahi-dnsconfd/description
Expand Down Expand Up @@ -217,23 +218,6 @@ $(call Package/avahi/Default/description)
For more information please see the avahi documentation.
endef

define Package/libavahi-compat-libdnssd
$(call Package/avahi/Default)
SECTION:=libs
CATEGORY:=Libraries
VARIANT:=dbus
DEPENDS:=+libavahi-client
TITLE+= (libdnssd)
endef

define Package/libavahi-compat-libdnssd/description
$(call Package/avahi/Default/description)
.
This packages adds the libavahi-compat-libdnssd library.
It also automatically adds the required libavahi-client package.
For more information please see the avahi documentation.
endef

define Package/avahi-utils
$(call Package/avahi/Default)
SUBMENU:=IP Addresses and Names
Expand Down Expand Up @@ -285,19 +269,17 @@ CONFIGURE_ARGS += \
--disable-manpages \
--disable-xmltoman \
--disable-tests \
--disable-libsystemd \
--with-systemdsystemunitdir=no \
--with-xml=expat \
--with-distro=none \
--with-avahi-user=nobody \
--with-avahi-group=nogroup \
--with-avahi-priv-access-group=nogroup \
--with-autoipd-user=nobody \
--with-autoipd-group=nogroup
--with-avahi-user=avahi \
--with-avahi-group=avahi \
--with-avahi-priv-access-group=avahi \
--with-autoipd-user=avahi \
--with-autoipd-group=avahi

ifeq ($(BUILD_VARIANT),dbus)
ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),)
CONFIGURE_ARGS += \
--enable-compat-libdns_sd
endif
CONFIGURE_ARGS += \
--enable-dbus
else
Expand All @@ -314,11 +296,6 @@ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-* $(1)/usr/lib/
ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),)
ifeq ($(BUILD_VARIANT),dbus)
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd* $(1)/usr/lib/
endif
endif
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
endef
Expand All @@ -331,7 +308,7 @@ endef
define Package/libavahi-dbus-support/install
$(call Package/libavahi/install,$(1))
$(INSTALL_DIR) $(1)/etc/dbus-1/system.d
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/dbus-1/system.d/* $(1)/etc/dbus-1/system.d
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/dbus-1/system.d/* $(1)/etc/dbus-1/system.d
endef

Package/libavahi-nodbus-support/install=$(Package/libavahi/install)
Expand All @@ -341,11 +318,6 @@ define Package/libavahi-client/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-client.so.* $(1)/usr/lib/
endef

define Package/libavahi-compat-libdnssd/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so* $(1)/usr/lib/
endef

define Package/avahi-utils/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
Expand Down Expand Up @@ -393,7 +365,6 @@ define Package/avahi-dnsconfd/install
endef

$(eval $(call BuildPackage,libavahi-client))
$(eval $(call BuildPackage,libavahi-compat-libdnssd))
$(eval $(call BuildPackage,avahi-utils))
$(eval $(call BuildPackage,libavahi-dbus-support))
$(eval $(call BuildPackage,libavahi-nodbus-support))
Expand Down
1 change: 0 additions & 1 deletion libs/avahi/files/avahi-daemon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use-ipv4=yes
use-ipv6=yes
check-response-ttl=no
use-iff-running=no
deny-interfaces=wpan0

[publish]
publish-addresses=yes
Expand Down
31 changes: 31 additions & 0 deletions libs/avahi/patches/020-no-po-subdir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
--- a/Makefile.am
+++ b/Makefile.am
@@ -78,8 +78,7 @@ SUBDIRS = \
avahi-autoipd \
avahi-ui \
avahi-ui-sharp \
- avahi-libevent \
- po
+ avahi-libevent

DX_INPUT = \
$(srcdir)/avahi-common/address.h \
--- a/configure.ac
+++ b/configure.ac
@@ -425,8 +425,6 @@ fi
GETTEXT_PACKAGE=avahi
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package])
-AM_GNU_GETTEXT_VERSION([0.19.8])
-AM_GNU_GETTEXT([external])

# Check for pkg-config manually first, as if its not installed the
# PKG_PROG_PKG_CONFIG macro won't be defined.
@@ -1177,7 +1175,6 @@ avahi-compat-howl/samples/Makefile
avahi-autoipd/Makefile
avahi-ui/Makefile
avahi-libevent/Makefile
-po/Makefile.in
])
AC_OUTPUT

11 changes: 0 additions & 11 deletions libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch

This file was deleted.

45 changes: 0 additions & 45 deletions libs/avahi/patches/100-p2p-no-iff_multicast-required.patch

This file was deleted.

136 changes: 0 additions & 136 deletions libs/avahi/patches/200-Fix-NULL-pointer-crashes-from-175.patch

This file was deleted.

Loading
Loading