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

wilbury at users.sourceforge.net wilbury at users.sourceforge.net
Wed Sep 7 21:10:39 CEST 2011


Revision: 15554
          http://gar.svn.sourceforge.net/gar/?rev=15554&view=rev
Author:   wilbury
Date:     2011-09-07 19:10:39 +0000 (Wed, 07 Sep 2011)
Log Message:
-----------
Add "libmemcached" stub tree as a placeholder.

Modified Paths:
--------------
    csw/mgar/pkg/libmemcached/trunk/Makefile
    csw/mgar/pkg/libmemcached/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/libmemcached/
    csw/mgar/pkg/libmemcached/trunk/files/0001-Do-not-use-Wstrict-prototypes-warning.patch

Modified: csw/mgar/pkg/libmemcached/trunk/Makefile
===================================================================
--- csw/mgar/pkg/template/trunk/Makefile	2011-09-06 16:28:44 UTC (rev 15538)
+++ csw/mgar/pkg/libmemcached/trunk/Makefile	2011-09-07 19:10:39 UTC (rev 15554)
@@ -1,188 +1,72 @@
-# Copyright 2009 OpenCSW
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-## This file contains comments to guide you through various GAR settings.
-## Please remove unnecessary comments before committing your code to the code
-## repository. The comments to remove are marked with double hashes.
-## If you want to remove them all in-place, use:
-## gsed -i -e '/^##/d' Makefile
-##
-## For more information about GAR variables, please see:
-## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference
-##
-NAME = mypkg
-VERSION = 1.0
-##
-## The category that your software fits in. This is not a descriptive field, but
-## influences the build process. Depending on the CATEGORIES setting, different
-## Makefiles are included from gar/categories/ in your trunk directory, which
-## adjust the build settings for the respective category.
-##
-## Possible settings are:
-## apps, cpan, devel, gnome, java, kde, lang, lib, meta, net, python, server,
-## utils, x11, xfce, xorg, xtra
+NAME = libmemcached
+VERSION = 0.51
+VENDOR_URL = http://libmemcached.org/
 CATEGORIES = lib
-##
-## A one-line description of the package, which will appear in the pkginfo.
-DESCRIPTION = <please fill in>
-##
-## A longer description of the package. This is only for descriptive purposes
-## inside the Makefile and is not used elsewhere.
+DESCRIPTION = Library memcached interface
 define BLURB
-  <please fill in>
+  memcached url
 endef
-##
-## Upstream URL that should show up in the VENDOR field as well as on
-## http://opencsw.org/packages/<packagename>.
-SPKG_SOURCEURL =
-##
-## Whitespace-separated list of URLs to download the source package from.
-## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR),
-## $(PYPI_MIRROR)
-MASTER_SITES =
-##
-## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the
-## Sourceforge project name differs from $(NAME). Specifies the Sourceforge
-## project name of the software you wish to download.
-## SF_PROJ =
-##
-## A list of space separated patch filenames from files/ that are to be applied
-## to the extracted software before the ./configure stage. Patches need to be
-## included in the DISTFILES variable as well.
-## PATCHFILES =
-##
-## Whitespace-separated list of files which comprise this build. mGAR will look
-## for the files in the $(FILEDIR) (trunk/files) directory and on the
-## $(MASTER_SITES).
+SPKG_SOURCEURL = http://libmemcached.org/
+MASTER_SITES = http://launchpad.net/libmemcached/1.0/$(VERSION)/+download/
+PATCHFILES = 0001-Do-not-use-Wstrict-prototypes-warning.patch
+#PATCHFILES += 0002-use-stdnamespace-for-index.patch
+#PATCHFILES += 0003-use-opt-csw-bin-ggrep.patch
+#PATCHFILES += 0004-use-opt-csw-bin-ggrep-for-pandora.patch
+#PATCHFILES += 0006-fix-tests.patch
+#PATCHFILES += 0007-fix-test_h.patch
+
 DISTFILES  = $(NAME)-$(VERSION).tar.gz
