aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkami <kami@FreeBSD.org>2016-05-02 02:57:22 +0800
committerkami <kami@FreeBSD.org>2016-05-02 02:57:22 +0800
commitaca536075b66f82966eb2a52874515e4fe365710 (patch)
tree7bac87bc1630818d168e521c2b9571283a2235a9 /www
parent3d0b6d05549ee53df0dda4b9d8817b52bfa62dea (diff)
downloadfreebsd-ports-gnome-aca536075b66f82966eb2a52874515e4fe365710.tar.gz
freebsd-ports-gnome-aca536075b66f82966eb2a52874515e4fe365710.tar.zst
freebsd-ports-gnome-aca536075b66f82966eb2a52874515e4fe365710.zip
Unbreak by updating to the latest version on GH.
PR: ports/208024 Submitted by: marc@mpeters.org Reported by: marc@mpeters.org Reviewed by: cs Approved by: cs Differential Revision: https://reviews.freebsd.org/D5744
Diffstat (limited to 'www')
-rw-r--r--www/varnish-nagios/Makefile9
-rw-r--r--www/varnish-nagios/distinfo4
-rw-r--r--www/varnish-nagios/files/pkg-message.in7
3 files changed, 14 insertions, 6 deletions
diff --git a/www/varnish-nagios/Makefile b/www/varnish-nagios/Makefile
index e7cb71328139..4d053d14ea2c 100644
--- a/www/varnish-nagios/Makefile
+++ b/www/varnish-nagios/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= varnish-nagios
-PORTVERSION= 1.1.20140519
+PORTVERSION= 1.1.20151214
PORTREVISION= 0
CATEGORIES= www
@@ -11,9 +11,8 @@ COMMENT= Nagios plugin to check status of Varnish
LICENSE= BSD2CLAUSE
-BROKEN= fails to build
-
BUILD_DEPENDS= varnish4>=0:www/varnish4
+RUN_DEPENDS= ${LOCALBASE}/bin/sudo:${PORTSDIR}/security/sudo
GNU_CONFIGURE= yes
CFLAGS+= -lm
@@ -22,10 +21,12 @@ USES= autoreconf libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= varnish
-GH_TAGNAME= 022fbf9
+GH_TAGNAME= 258c486
PLIST_FILES= libexec/nagios/check_varnish
+SUB_FILES= pkg-message
+
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_PROGRAM} ${WRKSRC}/check_varnish ${STAGEDIR}${PREFIX}/libexec/nagios
diff --git a/www/varnish-nagios/distinfo b/www/varnish-nagios/distinfo
index 2b7c08212707..4476aa8c5bd3 100644
--- a/www/varnish-nagios/distinfo
+++ b/www/varnish-nagios/distinfo
@@ -1,2 +1,2 @@
-SHA256 (varnish-varnish-nagios-1.1.20140519-022fbf9_GH0.tar.gz) = b4545fa4445b62bce85d0d7ad43664dc07e6303f83fb5a7d2c71092116ee09bd
-SIZE (varnish-varnish-nagios-1.1.20140519-022fbf9_GH0.tar.gz) = 5397
+SHA256 (varnish-varnish-nagios-1.1.20151214-258c486_GH0.tar.gz) = 0f54a5941c8b7fa5dc175306ddf5fe9a6a3739ebb606ff784d12aab6519080db
+SIZE (varnish-varnish-nagios-1.1.20151214-258c486_GH0.tar.gz) = 5663
diff --git a/www/varnish-nagios/files/pkg-message.in b/www/varnish-nagios/files/pkg-message.in
new file mode 100644
index 000000000000..c88b323a29f4
--- /dev/null
+++ b/www/varnish-nagios/files/pkg-message.in
@@ -0,0 +1,7 @@
+**********************************************************************
+
+ Add the following line to %%PREFIX%%/etc/sudoers:
+
+ nagios ALL=NOPASSWD: %%PREFIX%%/libexec/nagios/check_varnish
+
+**********************************************************************