SF.net SVN: gar:[22904] csw/mgar/pkg/mirmon/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Jan 27 21:30:49 CET 2014


Revision: 22904
          http://sourceforge.net/p/gar/code/22904
Author:   dmichelsen
Date:     2014-01-27 20:30:47 +0000 (Mon, 27 Jan 2014)
Log Message:
-----------
mirmon/trunk: Add example comfiguration file

Modified Paths:
--------------
    csw/mgar/pkg/mirmon/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/mirmon/trunk/files/mirmon.conf.CSW

Modified: csw/mgar/pkg/mirmon/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mirmon/trunk/Makefile	2014-01-27 20:01:03 UTC (rev 22903)
+++ csw/mgar/pkg/mirmon/trunk/Makefile	2014-01-27 20:30:47 UTC (rev 22904)
@@ -8,7 +8,8 @@
 DESCRIPTION = Monitor the status of mirrors
 
 MASTER_SITES = http://www.staff.science.uu.nl/~penni101/mirmon/
-DISTFILES  = $(DISTNAME).tar.gz
+DISTFILES += $(DISTNAME).tar.gz
+DISTFILES += mirmon.conf.CSW
 
 VENDOR_URL = http://www.staff.science.uu.nl/~penni101/mirmon/
 LICENSE = LICENSE
@@ -55,11 +56,18 @@
 REINPLACE_WITH_mirmonpm = \\'$(sharedstatedir)/perl/csw\\'
 REINPLACE_FILES_mirmonpm += mirmon.pl
 
+REINPLACEMENTS += conf
+REINPLACE_MATCH_conf = /etc/mirmon.conf
+REINPLACE_WITH_conf = $(sysconfdir)/mirmon.conf
+REINPLACE_FILES_conf += *
+
 CONFIGURE_SCRIPTS =
 BUILD_SCRIPTS =
 TEST_SCRIPTS =
 INSTALL_SCRIPTS = custom
 
+PRESERVECONF += $(sysconfdir)/mirmon.conf
+
 include gar/category.mk
 
 install-custom:
@@ -73,4 +81,6 @@
 	cd $(WORKSRC) && cp -r countries.list icons $(PKGROOT)$(sharedstatedir)/mirmon
 	ginstall -d $(PKGROOT)$(sharedstatedir)/perl/csw
 	cd $(WORKSRC) && cp -r Mirmon.pm $(PKGROOT)$(sharedstatedir)/perl/csw
+	ginstall -d $(PKGROOT)$(sysconfdir)
+	cd $(WORKDIR) && ginstall -m 0644 mirmon.conf.CSW $(PKGROOT)$(sysconfdir)
 	@$(MAKECOOKIE)

Added: csw/mgar/pkg/mirmon/trunk/files/mirmon.conf.CSW
===================================================================
--- csw/mgar/pkg/mirmon/trunk/files/mirmon.conf.CSW	                        (rev 0)
+++ csw/mgar/pkg/mirmon/trunk/files/mirmon.conf.CSW	2014-01-27 20:30:47 UTC (rev 22904)
@@ -0,0 +1,86 @@
+####################################################################
+## lines that start with '#' are comment
+## blank lines are ignored too
+## tabs are replaced by a space
+#
+## the config entries are 'key' and 'value' pairs
+## a 'key' begins in column 1
+## the 'value' is the rest of the line
+#somekey  A_val B_val ...
+#otherkey X_val Y_val ...
+#
+## indented lines are glued
+## the next three lines mean 'somekey part1 part2 part3'
+#somekey part1
+#  part2
+#  part3
+#
+## lines starting with a '+' are concatenated
+## the next three lines mean 'somekey part1part2part3'
+#somekey part1
+#+ part2
+#+ part3
+#
+## lines starting with a '.' are glued too
+## don't use a '.' on a line by itself
+## 'somekey' gets the value "part1\n part2\n part3"
+#somekey part1
+#. part2
+#. part3
+#
+####################################################################
+
+project_name OpenCSW
+
+project_url http://www.opencsw.org/
+
+mirror_list /var/tmp/mirror-list.mirmon
+
+web_page /var/opt/csw/mirmon/html/mirmon.html
+
+# This absolute path can only work for local tests without a web server
+# (see the generated web page).
+icons /opt/csw/share/mirmon/icons
+
+probe ftp -V -o - -q %TIMEOUT% %URL%/mirrors/timestamp.txt
+
+state /var/opt/csw/mirmon/state.mirmon
+
+countries /opt/csw/share/mirmon/countries.list
+
+#max_probes 25
+
+#timeout 300
+
+#project_logo http://www.opencsw.org/wp-content/themes/opencsw/img/logo.png
+
+#htm_foot
+# <hr>
+# <a href=""><img src="" border="0"></a>
+# <hr>
+
+#htm_top Some words
+
+#put_histo top
+
+#min_poll 4h
+
+#max_poll 12h
+
+#min_sync 1d
+
+#max_sync 2d
+
+#no_randomize
+
+#list_style plain
+
+#site_url <site> <url>
+
+#env <key> <value>
+
+#include <file name>
+
+#show
+
+#exit

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list