[csw-devel] SF.net SVN: gar:[7758] csw/mgar/pkg

wbonnet at users.sourceforge.net wbonnet at users.sourceforge.net
Sun Dec 27 21:41:24 CET 2009


Revision: 7758
          http://gar.svn.sourceforge.net/gar/?rev=7758&view=rev
Author:   wbonnet
Date:     2009-12-27 20:41:23 +0000 (Sun, 27 Dec 2009)

Log Message:
-----------
Initial commit

Added Paths:
-----------
    csw/mgar/pkg/lutefisk/
    csw/mgar/pkg/lutefisk/branches/
    csw/mgar/pkg/lutefisk/tags/
    csw/mgar/pkg/lutefisk/trunk/
    csw/mgar/pkg/lutefisk/trunk/Makefile
    csw/mgar/pkg/lutefisk/trunk/checksums
    csw/mgar/pkg/lutefisk/trunk/files/
    csw/mgar/pkg/lutefisk/trunk/files/license
    csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_smor
    csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_tilbehor


Property changes on: csw/mgar/pkg/lutefisk/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/lutefisk/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lutefisk/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/lutefisk/trunk/Makefile	2009-12-27 20:41:23 UTC (rev 7758)
@@ -0,0 +1,55 @@
+GARNAME = lutefisk
+GARVERSION = 0.1
+CATEGORIES = utils
+
+DESCRIPTION = provides statistics about 
+define BLURB
+  Lutefisk is a reporting tool used to send upstream information about the usage of packages. Lutefisk is made of two scripts, smor and tilbehor, each script is a hook called by the package management tools, like pkgutil.
+  Smor is the package statistics tool. The following informations are sent upstream when a package is downloaded. Package name, arch, OS version both for package and machine running the package tool and source used (current, stable, etc.). 
+  Tilbehor is the mirror statistics tool. The following informations are sent upstream when a package is downloaded. Base URL of the mirror used, arch, OS version of the machine running the package tool and source used (current, stable, etc.). 
+  The use of this tools is completly anonymous. Only the day of the installation taken in account. Especially no time are recorded, and no personal information (such as IP adress) are stored. 
+endef
+
+MASTER_SITES = 
+
+DISTFILES  = lutefisk_med_tilbehor lutefisk_med_smor license
+
+# We define upstream file regex so we can be notifed of new upstream software release
+# UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+# If the url used to check for software update is different of MASTER_SITES, then 
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+PACKAGES = CSWlutefisktilbehor CSWlutefisksmor
+ARCHALL  = 1
+LICENSE  = license
+
+CATALOGNAME_CSWlutefisktilbehor = lutefisktilbehor
+CATALOGNAME_CSWlutefisksmor     = lutefisksmor
+
+# Defines package description
+SPKG_DESC_CSWlutefisksmor     = Lutefisk med smor $(DESCRIPTION) packages use
+SPKG_DESC_CSWlutefisktilbehor = Lutefisk med tilbehor $(DESCRIPTION) mirrors use
+
+# Defines dependencies
+REQUIRED_PKGS_CSWlutefisktilbehor = CSWwget CSWgawk 
+REQUIRED_PKGS_CSWlutefisksmor     = CSWwget CSWgawk CSWgsed
+
+# Defines package content
+PKGFILES_CSWlutefisktilbehor = .*/lutefisk_med_tilbehor
+# PKGFILES_CSWlutefisksmor     = .*/lutefisk_med_smor
+
+CONFIGURE_ARGS = $(DIRPATHS)
+
+CONFIGURE_SCRIPTS = 
+BUILD_SCRIPTS = 
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+include gar/category.mk
+
+install-custom:
+	@ginstall -d $(DESTDIR)/etc/opt/csw/pkg-hooks/postfetch.d/
+	@gcp $(FILEDIR)/lutefisk_med_tilbehor $(DESTDIR)/etc/opt/csw/pkg-hooks/postfetch.d/
+	@gcp $(FILEDIR)/lutefisk_med_smor $(DESTDIR)/etc/opt/csw/pkg-hooks/postfetch.d/

Added: csw/mgar/pkg/lutefisk/trunk/checksums
===================================================================
--- csw/mgar/pkg/lutefisk/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/lutefisk/trunk/checksums	2009-12-27 20:41:23 UTC (rev 7758)
@@ -0,0 +1,3 @@
+2d3c4c77372ffd3bc0c077db001e21d6  license
+bdd0326be5c948db0266f980cd89c4cb  lutefisk_med_smor
+c08752237fb6a0c435fc3a868b7ad2da  lutefisk_med_tilbehor

