Annotation of pkgsrc/sysutils/monit/Makefile, Revision 1.17
1.17 ! jperkin 1: # $NetBSD: Makefile,v 1.16 2015/01/04 04:13:26 dholland Exp $
1.1 heinz 2: #
3:
1.15 imil 4: DISTNAME= monit-5.8
1.17 ! jperkin 5: PKGREVISION= 1
1.1 heinz 6: CATEGORIES= sysutils
1.13 obache 7: MASTER_SITES= http://mmonit.com/monit/dist/
1.1 heinz 8:
1.10 tron 9: MAINTAINER= pkgsrc-users@NetBSD.org
1.13 obache 10: HOMEPAGE= http://mmonit.com/monit/
1.15 imil 11: COMMENT= Monitors processes, files, directories and devices
1.12 obache 12: LICENSE= gnu-agpl-v3
1.3 heinz 13:
1.1 heinz 14: # no platform specific code yet
1.16 dholland 15: BROKEN_ON_PLATFORM+= BSDOS-*-* DragonFly-*-* Interix-*-* IRIX-*-* OSF1-*-*
1.1 heinz 16:
1.12 obache 17: USE_TOOLS+= gmake gzcat flex yacc
1.1 heinz 18: USE_PKGLOCALEDIR= yes
19: GNU_CONFIGURE= yes
20:
21: PKG_OPTIONS_VAR= PKG_OPTIONS.monit
22: PKG_SUPPORTED_OPTIONS= ssl
23: PKG_SUGGESTED_OPTIONS= ssl
24:
25: .include "../../mk/bsd.options.mk"
26: .if empty(PKG_OPTIONS:Mssl)
27: CONFIGURE_ARGS+= --without-ssl
28: .endif
29: CONFIGURE_ARGS+= --with-ssl-dir=${SSLBASE:Q}
1.2 seb 30: CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
1.7 jperkin 31: .if ${OPSYS} == "SunOS" && ${ABI} == "32"
32: CONFIGURE_ARGS+= --without-largefiles
33: .endif
1.1 heinz 34: PKG_SYSCONFSUBDIR= monit
35:
36: RCD_SCRIPTS= monit
1.2 seb 37: RCD_SCRIPT_SRC.monit= ${FILESDIR}/monit-rc-script.sh
1.1 heinz 38:
39: CONF_FILES= ${EGDIR}/monitrc.sample ${PKG_SYSCONFDIR}/monitrc
40: CONF_FILES_MODE= 0600
41:
42: OWN_DIRS+= ${PKG_SYSCONFDIR}/monit.d
43:
44: DOC_SUBDIR= share/docs/monit
45: DOCDIR= ${PREFIX}/${DOC_SUBDIR}
46: EG_SUBDIR= share/examples/monit
47: EGDIR= ${PREFIX}/${EG_SUBDIR}
48:
1.12 obache 49: M_DOCFILES= CHANGES COPYING README
50: M_DOCFILES+= doc/PLATFORMS
1.1 heinz 51:
52: SUBST_CLASSES+= monit
53: SUBST_STAGE.monit= pre-configure
54: SUBST_MESSAGE.monit= Setting daemon interval
55: SUBST_FILES.monit= monitrc
56: SUBST_SED.monit= -e "s|^\# *set *daemon|set daemon|"
57: SUBST_SED.monit+= -e "s|include */etc/monit.d|include ${PKG_SYSCONFDIR}/monit.d|"
58:
1.2 seb 59: # Perform configure substitutions on monit.1
60: post-configure:
61: cd ${WRKSRC} && mv monit.1 monit.1.in && ./config.status --file=monit.1
1.1 heinz 62:
63: post-install:
64: ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
65: .for f in ${M_DOCFILES}
66: ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
67: .endfor
68: ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
69: ${INSTALL_DATA} ${WRKSRC}/monitrc ${DESTDIR}${EGDIR}/monitrc.sample
70:
71: .include "../../mk/pthread.buildlink3.mk"
72: .include "../../security/openssl/buildlink3.mk"
73: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>