1
0

Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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.4.2.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 984932520143f0c8bf7b7ce1fc9e1da1
  8. PKG_DESCR:= SNMP Agent
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= libnetsnmp libelf
  11. PKG_URL:= http://www.net-snmp.org
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=net-snmp/}
  13. PKG_DESCR_1:= SNMP utilities
  14. PKG_DEPENDS_1:= libnetsnmp libelf
  15. PKG_DESCR_2:= SNMP library
  16. PKG_DEPENDS_2:= libelf
  17. PKG_SECTION_2:= libs
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,SNMPD,snmpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,SNMP_UTILS,snmp-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION}))
  21. $(eval $(call PKG_template,LIBNETSNMP,libnetsnmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_2},${PKG_DESCR_2},${PKG_SECTION_2}))
  22. SNMP_MIB_MODULES_INCLUDED = \
  23. host/hr_device \
  24. host/hr_disk \
  25. host/hr_filesys \
  26. host/hr_network \
  27. host/hr_partition \
  28. host/hr_proc \
  29. host/hr_storage \
  30. host/hr_system \
  31. mibII/at \
  32. mibII/icmp \
  33. mibII/ip \
  34. mibII/snmp_mib \
  35. mibII/sysORTable \
  36. mibII/system_mib \
  37. mibII/tcp \
  38. mibII/udp \
  39. mibII/vacm_context \
  40. mibII/vacm_vars \
  41. snmpv3/snmpEngine \
  42. snmpv3/snmpMPDStats \
  43. snmpv3/usmStats \
  44. snmpv3/usmUser \
  45. snmpv3mibs \
  46. tunnel \
  47. ucd-snmp/disk \
  48. ucd-snmp/dlmod \
  49. ucd-snmp/extensible \
  50. ucd-snmp/loadave \
  51. ucd-snmp/memory \
  52. ucd-snmp/pass \
  53. ucd-snmp/proc \
  54. ucd-snmp/vmstat \
  55. util_funcs \
  56. utilities/execute \
  57. SNMP_MIB_MODULES_EXCLUDED = \
  58. mibII/interfaces \
  59. if-mib \
  60. agent_mibs \
  61. agentx \
  62. host \
  63. ieee802dot11 \
  64. mibII \
  65. notification \
  66. notification-log-mib \
  67. notification/snmpNotifyTable \
  68. target \
  69. ucd_snmp \
  70. utilities \
  71. SNMP_TRANSPORTS_INCLUDED= Callback UDP
  72. SNMP_TRANSPORTS_EXCLUDED= TCP TCPv6 UDPv6 Unix
  73. CONFIGURE_STYLE:= gnu
  74. CONFIGURE_ENV+= ac_cv_header_pcap_h=no
  75. CONFIGURE_ARGS+= --with-endianness=little \
  76. --with-logfile=/var/log/snmpd.log \
  77. --with-persistent-directory=/usr/lib/snmp/ \
  78. --with-default-snmp-version=3 \
  79. --with-sys-contact=root@localhost \
  80. --with-sys-location=Unknown \
  81. --enable-applications \
  82. --disable-debugging \
  83. --disable-manuals \
  84. --disable-mib-loading \
  85. --disable-mibs \
  86. --disable-scripts \
  87. --with-out-mib-modules="${SNMP_MIB_MODULES_EXCLUDED}" \
  88. --with-mib-modules="${SNMP_MIB_MODULES_INCLUDED}" \
  89. --with-out-transports="${SNMP_TRANSPORTS_EXCLUDED}" \
  90. --with-transports="${SNMP_TRANSPORTS_INCLUDED}" \
  91. --without-opaque-special-types \
  92. --without-openssl \
  93. --without-libwrap \
  94. --without-rpm \
  95. --without-zlib
  96. ifneq ($(ADK_IPV6),y)
  97. CONFIGURE_ARGS+= --disable-ipv6
  98. endif
  99. BUILD_STYLE:= auto
  100. INSTALL_STYLE:= confprog auto
  101. FAKE_FLAGS+= INSTALL_PREFIX="${WRKINST}"
  102. post-install:
  103. ${INSTALL_DIR} ${IDIR_LIBNETSNMP}/usr/lib
  104. ${CP} ${WRKINST}/usr/lib/libnetsnmp.so* ${IDIR_LIBNETSNMP}/usr/lib/
  105. ${INSTALL_DIR} ${IDIR_SNMPD}/etc/snmp
  106. ${INSTALL_DIR} ${IDIR_SNMPD}/etc/init.d
  107. ${INSTALL_DIR} ${IDIR_SNMPD}/usr/sbin
  108. ${INSTALL_DATA} ./files/snmpd.conf ${IDIR_SNMPD}/etc/snmp/snmpd.conf
  109. ${INSTALL_BIN} ./files/snmpd.init ${IDIR_SNMPD}/etc/init.d/snmpd
  110. ${INSTALL_BIN} ${WRKINST}/usr/sbin/snmpd ${IDIR_SNMPD}/usr/sbin/snmpd
  111. ${INSTALL_DIR} ${IDIR_SNMP_UTILS}/usr/bin
  112. ${CP} ${WRKINST}/usr/bin/snmp{get,set,status,test,trap,walk} ${IDIR_SNMP_UTILS}/usr/bin/
  113. include ${TOPDIR}/mk/pkg-bottom.mk