Updated to new upstream release
[openwrt.git] / openwrt / package / tcpdump / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=tcpdump
6 PKG_VERSION:=3.8.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=30645001f4b97019677cad88d3811904
9
10 PKG_SOURCE_URL:=http://www.tcpdump.org/release/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,TCPDUMP,tcpdump,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
27 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
28 ac_cv_linux_vers=$(LINUX_VERSION) \
29 td_cv_buggygetaddrinfo="no" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_NLS) \
49 $(DISABLE_LARGEFILE) \
50 --enable-shared \
51 --disable-static \
52 --enable-ipv6 \
53 --without-crypto \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 rm -rf $(PKG_INSTALL_DIR)
59 mkdir -p $(PKG_INSTALL_DIR)
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
62 DESTDIR="$(PKG_INSTALL_DIR)" \
63 all install
64 touch $@
65
66 $(IPKG_TCPDUMP):
67 install -m0755 -d $(IDIR_TCPDUMP)/usr/sbin
68 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(IDIR_TCPDUMP)/usr/sbin/
69 $(RSTRIP) $(IDIR_TCPDUMP)
70 $(IPKG_BUILD) $(IDIR_TCPDUMP) $(PACKAGE_DIR)
This page took 0.043704 seconds and 5 git commands to generate.