diff --git a/configs/include/os.m4 b/configs/include/os.m4 index 7d93315..9926b2f 100644 --- a/configs/include/os.m4 +++ b/configs/include/os.m4 @@ -38,6 +38,7 @@ BR2_PACKAGE_LLDPD=y BR2_PACKAGE_LM_SENSORS=y BR2_PACKAGE_MCJOIN=y BR2_PACKAGE_MDNSD=y +BR2_PACKAGE_MDNSD_FINIT=y BR2_PACKAGE_MDIO_TOOLS=y BR2_PACKAGE_MG=y BR2_PACKAGE_MRP=y diff --git a/package/Config.in b/package/Config.in index 6d78e38..72145c8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1,6 +1,7 @@ source "$BR2_EXTERNAL_NETBOX_PATH/package/brist/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/factory/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/finit/Config.in" +source "$BR2_EXTERNAL_NETBOX_PATH/package/mdnsd-finit/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/libnsh/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/mcjoin/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/nemesis/Config.in" diff --git a/package/mdnsd-finit/Config.in b/package/mdnsd-finit/Config.in new file mode 100644 index 0000000..e39aea0 --- /dev/null +++ b/package/mdnsd-finit/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_MDNSD_FINIT + bool mdnsd-finit + select BR2_PACKAGE_AVAHI + help + Advertises the initial $(HOSTNAME).local and network.local with Avahi. diff --git a/package/mdnsd-finit/mdnsd-finit.mk b/package/mdnsd-finit/mdnsd-finit.mk new file mode 100644 index 0000000..ec6172a --- /dev/null +++ b/package/mdnsd-finit/mdnsd-finit.mk @@ -0,0 +1,24 @@ +################################################################################ +# +# mdnsd-finit +# +################################################################################ + +MDNSD_FINIT_VERSION = 0.12 +MDNSD_FINIT_SITE = +MDNSD_FINIT_SOURCE = +MDNSD_FINIT_LICENSE = ISC +MDNSD_FINIT_LICENSE_FILES = LICENSE +MDNSD_FINIT_DEPENDENCIES = host-pkgconf avahi +MDNSD_FINIT_INSTALL_STAGING = YES + +define MDNSD_FINIT_INSTALL_FINIT_SVC + @echo "#### MDNSD_INSTALL_FINIT_SVC" + $(INSTALL) -D -m 0644 $(BR2_EXTERNAL_NETBOX_PATH)/package/mdnsd-finit/mdnsd-finit.svc \ + $(FINIT_D)/available/mdnsd.conf + $(INSTALL) -d -m 0755 $(FINIT_D)/enabled + ln -sf ../available/mdnsd.conf $(FINIT_D)/enabled/mdnsd.conf +endef +MDNSD_FINIT_POST_INSTALL_TARGET_HOOKS += MDNSD_FINIT_INSTALL_FINIT_SVC + +$(eval $(generic-package)) diff --git a/package/mdnsd-finit/mdnsd-finit.svc b/package/mdnsd-finit/mdnsd-finit.svc new file mode 100644 index 0000000..454d890 --- /dev/null +++ b/package/mdnsd-finit/mdnsd-finit.svc @@ -0,0 +1,2 @@ +# Launch mDNS-SD daemon +service [2345789] /usr/sbin/mdnsd -sn -- mDNS-SD daemon