diff --git a/libs/avahi/Makefile b/libs/avahi/Makefile index ea4353be8..9dc3270f5 100644 --- a/libs/avahi/Makefile +++ b/libs/avahi/Makefile @@ -18,7 +18,7 @@ endif PKG_NAME:=avahi PKG_VERSION:=0.6.31 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -103,6 +103,7 @@ define Package/avahi-daemon DEPENDS:=+libavahi +libexpat +librt +libdaemon endif TITLE+= (daemon) + MENU:=1 endef define Package/avahi-daemon/description @@ -113,7 +114,39 @@ endef define Package/avahi-daemon/conffiles /etc/avahi/avahi-daemon.conf +endef + +define Package/avahi-daemon-service-http + $(call Package/avahi/Default) + SUBMENU:=IP Addresses and Names + DEPENDS:=avahi-daemon + TITLE:=Announce HTTP service +endef + +define Package/avahi-daemon-service-http/description +$(call Package/avahi/Default/description) + . + This package contains the service definition for announcing HTTP service. +endef + +define Package/avahi-daemon-service-http/conffiles /etc/avahi/services/http.service +endef + +define Package/avahi-daemon-service-ssh + $(call Package/avahi/Default) + SUBMENU:=IP Addresses and Names + DEPENDS:=avahi-daemon + TITLE:=Announce SSH service +endef + +define Package/avahi-daemon-service-ssh/description +$(call Package/avahi/Default/description) + . + This package contains the service definition for announcing SSH service. +endef + +define Package/avahi-daemon-service-ssh/conffiles /etc/avahi/services/ssh.service endef @@ -322,6 +355,16 @@ define Package/avahi-daemon/install $(INSTALL_BIN) ./files/avahi-daemon.init $(1)/etc/init.d/avahi-daemon endef +define Package/avahi-daemon-service-http/install + $(INSTALL_DIR) $(1)/etc/avahi/services + $(INSTALL_DATA) ./files/service-http $(1)/etc/avahi/services/http.service +endef + +define Package/avahi-daemon-service-ssh/install + $(INSTALL_DIR) $(1)/etc/avahi/services + $(INSTALL_DATA) ./files/service-ssh $(1)/etc/avahi/services/ssh.service +endef + define Package/avahi-dnsconfd/install $(INSTALL_DIR) $(1)/etc/avahi $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(1)/etc/avahi/ @@ -336,4 +379,6 @@ $(eval $(call BuildPackage,libavahi-dbus-support)) $(eval $(call BuildPackage,libavahi)) $(eval $(call BuildPackage,avahi-autoipd)) $(eval $(call BuildPackage,avahi-daemon)) +$(eval $(call BuildPackage,avahi-daemon-service-http)) +$(eval $(call BuildPackage,avahi-daemon-service-ssh)) $(eval $(call BuildPackage,avahi-dnsconfd)) diff --git a/libs/avahi/files/service-http b/libs/avahi/files/service-http index 7e9be2d42..326203792 100644 --- a/libs/avahi/files/service-http +++ b/libs/avahi/files/service-http @@ -1,7 +1,7 @@ - Web Server on %h + %h _http._tcp 80 diff --git a/libs/avahi/files/service-ssh b/libs/avahi/files/service-ssh index b41580378..b44585157 100644 --- a/libs/avahi/files/service-ssh +++ b/libs/avahi/files/service-ssh @@ -1,7 +1,7 @@ - Secure Shell on %h + %h _ssh._tcp 22 diff --git a/net/openssh/Makefile b/net/openssh/Makefile index d4930f855..055b0030e 100644 --- a/net/openssh/Makefile +++ b/net/openssh/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openssh PKG_VERSION:=6.7p1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \ @@ -131,6 +131,21 @@ define Package/openssh-sftp-server/description OpenSSH SFTP server. endef +define Package/openssh-sftp-avahi-service + $(call Package/openssh/Default) + TITLE+= (SFTP Avahi service) + DEPENDS:=+openssh-sftp-server +avahi-daemon +endef + +define Package/openssh-sftp-avahi-service/description + This package contains the service definition for announcing + SFTP support via mDNS/DNS-SD. +endef + +define Package/openssh-sftp-avahi-service/conffiles +/etc/avahi/services/sftp-ssh.service +endef + CONFIGURE_ARGS+= \ $(DISABLE_NLS) \ --sysconfdir=/etc/ssh \ @@ -259,6 +274,11 @@ define Package/openssh-sftp-server/install ln -sf ../lib/sftp-server $(1)/usr/libexec/sftp-server endef +define Package/openssh-sftp-avahi-service/install + $(INSTALL_DIR) $(1)/etc/avahi/services + $(INSTALL_DATA) ./files/sftp-ssh.service $(1)/etc/avahi/services/ +endef + $(eval $(call BuildPackage,openssh-client)) $(eval $(call BuildPackage,openssh-moduli)) $(eval $(call BuildPackage,openssh-client-utils)) @@ -267,3 +287,4 @@ $(eval $(call BuildPackage,openssh-server)) $(eval $(call BuildPackage,openssh-server-pam)) $(eval $(call BuildPackage,openssh-sftp-client)) $(eval $(call BuildPackage,openssh-sftp-server)) +$(eval $(call BuildPackage,openssh-sftp-avahi-service)) diff --git a/net/openssh/files/sftp-ssh.service b/net/openssh/files/sftp-ssh.service new file mode 100644 index 000000000..17e09274c --- /dev/null +++ b/net/openssh/files/sftp-ssh.service @@ -0,0 +1,9 @@ + + + + %h + + _sftp-ssh._tcp + 22 + + diff --git a/sound/mpd/Makefile b/sound/mpd/Makefile index 9146a8443..8b36a4701 100644 --- a/sound/mpd/Makefile +++ b/sound/mpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mpd PKG_VERSION:=0.18.16 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://www.musicpd.org/download/mpd/0.18/ @@ -63,7 +63,6 @@ $(call Package/mpd/Default/description) endef define Package/mpd-full/conffiles -/etc/avahi/services/mpd.service /etc/mpd.conf endef @@ -85,6 +84,23 @@ define Package/mpd-mini/conffiles /etc/mpd.conf endef +define Package/mpd-avahi-service +$(call Package/mpd/Default) + TITLE+= (Avahi service) + DEPENDS+=+avahi-daemon +endef + +define Package/mpd-avahi-service/description +$(call Package/mpd/Default/description) + . + This package contains the service definition for announcing the + Music Player Daemon service via mDNS/DNS-SD. +endef + +define Package/mpd-avahi-service/conffiles +/etc/avahi/services/mpd.service +endef + CONFIGURE_ARGS += \ $(call autoconf_bool,CONFIG_IPV6,ipv6) \ --disable-debug \ @@ -198,13 +214,17 @@ endef define Package/mpd-full/install $(call Package/mpd/install,$1) - $(INSTALL_DIR) $(1)/etc/avahi/services - $(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/ endef define Package/mpd-mini/install $(call Package/mpd/install,$1) endef +define Package/mpd-avahi-service/install + $(INSTALL_DIR) $(1)/etc/avahi/services + $(INSTALL_DATA) ./files/mpd.service $(1)/etc/avahi/services/ +endef + $(eval $(call BuildPackage,mpd-full)) $(eval $(call BuildPackage,mpd-mini)) +$(eval $(call BuildPackage,mpd-avahi-service)) diff --git a/sound/mpd/files/mpd.service b/sound/mpd/files/mpd.service index 086a2bb3f..a545f240f 100644 --- a/sound/mpd/files/mpd.service +++ b/sound/mpd/files/mpd.service @@ -1,7 +1,7 @@ - Music Player Daemon on %h + %h _mpd._tcp 6600