2007-09-06 02:52:35 +00:00
|
|
|
#
|
2008-04-14 01:06:00 +00:00
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-09-06 02:52:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pypcap
|
|
|
|
PKG_VERSION:=1.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://pypcap.googlecode.com/files
|
|
|
|
PKG_MD5SUM:=034c3cbbfa81aa19e8f685b767c65764
|
2008-04-14 01:06:00 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=python
|
2007-09-06 02:52:35 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2007-10-21 10:20:01 +00:00
|
|
|
-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
|
2007-10-24 15:58:19 +00:00
|
|
|
ifneq ($(MAKECMDGOALS),download)
|
|
|
|
$(if $(DUMP)$(Build/Compile/PyMod),,$(error Python packaging code not found.))
|
2007-10-21 10:20:01 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
define Package/python-pcap
|
2008-04-14 01:06:00 +00:00
|
|
|
SUBMENU:=Python
|
2007-10-21 10:20:01 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=Python interface to lipcap
|
|
|
|
URL:=http://code.google.com/p/pypcap/
|
|
|
|
DEPENDS:=python-core +libpcap
|
2007-09-06 02:52:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-pcap/filespec
|
2007-09-06 02:52:35 +00:00
|
|
|
+|$(PYTHON_PKG_DIR)/pcap.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/PyMod,., \
|
|
|
|
install --prefix="$(PKG_INSTALL_DIR)/usr", \
|
|
|
|
PCAP_HOME="$(STAGING_DIR)/usr" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
$(eval $(call PyPackage,python-pcap))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-pcap))
|