-##
-## We define upstream file regex so we can be notifed of new upstream software
-## release
-## UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
-##
-## Catalog name is the name to be used with pkg{-get,util} -i <pkgname>.
-## It is different from the system package name, which by convention is CSWpkgname.
-## CATALOGNAME =
-##
-## Set to 1 to mark the package as architecture-independent.
-## ARCHALL = 0
-##
-## A list of files / patterns that should be excluded from the package. Amends
-## the default list of excluded filenames $(MERGE_EXCLUDE_DEFAULT), which
-## contains things like libtool .la files and files with a leading ~.
-## EXTRA_MERGE_EXCLUDE_FILES =
-##
-## A list of space separated package names that should be marked as
-## incompatible with the current package. This will go into the depend file.
-## When a user has one of the incompatible packages installed and installs
-## your package, he will be prompted that the incompatible package must be
-## removed. He will however not be prevented to install your package without
-## removing the conflicting package first.
-## INCOMPATIBLE_PKGS =
-##
-##  The name of the license file that should be included in your package. Defaults
-##  to COPYING. See http://sourceforge.net/apps/trac/gar/wiki/CopyRight for details
-##  on including and displaying licenses.
-## LICENSE =
-##
-## A list of space separated package names that should be produced from your
-## Makefile. This is used when a software has different components that can be
-## packaged and used individually (think runtime libraries, client tools, server
-## files, development headers). You don't need to set this when you just want to
-## produce one package.
-##
-## When you set this variable to include more than one package, you also need to
-## set PKGFILES_CSWpkgname for each package (except for the first one in your
-## $(PACKAGES) list) to define which files go into each package. The first
-## package from $(PACKAGES) one will hold all files that are not matched by
-## PKGFILES_ for other packages.
-## PACKAGES =
-##
-## If specified, GAR feeds the almost-final package prototype file to
-## $(PROTOTYPE_FILTER) and reads the final package prototype file from it.
-## $(PROTOTYPE_FILTER) is usually a sed/awk/perl one-liner, which was mostly used
-## to prepare the prototype file for use with cswclassutils (see
-## $(SPKG_CLASSES)). Now that there are convenience variables for cswclassutils,
-## you will rarely have to use this. A still valid use case would be to change
-## the file permissions of a file to be set-UID.
-## See http://wiki.opencsw.org/cswclassutils-package for common usage information
-## PROTOTYPE_FILTER =
-##
-## cswclassutils settings
-##
-## A list of action classes. Possible values are:
-## none cswpreserveconf cswcpsampleconf cswpycompile cswusergroup cswinitsmf
-##	cswinetd cswetcservices
-## The class 'cswinitsmf' must be the last class listed. When you use cswclassutils,
-## you need to add CSWcswclassutils to RUNTIME_DEP_PKGS.
-## SPKG_CLASSES = none
-## Simplified settings for classes:
-## PRESERVECONF =
-## SAMPLECONF =
-## INITSMF =
-## USERGROUP =
-## ETCSERVICES = <file containing an entry for /etc/services>
-## INETDCONF = <file containing an inetd.conf formatted entry>
-## A list of runtime package dependencies in the form of CSWfoo.
-## RUNTIME_DEP_PKGS =
-##
-## A list of packages necessary to build this package
-## BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS)
-##
-## When using non-empty $(PACKAGES):
-## RUNTIME_DEP_PKGS_CSWpkgname =
-## SPKG_DESC_CSWpkgname =
-## PKGFILES_CSWpkgname =
-## CATALOGNAME_CSWpkgname =
-##
-## A list of space separated directories where objects should be stripped in
-## addition to the bin/ and sbin/ directories.
-## STRIP_DIRS =
-##
-## Define a custom target for the configure phase. When you set this, the target
-## that will be used instead of configure: target, is named
-## configure-$(CONFIGURE_SCRIPTS) and you will need to define it in your Makefile
-## after including gar/gar.include.mk. If you want to skip the configure phase
-## completely (for example when your software doesn't need to be compiled) assign
-## this variable an empty value. The procedure works for configure, build,
-## install and test steps.
-## CONFIGURE_SCRIPTS =
-## BUILD_SCRIPTS =
-## INSTALL_SCRIPTS =
-## TEST_SCRIPTS =
-##
-## Compilation settings
-##
-## The build directory.
-## WORKSRC = $(WORKDIR)/$(NAME)-$(VERSION)
-##
-## BUILD_ARGS is passed as an argument to gmake during the build phase. Use this
-## for example, if you need to override Makefile variables.
-## BUILD_ARGS =
-##
-## Arguments passed to the ./configure script.
+UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+
 CONFIGURE_ARGS = $(DIRPATHS)
