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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Feb 14 13:26:36 CET 2012


Revision: 17051
          http://gar.svn.sourceforge.net/gar/?rev=17051&view=rev
Author:   dmichelsen
Date:     2012-02-14 12:26:35 +0000 (Tue, 14 Feb 2012)
Log Message:
-----------
bsdiff: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/bsdiff/
    csw/mgar/pkg/bsdiff/Makefile
    csw/mgar/pkg/bsdiff/branches/
    csw/mgar/pkg/bsdiff/tags/
    csw/mgar/pkg/bsdiff/trunk/
    csw/mgar/pkg/bsdiff/trunk/Makefile
    csw/mgar/pkg/bsdiff/trunk/checksums
    csw/mgar/pkg/bsdiff/trunk/files/
    csw/mgar/pkg/bsdiff/trunk/files/0001-Add-substitutes-for-err-errx-warn-warnx.patch
    csw/mgar/pkg/bsdiff/trunk/files/COPYING

Added: csw/mgar/pkg/bsdiff/Makefile
===================================================================
--- csw/mgar/pkg/bsdiff/Makefile	                        (rev 0)
+++ csw/mgar/pkg/bsdiff/Makefile	2012-02-14 12:26:35 UTC (rev 17051)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/bsdiff/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/bsdiff/trunk/Makefile
===================================================================
--- csw/mgar/pkg/bsdiff/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/bsdiff/trunk/Makefile	2012-02-14 12:26:35 UTC (rev 17051)
@@ -0,0 +1,45 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = bsdiff
+VERSION = 4.3
+GARTYPE = v2
+CATEGORIES = utils
+
+DESCRIPTION = Binary diff/patch utility
+define BLURB
+endef
+
+MASTER_SITES = http://www.daemonology.net/bsdiff/
+DISTFILES  = $(DISTNAME).tar.gz
+DISTFILES += COPYING
+
+PATCHFILES += 0001-Add-substitutes-for-err-errx-warn-warnx.patch
+
+PACKAGES += CSWbsdiff
+SPKG_DESC_CSWmypkg = Binary diff/patch utility
+# PKGFILES is catchall
+
+EXTRA_CFLAGS += -I.
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS = custom
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+include gar/category.mk
+
+build-custom:
+	cd $(WORKSRC) && $(CC) $(CFLAGS) -lbz2 -o bsdiff bsdiff.c err.c
+	cd $(WORKSRC) && $(CC) $(CFLAGS) -lbz2 -o bspatch bspatch.c err.c
+	@$(MAKECOOKIE)
+
+install-custom:
+	ginstall -d $(DESTDIR)$(bindir)
+	ginstall -m 755 $(WORKSRC)/bsdiff $(DESTDIR)$(bindir)/bsdiff
+	ginstall -m 755 $(WORKSRC)/bspatch $(DESTDIR)$(bindir)/bspatch
+	ginstall -d $(DESTDIR)$(mandir)/man1
+	ginstall -m 755 $(WORKSRC)/bsdiff.1 $(DESTDIR)$(mandir)/man1/bsdiff.1
+	ginstall -m 755 $(WORKSRC)/bspatch.1 $(DESTDIR)$(mandir)/man1/bspatch.1
+	@$(MAKECOOKIE)
+


Property changes on: csw/mgar/pkg/bsdiff/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/bsdiff/trunk/checksums
===================================================================
--- csw/mgar/pkg/bsdiff/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/bsdiff/trunk/checksums	2012-02-14 12:26:35 UTC (rev 17051)
@@ -0,0 +1 @@
+e6d812394f0e0ecc8d5df255aa1db22a  bsdiff-4.3.tar.gz

Added: csw/mgar/pkg/bsdiff/trunk/files/0001-Add-substitutes-for-err-errx-warn-warnx.patch
===================================================================
--- csw/mgar/pkg/bsdiff/trunk/files/0001-Add-substitutes-for-err-errx-warn-warnx.patch	                        (rev 0)
+++ csw/mgar/pkg/bsdiff/trunk/files/0001-Add-substitutes-for-err-errx-warn-warnx.patch	2012-02-14 12:26:35 UTC (rev 17051)
@@ -0,0 +1,89 @@
+From b30b1b21d6becceaf2fe18f646e14c4953c72d2a Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Tue, 14 Feb 2012 11:41:10 +0100
+Subject: [PATCH] Add substitutes for err, errx, warn, warnx
+
+---
+ err.c |   34 ++++++++++++++++++++++++++++++++++
+ err.h |   28 ++++++++++++++++++++++++++++
+ 2 files changed, 62 insertions(+), 0 deletions(-)
+ create mode 100644 err.c
+ create mode 100644 err.h
+
+diff --git a/err.c b/err.c
+new file mode 100644
+index 0000000..52af1c6
+--- /dev/null
++++ b/err.c
+@@ -0,0 +1,34 @@
++/*
++ * emulations of common functions from err.h
++ * Fabian Groffen <grobian at xxxxxxxxxx>
++ */
++
++#include <stdio.h>
++#include <stdarg.h>
++#include <string.h>
++#include <errno.h>
++
++#include "err.h"
++
++extern char **__xargv;
++
++void
++errmsg(char doexit, int excode, char adderr, const char *fmt, ...)
++{
++	fprintf(stderr, "%s: ", *__xargv);
++	if (fmt != NULL) {
++		va_list argp;
++		va_start(argp, fmt);
++		vfprintf(stderr, fmt, argp);
++		va_end(argp);
++		if (adderr)
++			fprintf(stderr, ": ");
++	}
++	if (adderr)
++		fprintf(stderr, "%s", strerror(errno));
++	fprintf(stderr, "\n");
++	if (doexit)
++		exit(excode);
++}
++
++
+diff --git a/err.h b/err.h
+new file mode 100644
+index 0000000..7d03c75
+--- /dev/null
++++ b/err.h
+@@ -0,0 +1,28 @@
++/*
++ * emulations of common functions from err.h
++ * Fabian Groffen <grobian at xxxxxxxxxx>
++ */
++
++#ifndef REPLACEMENT_ERR_H
++#define REPLACEMENT_ERR_H 1
++
++void errmsg(char doexit, int excode, char adderr, const char *fmt, ...);
++
++#ifndef HAVE_ERR
++# define err(E, FMT...) errmsg(1, E, 1, FMT)
++#endif
++
++#ifndef HAVE_ERRX
++# define errx(E, FMT...) errmsg(1, E, 0, FMT)
++#endif
++
++#ifndef HAVE_WARN
++# define warn(FMT...) errmsg(0, 0, 1, FMT)
++#endif
++
++#ifndef HAVE_WARNX
++# define warnx(FMT...) errmsg(0, 0, 0, FMT)
++#endif
++
++#endif
++
+-- 
+1.7.9
+

Added: csw/mgar/pkg/bsdiff/trunk/files/COPYING
===================================================================
--- csw/mgar/pkg/bsdiff/trunk/files/COPYING	                        (rev 0)
+++ csw/mgar/pkg/bsdiff/trunk/files/COPYING	2012-02-14 12:26:35 UTC (rev 17051)
@@ -0,0 +1,26 @@
+/*-
+ * Copyright 2003-2005 Colin Percival
+ * All rights reserved
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted providing that the following conditions 
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+

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