2 # Copyright (C) 2006 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 include $(INCLUDE_DIR
)/package.mk
20 PKG_UNPACK
+= && rmdir
$(PKG_BUILD_DIR
) && mv
$(BUILD_DIR
)/lsm
$(PKG_BUILD_DIR
)
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
) CC
="$(TARGET_CC)"
43 define Package
/lsm
/install
44 $(INSTALL_DIR
) $(1)/usr
/sbin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lsm
$(1)/usr
/sbin
/
46 $(INSTALL_DIR
) $(1)/etc
/lsm
47 $(INSTALL_DIR
) $(1)/etc
/lsm
/script.d
48 $(INSTALL_DIR
) $(1)/etc
/init.d
49 $(INSTALL_DATA
) .
/files
/lsm.conf
$(1)/etc
/lsm
/lsm.conf
50 $(INSTALL_BIN
) .
/files
/lsm_script
$(1)/etc
/lsm
/script
51 $(INSTALL_BIN
) .
/files
/lsm.init
$(1)/etc
/init.d
/lsm
54 $(eval
$(call BuildPackage
,lsm
))