-##
-## BUILD64 =
-## CONFIGURE_ENV =
-## EXTRA_CFLAGS =
-## EXTRA_LDFLAGS =
-## EXTRA_INC =
-## EXTRA_LIB =
-## GARFLAVOR =
-## INSTALL_ARGS =
-## OPT_FLAGS_SOS = -xO3
-## OPT_FLAGS_GCC = -O2 -pipe
-##
-## The compiler to use. This can be also: SOS11, GCC3, GCC4.
-## Specifying GNU will default to GCC4, specifying SUN will default to SOS12
-## GARCOMPILER = SOS12
-##
-# Remove the following rules and uncomment the
-# include before building.
-all: .DEFAULT
-.DEFAULT:
-	@true
+CONFIGURE_ARGS += --disable-dtrace
 
-#include gar/category.mk
+BUILD64 = 1
+SKIPTEST = 1
+
+OPT_FLAGS_SOS = -xO3
+OPT_FLAGS_GCC = -O2 -pipe
+
+GARCOMPILER = GCC4
+
+LDFLAGS_32="-R/opt/csw/lib/i386"
+LDFLAGS_64="-R/opt/csw/lib/amd64"
+
+PACKAGES = CSWlibmemcached
+SPKG_DESC_CSWlibmemcached = libmemcached library
+RUNTIME_DEP_PKGS_CSWlibmemcached += CSWlibmemcached8
+RUNTIME_DEP_PKGS_CSWlibmemcached += CSWlibhashkit1
+RUNTIME_DEP_PKGS_CSWlibmemcached += CSWlibmemcachedutil2
+RUNTIME_DEP_PKGS_CSWlibmemcached += CSWlibmemcachedprotocol0
+
+PACKAGES += CSWlibhashkit1
+CATALOGNAME_CSWlibhashkit1 = libhashkit1
+VENDOR_URL_CSWlibhashkit1 = http://libmemcached.org/libMemcached.html
+PKGFILES_CSWlibhashkit1 += $(call baseisadirs,$(libdir),libhashkit\.so\.1\.0\.0)
+PKGFILES_CSWlibhashkit1 += $(call baseisadirs,$(libdir),libhashkit\.so\.1(\.\d+)*)
+SPKG_DESC_CSWlibhashkit1 += $(DESCRIPTION), libhashkit.so.1
+
+PACKAGES += CSWlibmemcached8
+CATALOGNAME_CSWlibmemcached8 = libmemcached8
+VENDOR_URL_CSWlibmemcached8 = http://libmemcached.org/libMemcached.html
+PKGFILES_CSWlibmemcached8 += $(call baseisadirs,$(libdir),libmemcached\.so\.8\.0\.0)
+PKGFILES_CSWlibmemcached8 += $(call baseisadirs,$(libdir),libmemcached\.so\.8(\.\d+)*)
+SPKG_DESC_CSWlibmemcached8 += $(DESCRIPTION), libmemcached.so.8
+
+PACKAGES += CSWlibmemcachedprotocol0
+CATALOGNAME_CSWlibmemcachedprotocol0 = libmemcachedprotocol0
+VENDOR_URL_CSWlibmemcachedprotocol0 = http://libmemcached.org/
+PKGFILES_CSWlibmemcachedprotocol0 += $(call baseisadirs,$(libdir),libmemcachedprotocol\.so\.0\.0\.0)
+PKGFILES_CSWlibmemcachedprotocol0 += $(call baseisadirs,$(libdir),libmemcachedprotocol\.so\.0(\.\d+)*)
+SPKG_DESC_CSWlibmemcachedprotocol0 += $(DESCRIPTION), libmemcachedprotocol.so.0
+
+PACKAGES += CSWlibmemcachedutil2
+CATALOGNAME_CSWlibmemcachedutil2 = libmemcachedutil2
+VENDOR_URL_CSWlibmemcachedutil2 = http://libmemcached.org/
+PKGFILES_CSWlibmemcachedutil2 += $(call baseisadirs,$(libdir),libmemcachedutil\.so\.2\.0\.0)
+PKGFILES_CSWlibmemcachedutil2 += $(call baseisadirs,$(libdir),libmemcachedutil\.so\.2(\.\d+)*)
+SPKG_DESC_CSWlibmemcachedutil2 += $(DESCRIPTION), libmemcachedutil.so.2
+RUNTIME_DEP_PKGS_CSWlibmemcachedutil2 += CSWlibmemcached8
+
+include gar/category.mk
+

