2 # Copyright (C) 2010-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://lsm.foobar.fi/download
16 PKG_MD5SUM:=f4748308c0a1caa98d7e756778954116
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 include $(INCLUDE_DIR)/package.mk
26 TITLE:=A link state monitor
27 URL:=http://lsm.foobar.fi/
30 define Package/lsm/description
31 lsm is a link state monitor for carrying out actions when a link
32 transistions from the up to down state or vice versa.
35 define Package/lsm/conffiles
40 $(MAKE) -C $(PKG_BUILD_DIR) \
42 CFLAGS="$(TARGET_CFLAGS)"
45 define Package/lsm/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsm $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/etc/lsm
49 $(INSTALL_DIR) $(1)/etc/lsm/script.d
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_DATA) ./files/lsm.conf $(1)/etc/lsm/lsm.conf
52 $(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script
53 $(INSTALL_BIN) ./files/lsm.init $(1)/etc/init.d/lsm
56 define Package/lsm/conffiles
60 $(eval $(call BuildPackage,lsm))