[Glibc-bsd-commits] r3333 - in trunk: . libmd libmd/debian libmd/debian/patches libmd/debian/source

Guillem Jover guillem at alioth.debian.org
Thu May 26 05:30:42 UTC 2011


Author: guillem
Date: 2011-05-26 05:30:42 +0000 (Thu, 26 May 2011)
New Revision: 3333

Added:
   trunk/libmd/
   trunk/libmd/debian/
   trunk/libmd/debian/TODO
   trunk/libmd/debian/changelog
   trunk/libmd/debian/compat
   trunk/libmd/debian/control
   trunk/libmd/debian/copyright
   trunk/libmd/debian/libmd-dev.install
   trunk/libmd/debian/libmd0.install
   trunk/libmd/debian/patches/
   trunk/libmd/debian/patches/missing_stdint.h.patch
   trunk/libmd/debian/patches/series
   trunk/libmd/debian/rules
   trunk/libmd/debian/source/
   trunk/libmd/debian/source/format
   trunk/libmd/debian/watch
Log:
Initial packaging for libmd

The library is not yet uploadable as it contains 4-clause BSD licensed code,
which is problematic for GPL code.


Added: trunk/libmd/debian/TODO
===================================================================
--- trunk/libmd/debian/TODO	                        (rev 0)
+++ trunk/libmd/debian/TODO	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1 @@
+* Look for replacement on the other BSDs for the 4-clause BSD licensed code.


Property changes on: trunk/libmd/debian/TODO
___________________________________________________________________
Added: svn:keywords
   + Id Revision

