@ -91,15 +91,10 @@ endef
d e f i n e P a c k a g e / s n m p d - s t a t i c
$( call Package /net -snmp /Default )
DEPENDS:= +snmpd
TITLE:= Open source SNMP implementation ( daemon)
DEPENDS:= +PACKAGE_libnl-core:libnl-core
e n d e f
d e f i n e P a c k a g e / s n m p d - s t a t i c / d e s c r i p t i o n
$( call Package /net -snmp /Default /description )
.
This package contains the SNMP agent, statically linked.
e n d e f
SNMP_MIB_MODULES_INCLUDED = \
@ -202,21 +197,11 @@ endif
TARGET_LDFLAGS += -L$( TOOLCHAIN_DIR) /usr/lib
i f d e f C O N F I G _ P A C K A G E _ s n m p d - s t a t i c
define Build/Compile/static
$( MAKE) -C $( PKG_BUILD_DIR) /agent \
LDFLAGS = " $( TARGET_LDFLAGS) -lm -static " \
EXEEXT = "-static" \
snmpd-static
endef
e n d i f
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) \
INSTALL_PREFIX = " $( PKG_INSTALL_DIR) " \
LDFLAGS = " $( TARGET_LDFLAGS) -lm -lc " \
all install
$( Build/Compile/static)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
@ -260,21 +245,6 @@ define Package/snmpd/install
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/snmpd $( 1) /usr/sbin/snmpd
e n d e f
d e f i n e P a c k a g e / s n m p d - s t a t i c / c o n f f i l e s
/ e t c / c o n f i g / s n m p d
e n d e f
d e f i n e P a c k a g e / s n m p d - s t a t i c / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_DATA) ./files/snmpd.conf $( 1) /etc/config/snmpd
$( INSTALL_DIR) $( 1) /etc/snmp
ln -sf /var/run/snmpd.conf $( 1) /etc/snmp/
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/snmpd.init $( 1) /etc/init.d/snmpd
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /agent/snmpd-static $( 1) /usr/sbin/snmpd
e n d e f
$( eval $ ( call BuildPackage ,libnetsnmp ) )
$( eval $ ( call BuildPackage ,snmp -mibs ) )
$( eval $ ( call BuildPackage ,snmp -utils ) )