op-packages/pingcontrol/Makefile
github-actions[bot] acf702ebcc 🦄 Sync 2026-04-24 02:45:08
2026-04-24 02:45:08 +08:00

41 lines
845 B
Makefile
Executable File

:
include $(TOPDIR)/rules.mk
PKG_NAME:=pingcontrol
PKG_VERSION:=1
PKG_RELEASE:=5
PKG_BUILD_DIR:=$(BUILD_DIR)/pingcontrol
include $(INCLUDE_DIR)/package.mk
define Package/pingcontrol
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Network interface watchdog
PKGARCH:=all
endef
define Package/pingcontrol/description
This package contains a utility for managing the interface using ping requests.
endef
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/pingcontrol/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) ./files/pingcontrol $(1)/bin/
$(INSTALL_DIR) $(1)/etc/config
$(CP) ./files/pingcontrol.config $(1)/etc/config/pingcontrol
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/pingcontrol.init $(1)/etc/init.d/pingcontrol
endef
$(eval $(call BuildPackage,pingcontrol))