2 # Copyright (C) 2007-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://pypcap.googlecode.com
/files
17 PKG_MD5SUM
:=034c3cbbfa81aa19e8f685b767c65764
19 PKG_BUILD_DEPENDS
:=python
21 include $(INCLUDE_DIR
)/package.mk
22 -include $(if
$(DUMP
),,$(STAGING_DIR
)/mk
/python-package.mk
)
23 ifneq ($(MAKECMDGOALS
),download
)
24 $(if
$(DUMP
)$(Build
/Compile
/PyMod
),,$(error Python packaging code not found.
))
27 define Package
/python-pcap
31 TITLE
:=Python interface to lipcap
32 URL
:=http
://code.google.com
/p
/pypcap
/
33 DEPENDS
:=python-core
+libpcap
36 define PyPackage
/python-pcap
/filespec
37 +|
$(PYTHON_PKG_DIR
)/pcap.so
41 $(call Build
/Compile
/PyMod
,.
, \
42 install --prefix="$(PKG_INSTALL_DIR)/usr", \
43 PCAP_HOME
="$(STAGING_DIR)/usr" \
47 $(eval
$(call PyPackage
,python-pcap
))
48 $(eval
$(call BuildPackage
,python-pcap
))