diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-10-23 11:40:58 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-10-23 11:40:58 +0000 |
commit | f18c0b6b3097e67bf7f7d68d5719b7507a40caef (patch) | |
tree | a08fd0c7a5bfbaa491cb08e78ff63e8148775341 /misc/mirmon | |
parent | 3a4ad5787fb502044a501f9800d11abd2ab5a340 (diff) | |
download | ports-f18c0b6b3097e67bf7f7d68d5719b7507a40caef.tar.gz ports-f18c0b6b3097e67bf7f7d68d5719b7507a40caef.zip |
Notes
Diffstat (limited to 'misc/mirmon')
-rw-r--r-- | misc/mirmon/Makefile | 13 | ||||
-rw-r--r-- | misc/mirmon/distinfo | 6 | ||||
-rw-r--r-- | misc/mirmon/files/pkg-message.in | 26 |
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. + +--------------------------------------------------------------------------- |