net/lsm: Upgrade to new upstream version 0.60. (thank you Brian J. Murrell)
[openwrt/svn-archive/archive.git] / net / lsm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lsm
11 PKG_VERSION:=0.60
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://lsm.foobar.fi/download
16 PKG_MD5SUM:=f4748308c0a1caa98d7e756778954116
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_UNPACK += && rmdir $(PKG_BUILD_DIR) && mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR)
21
22 define Package/lsm
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+ssmtp
26 TITLE:=A link state monitor
27 URL:=http://lsm.foobar.fi/
28 endef
29
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.
33 endef
34
35 define Package/lsm/conffiles
36 /etc/lsm/lsm.conf
37 endef
38
39 define Build/Compile
40 echo sed -ie 's/\$$$$(CC)/mipsel-openwrt-linux-uclibc-gcc/g' $(PKG_BUILD_DIR)/Makefile
41 $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC)
42 endef
43
44 define Package/lsm/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lsm $(1)/usr/sbin/
47 $(INSTALL_DIR) $(1)/etc/lsm
48 $(INSTALL_DIR) $(1)/etc/lsm/script.d
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_DATA) ./files/lsm.conf $(1)/etc/lsm/lsm.conf
51 $(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script
52 $(INSTALL_BIN) ./files/lsm.init $(1)/etc/init.d/lsm
53 endef
54
55 $(eval $(call BuildPackage,lsm))