source: packages/net/lsm/Makefile @ 24872

Last change on this file since 24872 was 24872, checked in by jow, 6 years ago

[packages] lsm: fix compilation with ccache (#8539)

File size: 1.3 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=lsm
11PKG_VERSION:=0.60
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://lsm.foobar.fi/download
16PKG_MD5SUM:=f4748308c0a1caa98d7e756778954116
17
18include $(INCLUDE_DIR)/package.mk
19
20PKG_UNPACK += && rmdir $(PKG_BUILD_DIR) && mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR)
21
22define Package/lsm
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+ssmtp
26  TITLE:=A link state monitor
27  URL:=http://lsm.foobar.fi/
28endef
29
30define 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.
33endef
34
35define Package/lsm/conffiles
36/etc/lsm/lsm.conf
37endef
38
39define Build/Compile
40        $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)"
41endef
42
43define 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
52endef
53
54$(eval $(call BuildPackage,lsm))
Note: See TracBrowser for help on using the repository browser.