1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2021 Nick Hainke <vincent@systemli.org>
6 include $(TOPDIR
)/rules.mk
10 PKG_RELEASE
:=$(AUTORELEASE
)
12 PKG_MAINTAINER
:=Nick Hainke
<vincent@systemli.org
>
13 PKG_LICENSE
:=GPL-2.0
-only
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/naywatch
20 TITLE
:=Watchdog for IPv6 links
22 DEPENDS
:=@IPV6
+owipcalc
25 define Package
/naywatch
/description
26 Reboots or triggers watchdog if no link-local neighbor is available.
29 Be careful when you do a sysupgrade. Stop naywatch first
, and make
30 sure procd took control again of the watchdog.
31 You can do this using
'ubus call system watchdog'. Status should be
"running".
34 define Package
/naywatch
/conffiles
41 define Package
/naywatch
/install
42 $(INSTALL_DIR
) $(1)/etc
/init.d
43 $(INSTALL_BIN
) .
/files
/naywatch.init
$(1)/etc
/init.d
/naywatch
44 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(INSTALL_BIN
) .
/files
/naywatch.sh
$(1)/usr
/bin
/naywatch
46 $(INSTALL_DIR
) $(1)/etc
/config
47 $(INSTALL_DATA
) .
/files
/naywatch.config
$(1)/etc
/config
/naywatch
50 $(eval
$(call BuildPackage
,naywatch
))