Makefile 3.1 KB

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