Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= monit
  5. PKG_VERSION:= 5.0.3
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= openssl
  8. PKG_MD5SUM:= dae7859ec10551fc941daeae60dee9d3
  9. PKG_DESCR:= An utility for system services monitoring
  10. PKG_SECTION:= admin
  11. PKG_DEPENDS:= libpthread
  12. PKG_URL:= http://mmonit.com/monit
  13. PKG_SITES:= http://www.tildeslash.com/monit/dist/
  14. include ${TOPDIR}/mk/package.mk
  15. ifeq ($(ADK_COMPILE_MONIT_WITH_SSL),y)
  16. PKG_DEPENDS+= libopenssl
  17. endif
  18. $(eval $(call PKG_template,MONIT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. ifeq ($(ADK_COMPILE_MONIT_WITH_SSL),y)
  20. CONFIGURE_ARGS+= --with-ssl --with-ssl-dir="${STAGING_DIR}/usr"
  21. else
  22. CONFIGURE_ARGS+= --without-ssl
  23. endif
  24. CONFIGURE_STYLE:= gnu
  25. CONFIGURE_ENV+= ac_cv_lib_nsl_inet_addr=no
  26. BUILD_STYLE:= auto
  27. INSTALL_STYLE:= auto
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_MONIT}/etc
  30. install -m0600 ${WRKBUILD}/monitrc ${IDIR_MONIT}/etc/
  31. ${INSTALL_DIR} ${IDIR_MONIT}/usr/sbin
  32. ${INSTALL_BIN} ${WRKBUILD}/monit ${IDIR_MONIT}/usr/sbin/monit
  33. include ${TOPDIR}/mk/pkg-bottom.mk