Modified: csw/mgar/pkg/libmemcached/trunk/checksums
===================================================================
--- csw/mgar/pkg/template/trunk/checksums	2011-09-06 16:28:44 UTC (rev 15538)
+++ csw/mgar/pkg/libmemcached/trunk/checksums	2011-09-07 19:10:39 UTC (rev 15554)
@@ -0,0 +1 @@
+30fd0ce62a223dc5e7bd9e841f8baa4b  libmemcached-0.51.tar.gz

Added: csw/mgar/pkg/libmemcached/trunk/files/0001-Do-not-use-Wstrict-prototypes-warning.patch
===================================================================
--- csw/mgar/pkg/libmemcached/trunk/files/0001-Do-not-use-Wstrict-prototypes-warning.patch	                        (rev 0)
+++ csw/mgar/pkg/libmemcached/trunk/files/0001-Do-not-use-Wstrict-prototypes-warning.patch	2011-09-07 19:10:39 UTC (rev 15554)
@@ -0,0 +1,39 @@
+From 68db3657c8f086798bd01a878717d785c16c5b05 Mon Sep 17 00:00:00 2001
+From: Juraj Lutter <wilbury at unstable10x.(none)>
+Date: Wed, 7 Sep 2011 18:16:03 +0200
+Subject: [PATCH] Do not use -Wstrict-prototypes warning.
+
+---
+ configure              |    2 +-
+ m4/pandora_warnings.m4 |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index b6d6df9..82db435 100755
+--- a/configure
++++ b/configure
+@@ -18502,7 +18502,7 @@ fi
+ 
+ fi
+ 
+-      CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
++      CC_WARNINGS="${BASE_WARNINGS} -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
+       CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long ${CXX_WARNINGS_FULL}"
+ 
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to use -Wmissing-declarations from C++" >&5
+diff --git a/m4/pandora_warnings.m4 b/m4/pandora_warnings.m4
+index 0f6d47a..372e719 100644
+--- a/m4/pandora_warnings.m4
++++ b/m4/pandora_warnings.m4
+@@ -237,7 +237,7 @@ uint16_t x= htons(80);
+               [NO_CONVERSION="-Wno-conversion"])
+       ])
+ 
+-      CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
++      CC_WARNINGS="${BASE_WARNINGS} -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wcast-align ${CC_WARNINGS_FULL}"
+       CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long ${CXX_WARNINGS_FULL}"
+ 
+       AC_CACHE_CHECK([whether it is safe to use -Wmissing-declarations from C++],
+-- 
+1.7.6
+

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