2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
17 PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
24 define Package/arpwatch
28 TITLE:=Ethernet station activity monitor
29 URL:=http://nbd.vd-s.ath.cx/openwrt
32 define Package/arpwatch/description
33 Ethernet monitor program for keeping track of ethernet/ip address pairings
36 define Package/arpwatch/conffiles
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 ARPDIR=/etc/arpwatch \
43 CCOPT="$(TARGET_CFLAGS)" \
44 INCLS="-I. -I$(STAGING_DIR)/usr/include" \
45 LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
48 define Package/arpwatch/install
49 $(INSTALL_DIR) $(1)/etc/arpwatch
50 $(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(CP) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
55 $(eval $(call BuildPackage,arpwatch))