1
0

Makefile 1.2 KB

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