packages/net/lsm/Makefile
jow 45c4b14fa3 [packages] lsm: fix compilation with ccache (#8539)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@24872 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-01 23:15:42 +00:00

55 lines
1.3 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=lsm
PKG_VERSION:=0.60
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://lsm.foobar.fi/download
PKG_MD5SUM:=f4748308c0a1caa98d7e756778954116
include $(INCLUDE_DIR)/package.mk
PKG_UNPACK += && rmdir $(PKG_BUILD_DIR) && mv $(BUILD_DIR)/lsm $(PKG_BUILD_DIR)
define Package/lsm
SECTION:=net
CATEGORY:=Network
DEPENDS:=+ssmtp
TITLE:=A link state monitor
URL:=http://lsm.foobar.fi/
endef
define Package/lsm/description
lsm is a link state monitor for carrying out actions when a link
transistions from the up to down state or vice versa.
endef
define Package/lsm/conffiles
/etc/lsm/lsm.conf
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)"
endef
define Package/lsm/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lsm $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/lsm
$(INSTALL_DIR) $(1)/etc/lsm/script.d
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DATA) ./files/lsm.conf $(1)/etc/lsm/lsm.conf
$(INSTALL_BIN) ./files/lsm_script $(1)/etc/lsm/script
$(INSTALL_BIN) ./files/lsm.init $(1)/etc/init.d/lsm
endef
$(eval $(call BuildPackage,lsm))