SF.net SVN: gar:[25127] csw/mgar/pkg/lang-python

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu Jun 25 17:56:31 CEST 2015


Revision: 25127
          http://sourceforge.net/p/gar/code/25127
Author:   dmichelsen
Date:     2015-06-25 15:56:31 +0000 (Thu, 25 Jun 2015)
Log Message:
-----------
lang-python/cardiff: Initial commit

Modified Paths:
--------------
    csw/mgar/pkg/lang-python/cardiff/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/lang-python/cardiff/
    csw/mgar/pkg/lang-python/cardiff/trunk/Makefile
    csw/mgar/pkg/lang-python/cardiff/trunk/files/cardiff.yaml
    csw/mgar/pkg/lang-python/cardiff/trunk/files/cswcardiff.xml

Removed Paths:
-------------
    csw/mgar/pkg/lang-python/cardiff/trunk/Makefile

Deleted: csw/mgar/pkg/lang-python/cardiff/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/carbon/trunk/Makefile	2015-04-01 14:24:48 UTC (rev 24794)
+++ csw/mgar/pkg/lang-python/cardiff/trunk/Makefile	2015-06-25 15:56:31 UTC (rev 25127)
@@ -1,25 +0,0 @@
-# $Id$
-# TODO (release-critical prefixed with !, non release-critical with *)
-#
-NAME = carbon
-VERSION = 0.9.13
-CATEGORIES = python
-
-DESCRIPTION = Backend data caching and persistence daemon for Graphite
-
-MASTER_SITES = $(PYPI_MIRROR)
-DISTFILES  = $(DISTNAME).tar.gz
-
-PACKAGES += CSWpy-carbon
-SPKG_DESC_CSWpy-carbon = Backend data caching and persistence daemon for Graphite
-# PKGFILES is catchall
-ARCHALL_CSWpy-carbon = 1
-
-# There is no testsuite
-TEST_SCRIPTS =
-
-include gar/category.mk
-
-post-extract:
-	-cd $(WORKSRC) && mv setup.cfg setup.cfg.orig
-	@$(MAKECOOKIE)

Copied: csw/mgar/pkg/lang-python/cardiff/trunk/Makefile (from rev 25126, csw/mgar/pkg/lang-python/carbon/trunk/Makefile)
===================================================================
--- csw/mgar/pkg/lang-python/cardiff/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/lang-python/cardiff/trunk/Makefile	2015-06-25 15:56:31 UTC (rev 25127)
@@ -0,0 +1,50 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = cardiff
+VERSION = 1.2.0
+CATEGORIES = python
+
+DESCRIPTION = Cardiff is an extendible statsd clone written in Python
+
+MASTER_SITES = $(PYPI_MIRROR)
+DISTFILES += $(DISTNAME).tar.gz
+MANIFESTS += cswcardiff.xml
+DISTFILES += $(MANIFESTS)
+DISTFILES += cardiff.yaml
+
+# This is a new package, don't bother building for 2.6
+MODULATIONS_PYTHON_VERSION = 2_7
+
+PACKAGES += CSWcardiff
+SPKG_DESC_CSWcardiff = Cardiff is an extendible statsd clone written in Python
+# PKGFILES is catchall
+ARCHALL_CSWcardiff = 1
+RUNTIME_DEP_PKGS_CSWcardiff += CSWpython27
+CHECKPKG_OVERRIDES_CSWcardiff += surplus-dependency|CSWpython27
+
+CHECKPKG_OVERRIDES_CSWcardiff += catalogname-does-not-start-with-py_
+CHECKPKG_OVERRIDES_CSWcardiff += pkgname-does-not-start-with-CSWpy-
+
+# This is for the SMF DTD
+CHECKPKG_OVERRIDES_CSWcardiff += file-with-bad-content|/usr/share|root/var/opt/csw/svc/manifest/cswcardiff.xml
+
+REINPLACE_USRLOCAL += setup.py
+
+# There is no testsuite
+TEST_SCRIPTS =
+
+PRESERVECONF += $(sysconfdir)/cardiff.yaml
+
+PROTOTYPE_MODIFIERS += smf
+PROTOTYPE_FILES_smf += $(foreach F,$(MANIFESTS),/var/opt/csw/svc/manifest/$F)
+PROTOTYPE_CLASS_smf = manifest
+
+include gar/category.mk
+
+post-install:
+	ginstall -D -m 0644 $(WORKDIR)/cardiff.yaml $(DESTDIR)$(sysconfdir)/cardiff.yaml
+	$(foreach F,$(MANIFESTS),ginstall -D -m 0644 $(WORKDIR)/$F $(DESTDIR)/var/opt/csw/svc/manifest/$F;)
+	rm -f $(DESTDIR)$(sharedstatedir)/cardiff/init.d/cardiff
+	rmdir $(DESTDIR)$(sharedstatedir)/cardiff/init.d
+	@$(MAKECOOKIE)

Modified: csw/mgar/pkg/lang-python/cardiff/trunk/checksums
===================================================================
--- csw/mgar/pkg/lang-python/carbon/trunk/checksums	2015-04-01 14:24:48 UTC (rev 24794)
+++ csw/mgar/pkg/lang-python/cardiff/trunk/checksums	2015-06-25 15:56:31 UTC (rev 25127)
@@ -1 +1 @@
-98c182967f52dd0d93a9c4a7a4066b5b  carbon-0.9.13.tar.gz
+5b4c852b45e0da9e11033535c14e199d  cardiff-1.2.0.tar.gz

Added: csw/mgar/pkg/lang-python/cardiff/trunk/files/cardiff.yaml
===================================================================
--- csw/mgar/pkg/lang-python/cardiff/trunk/files/cardiff.yaml	                        (rev 0)
+++ csw/mgar/pkg/lang-python/cardiff/trunk/files/cardiff.yaml	2015-06-25 15:56:31 UTC (rev 25127)
@@ -0,0 +1,60 @@
+%YAML 1.2
+---
+Application:
+  flush_interval: 60
+  statsd:
+    host: 0.0.0.0
+    port: 8125
+  upstream:
+    enabled: false
+    host: 0.0.0.0
+    port: 8127
+  backends:
+    amqp:
+      enabled: False
+      host: localhost
+      port: 5672
+      virtual_host: /
+      user: guest
+      password: guest
+      exchange: cardiff
+    graphite:
+      enabled: False
+      host: localhost
+      port: 2004
+      format: pickle
+      batch_size: 300
+      prefix: cardiff
+      counter_prefix: counters
+      gauge_prefix: gauges
+      timer_prefix: timers
+    logger:
+      enabled: False
+    statsd:
+      enabled: False
+      host: localhost
+      port: 8125
+    upstream:
+      enabled: False
+      host: localhost
+      port: 8127
+
+Daemon:
+  user: cardiff
+  pidfile: /var/run/cardiff.pid
+
+Logging:
+  formatters:
+    syslog:
+      format: '%(levelname)s <PID %(process)d:%(processName)s> %(name)s.%(funcName)s(): %(message)s'
+  handlers:
+    syslog:
+      class: logging.handlers.SysLogHandler
+      facility: local6
+      address: /dev/log
+      formatter: syslog
+  loggers:
+    cardiff:
+      level: DEBUG
+      propagate: true
+      handlers: [console, syslog]

Copied: csw/mgar/pkg/lang-python/cardiff/trunk/files/cswcardiff.xml (from rev 25124, csw/mgar/pkg/lang-python/carbon/trunk/files/cswcarbon-cache.xml)
===================================================================
(Binary files differ)

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