6 LIBPCAP_SOURCE
:=libpcap-
$(LIBPCAP_VERSION
).
tar.gz
7 LIBPCAP_SITE
:=http
://www.tcpdump.org
/release
/
8 LIBPCAP_DIR
:=$(BUILD_DIR
)/libpcap-
$(LIBPCAP_VERSION
)
11 LIBPCAP_PATCH_DIR
:= $(SOURCE_DIR
)/openwrt
/patches
/libpcap
13 LIBPCAP_BUILD_DIR
:= $(BUILD_DIR
)/libpcap_
$(LIBPCAP_VERSION
)-$(LIBPCAP_RELEASE
)
14 LIBPCAP_IPK_DIR
:= $(OPENWRT_IPK_DIR
)/libpcap
15 LIBPCAP_IPK
:= $(LIBPCAP_BUILD_DIR
)_
$(ARCH
).ipk
18 $(DL_DIR
)/$(LIBPCAP_SOURCE
):
19 $(WGET
) -P
$(DL_DIR
) $(LIBPCAP_SITE
)/$(LIBPCAP_SOURCE
)
22 $(LIBPCAP_DIR
)/.stamp-unpacked
: $(DL_DIR
)/$(LIBPCAP_SOURCE
)
23 $(LIBPCAP_CAT
) $(DL_DIR
)/$(LIBPCAP_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
25 touch
$(LIBPCAP_DIR
)/.stamp-unpacked
28 $(LIBPCAP_DIR
)/.stamp-patched
: $(LIBPCAP_DIR
)/.stamp-unpacked
29 $(SOURCE_DIR
)/patch-kernel.sh
$(LIBPCAP_DIR
) $(LIBPCAP_PATCH_DIR
)
30 $(SOURCE_DIR
)/patch-kernel.sh
$(LIBPCAP_DIR
) $(LIBPCAP_DIR
)/debian
/patches
*patch
32 touch
$(LIBPCAP_DIR
)/.stamp-patched
35 $(LIBPCAP_DIR
)/.stamp-configured
: $(LIBPCAP_DIR
)/.stamp-patched
37 rm -rf config.cache
; \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS)" \
40 ac_cv_linux_vers
="2" \
42 --target
=$(GNU_TARGET_NAME
) \
43 --host
=$(GNU_TARGET_NAME
) \
44 --build
=$(GNU_HOST_NAME
) \
49 --libexecdir
=/usr
/lib
/locate \
51 --datadir=/usr
/share \
52 --localstatedir
=/var
/lib \
53 --mandir=/usr
/share
/man \
54 --infodir=/usr
/share
/info \
55 --includedir=/usr
/include \
62 touch
$(LIBPCAP_DIR
)/.stamp-configured
65 $(LIBPCAP_DIR
)/.stamp-built
: $(LIBPCAP_DIR
)/.stamp-configured
69 CCOPT
="$(TARGET_OPTIMIZATION)" \
71 touch
$(LIBPCAP_DIR
)/.stamp-built
74 $(LIBPCAP_DIR
)/.stamp-installed
: $(LIBPCAP_DIR
)/.stamp-built
75 mkdir
-p
$(LIBPCAP_BUILD_DIR
)
78 DESTDIR
="$(LIBPCAP_BUILD_DIR)" \
81 install -m0644
$(LIBPCAP_BUILD_DIR
)/usr
/include/pcap
*.h
$(STAGING_DIR
)/include/
82 install -m0644
$(LIBPCAP_BUILD_DIR
)/usr
/lib
/libpcap.a
$(STAGING_DIR
)/lib
/
83 install -m0755
$(LIBPCAP_BUILD_DIR
)/usr
/lib
/libpcap.so
* $(STAGING_DIR
)/lib
/
85 rm -rf
$(LIBPCAP_BUILD_DIR
)/usr
/share
86 rm -rf
$(LIBPCAP_BUILD_DIR
)/usr
/include
87 rm -rf
$(LIBPCAP_BUILD_DIR
)/usr
/lib
/*.a
88 rm -rf
$(LIBPCAP_BUILD_DIR
)/usr
/lib
/*.so
90 $(STRIP
) $(LIBPCAP_BUILD_DIR
)/usr
/lib
/libpcap.so.
*
92 touch
$(LIBPCAP_DIR
)/.stamp-installed
95 $(LIBPCAP_IPK
): $(LIBPCAP_DIR
)/.stamp-installed
96 cp
-a
$(LIBPCAP_IPK_DIR
)/CONTROL
$(LIBPCAP_BUILD_DIR
)/
97 perl
-pi
-e
"s/^Vers.*:.*$$/Version: $(LIBPCAP_VERSION)-$(LIBPCAP_RELEASE)/" $(LIBPCAP_BUILD_DIR
)/CONTROL
/control
98 perl
-pi
-e
"s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(LIBPCAP_BUILD_DIR
)/CONTROL
/control
99 cd
$(BUILD_DIR
); $(IPKG_BUILD
) $(LIBPCAP_BUILD_DIR
)
102 libpcap-source
: $(DL_DIR
)/$(LIBPCAP_SOURCE
)
104 libpcap-ipk
: ipkg-utils
$(LIBPCAP_IPK
)
107 $(MAKE
) -C
$(LIBPCAP_DIR
) clean
110 rm -rf
$(LIBPCAP_DIR
)
111 rm -rf
$(LIBPCAP_BUILD_DIR
)
112 rm -rf
$(LIBPCAP_IPK
)
113 rm -rf
$(STAGING_DIR
)/include/pcap
*.h
114 rm -rf
$(STAGING_DIR
)/lib
/libpcap.a
115 rm -rf
$(STAGING_DIR
)/lib
/libpcap.so
*
This page took 0.051538 seconds and 5 git commands to generate.