packages/net/arpwatch/Makefile
nbd ac5d4ca3dc work around wrong permissions in the arpwatch tarball - fixes avr32 compile issues
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12908 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-08 16:31:11 +00:00

59 lines
1.3 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=arpwatch
PKG_VERSION:=2.1a15
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.free.fr/.mirrors1/ftp.gentoo.org/distfiles/
PKG_MD5SUM:=cebfeb99c4a7c2a6cee2564770415fe7
include $(INCLUDE_DIR)/package.mk
define Package/arpwatch
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap
TITLE:=Ethernet station activity monitor
URL:=http://www-nrg.ee.lbl.gov/
endef
define Package/arpwatch/description
Ethernet monitor program for keeping track of ethernet/ip address
pairings.
endef
define Package/arpwatch/conffiles
/etc/arpwatch/arp.dat
endef
define Build/Prepare
$(call Build/Prepare/Default)
chmod -R u+w $(PKG_BUILD_DIR)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
ARPDIR=/etc/arpwatch \
CCOPT="$(TARGET_CFLAGS)" \
INCLS="-I. -I$(STAGING_DIR)/usr/include" \
LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
endef
define Package/arpwatch/install
$(INSTALL_DIR) $(1)/etc/arpwatch
$(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,arpwatch))