aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-10-23 19:40:58 +0800
committermiwi <miwi@FreeBSD.org>2007-10-23 19:40:58 +0800
commitc8fc8da2510ea1d9527ed137538b6ff87f1d51a7 (patch)
treee836ce7bfa6f9a2f508e96bf8f511e12d22290ca /misc
parent1b0252eadb4515585deb1e9c441184d926e6291b (diff)
downloadfreebsd-ports-gnome-c8fc8da2510ea1d9527ed137538b6ff87f1d51a7.tar.gz
freebsd-ports-gnome-c8fc8da2510ea1d9527ed137538b6ff87f1d51a7.tar.zst
freebsd-ports-gnome-c8fc8da2510ea1d9527ed137538b6ff87f1d51a7.zip
- Update to 1.3.8
- Pass maintainership to submitter PR: 117300 Submitted by: Philippe Audeoud <jadawin@tuxaco.net>
Diffstat (limited to 'misc')
-rw-r--r--misc/mirmon/Makefile13
-rw-r--r--misc/mirmon/distinfo6
-rw-r--r--misc/mirmon/files/pkg-message.in26
3 files changed, 38 insertions, 7 deletions
diff --git a/misc/mirmon/Makefile b/misc/mirmon/Makefile
index 079f949957ac..dacf2d320e2f 100644
--- a/misc/mirmon/Makefile
+++ b/misc/mirmon/Makefile
@@ -7,18 +7,20 @@
#
PORTNAME= mirmon
-PORTVERSION= 1.37
+PORTVERSION= 1.38
CATEGORIES= misc
-MASTER_SITES= http://freebsd.unixfreunde.de/sources/ \
+MASTER_SITES= http://jadawin.tuxaco.net/freebsd/ \
http://www.cs.uu.nl/people/henkp/mirmon/src/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= jadawin@tuxaco.net
COMMENT= Monitor the status of mirrors
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
USE_PERL5_RUN= yes
+SUB_FILES= pkg-message
+SUB_LIST= PREFIX=${PREFIX}
+
PLIST_FILES= bin/mirmon
.if !defined(NOPORTDOCS)
@@ -44,4 +46,7 @@ do-install:
${CP} ${WRKSRC}/mirmon.html ${DOCSDIR}
.endif
+post-install:
+ ${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
diff --git a/misc/mirmon/distinfo b/misc/mirmon/distinfo
index e897936b9b91..4160cb620a1b 100644
--- a/misc/mirmon/distinfo
+++ b/misc/mirmon/distinfo
@@ -1,3 +1,3 @@
-MD5 (mirmon-1.37.tar.gz) = 16fe9e6b595f1cf8cb21cb7ddfbd9758
-SHA256 (mirmon-1.37.tar.gz) = a01bcc1f4d3eaefe8af35f475d83d79fa34338fb7b6addfe0b2a14d462f13b07
-SIZE (mirmon-1.37.tar.gz) = 26062
+MD5 (mirmon-1.38.tar.gz) = 71ca84082700d251fc7b15d1544a1ab1
+SHA256 (mirmon-1.38.tar.gz) = 5defb2c0890d3461a2b8dd8cc3efc4c63c0814c043cb227a69b4a457a38b0ce3
+SIZE (mirmon-1.38.tar.gz) = 33021
diff --git a/misc/mirmon/files/pkg-message.in b/misc/mirmon/files/pkg-message.in
new file mode 100644
index 000000000000..8b1dc7855ef5
--- /dev/null
+++ b/misc/mirmon/files/pkg-message.in
@@ -0,0 +1,26 @@
+---------------------------------------------------------------------------
+
+ The program is intended to be run by cron every hour.
+
+ 42 * * * * perl %%PREFIX%%/bin/mirmon -q -get update
+
+ It quietly probes a subset of the sites in a given list,
+ writes the results in the 'state' file and generates a web page
+ with the results. The subset contains the sites that are new, bad
+ and/or not probed for a specified time.
+
+ When no 'get' option is specified, the program just generates a
+ new web page from the last known state.
+
+ The program checks the mirrors by running a (user specified)
+ program on a pipe. A (user specified) number of probes is
+ run in parallel using nonblocking IO. When something can be
+ read from the pipe, it switches the pipe to blocking IO and
+ reads one line from the pipe. Then it flushes and closes the
+ pipe. No attempt is made to kill the probe.
+
+ The probe should return something that looks like "1043625600\n",
+ that is, a timestamp followed by a newline. The exit status of
+ the probe is ignored.
+
+---------------------------------------------------------------------------