Skip to content

Commit

Permalink
package: mdnsd: finit: add missing mdnsd finit hook
Browse files Browse the repository at this point in the history
Signed-off-by: Joacim Zetterling <[email protected]>
  • Loading branch information
joazet committed May 8, 2024
1 parent c6e1821 commit 3dca671
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/include/os.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
5 changes: 5 additions & 0 deletions package/mdnsd-finit/Config.in
Original file line number Diff line number Diff line change
@@ -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.
24 changes: 24 additions & 0 deletions package/mdnsd-finit/mdnsd-finit.mk
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 2 additions & 0 deletions package/mdnsd-finit/mdnsd-finit.svc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Launch mDNS-SD daemon
service [2345789] /usr/sbin/mdnsd -sn -- mDNS-SD daemon

0 comments on commit 3dca671

Please sign in to comment.