aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-mgmt/nagios-check_email_delivery/Makefile15
-rw-r--r--net-mgmt/nagios-check_email_delivery/pkg-plist4
2 files changed, 13 insertions, 6 deletions
diff --git a/net-mgmt/nagios-check_email_delivery/Makefile b/net-mgmt/nagios-check_email_delivery/Makefile
index cf389e3559fd..011f302829ce 100644
--- a/net-mgmt/nagios-check_email_delivery/Makefile
+++ b/net-mgmt/nagios-check_email_delivery/Makefile
@@ -3,7 +3,7 @@
PORTNAME= check_email_delivery
PORTVERSION= 0.7.1b
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt
MASTER_SITES= http://buhacoff.net/software/check_email_delivery/archive/ \
http://mirrors.rit.edu/zi/
@@ -16,6 +16,8 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= p5-Net-SMTP-TLS>=0:${PORTSDIR}/mail/p5-Net-SMTP-TLS \
+ p5-Net-DNS>0:${PORTSDIR}/dns/p5-Net-DNS \
+ p5-Email-Address>0:${PORTSDIR}/mail/p5-Email-Address \
p5-Mail-IMAPClient>=0:${PORTSDIR}/mail/p5-Mail-IMAPClient
USES= perl5 shebangfix
@@ -39,15 +41,20 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local/nagios/libexec|${PREFIX}/libexec/nagios|' \
+ ${WRKSRC}/check_email_delivery* ${WRKSRC}/docs/*
+
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
.for file in ${SCRIPTS}
- @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/libexec/nagios/
+ ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/libexec/nagios/
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for file in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/docs/${file} ${STAGEDIR}${DOCSDIR}
+.for docfile in ${DOC_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/docs/${docfile} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/net-mgmt/nagios-check_email_delivery/pkg-plist b/net-mgmt/nagios-check_email_delivery/pkg-plist
index e0de85b33ff2..a553f1133af0 100644
--- a/net-mgmt/nagios-check_email_delivery/pkg-plist
+++ b/net-mgmt/nagios-check_email_delivery/pkg-plist
@@ -18,5 +18,5 @@ libexec/nagios/imap_ssl_cert_epn
%%PORTDOCS%%%%DOCSDIR%%/check_smtp_send.pod
%%PORTDOCS%%%%DOCSDIR%%/imap_ssl_cert.html
%%PORTDOCS%%%%DOCSDIR%%/imap_ssl_cert.pod
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrmtry libexec/nagios
+%%PORTDOCS%%@dir %%DOCSDIR%%
+@dir libexec/nagios