aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/checkservice/Makefile32
-rw-r--r--sysutils/checkservice/distinfo2
-rw-r--r--sysutils/checkservice/pkg-descr3
-rw-r--r--sysutils/checkservice/pkg-plist14
4 files changed, 26 insertions, 25 deletions
diff --git a/sysutils/checkservice/Makefile b/sysutils/checkservice/Makefile
index 16398abb2d55..41f7cda70a29 100644
--- a/sysutils/checkservice/Makefile
+++ b/sysutils/checkservice/Makefile
@@ -7,16 +7,16 @@
#
PORTNAME= checkservice
-PORTVERSION= 1.1.0
+PORTVERSION= 1.2.0
CATEGORIES= sysutils
MASTER_SITES= http://www.linvision.com/checkservice/files/
-MAINTAINER= ijliao@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
-RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Mail/Send.pm:${PORTSDIR}/mail/p5-Mail-Tools
-
-USE_PERL5= YES
+RUN_DEPENDS= ${SITE_PERL}/${PERL_VER}/Mail/Send.pm:${PORTSDIR}/mail/p5-Mail-Tools
+USE_REINPLACE= yes
+USE_PERL5_RUN= YES
NO_BUILD= YES
MAN1= checkservice.1
@@ -24,26 +24,26 @@ MAN5= checkservice.5
post-patch:
.for file in ${PORTNAME} man/${PORTNAME}.1 man/${PORTNAME}.5
- @${PERL} -pi -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/${file}
+ @${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/${file}
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/opensocket.pl ${PREFIX}/lib/perl5/site_perl/${PERL_VER}
- ${INSTALL_MAN} ${WRKSRC}/man/checkservice.1 ${PREFIX}/man/man1
- ${INSTALL_MAN} ${WRKSRC}/man/checkservice.5 ${PREFIX}/man/man5
- ${MKDIR} -m 755 ${PREFIX}/lib/${PORTNAME}
+ ${CP} -R ${WRKSRC}/lib/CS ${SITE_PERL}
+ @${MKDIR} -m 755 ${PREFIX}/lib/${PORTNAME}
${CP} -R ${WRKSRC}/plugins/ ${PREFIX}/lib/${PORTNAME}
- ${MKDIR} -m 755 ${PREFIX}/etc/${PORTNAME}
+ @${MKDIR} -m 755 ${PREFIX}/etc/${PORTNAME}
${CP} -R ${WRKSRC}/config/ ${PREFIX}/etc/${PORTNAME}
+ ${INSTALL_MAN} ${WRKSRC}/man/checkservice.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/checkservice.5 ${PREFIX}/man/man5
post-install:
.if !defined(BATCH)
- @${ECHO} ""
- @${ECHO} "############################################################################"
- @${ECHO} "# Config files are in ${PREFIX}/etc/${PORTNAME} #"
- @${ECHO} "# Plugins are in ${PREFIX}/lib/${PORTNAME} #"
- @${ECHO} "############################################################################"
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "############################################################################"
+ @${ECHO_CMD} "# Config files are in ${PREFIX}/etc/${PORTNAME} #"
+ @${ECHO_CMD} "# Plugins are in ${PREFIX}/lib/${PORTNAME} #"
+ @${ECHO_CMD} "############################################################################"
.endif
.include <bsd.port.mk>
diff --git a/sysutils/checkservice/distinfo b/sysutils/checkservice/distinfo
index d81809110d8f..49ec5011db5e 100644
--- a/sysutils/checkservice/distinfo
+++ b/sysutils/checkservice/distinfo
@@ -1 +1 @@
-MD5 (checkservice-1.1.0.tar.gz) = 500a8f97b9a6c69d8b6d19ae0b84cb04
+MD5 (checkservice-1.2.0.tar.gz) = 7990833be465b38f99c6b0651d457a17
diff --git a/sysutils/checkservice/pkg-descr b/sysutils/checkservice/pkg-descr
index 8b0a2df62577..43f103de757e 100644
--- a/sysutils/checkservice/pkg-descr
+++ b/sysutils/checkservice/pkg-descr
@@ -12,6 +12,3 @@ Checkservice supports grouping. This is a convenient way to organize
the hosts to check in different categories.
WWW: http://www.linvision.com/checkservice/
-
--- Ying-Chieh Liao
- ijliao@FreeBSD.org
diff --git a/sysutils/checkservice/pkg-plist b/sysutils/checkservice/pkg-plist
index 97e1d2d43d7a..29ff703eb817 100644
--- a/sysutils/checkservice/pkg-plist
+++ b/sysutils/checkservice/pkg-plist
@@ -1,13 +1,17 @@
sbin/checkservice
-lib/perl5/site_perl/%%PERL_VER%%/opensocket.pl
+%%SITE_PERL%%/CS/Config.pm
+%%SITE_PERL%%/CS/Functions.pm
+%%SITE_PERL%%/CS/Plugin.pm
+@dirrm %%SITE_PERL%%/CS
etc/checkservice/checkservice.conf
etc/checkservice/failed.mail
-etc/checkservice/hosts/localhost
-etc/checkservice/plugins/sms.conf
-etc/checkservice/plugins/smsnet.conf
+etc/checkservice/plugins/warning/sms.conf
+etc/checkservice/plugins/warning/smsnet.conf
etc/checkservice/statuspage.conf
+etc/checkservice/successful.mail
etc/checkservice/timeout.mail
etc/checkservice/unreachable.mail
+lib/checkservice/check/dns.plugin
lib/checkservice/check/ftp.plugin
lib/checkservice/check/http.plugin
lib/checkservice/check/https.plugin
@@ -24,7 +28,7 @@ lib/checkservice/check/template.plugin
lib/checkservice/warning/beep.plugin
lib/checkservice/warning/sms.plugin
lib/checkservice/warning/smsnet.plugin
-@dirrm etc/checkservice/hosts
+@dirrm etc/checkservice/plugins/warning
@dirrm etc/checkservice/plugins
@dirrm etc/checkservice
@dirrm lib/checkservice/check