3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=30645001f4b97019677cad88d3811904
10 PKG_SOURCE_URL
:=http
://www.tcpdump.org
/release
/ \
11 http
://ftp.gwdg.de
/pub
/misc
/tcpdump
/ \
12 http
://www.at.tcpdump.org
/ \
13 http
://www.br.tcpdump.org
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,TCPDUMP
,tcpdump
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 BUILD_CC
=$(TARGET_CC
) HOSTCC
=$(HOSTCC
) \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
29 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
32 td_cv_buggygetaddrinfo
="no" \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
42 --datadir=/usr
/share \
43 --includedir=/usr
/include \
44 --infodir=/usr
/share
/info \
46 --libexecdir
=/usr
/lib \
47 --localstatedir
=/var \
48 --mandir=/usr
/share
/man \
52 $(DISABLE_LARGEFILE
) \
60 $(PKG_BUILD_DIR
)/.built
:
61 rm -rf
$(PKG_INSTALL_DIR
)
62 mkdir
-p
$(PKG_INSTALL_DIR
)
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 CCOPT
="$(TARGET_CFLAGS)" INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
65 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 install -m0755
-d
$(IDIR_TCPDUMP
)/usr
/sbin
71 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/tcpdump
$(IDIR_TCPDUMP
)/usr
/sbin
/
72 $(RSTRIP
) $(IDIR_TCPDUMP
)
73 $(IPKG_BUILD
) $(IDIR_TCPDUMP
) $(PACKAGE_DIR
)
This page took 0.059966 seconds and 5 git commands to generate.