packages/lang/yapsnmp/Makefile

64 lines
1.6 KiB
Makefile
Raw Normal View History

#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
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
include $(INCLUDE_DIR)/package.mk
include ../python/python-package.mk
define PyPackage/yapsnmp
TITLE:=Python interface to Net-SNMP
URL:=http://yapsnmp.sourceforge.net/
DEPENDS+= +libnetsnmp
endef
define PyPackage/yapsnmp/description
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
the complexity out of dealing with SNMP.
endef
define PyPackage/yapsnmp/filespec
+|$(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" \
define Build/Configure
$(call Build/Configure/Default)
$(call libtool_disable_rpath)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
INCLUDES="-I$(PYTHON_INC_DIR)" \
SNMPINCDIR="$(STAGING_DIR)/usr/include/net-snmp/library" \
all
$(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
endef
$(eval $(call PyPackage,yapsnmp))