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