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.

53 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2010-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=foolsm
  9. PKG_VERSION:=1.0.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://lsm.foobar.fi/download
  13. PKG_HASH:=33210209ca38b3bfef1a9180f765266a134fc811dea8bc06450a3bd48d1d083e
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/foolsm
  16. SECTION:=net
  17. CATEGORY:=Network
  18. DEPENDS:=+ssmtp
  19. TITLE:=A link state monitor
  20. URL:=http://lsm.foobar.fi/
  21. endef
  22. define Package/foolsm/description
  23. foolsm is a link state monitor for carrying out actions when a link
  24. transistions from the up to down state or vice versa.
  25. endef
  26. define Package/foolsm/conffiles
  27. /etc/foolsm/foolsm.conf
  28. endef
  29. define Package/foolsm/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/foolsm $(1)/usr/sbin/
  32. $(INSTALL_DIR) $(1)/etc/foolsm/script.d
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_DATA) ./files/connections.conf $(1)/etc/foolsm/connections.conf
  35. $(INSTALL_DATA) ./files/foolsm.conf $(1)/etc/foolsm/foolsm.conf
  36. $(INSTALL_BIN) ./files/foolsm_script $(1)/etc/foolsm/script
  37. $(INSTALL_BIN) ./files/foolsm.init $(1)/etc/init.d/foolsm
  38. endef
  39. define Package/foolsm/conffiles
  40. /etc/foolsm/connections.conf
  41. /etc/foolsm/foolsm.conf
  42. endef
  43. $(eval $(call BuildPackage,foolsm))