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

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue Feb 28 14:04:22 CET 2012


Revision: 17242
          http://gar.svn.sourceforge.net/gar/?rev=17242&view=rev
Author:   cgrzemba
Date:     2012-02-28 13:04:21 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
hplip/trunk: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/hplip/
    csw/mgar/pkg/hplip/branches/
    csw/mgar/pkg/hplip/tags/
    csw/mgar/pkg/hplip/trunk/
    csw/mgar/pkg/hplip/trunk/Makefile
    csw/mgar/pkg/hplip/trunk/files/
    csw/mgar/pkg/hplip/trunk/files/0001-replace-strnlen.patch
    csw/mgar/pkg/hplip/trunk/files/0002-add-strnlen-def.patch


Property changes on: csw/mgar/pkg/hplip/trunk
___________________________________________________________________
Added: svn:ignore
   + work
checksums


Added: csw/mgar/pkg/hplip/trunk/Makefile
===================================================================
--- csw/mgar/pkg/hplip/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/hplip/trunk/Makefile	2012-02-28 13:04:21 UTC (rev 17242)
@@ -0,0 +1,42 @@
+NAME = hplip
+VERSION = 3.12.2
+GARTYPE = v2
+CATEGORIES = utils
+
+MASTER_SITES = http://prdownloads.sourceforge.net/hplip
+DISTFILES = $(NAME)-$(VERSION).tar.gz
+
+
+DESCRIPTION = HP Cups Printing and Imaging
+define BLURB
+	Cups printer drivers for HP non postsript printers
+endef
+
+# GARCOMPILER = GNU
+GARCOMPILER = SOS12U3
+
+PACKAGING_PLATFORMS = solaris10-i386 solaris10-sparc
+
+PACKAGES = CSWhplip
+OBSOLETED_BY_CSWhplip = CSWhpijs
+SPKG_DESC_CSWhplip = $(DESCRIPTION) foomatic
+
+PATCHFILES += 0001-replace-strnlen.patch
+PATCHFILES += 0002-add-strnlen-def.patch
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --enable-hpijs-only-build
+# CONFIGURE_ARGS += --enable-hpcups-only-build
+
+CHECKPKG_OVERRIDES_CSWhplip += file-with-bad-content|/usr/share|root/opt/csw/share/doc/hplip-3.12.2/upgrading.html
+CHECKPKG_OVERRIDES_CSWhplip += file-with-bad-content|/usr/share|root/opt/csw/share/doc/hplip-3.12.2/uninstalling.html
+
+
+include gar/category.mk
+
+pre-configure-modulated:
+	cd $(WORKSRC) && rm ltmain.sh && libtoolize --copy --force
+	cd $(WORKSRC) && aclocal
+	cd $(WORKSRC) && autoconf --force
+#	cd $(WORKSRC) && automake -a -c -f
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/hplip/trunk/files/0001-replace-strnlen.patch
===================================================================
--- csw/mgar/pkg/hplip/trunk/files/0001-replace-strnlen.patch	                        (rev 0)
+++ csw/mgar/pkg/hplip/trunk/files/0001-replace-strnlen.patch	2012-02-28 13:04:21 UTC (rev 17242)
@@ -0,0 +1,26 @@
+From 36215256640bc2c5381b436e7c03aae6d37f4f5a Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 28 Feb 2012 12:36:47 +0100
+Subject: [PATCH] replace strnlen
+
+---
+ configure.in |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index d3e46cc..d5318f2 100755
+--- a/configure.in
++++ b/configure.in
+@@ -526,6 +526,9 @@ if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups
+    AC_MSG_ERROR([fax requires dbus support], 15)
+ fi
+ 
++AC_CHECK_DECLS(strnlen)
++AC_REPLACE_FUNCS(strnlen)
++
+ # AC_DEFINE_DIR([DATADIR], [datadir])
+ # Copyright © 2006 Stepan Kasal  <kasal at ucw.cz>
+ # Copyright © 2006 Andreas Schwab <schwab at suse.de>
+-- 
+1.7.9
+

Added: csw/mgar/pkg/hplip/trunk/files/0002-add-strnlen-def.patch
===================================================================
--- csw/mgar/pkg/hplip/trunk/files/0002-add-strnlen-def.patch	                        (rev 0)
+++ csw/mgar/pkg/hplip/trunk/files/0002-add-strnlen-def.patch	2012-02-28 13:04:21 UTC (rev 17242)
@@ -0,0 +1,26 @@
+From 747c3b88a9b64a507e9af6c5b00f8bbc78de9795 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Tue, 28 Feb 2012 13:35:49 +0100
+Subject: [PATCH] add strnlen def
+
+---
+ prnt/hpijs/config.h |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/prnt/hpijs/config.h b/prnt/hpijs/config.h
+index 7fe03be..4be5cd5 100644
+--- a/prnt/hpijs/config.h
++++ b/prnt/hpijs/config.h
+@@ -394,4 +394,9 @@ in "auto-include.h").
+ */
+ //#define  APDK_AUTO_INCLUDE
+ 
++#if HAVE_DECL_STRNLEN == 0
++#include <sys/types.h>
++ size_t strnlen(const char *s,size_t maxlen);
++#endif
++
+ #endif //APDK_CONFIG_H
+-- 
+1.7.9
+

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