(which is not) throughout the ports Makefiles. * Replace find|xargs with find -exec {} + * Replace -exec {} \; with -exec {} + if applicable. * Use the -delete operator to remove files and empty directories. * Combine and tweak some find(1) invocations while here. ok kn@ rsadowski@ espie@
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2020/03/20 16:44:27 naddy Exp $
|
|
|
|
COMMENT-main = system monitoring tool
|
|
COMMENT-nagios = nagios plugin for resmon
|
|
|
|
V = 20090802
|
|
DISTNAME = resmon-$V
|
|
PKGNAME-main = ${DISTNAME}
|
|
PKGNAME-nagios = nagios-plugins-resmon-$V
|
|
REVISION-nagios = 2
|
|
CATEGORIES = sysutils
|
|
HOMEPAGE = http://labs.omniti.com/trac/resmon
|
|
REVISION-main = 0
|
|
|
|
MULTI_PACKAGES = -main -nagios
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = http://www.dixongroup.net/
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
PKG_ARCH = *
|
|
|
|
RUN_DEPENDS-nagios = net/monitoring-plugins
|
|
|
|
INSTDIR = ${PREFIX}/libdata/perl5/site_perl
|
|
RESMONCONF = ${SYSCONFDIR}/resmon
|
|
RESMONSTATE = /var/resmon
|
|
SUBST_VARS = INSTDIR RESMONCONF RESMONSTATE
|
|
|
|
DOCSDIR = ${PREFIX}/share/doc/resmon
|
|
EXAMPLESDIR = ${PREFIX}/share/examples/resmon
|
|
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKDIST}/resmon ${WRKDIST}/resmon.conf.sample
|
|
|
|
do-install:
|
|
@find ${WRKDIST} \( -name \*.bak -o -name \*.orig \) -delete
|
|
${INSTALL_SCRIPT} ${WRKSRC}/resmon ${PREFIX}/sbin
|
|
@cp -R ${WRKDIST}/lib/Resmon ${INSTDIR}
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/resmon.conf.sample ${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/nagios
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/check_resmon_xml_part \
|
|
${PREFIX}/libexec/nagios
|
|
|
|
.include <bsd.port.mk>
|