PKG_NAME:=avahi
PKG_VERSION:=0.7
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION) \
PKG_HASH:=57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
+PKG_LICENSE:=LGPL-2.1-or-later
+PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:avahi:avahi
PKG_BUILD_DEPENDS:=intltool/host
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
-ifeq ($(BUILD_VARIANT),dbus)
-PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)/dbus/$(PKG_NAME)-$(PKG_VERSION)
-else
-PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)/nodbus/$(PKG_NAME)-$(PKG_VERSION)
-endif
-
include $(INCLUDE_DIR)/package.mk
define Package/avahi/Default
# Copyright (C) 2006 OpenWrt.org
START=61
-BIN=avahi-daemon
-DEFAULT=/etc/default/$BIN
-OPTIONS="-D"
-RUN_D=/var/run/$BIN
+USE_PROCD=1
+PROG=avahi-daemon
-start() {
- [ -f $DEFAULT ] && . $DEFAULT
- mkdir -p $RUN_D
- $BIN $OPTIONS
+start_service() {
+ procd_open_instance
+ procd_set_param command "$PROG"
+ procd_append_param command -s
+ procd_set_param respawn
+ procd_close_instance
}
-stop() {
- $BIN -k
+reload_service() {
+ procd_send_signal "$PROG"
}
-
-reload() {
- $BIN -r
-}
-