pypcap package
[openwrt/svn-archive/archive.git] / net / pypcap / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pypcap
4 PKG_VERSION:=1.1
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://pypcap.googlecode.com/files
9 PKG_CAT:=zcat
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/pypcap
17 DEPENDS:=+python +libpcap
18 SECTION:=net
19 CATEGORY:=Network
20 TITLE:=pypcap
21 DESCRIPTION:=\
22 pypcap
23 URL:=http://www
24 endef
25
26 define Build/Compile
27 cd $(PKG_BUILD_DIR); \
28 PCAP_HOME=$(STAGING_DIR)/usr \
29 $(STAGING_DIR)/usr/bin/hostpython ./setup.py build
30 endef
31
32 define Package/pypcap/install
33 cd $(PKG_BUILD_DIR); \
34 $(STAGING_DIR)/usr/bin/hostpython ./setup.py install \
35 --no-compile --prefix $(PKG_INSTALL_DIR)/usr
36 cp -a $(PKG_INSTALL_DIR)/* $(1)/
37 endef
38
39 $(eval $(call BuildPackage,pypcap))