Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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_MD5SUM:= dae7859ec10551fc941daeae60dee9d3
  8. PKG_DESCR:= An utility for system services monitoring
  9. PKG_SECTION:= admin
  10. PKG_DEPENDS:= libpthread
  11. ifeq ($(ADK_COMPILE_MONIT_WITH_SSL),y)
  12. PKG_DEPENDS:= libopenssl
  13. PKG_BUILDDEP+= openssl
  14. endif
  15. PKG_URL:= http://mmonit.com/monit
  16. PKG_SITES:= http://www.tildeslash.com/monit/dist/
  17. include ${TOPDIR}/mk/package.mk
  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. post-install:
  25. ${INSTALL_DIR} ${IDIR_MONIT}/etc
  26. install -m0600 ${WRKBUILD}/monitrc ${IDIR_MONIT}/etc/
  27. ${INSTALL_DIR} ${IDIR_MONIT}/usr/sbin
  28. ${INSTALL_BIN} ${WRKBUILD}/monit ${IDIR_MONIT}/usr/sbin/monit
  29. include ${TOPDIR}/mk/pkg-bottom.mk