2005-03-21 10:12:49 +02:00
|
|
|
# $Id$
|
|
|
|
|
2005-03-07 18:27:36 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tcpdump
|
2006-02-05 19:30:49 +02:00
|
|
|
PKG_VERSION:=3.9.4
|
2005-03-07 18:27:36 +02:00
|
|
|
PKG_RELEASE:=1
|
2006-02-05 19:30:49 +02:00
|
|
|
PKG_MD5SUM:=4b64755bbc8ba1af49c747271a6df5b8
|
2005-03-21 10:12:49 +02:00
|
|
|
|
2005-06-05 20:41:32 +03:00
|
|
|
PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
|
|
|
|
http://ftp.gwdg.de/pub/misc/tcpdump/ \
|
|
|
|
http://www.at.tcpdump.org/ \
|
|
|
|
http://www.br.tcpdump.org/
|
2005-03-07 18:27:36 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
2005-04-14 09:21:21 +03:00
|
|
|
|
2005-04-29 00:55:21 +03:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2005-05-14 14:38:47 +03:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
2005-04-14 09:21:21 +03:00
|
|
|
|
2005-05-14 14:38:47 +03:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-03-07 18:27:36 +02:00
|
|
|
|
2005-05-14 14:38:47 +03:00
|
|
|
$(eval $(call PKG_template,TCPDUMP,tcpdump,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-03-07 18:27:36 +02:00
|
|
|
|
2005-05-20 00:23:03 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
2005-05-14 14:38:47 +03:00
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
2005-03-07 18:27:36 +02:00
|
|
|
BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2005-04-14 09:21:21 +03:00
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
|
2005-06-10 20:19:54 +03:00
|
|
|
ac_cv_linux_vers=2 \
|
2005-04-14 09:21:21 +03:00
|
|
|
td_cv_buggygetaddrinfo="no" \
|
2005-03-07 18:27:36 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2005-04-14 09:21:21 +03:00
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--without-crypto \
|
2005-03-07 18:27:36 +02:00
|
|
|
);
|
2005-05-20 00:23:03 +03:00
|
|
|
touch $@
|
2005-03-07 18:27:36 +02:00
|
|
|
|
2005-05-20 00:23:03 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
2005-05-14 14:38:47 +03:00
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2005-05-20 00:23:03 +03:00
|
|
|
CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
|
2005-05-14 14:38:47 +03:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2005-05-20 00:23:03 +03:00
|
|
|
all install
|
|
|
|
touch $@
|
2005-03-07 18:27:36 +02:00
|
|
|
|
2005-05-14 14:38:47 +03:00
|
|
|
$(IPKG_TCPDUMP):
|
2005-04-19 01:40:59 +03:00
|
|
|
install -m0755 -d $(IDIR_TCPDUMP)/usr/sbin
|
2005-05-14 14:38:47 +03:00
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(IDIR_TCPDUMP)/usr/sbin/
|
2005-04-19 01:40:59 +03:00
|
|
|
$(RSTRIP) $(IDIR_TCPDUMP)
|
2005-04-14 09:21:21 +03:00
|
|
|
$(IPKG_BUILD) $(IDIR_TCPDUMP) $(PACKAGE_DIR)
|