update php-apc to 3.0.16, disable pthread mutex's as they are on by default now.
[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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/arpwatch
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap
27 TITLE:=Ethernet station activity monitor
28 URL:=http://nbd.vd-s.ath.cx/openwrt
29 endef
30
31 define Package/arpwatch/description
32 Ethernet monitor program for keeping track of ethernet/ip address pairings
33 endef
34
35 define Package/arpwatch/conffiles
36 /etc/arpwatch/arp.dat
37 endef
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 ARPDIR=/etc/arpwatch \
42 CCOPT="$(TARGET_CFLAGS)" \
43 INCLS="-I. -I$(STAGING_DIR)/usr/include" \
44 LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
45 endef
46
47 define Package/arpwatch/install
48 $(INSTALL_DIR) $(1)/etc/arpwatch
49 $(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(CP) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,arpwatch))