diff options
author | Michael Heimpold <mhei@heimpold.de> | 2014-12-08 23:04:00 +0100 |
---|---|---|
committer | Michael Heimpold <mhei@heimpold.de> | 2014-12-08 23:04:00 +0100 |
commit | d1f7e907a591e8b455718c168f1afa90177a92a5 (patch) | |
tree | 6c99423206365463c6ee68e4d1cfb89f1f3d99ef /libs/avahi | |
parent | 36ea069216b9361f322319da03457635c0251f3b (diff) |
avahi: factor out service files into own packages
This allows the user to select individual services to be announced
via Avahi.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Diffstat (limited to 'libs/avahi')
-rw-r--r-- | libs/avahi/Makefile | 47 |
1 files changed, 46 insertions, 1 deletions
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)) |