2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
18 # use a subdirectory to prevent configure for finding libpcap build dir
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/arpwatch
27 TITLE
:=Ethernet station activity monitor
28 URL
:=http
://www-nrg.ee.lbl.gov
/
31 define Package
/arpwatch
/description
32 Ethernet monitor program for keeping track of ethernet
/ip address
36 define Package
/arpwatch
/conffiles
41 $(call Build
/Prepare
/Default
)
42 chmod
-R u
+w
$(PKG_BUILD_DIR
)
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 ARPDIR
=/etc
/arpwatch \
48 CCOPT
="$(TARGET_CFLAGS)" \
49 INCLS
="-I. $(TARGET_CPPFLAGS)" \
50 LIBS
="$(TARGET_LDFLAGS) -lpcap"
53 define Package
/arpwatch
/install
54 $(INSTALL_DIR
) $(1)/etc
/arpwatch
55 $(CP
) $(PKG_BUILD_DIR
)/arp.dat
$(1)/etc
/arpwatch
/
56 $(INSTALL_DIR
) $(1)/usr
/sbin
57 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/arp
{watch
,snmp
} $(1)/usr
/sbin
/
58 $(INSTALL_DIR
) $(1)/etc
/init.d
59 $(INSTALL_BIN
) .
/files
/arpwatch.init
$(1)/etc
/init.d
/arpwatch
62 $(eval
$(call BuildPackage
,arpwatch
))