Added: csw/mgar/pkg/lutefisk/trunk/files/license
===================================================================
--- csw/mgar/pkg/lutefisk/trunk/files/license	                        (rev 0)
+++ csw/mgar/pkg/lutefisk/trunk/files/license	2009-12-27 20:41:23 UTC (rev 7758)
@@ -0,0 +1,22 @@
+The contents of this file are subject to the COMMON DEVELOPMENT AND
+DISTRIBUTION LICENSE (CDDL) (the "License"); you may not use this
+file except in compliance with the License.
+
+Software distributed under the License is distributed on an "AS IS" basis,
+WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+for the specific language governing rights and limitations under the
+License.
+
+Alternatively, the contents of this file may be used under the terms of
+either the GNU General Public License Version 3 or later (the "GPL"),
+in which case the provisions of the GPL are applicable instead
+of those above. If you wish to allow use of your version of this file only
+under the terms of either the GPL, and not to allow others to
+use your version of this file under the terms of the CDDL, indicate your
+decision by deleting the provisions above and replace them with the notice
+and other provisions required by the GPL. If you do not delete
+the provisions above, a recipient may use your version of this file under
+the terms of any one of the CDDL, or the GPL.
+
+Copyright 2009 OpenCSW (http://www.opencsw.org).  All rights reserved.
+Use is subject to license terms.


Property changes on: csw/mgar/pkg/lutefisk/trunk/files/license
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_smor
===================================================================
--- csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_smor	                        (rev 0)
+++ csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_smor	2009-12-27 20:41:23 UTC (rev 7758)
@@ -0,0 +1,38 @@
+#!/bin/sh 
+#
+# The contents of this file are subject to the COMMON DEVELOPMENT AND
+# DISTRIBUTION LICENSE (CDDL) (the "License"); you may not use this
+# file except in compliance with the License.
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPL"),
+# in which case the provisions of the GPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL, and not to allow others to
+# use your version of this file under the terms of the CDDL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the CDDL, or the GPL.
+
+# Copyright 2009 OpenCSW (http://www.opencsw.org).  All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Contributors list :
+#
+#      William Bonnet wbonnet at opencsw.org
+#
+
+packageTemp=`echo $1 | tr / \  | gawk '{ print $NF }`
+packageName=`echo ${packageTemp} | tr - \  | gawk '{ print $1 }`
+packageOsVersion=`echo ${packageTemp} | tr - \  | gawk '{ print $3 }' | gsed -e s/SunOS//`
+packageArch=`echo ${packageTemp} | tr - \  | gawk '{ print $4 }`
+targetOsVersion=`uname -r | gsed -e s/SunOS//`
+
+wget "http://www-mockup.opencsw.org/tools/statistics/packageSurvey.php?packageName=${packageName}&packageArch=${packageArch}&packageOsVersion=${packageOsVersion}&targetOsVersion=${targetOsVersion}" -O /dev/null


Property changes on: csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_smor
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_tilbehor
===================================================================
--- csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_tilbehor	                        (rev 0)
+++ csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_tilbehor	2009-12-27 20:41:23 UTC (rev 7758)
@@ -0,0 +1,37 @@
+#!/bin/sh 
+#
+# The contents of this file are subject to the COMMON DEVELOPMENT AND
+# DISTRIBUTION LICENSE (CDDL) (the "License"); you may not use this
+# file except in compliance with the License.
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPL"),
+# in which case the provisions of the GPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL, and not to allow others to
+# use your version of this file under the terms of the CDDL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the CDDL, or the GPL.
+
+# Copyright 2009 OpenCSW (http://www.opencsw.org).  All rights reserved.
+# Use is subject to license terms.
+#
+#
+# Contributors list :
+#
+#      William Bonnet wbonnet at opencsw.org
+#
+
+mirrorName=`echo $1 | gawk -F/ '{ a = "" ; for (i=1; i <= NF - 5; i++) a = a $i "/" ; i = NF -4 ; a = a $i ; print a  }'`
+mirrorOsVersion=`echo $1 | tr / \  | gawk '{ i = NF -1 ; print $i }`
+mirrorArch=`echo $1 | tr / \  | gawk '{ i = NF - 2 ; print $i }`
+mirrorSource=`echo $1 | tr / \  | gawk '{ i = NF - 3 ; print $i }`
+
+wget "http://www-mockup.opencsw.org/tools/statistics/mirrorSurvey.php?mirrorName=${mirrorName}&mirrorArch=${mirrorArch}&mirrorOsVersion=${mirrorOsVersion}&mirrorSource=${mirrorSource}" -O /dev/null


Property changes on: csw/mgar/pkg/lutefisk/trunk/files/lutefisk_med_tilbehor
___________________________________________________________________
Added: svn:executable
   + *


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