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.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=yapsnmp
|
|
|
|
PKG_VERSION:=0.7.8
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
|
|
|
PKG_MD5SUM:=8a3e9a5b814388d7907c639105cb2365
|
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
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2011-02-03 19:13:26 +00:00
|
|
|
PKG_REMOVE_FILES:=aclocal.m4 acinclude.m4
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2007-09-06 02:52:35 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2007-09-06 02:52:35 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-yapsnmp
|
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 Net-SNMP
|
|
|
|
URL:=http://yapsnmp.sourceforge.net/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python-mini +libnetsnmp
|
2007-09-06 02:52:35 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-yapsnmp/description
|
2014-03-27 07:04:22 +00:00
|
|
|
This package contains a Python SNMP module based on the net-snmp (formerly
|
|
|
|
known as ucd-snmp) library. It's composed of a low level interface to the
|
|
|
|
library, created using SWIG, and a higher level python module removing all
|
2007-09-06 02:52:35 +00:00
|
|
|
the complexity out of dealing with SNMP.
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-yapsnmp/filespec
|
2007-09-06 02:52:35 +00:00
|
|
|
+|$(PYTHON_PKG_DIR)/netsnmp.py
|
|
|
|
+|$(PYTHON_PKG_DIR)/netsnmpc.so
|
|
|
|
+|$(PYTHON_PKG_DIR)/yapsnmp.py
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--enable-site-packages-prefix="$(PYTHON_PKG_DIR)" \
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_file__usr_include_net_snmp_library="yes" \
|
2007-09-07 18:57:45 +00:00
|
|
|
ac_cv_prog_SWIG="echo MISSING SWIG" \
|
2007-09-06 02:52:35 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
2008-08-10 16:12:31 +00:00
|
|
|
$(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
|
2007-09-06 02:52:35 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
INCLUDES="-I$(PYTHON_INC_DIR)" \
|
|
|
|
SNMPINCDIR="$(STAGING_DIR)/usr/include/net-snmp/library" \
|
|
|
|
all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
$(eval $(call PyPackage,python-yapsnmp))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-yapsnmp))
|