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
:=ftp
://ftp.free.fr
/.mirrors1
/ftp.gentoo.org
/distfiles
/
17 PKG_MD5SUM
:=cebfeb99c4a7c2a6cee2564770415fe7
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/arpwatch
25 TITLE
:=Ethernet station activity monitor
26 URL
:=http
://www-nrg.ee.lbl.gov
/
29 define Package
/arpwatch
/description
30 Ethernet monitor program for keeping track of ethernet
/ip address
34 define Package
/arpwatch
/conffiles
39 $(call Build
/Prepare
/Default
)
40 chmod
-R u
+w
$(PKG_BUILD_DIR
)
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 ARPDIR
=/etc
/arpwatch \
46 CCOPT
="$(TARGET_CFLAGS)" \
47 INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
48 LIBS
="-L$(STAGING_DIR)/usr/lib -lpcap"
51 define Package
/arpwatch
/install
52 $(INSTALL_DIR
) $(1)/etc
/arpwatch
53 $(CP
) $(PKG_BUILD_DIR
)/arp.dat
$(1)/etc
/arpwatch
/
54 $(INSTALL_DIR
) $(1)/usr
/sbin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/arp
{watch
,snmp
} $(1)/usr
/sbin
/
58 $(eval
$(call BuildPackage
,arpwatch
))