Added: trunk/libmd/debian/changelog
===================================================================
--- trunk/libmd/debian/changelog	                        (rev 0)
+++ trunk/libmd/debian/changelog	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,7 @@
+libmd (8.2-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #609757)
+    - Add missing <stdint.h> to sha256.h.
+      Thanks to Laurent Fousse <laurent at persil.lateralis.org>.
+
+ -- Guillem Jover <guillem at debian.org>  Thu, 26 May 2011 05:49:49 +0200

Added: trunk/libmd/debian/compat
===================================================================
--- trunk/libmd/debian/compat	                        (rev 0)
+++ trunk/libmd/debian/compat	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1 @@
+7

Added: trunk/libmd/debian/control
===================================================================
--- trunk/libmd/debian/control	                        (rev 0)
+++ trunk/libmd/debian/control	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,32 @@
+Source: libmd
+Section: libs
+Priority: optional
+Maintainer: GNU/kFreeBSD Maintainers <debian-bsd at lists.debian.org>
+Uploaders: Guillem Jover <guillem at debian.org>, Aurelien Jarno <aurel32 at debian.org>
+Build-Depends: debhelper (>= 7), freebsd-buildutils, libbsd-dev
+Vcs-Browser: http://svn.debian.org/wsvn/glibc-bsd/trunk/libmd/
+Vcs-Svn: svn://svn.debian.org/glibc-bsd/trunk/libmd/
+Standards-Version: 3.9.2
+
+Package: libmd-dev
+Section: libdevel
+Architecture: any
+Depends: libmd0 (= ${binary:Version}), ${misc:Depends}
+Description: message digest functions from BSD systems - development files
+ This package contains the header files and static library needed to
+ compile applications that use libmd.
+
+Package: libmd0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: message digest functions from BSD systems - shared library
+ The md library provides various message digest ("hash") functions.
+
+Package: libmd0-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: libmd0 (= ${binary:Version}), ${misc:Depends}
+Description: message digest functions from BSD systems - debugging symbols
+ This library provides message digest functions commonly available on the
+ BSDs base system but not on others like GNU systems.

Added: trunk/libmd/debian/copyright
===================================================================
--- trunk/libmd/debian/copyright	                        (rev 0)
+++ trunk/libmd/debian/copyright	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,74 @@
+This package was debianized by Guillem Jover <guillem at debian.org> on
+Thu, 26 May 2011 07:21:36 +0200.
+
+It was downloaded from:
+
+  <http://svn.freebsd.org/base/release/>
+
+Licenses and Copyright Holders:
+
+  Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
+  rights reserved.
+  Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
+  rights reserved.
+
+  License to copy and use this software is granted for
+  non-commercial Internet Privacy-Enhanced Mail provided that it is
+  identified as the "RSA Data Security, Inc. MD2 Message Digest
+  Algorithm" in all material mentioning or referencing this software
+  or this function.
+
+  RSA Data Security, Inc. makes no representations concerning either
+  the merchantability of this software or the suitability of this
+  software for any particular purpose. It is provided "as is"
+  without express or implied warranty of any kind.
+
+  These notices must be retained in any copies of any part of this
+  documentation and/or software.
+
+  ---
+
+  Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
+  rights reserved.
+
+  RSA Data Security, Inc. makes no representations concerning either
+  the merchantability of this software or the suitability of this
+  software for any particular purpose. It is provided "as is"
+  without express or implied warranty of any kind.
+
+  These notices must be retained in any copies of any part of this
+  documentation and/or software.
+
+  ---
+
+  Copyright 2005 Colin Percival
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided 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 AND CONTRIBUTORS ``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 OR CONTRIBUTORS 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.
+
+  ---
+
+  "THE BEER-WARE LICENSE" (Revision 42):
+  <phk at FreeBSD.org> wrote this file.  As long as you retain this notice you
+  can do whatever you want with this stuff. If we meet some day, and you think
+  this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
+

Added: trunk/libmd/debian/libmd-dev.install
===================================================================
--- trunk/libmd/debian/libmd-dev.install	                        (rev 0)
+++ trunk/libmd/debian/libmd-dev.install	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,4 @@
+usr/include
+usr/lib/libmd*.so
+usr/lib/libmd.a
+usr/share/man

Added: trunk/libmd/debian/libmd0.install
===================================================================
--- trunk/libmd/debian/libmd0.install	                        (rev 0)
+++ trunk/libmd/debian/libmd0.install	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1 @@
+usr/lib/libmd*.so.*

Added: trunk/libmd/debian/patches/missing_stdint.h.patch
===================================================================
--- trunk/libmd/debian/patches/missing_stdint.h.patch	                        (rev 0)
+++ trunk/libmd/debian/patches/missing_stdint.h.patch	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,24 @@
+From 661a052926486d972423ff3c1a06b613b787b233 Mon Sep 17 00:00:00 2001
+From: Laurent Fousse <laurent at persil.lateralis.org>
+Date: Fri, 17 Dec 2010 15:59:48 +0100
+Subject: Include missing header <stdint.h>.
+
+---
+ lib/libmd/sha256.h |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/lib/libmd/sha256.h b/lib/libmd/sha256.h
+index ce51787..930a121 100644
+--- a/lib/libmd/sha256.h
++++ b/lib/libmd/sha256.h
+@@ -30,6 +30,7 @@
+ #define _SHA256_H_
+ 
+ #include <sys/types.h>
++#include <stdint.h>
+ 
+ typedef struct SHA256Context {
+ 	uint32_t state[8];
+--·
+1.7.2.3
+

Added: trunk/libmd/debian/patches/series
===================================================================
--- trunk/libmd/debian/patches/series	                        (rev 0)
+++ trunk/libmd/debian/patches/series	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1 @@
+missing_stdint.h.patch

Added: trunk/libmd/debian/rules
===================================================================
--- trunk/libmd/debian/rules	                        (rev 0)
+++ trunk/libmd/debian/rules	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,87 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g -pipe -fPIC -D_GNU_SOURCE -D'__FBSDID(string)=' -D__va_list=__builtin_va_list
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+PKG = libmd
+DBG = libmd0-dbg
+VERSION = $(shell dpkg-parsechangelog | sed -e '/^Version:/!d' -e 's/^Version: //g' -e 's/-.*//g')
+SVN = http://svn.freebsd.org/base/release/$(VERSION).0
+ORIGDIR = $(PKG)-$(VERSION)
+
+PATH := /usr/lib/freebsd:$(PATH)
+DESTDIR = $(CURDIR)/debian/tmp
+PMAKE = COPTS="$(CFLAGS)" CFLAGS="$(CFLAGS)" NO_WERROR=1 NOGCCERROR=1 NOSHARED=NO NO_SHARED=NO DEBUG_FLAGS="-g" DESTDIR=$(DESTDIR) make
+
+export SHLIB_MAJOR = 0
+
+get-orig-source:
+	rm -rf $(ORIGDIR)
+	for i in lib/libmd ; do \
+	    svn export $(SVN)/$$i $(ORIGDIR)/$$i ; \
+	done
+	tar -czf ../$(PKG)_$(VERSION).orig.tar.gz $(ORIGDIR)
+	rm -rf $(ORIGDIR)
+
+build-indep:
+
+build-arch:
+	dh_testdir
+
+	$(PMAKE) -C $(CURDIR)/lib/libmd SHLIBDIR=./
+
+build: build-indep build-arch
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	$(PMAKE) -C $(CURDIR)/lib/libmd clean
+
+	dh_clean
+
+install-indep:
+
+install-arch: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs -a
+
+	mkdir -p $(DESTDIR)/usr/lib $(DESTDIR)/usr/include $(DESTDIR)/usr/share/man/man3
+	$(PMAKE) -C $(CURDIR)/lib/libmd install SHLIBDIR=/usr/lib DESTDIR=$(DESTDIR)
+
+install:
+
+binary-indep: install-indep
+# Nothing to do.
+
+binary-arch: install-arch
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installman -a
+	dh_install -a --list-missing
+	dh_link -a
+	dh_strip -a --dbg-package=$(DBG)
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-arch binary-indep
+
+.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install


Property changes on: trunk/libmd/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/libmd/debian/source/format
===================================================================
--- trunk/libmd/debian/source/format	                        (rev 0)
+++ trunk/libmd/debian/source/format	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: trunk/libmd/debian/watch
===================================================================
--- trunk/libmd/debian/watch	                        (rev 0)
+++ trunk/libmd/debian/watch	2011-05-26 05:30:42 UTC (rev 3333)
@@ -0,0 +1,3 @@
+version=3
+
+# There's no actual releases of libmd.




More information about the Glibc-bsd-commits mailing list