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.

55 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. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/foolsm
  17. SECTION:=net
  18. CATEGORY:=Network
  19. DEPENDS:=+ssmtp
  20. TITLE:=A link state monitor
  21. URL:=http://lsm.foobar.fi/
  22. endef
  23. define Package/foolsm/description
  24. foolsm is a link state monitor for carrying out actions when a link
  25. transistions from the up to down state or vice versa.
  26. endef
  27. define Package/foolsm/conffiles
  28. /etc/foolsm/foolsm.conf
  29. endef
  30. define Package/foolsm/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/foolsm $(1)/usr/sbin/
  33. $(INSTALL_DIR) $(1)/etc/foolsm/script.d
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_DATA) ./files/connections.conf $(1)/etc/foolsm/connections.conf
  36. $(INSTALL_DATA) ./files/foolsm.conf $(1)/etc/foolsm/foolsm.conf
  37. $(INSTALL_BIN) ./files/foolsm_script $(1)/etc/foolsm/script
  38. $(INSTALL_BIN) ./files/foolsm.init $(1)/etc/init.d/foolsm
  39. endef
  40. define Package/foolsm/conffiles
  41. /etc/foolsm/connections.conf
  42. /etc/foolsm/foolsm.conf
  43. endef
  44. $(eval $(call BuildPackage,foolsm))