Makefile 3.3 KB

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