X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=libs%2Favahi%2FMakefile;h=d7980fac7ef056ab45ea8a023eb468b305659924;hb=7d30bb2d1117a04f4b3d1d7949c2a10531ca9f9f;hp=78be0e9047060c7f03bbdaad0cd37ba3bf4db809;hpb=51fb4e32a0a1b74b8a708d4831f5459737cbf19e;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/libs/avahi/Makefile b/libs/avahi/Makefile index 78be0e9047..d7980fac7e 100644 --- a/libs/avahi/Makefile +++ b/libs/avahi/Makefile @@ -1,5 +1,6 @@ -# -# Copyright (C) 2006 OpenWrt.org +# + +# Copyright (C) 2007 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,52 +10,74 @@ include $(TOPDIR)/rules.mk PKG_NAME:=avahi -PKG_VERSION:=0.6.10 -PKG_RELEASE:=1 +PKG_VERSION:=0.6.23 +PKG_RELEASE:=2 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://avahi.org/download/ -PKG_MD5SUM:=cfb9e05c138dff4c430a35eee6229e8a -PKG_CAT:=zcat +PKG_MD5SUM:=aab1a304851d8145ea5f6a85c10af9e9 -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install -PKG_BUILDDEP:=libexpat libdaemon libgdbm +PKG_BUILD_DEPENDS:=libexpat libdaemon libgdbm include $(INCLUDE_DIR)/package.mk +define Package/avahi/Default + SECTION:=net + CATEGORY:=Network + TITLE:=An mDNS/DNS-SD implementation + URL:=http://www.avahi.org/ +endef + +define Package/avahi/Default/description + An mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (library). + Avahi is a system which facilitates service discovery on a local network -- + this means that you can plug your laptop or computer into a network and + instantly be able to view other people who you can chat with, find printers + to print to or find files being shared. This kind of technology is already + found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') + and is very convenient. +endef + define Package/libavahi + $(call Package/avahi/Default) SECTION:=libs CATEGORY:=Libraries + DEPENDS:=+libdaemon +libpthread + TITLE+= (library) +endef + +define Package/libavahi/description +$(call Package/avahi/Default/description) + . + This package contains the mDNS/DNS-SD shared libraries, used by other programs. +endef + +define Package/avahi-autoipd + $(call Package/avahi/Default) DEPENDS:=+libdaemon - TITLE:=An mDNS/DNS-SD implementation (library) - DESCRIPTION:=An mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (library).\\\ - Avahi is a system which facilitates service discovery on a local network -- \\\ - this means that you can plug your laptop or computer into a network and \\\ - instantly be able to view other people who you can chat with, find printers \\\ - to print to or find files being shared. This kind of technology is already \\\ - found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') \\\ - and is very convenient.\\\ - \\\ - This package contains the mDNS/DNS-SD shared libraries, used by other programs. - URL:=http://www.avahi.org/ + TITLE:=IPv4LL network address configuration daemon +endef + +define Package/avahi-autoipd/description +$(call Package/avahi/Default/description) + . + This package implements IPv4LL, "Dynamic Configuration of IPv4 Link-Local + Addresses" (IETF RFC3927), a protocol for automatic IP address configuration + from the link-local 169.254.0.0/16 range without the need for a central + server. It is primarily intended to be used in ad-hoc networks which lack a + DHCP server. endef define Package/avahi-daemon - SECTION:=net - CATEGORY:=Network - DEPENDS:=+libavahi - TITLE:=An mDNS/DNS-SD implementation (daemon) - DESCRIPTION:=An mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (daemon).\\\ - Avahi is a system which facilitates service discovery on a local network -- \\\ - this means that you can plug your laptop or computer into a network and \\\ - instantly be able to view other people who you can chat with, find printers \\\ - to print to or find files being shared. This kind of technology is already \\\ - found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') \\\ - and is very convenient.\\\ - \\\ - This package contains an mDNS/DNS-SD daemon. - URL:=http://www.avahi.org/ + $(call Package/avahi/Default) + DEPENDS:=+libavahi +libexpat + TITLE+= (daemon) +endef + +define Package/avahi-daemon/description +$(call Package/avahi/Default/description) + . + This package contains an mDNS/DNS-SD daemon. endef define Package/avahi-daemon/conffiles @@ -64,139 +87,116 @@ define Package/avahi-daemon/conffiles endef define Package/avahi-dnsconfd - SECTION:=net - CATEGORY:=Network + $(call Package/avahi/Default) DEPENDS:=+libavahi TITLE:=An Unicast DNS server from mDNS/DNS-SD configuration daemon - DESCRIPTION:=An Unicast DNS server from mDNS/DNS-SD configuration daemon.\\\ - Avahi is a system which facilitates service discovery on a local network -- \\\ - this means that you can plug your laptop or computer into a network and \\\ - instantly be able to view other people who you can chat with, find printers \\\ - to print to or find files being shared. This kind of technology is already \\\ - found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') \\\ - and is very convenient.\\\ - \\\ - This package contains an Unicast DNS server from mDNS/DNS-SD configuration \\\ - daemon, which may be used to configure conventional DNS servers using mDNS \\\ - in a DHCP-like fashion. Especially useful on IPv6. - URL:=http://www.avahi.org/ endef -define Build/Configure - (cd $(PKG_BUILD_DIR); rm -f config.cache; \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) -DNDEBUG" \ - CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ - LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ - PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ - ./configure \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --program-prefix="" \ - --program-suffix="" \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --datadir=/usr/share \ - --includedir=/usr/include \ - --infodir=/usr/share/info \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --localstatedir=/var \ - --mandir=/usr/share/man \ - --sbindir=/usr/sbin \ - --sysconfdir=/etc \ - $(DISABLE_LARGEFILE) \ - $(DISABLE_NLS) \ - --enable-shared \ - --enable-static \ - --disable-rpath \ - --with-gnu-ld \ - --disable-glib \ - --disable-qt3 \ - --disable-qt4 \ - --disable-gtk \ - --disable-dbus \ - --enable-expat \ - --enable-libdaemon \ - --disable-python \ - --disable-pygtk \ - --disable-python-dbus \ - --disable-mono \ - --disable-monodoc \ - --disable-doxygen-doc \ - --disable-doxygen-dot \ - --disable-doxygen-man \ - --disable-doxygen-rtf \ - --disable-doxygen-xml \ - --disable-doxygen-chm \ - --disable-doxygen-chi \ - --disable-doxygen-html \ - --disable-doxygen-ps \ - --disable-doxygen-pdf \ - --disable-xmltoman \ - --with-distro=none \ - --with-avahi-user=nobody \ - --with-avahi-group=nogroup \ - ); +define Package/avahi-dnsconfd/description +$(call Package/avahi/Default/description) + . + This package contains an Unicast DNS server from mDNS/DNS-SD configuration + daemon, which may be used to configure conventional DNS servers using mDNS + in a DHCP-like fashion. Especially useful on IPv6. endef +TARGET_CFLAGS += $(FPIC) +CONFIGURE_ARGS+= \ + --enable-shared \ + --enable-static \ + --disable-glib \ + --disable-gobject \ + --disable-qt3 \ + --disable-qt4 \ + --disable-gtk \ + --disable-dbus \ + --with-xml=expat \ + --disable-dbm \ + --enable-gdbm \ + --enable-libdaemon \ + --disable-python \ + --disable-pygtk \ + --disable-python-dbus \ + --disable-mono \ + --disable-monodoc \ + --disable-doxygen-doc \ + --disable-doxygen-dot \ + --disable-doxygen-man \ + --disable-doxygen-rtf \ + --disable-doxygen-xml \ + --disable-doxygen-chm \ + --disable-doxygen-chi \ + --disable-doxygen-html \ + --disable-doxygen-ps \ + --disable-doxygen-pdf \ + --disable-xmltoman \ + --with-distro=none \ + --with-avahi-user=nobody \ + --with-avahi-group=nogroup \ + --with-autoipd-user=nobody \ + --with-autoipd-group=nogroup + +ifneq ($(CONFIG_SSP_SUPPORT),y) +CONFIGURE_ARGS+= \ + --disable-stack-protector +endif + +CONFIGURE_VARS+= \ + CFLAGS="$$$$CFLAGS -DNDEBUG" \ + $(if $(CONFIG_LINUX_2_4),ac_cv_header_sys_inotify_h=no) + define Build/Compile - rm -rf $(PKG_INSTALL_DIR) - mkdir -p $(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ all install endef -define Package/avahi-daemon/install - install -d -m0755 $(1)/etc/avahi - install -m0644 ./files/avahi-daemon.conf $(1)/etc/avahi/ - install -d -m0755 $(1)/etc/avahi/services - install -m0644 ./files/service-http $(1)/etc/avahi/services/http.service - install -m0644 ./files/service-ssh $(1)/etc/avahi/services/ssh.service - install -d -m0755 $(1)/etc/init.d - install -m0755 ./files/avahi-daemon.init $(1)/etc/init.d/avahi-daemon - install -d -m0755 $(1)/usr/sbin - $(CP) $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(1)/usr/sbin/ -endef - -define Package/avahi-dnsconfd/install - install -d -m0755 $(1)/etc/avahi - $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(1)/etc/avahi/ - install -d -m0755 $(1)/usr/sbin - $(CP) $(PKG_INSTALL_DIR)/usr/sbin/avahi-dnsconfd $(1)/usr/sbin/ +define Build/InstallDev + mkdir -p $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/avahi-{common,core} $(1)/usr/include/ + mkdir -p $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-{common,core}.{a,so*} $(1)/usr/lib/ + mkdir -p $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/avahi-core.pc $(1)/usr/lib/pkgconfig/ endef define Package/libavahi/install - install -d -m0755 $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-{common,core}.so.* $(1)/usr/lib/ endef -define Build/InstallDev - mkdir -p $(STAGING_DIR)/usr/include - $(CP) $(PKG_INSTALL_DIR)/usr/include/avahi-{common,core} $(STAGING_DIR)/usr/include/ - mkdir -p $(STAGING_DIR)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-{common,core}.{a,so*} $(STAGING_DIR)/usr/lib/ - mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig - $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/avahi-core.pc $(STAGING_DIR)/usr/lib/pkgconfig/ - $(SED) 's,-I$$$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc - $(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc +define Package/avahi-autoipd/install + $(INSTALL_DIR) $(1)/etc/avahi + $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-autoipd.action $(1)/etc/avahi/ + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/avahi-autoipd $(1)/usr/sbin/ endef -define Build/UninstallDev - rm -rf \ - $(STAGING_DIR)/usr/include/avahi-{common,core} \ - $(STAGING_DIR)/usr/lib/libavahi-{common,core}.{a,so*} \ - $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc +define Package/avahi-daemon/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/avahi + $(INSTALL_DATA) ./files/avahi-daemon.conf $(1)/etc/avahi/ + $(INSTALL_DIR) $(1)/etc/avahi/services + $(INSTALL_DATA) ./files/service-http $(1)/etc/avahi/services/http.service + $(INSTALL_DATA) ./files/service-ssh $(1)/etc/avahi/services/ssh.service + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/avahi-daemon.init $(1)/etc/init.d/avahi-daemon +endef + +define Package/avahi-dnsconfd/install + $(INSTALL_DIR) $(1)/etc/avahi + $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(1)/etc/avahi/ + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/avahi-dnsconfd $(1)/usr/sbin/ endef $(eval $(call BuildPackage,libavahi)) +$(eval $(call BuildPackage,avahi-autoipd)) $(eval $(call BuildPackage,avahi-daemon)) $(eval $(call BuildPackage,avahi-dnsconfd)) -$(eval $(call RequireCommand,pkg-config, \ - $(PKG_NAME) requires pkg-config. \ +$(eval $(call RequireCommand,intltool-update, \ + $(PKG_NAME) requires intltool >= 0.35.0 \ ))