packages/ushare: add /etc/config/ushare to conffiles define
[openwrt/svn-archive/archive.git] / net / lsm / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lsm
11 PKG_VERSION:=0.60
12 PKG_RELEASE:=2
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 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
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 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CC="$(TARGET_CC)" \
42 CFLAGS="$(TARGET_CFLAGS)"
43 endef
44
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
54 endef
55
56 $(eval $(call BuildPackage,lsm))