1
0

Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_BUILDDEP+= libelf
  8. PKG_MD5SUM:= 5b2551e7bd024fbbee84dca22a5f13a1
  9. PKG_DESCR:= SNMP Agent
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libnetsnmp 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_STYLE:= gnu
  28. CONFIGURE_ARGS+= --with-logfile=/var/log/snmpd.log \
  29. --with-persistent-directory=/usr/lib/snmp/ \
  30. --with-default-snmp-version=3 \
  31. --with-sys-contact=root@localhost \
  32. --with-sys-location=Unknown \
  33. --enable-applications \
  34. --disable-embedded-perl \
  35. --without-perl-modules \
  36. --disable-debugging \
  37. --disable-manuals \
  38. --disable-mib-loading \
  39. --disable-mibs \
  40. --disable-scripts \
  41. --with-transports="${SNMP_TRANSPORTS_INCLUDED}" \
  42. --with-out-transports="${SNMP_TRANSPORTS_EXCLUDED}" \
  43. --with-opaque-special-types \
  44. --without-openssl \
  45. --without-libwrap \
  46. --without-rpm \
  47. --without-zlib
  48. BUILD_STYLE:= auto
  49. INSTALL_STYLE:= auto
  50. FAKE_FLAGS+= INSTALL_PREFIX="${WRKINST}"
  51. post-install:
  52. ${INSTALL_DIR} ${IDIR_LIBNETSNMP}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libnetsnmp*.so* ${IDIR_LIBNETSNMP}/usr/lib/
  54. ${INSTALL_DIR} ${IDIR_SNMPD}/etc/snmp
  55. ${INSTALL_DIR} ${IDIR_SNMPD}/usr/sbin
  56. ${INSTALL_DATA} ./files/snmpd.conf ${IDIR_SNMPD}/etc/snmp/snmpd.conf
  57. ${INSTALL_BIN} ${WRKINST}/usr/sbin/snmpd ${IDIR_SNMPD}/usr/sbin/snmpd
  58. ${INSTALL_DIR} ${IDIR_SNMP_UTILS}/usr/bin
  59. ${CP} ${WRKINST}/usr/bin/snmp{get,set,status,test,trap,walk} \
  60. ${IDIR_SNMP_UTILS}/usr/bin/
  61. include ${TOPDIR}/mk/pkg-bottom.mk