Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= net-snmp
  5. PKG_VERSION:= 5.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 5b2551e7bd024fbbee84dca22a5f13a1
  8. PKG_DESCR:= SNMP Agent
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libnetsnmp libelf
  11. PKG_BUILDDEP+= libelf
  12. PKG_NOPARALLEL:= 1
  13. PKG_URL:= http://www.net-snmp.org
  14. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=net-snmp/}
  15. PKG_DESCR_UTILS:= SNMP utilities
  16. PKG_DEPENDS_UTILS:= libnetsnmp libelf
  17. PKG_DESCR_LIBS:= SNMP library
  18. PKG_DEPENDS_LIBS:= libelf
  19. PKG_SECTION_LIBS:= libs
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,SNMPD,snmpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,SNMP_UTILS,snmp-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_UTILS},${PKG_DESCR_UTILS},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBNETSNMP,libnetsnmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_LIBS},${PKG_DESCR_LIBS},${PKG_SECTION_LIBS}))
  24. SNMP_TRANSPORTS_INCLUDED= UDP TCP Callback Unix
  25. SNMP_TRANSPORTS_EXCLUDED= TCPIPv6 UDPIPv6 Alias
  26. TLDFLAGS+= -pthread
  27. CONFIGURE_ARGS+= --with-logfile=/var/log/snmpd.log \
  28. --with-persistent-directory=/usr/lib/snmp/ \
  29. --with-default-snmp-version=3 \
  30. --with-sys-contact=root@localhost \
  31. --with-sys-location=Unknown \
  32. --enable-applications \
  33. --disable-embedded-perl \
  34. --without-perl-modules \
  35. --disable-debugging \
  36. --disable-manuals \
  37. --disable-mib-loading \
  38. --disable-mibs \
  39. --disable-scripts \
  40. --with-transports="${SNMP_TRANSPORTS_INCLUDED}" \
  41. --with-out-transports="${SNMP_TRANSPORTS_EXCLUDED}" \
  42. --with-opaque-special-types \
  43. --without-openssl \
  44. --without-libwrap \
  45. --without-rpm \
  46. --without-zlib
  47. FAKE_FLAGS+= INSTALL_PREFIX="${WRKINST}"
  48. post-install:
  49. ${INSTALL_DIR} ${IDIR_LIBNETSNMP}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libnetsnmp*.so* ${IDIR_LIBNETSNMP}/usr/lib/
  51. ${INSTALL_DIR} ${IDIR_SNMPD}/etc/snmp
  52. ${INSTALL_DIR} ${IDIR_SNMPD}/usr/sbin
  53. ${INSTALL_DATA} ./files/snmpd.conf ${IDIR_SNMPD}/etc/snmp/snmpd.conf
  54. ${INSTALL_BIN} ${WRKINST}/usr/sbin/snmpd ${IDIR_SNMPD}/usr/sbin/snmpd
  55. ${INSTALL_DIR} ${IDIR_SNMP_UTILS}/usr/bin
  56. ${CP} ${WRKINST}/usr/bin/snmp{get,set,status,test,trap,walk} \
  57. ${IDIR_SNMP_UTILS}/usr/bin/
  58. include ${TOPDIR}/mk/pkg-bottom.mk