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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
16 PKG_MD5SUM
:=8a3e9a5b814388d7907c639105cb2365
18 PKG_BUILD_DEPENDS
:=python
21 PKG_REMOVE_FILES
:=aclocal.m4 acinclude.m4
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python-package.mk
)
26 define Package
/python-yapsnmp
30 TITLE
:=Python interface to Net-SNMP
31 URL
:=http
://yapsnmp.sourceforge.net
/
32 DEPENDS
:=+python-mini
+libnetsnmp
35 define Package
/python-yapsnmp
/description
36 This package contains a Python SNMP module based on the net-snmp
(formerly
37 known
as ucd-snmp
) library. It
's composed of a low level interface to the
38 library, created using SWIG, and a higher level python module removing all
39 the complexity out of dealing with SNMP.
42 define PyPackage/python-yapsnmp/filespec
43 +|$(PYTHON_PKG_DIR)/netsnmp.py
44 +|$(PYTHON_PKG_DIR)/netsnmpc.so
45 +|$(PYTHON_PKG_DIR)/yapsnmp.py
51 --enable-site-packages-prefix="$(PYTHON_PKG_DIR)" \
54 ac_cv_file__usr_include_net_snmp_library="yes" \
55 ac_cv_prog_SWIG="echo MISSING SWIG" \
58 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 INCLUDES="-I$(PYTHON_INC_DIR)" \
61 SNMPINCDIR="$(STAGING_DIR)/usr/include/net-snmp/library" \
63 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
66 $(eval $(call PyPackage,python-yapsnmp))
67 $(eval $(call BuildPackage,python-yapsnmp))