00fd6ce9b4
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7554 3c298f89-4303-0410-b956-a3cf2f4a3e73
40 lines
851 B
Makefile
40 lines
851 B
Makefile
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_CAT:=zcat
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/pypcap
|
|
DEPENDS:=+python +libpcap
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=pypcap
|
|
DESCRIPTION:=\
|
|
pypcap
|
|
URL:=http://www
|
|
endef
|
|
|
|
define Build/Compile
|
|
cd $(PKG_BUILD_DIR); \
|
|
PCAP_HOME=$(STAGING_DIR)/usr \
|
|
$(STAGING_DIR)/usr/bin/hostpython ./setup.py build
|
|
endef
|
|
|
|
define Package/pypcap/install
|
|
cd $(PKG_BUILD_DIR); \
|
|
$(STAGING_DIR)/usr/bin/hostpython ./setup.py install \
|
|
--no-compile --prefix $(PKG_INSTALL_DIR)/usr
|
|
cp -a $(PKG_INSTALL_DIR)/* $(1)/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,pypcap))
|