You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
898 B

  1. #
  2. # Copyright (C) 2018-2019 Luiz Angelo Daros de Luca
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=switchdev-poller
  8. PKG_VERSION:=1.0.1
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
  11. PKG_LICENSE:=GPLv2
  12. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/switchdev-poller
  15. SECTION:=net
  16. CATEGORY:=Network
  17. DEPENDS:=+swconfig
  18. TITLE:=Poll switchdev port to bring CPU ports up/down
  19. PKGARCH:=all
  20. endef
  21. define Package/switchdev-poller/description
  22. This service monitors switchdev ports and brings down CPU ports when
  23. all related non-CPU vlan ports are also down. Otherwise, it brings
  24. the port up.
  25. endef
  26. define Build/Compile
  27. endef
  28. define Package/switchdev-poller/install
  29. $(CP) ./files/* $(1)
  30. endef
  31. $(eval $(call BuildPackage,switchdev-poller))