X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=net%2Farpwatch%2FMakefile;h=fe981fef5a5f021a56bd92217e119a9ba701c59a;hb=e48a334df508de49a04bce6e442b6470ef3731e0;hp=5f4d9488afd4d833175f79f1b4690445e527aa8a;hpb=293efb78310dd7ee6e69181aacf2146ac73b9cdb;p=packages.git diff --git a/net/arpwatch/Makefile b/net/arpwatch/Makefile index 5f4d9488a..fe981fef5 100644 --- a/net/arpwatch/Makefile +++ b/net/arpwatch/Makefile @@ -1,23 +1,22 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006-2009 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.1a11 -PKG_RELEASE:=1 +PKG_VERSION:=2.1a15 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt -PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e -PKG_CAT:=zcat +PKG_SOURCE_URL:=ftp://ftp.free.fr/.mirrors1/ftp.gentoo.org/distfiles/ +PKG_MD5SUM:=cebfeb99c4a7c2a6cee2564770415fe7 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +# use a subdirectory to prevent configure for finding libpcap build dir +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk @@ -26,30 +25,38 @@ define Package/arpwatch CATEGORY:=Network DEPENDS:=+libpcap TITLE:=Ethernet station activity monitor - URL:=http://nbd.vd-s.ath.cx/openwrt + URL:=http://www-nrg.ee.lbl.gov/ endef define Package/arpwatch/description - Ethernet monitor program for keeping track of ethernet/ip address pairings + 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" + INCLS="-I. $(TARGET_CPPFLAGS)" \ + LIBS="$(TARGET_LDFLAGS) -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 - $(CP) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/arpwatch.init $(1)/etc/init.d/arpwatch endef $(eval $(call BuildPackage,arpwatch))