4 include $(TOPDIR
)/rules.mk
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
12 PKG_MD5SUM
:=8a3e9a5b814388d7907c639105cb2365
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/yapsnmp
22 TITLE
:=Python SNMP module
25 yapsnmp is a Python SNMP module based on the net-snmp
(formerly known
\\\
26 as ucd-snmp
) library. It
's composed of a low level interface to the \\\
27 library, created using SWIG, and a higher level python module \\\
28 removing all the complexity out of dealing with SNMP.
29 URL:=http://yapsnmp.sourceforge.net/
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --includedir="$(STAGING_DIR)/usr/include" \
36 --oldincludedir="$(STAGING_DIR)/usr/include" \
43 $(SED) 's
#^oldincludedir.*#oldincludedir = $(STAGING_DIR)/usr/include#' \
44 $(PKG_BUILD_DIR
)/src
/Makefile
45 $(SED
) 's#^sys_lib_search_path_spec.*#sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib"#' \
46 $(PKG_BUILD_DIR
)/libtool
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 SNMPINCDIR
="$(STAGING_DIR)/usr/include/net-snmp/library" \
49 includedir="$(STAGING_DIR)/usr/include" \
50 DESTDIR
=$(PKG_INSTALL_DIR
) \
54 pylibdir
:=$(shell $(STAGING_DIR
)/usr
/bin
/hostpython
$(SCRIPT_DIR
)/pylibdir.py
)
55 define Package
/yapsnmp
/install
56 $(INSTALL_DIR
) $(1)$(pylibdir
)
57 $(CP
) -a
$(PKG_INSTALL_DIR
)/* $(1)$(pylibdir
)
60 $(eval
$(call BuildPackage
,yapsnmp
))