3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=30645001f4b97019677cad88d3811904
11 http
://www.tcpdump.org
/release \
12 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,TCPDUMP
,tcpdump
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 BUILD_CC
=$(TARGET_CC
) HOSTCC
=$(HOSTCC
) \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
28 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
30 ac_cv_linux_vers
=$(LINUX_VERSION
) \
31 td_cv_buggygetaddrinfo
="no" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
57 touch
$(PKG_BUILD_DIR
)/.configured
59 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 CCOPT
="$(TARGET_CFLAGS)" INCLS
="-I. -I$(STAGING_DIR)/usr/include"
62 mkdir
-p
$(PKG_INSTALL_DIR
)
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 touch
$(PKG_BUILD_DIR
)/.built
69 install -m0755
-d
$(IDIR_TCPDUMP
)/usr
/sbin
70 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/tcpdump
$(IDIR_TCPDUMP
)/usr
/sbin
/
71 $(RSTRIP
) $(IDIR_TCPDUMP
)
72 $(IPKG_BUILD
) $(IDIR_TCPDUMP
) $(PACKAGE_DIR
)
This page took 0.040655 seconds and 5 git commands to generate.