Update arpwatch to 2.1a15 (#3789)
[packages.git] / net / arpwatch / Makefile
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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=arpwatch
12 PKG_VERSION:=2.1a15
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.free.fr/.mirrors1/ftp.gentoo.org/distfiles/
17 PKG_MD5SUM:=cebfeb99c4a7c2a6cee2564770415fe7
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/arpwatch
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libpcap
25   TITLE:=Ethernet station activity monitor
26   URL:=http://www-nrg.ee.lbl.gov/
27 endef
28
29 define Package/arpwatch/description
30         Ethernet monitor program for keeping track of ethernet/ip address
31         pairings.
32 endef
33
34 define Package/arpwatch/conffiles
35 /etc/arpwatch/arp.dat
36 endef
37
38 define Build/Compile
39         $(MAKE) -C $(PKG_BUILD_DIR) \
40                 ARPDIR=/etc/arpwatch \
41                 CCOPT="$(TARGET_CFLAGS)" \
42                 INCLS="-I. -I$(STAGING_DIR)/usr/include" \
43                 LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
44 endef
45
46 define Package/arpwatch/install
47         $(INSTALL_DIR) $(1)/etc/arpwatch
48         $(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,arpwatch))