mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 17:41:20 +00:00
switchdev-poller: makefile cleanup
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
This commit is contained in:
@@ -12,7 +12,6 @@ PKG_RELEASE:=1
|
|||||||
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/switchdev-poller
|
define Package/switchdev-poller
|
||||||
@@ -24,17 +23,19 @@ define Package/switchdev-poller
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/switchdev-poller/description
|
define Package/switchdev-poller/description
|
||||||
This service monitors switchdev ports and brings down CPU ports when
|
This service monitors switchdev ports and brings down CPU ports when
|
||||||
all related non-CPU vlan ports are also down. Otherwise, it brings
|
all related non-CPU vlan ports are also down. Otherwise, it brings
|
||||||
the port up.
|
the port up.
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/switchdev-poller/install
|
define Package/switchdev-poller/install
|
||||||
$(CP) ./files/* $(1)
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
$(INSTALL_BIN) ./files/switchdev-poller.init $(1)/etc/init.d/switchdev-poller
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/switchdev-poller
|
||||||
|
$(INSTALL_BIN) ./files/switchdev-poller $(1)/usr/lib/switchdev-poller/switchdev-poller
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,switchdev-poller))
|
$(eval $(call BuildPackage,switchdev-poller))
|
||||||
|
|||||||
Reference in New Issue
Block a user