2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-07-30 18:19:48 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=arpwatch
|
|
|
|
PKG_VERSION:=2.1a11
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
|
|
|
|
PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e
|
2006-07-30 18:19:48 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/arpwatch
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libpcap
|
|
|
|
TITLE:=Ethernet station activity monitor
|
|
|
|
URL:=http://nbd.vd-s.ath.cx/openwrt
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/arpwatch/description
|
|
|
|
Ethernet monitor program for keeping track of ethernet/ip address pairings
|
|
|
|
endef
|
|
|
|
|
2006-07-30 18:19:48 +00:00
|
|
|
define Package/arpwatch/conffiles
|
|
|
|
/etc/arpwatch/arp.dat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
ARPDIR=/etc/arpwatch \
|
|
|
|
CCOPT="$(TARGET_CFLAGS)" \
|
|
|
|
INCLS="-I. -I$(STAGING_DIR)/usr/include" \
|
|
|
|
LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/arpwatch/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/arpwatch
|
2006-07-30 18:19:48 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
|
2006-07-30 18:19:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,arpwatch))
|