SF.net SVN: gar:[22723] csw/mgar/pkg/lang-python/mb/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Dec 20 14:58:16 CET 2013


Revision: 22723
          http://sourceforge.net/p/gar/code/22723
Author:   dmichelsen
Date:     2013-12-20 13:58:14 +0000 (Fri, 20 Dec 2013)
Log Message:
-----------
lang-python/mb/trunk: Adjustments for mirrorbrain.conf

Modified Paths:
--------------
    csw/mgar/pkg/lang-python/mb/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/lang-python/mb/trunk/files/mirrorbrain.conf.CSW

Modified: csw/mgar/pkg/lang-python/mb/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/mb/trunk/Makefile	2013-12-20 13:07:29 UTC (rev 22722)
+++ csw/mgar/pkg/lang-python/mb/trunk/Makefile	2013-12-20 13:58:14 UTC (rev 22723)
@@ -9,14 +9,24 @@
 DESCRIPTION = Brief description
 
 MASTER_SITES = http://mirrorbrain.org/files/releases/
-DISTFILES  = $(DISTNAME).tar.gz
+DISTFILES += $(DISTNAME).tar.gz
+DISTFILES += mirrorbrain.conf.CSW
 
 PATCHFILES += 0001-New-locations-for-GeoIP-databases.patch
 
-WORKSRC = $(WORKDIR)/$(DISTNAME)/mb
+# We really do only care for MirrorBrain on Solaris 10
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
 
 LICENSE = COPYING
 
+WORKSRC = $(WORKDIR)/$(DISTNAME)/mb
+
+REINPLACEMENTS += conf
+REINPLACE_MATCH_conf = /etc/mirrorbrain\.conf
+REINPLACE_WITH_conf = $(sysconfdir)/mirrorbrain.conf
+REINPLACE_FILES_conf += mb.py
+REINPLACE_FILES_conf += mb/conf.py
+
 PACKAGES += CSWpy-mb
 SPKG_DESC_CSWpy-mb = Python module used by the MirrorBrain commandline tools
 # PKGFILES is catchall
@@ -29,9 +39,12 @@
 CHECKPKG_OVERRIDES_CSWpy-mb += surplus-dependency|CSWpy-cmdln
 CHECKPKG_OVERRIDES_CSWpy-mb += surplus-dependency|CSWgeolitedb
 
+PRESERVECONF += $(sysconfdir)/mirrorbrain.conf
+
 # There is no testsuite
 SKIPTEST ?= 1
 
 include gar/category.mk
 
-
+post-merge-all:
+	ginstall -D -m 0640 $(WORKDIR)/mirrorbrain.conf.CSW $(PKGROOT)$(sysconfdir)/mirrorbrain.conf.CSW

Added: csw/mgar/pkg/lang-python/mb/trunk/files/mirrorbrain.conf.CSW
===================================================================
--- csw/mgar/pkg/lang-python/mb/trunk/files/mirrorbrain.conf.CSW	                        (rev 0)
+++ csw/mgar/pkg/lang-python/mb/trunk/files/mirrorbrain.conf.CSW	2013-12-20 13:58:14 UTC (rev 22723)
@@ -0,0 +1,15 @@
+[general]
+instances = main
+
+[main]
+dbuser = mirrorbrain
+dbpass = 12345
+dbdriver = postgresql
+dbhost = 127.0.0.1
+# optional: dbport = ...
+dbname = mirrorbrain
+
+[mirrorprobe]
+# logfile = /var/opt/csw/mirrorbrain/mirrorprobe.log
+# loglevel = INFO
+

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