massive Makefile cleanup, add missing 'svn:keywords' property
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=arpwatch
12 PKG_VERSION:=2.1a11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
17 PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/arpwatch
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpcap
28 TITLE:=Ethernet station activity monitor
29 DESCRIPTION:=\
30 Ethernet monitor program for keeping track of ethernet/ip address pairings
31 URL:=http://nbd.vd-s.ath.cx/openwrt
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 -d -m0755 $(1)/etc/arpwatch
48 $(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
49 install -d -m0755 $(1)/usr/sbin
50 $(CP) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,arpwatch))