[DRE-commits] r2473 - in packages: . libdb4.6-ruby libdb4.6-ruby/trunk libdb4.6-ruby/trunk/debian
lucas at alioth.debian.org
lucas at alioth.debian.org
Sat Feb 2 15:10:56 UTC 2008
Author: lucas
Date: 2008-02-02 15:10:56 +0000 (Sat, 02 Feb 2008)
New Revision: 2473
Added:
packages/libdb4.6-ruby/
packages/libdb4.6-ruby/tags/
packages/libdb4.6-ruby/trunk/
packages/libdb4.6-ruby/trunk/debian/
packages/libdb4.6-ruby/trunk/debian/changelog
packages/libdb4.6-ruby/trunk/debian/compat
packages/libdb4.6-ruby/trunk/debian/control
packages/libdb4.6-ruby/trunk/debian/copyright
packages/libdb4.6-ruby/trunk/debian/in.README.Debian
packages/libdb4.6-ruby/trunk/debian/in.doc-base
packages/libdb4.6-ruby/trunk/debian/in.postinst
packages/libdb4.6-ruby/trunk/debian/in.prerm
packages/libdb4.6-ruby/trunk/debian/postinst.debhelper
packages/libdb4.6-ruby/trunk/debian/prerm.debhelper
packages/libdb4.6-ruby/trunk/debian/rules
packages/libdb4.6-ruby/trunk/debian/watch
Log:
added libdb4.6-ruby, based on libdb4.4-ruby
Added: packages/libdb4.6-ruby/trunk/debian/changelog
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/changelog (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/changelog 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,12 @@
+libdb4.4-ruby (0.6.2-2) UNRELEASED; urgency=low
+
+ * NOT RELEASED YET
+
+ -- Lucas Nussbaum <lucas at lucas-nussbaum.net> Tue, 18 Dec 2007 13:53:40 +0100
+
+libdb4.4-ruby (0.6.2-1) unstable; urgency=low
+
+ * Improved copyright note in debian/copyright.
+ * Initial release (Closes: 388523).
+
+ -- Lucas Nussbaum <lucas at lucas-nussbaum.net> Tue, 18 Dec 2007 13:46:12 +0100
Added: packages/libdb4.6-ruby/trunk/debian/compat
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/compat (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/compat 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1 @@
+4
Added: packages/libdb4.6-ruby/trunk/debian/control
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/control (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/control 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,19 @@
+Source: libdb4.4-ruby
+Section: interpreters
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Lucas Nussbaum <lucas at lucas-nussbaum.net>
+Build-Depends: debhelper (>> 4.0.0), libdb4.4-dev, ruby1.8, ruby1.8-dev
+Standards-Version: 3.7.3
+Homepage: http://moulon.inra.fr/ruby/bdb.html
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-ruby-extras/packages/libdb4.4-ruby/
+Vcs-Svn: svn://svn.debian.org/pkg-ruby-extras/packages/libdb4.4-ruby/
+
+Package: libdb4.4-ruby1.8
+Architecture: any
+Depends: ${shlibs:Depends} ${misc:Depends}
+Description: Interface to Berkeley DB for Ruby 1.8
+ BDB is an interface to Berkeley DB, distributed by Sleepycat
+ (http://www.sleepycat.com/).
+ .
+ This package provides BDB linked to libdb4.4.
Added: packages/libdb4.6-ruby/trunk/debian/copyright
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/copyright (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/copyright 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,82 @@
+This package was debianized by Lucas Nussbaum <lucas at lucas-nussbaum.net> on
+Sat Dec 8 18:37:08 CET 2007
+
+It was downloaded from <URL:ftp://moulon.inra.fr/pub/ruby/>
+
+It was heavily based on libdb4.2-ruby from Akira Yamada.
+
+Upstream Author: Guy Decoux <ts at moulon.inra.fr>
+
+Copyright: (from README.en)
+
+ This extension module is copyrighted free software by Guy Decoux
+
+ You can redistribute it and/or modify it under the same term as
+ Ruby.
+
+ Guy Decoux <ts at moulon.inra.fr>
+
+License: (Ruby license)
+
+Ruby is copyrighted free software by Yukihiro Matsumoto <matz at netlab.jp>.
+You can redistribute it and/or modify it under either the terms of the GPL
+(see the file GPL), or the conditions below:
+
+ 1. You may make and give away verbatim copies of the source form of the
+ software without restriction, provided that you duplicate all of the
+ original copyright notices and associated disclaimers.
+
+ 2. You may modify your copy of the software in any way, provided that
+ you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise
+ make them Freely Available, such as by posting said
+ modifications to Usenet or an equivalent medium, or by allowing
+ the author to include your modifications in the software.
+
+ b) use the modified software only within your corporation or
+ organization.
+
+ c) give non-standard binaries non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 3. You may distribute the software in object code or binary form,
+ provided that you do at least ONE of the following:
+
+ a) distribute the binaries and library files of the software,
+ together with instructions (in the manual page or equivalent)
+ on where to get the original distribution.
+
+ b) accompany the distribution with the machine-readable source of
+ the software.
+
+ c) give non-standard binaries non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 4. You may modify and include the part of the software into any other
+ software (possibly commercial). But some files in the distribution
+ are not written by the author, so that they are not under these terms.
+
+ For the list of those files and their copying conditions, see the
+ file LEGAL.
+
+ 5. The scripts and library files supplied as input to or produced as
+ output from the software do not automatically fall under the
+ copyright of the software, but belong to whomever generated them,
+ and may be sold commercially, and may be aggregated with this
+ software.
+
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.
+
+GNU General Public License:
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
Added: packages/libdb4.6-ruby/trunk/debian/in.README.Debian
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/in.README.Debian (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/in.README.Debian 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,28 @@
+Ruby/BDB for Debian
+-------------------
+
+Debian Specific Changes:
+
+libdb3-ruby@@ver@@, libdb4.2-ruby@@ver@@, libdb4.3-ruby@@ver@@ and
+libdb4.4-ruby@@ver@@ provides Ruby/BDB.
+
+Ruby/BDB originally provides bdb.so, but these Debian packages provide bdb3.so,
+bdb42.so, bdb43.so or bdb44.so. These packages also provides bdb3.rb,
+bdb42.rb, bdb43.rb or bdb44.rb. These ".rb" files contains "require 'bdbX.so'".
+(here X is 3, 42, 43 or 44.) And bdb.rb are also provided as symbolic link
+that points to the ".rb" file. You can configure the symbolic link by
+update-alternatives command.
+
+ # update-alternatives --config bdb-@@ver@@.rb
+
+And Then you can use Ruby/BDB by follows:
+
+ require 'bdb'
+
+If you want to load bdb that links to specific version of Berkelay DB, then:
+
+ require 'bdbX' # X is 3, 42, 43 or 44.
+
+Note: You can not load a bdb with any other version of bdb.
+
+ -- akira yamada <akira at debian.org> Fri, 12 Aug 2005 13:55:53 +0900
Added: packages/libdb4.6-ruby/trunk/debian/in.doc-base
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/in.doc-base (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/in.doc-base 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,12 @@
+Document: libdb4.4-ruby@@ver@@
+Title: Debian libdb4.4-ruby@@ver@@ Manual
+Author: Guy Decoux
+Abstract: This manual describes what libdb4.4-ruby@@ver@@ is
+ and how it can be used to.
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/libdb4.4-ruby@@ver@@/bdb.html
+Files: /usr/share/doc/libdb4.4-ruby@@ver@@/*.html
+
+
Added: packages/libdb4.6-ruby/trunk/debian/in.postinst
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/in.postinst (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/in.postinst 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+update-alternatives \
+ --install @@libdir@@/bdb.rb bdb-@@ver@@.rb @@libdir@@/bdb44.rb 50
+
+#DEBHELPER#
Added: packages/libdb4.6-ruby/trunk/debian/in.prerm
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/in.prerm (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/in.prerm 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = remove ] || [ "$1" = deconfigure ]
+then
+ update-alternatives \
+ --remove bdb-@@ver@@.rb @@libdir@@/bdb44.rb
+fi
+
+#DEBHELPER#
Added: packages/libdb4.6-ruby/trunk/debian/postinst.debhelper
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/postinst.debhelper (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/postinst.debhelper 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,5 @@
+# Automatically added by dh_installdocs
+if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
+ install-docs -i /usr/share/doc-base/libdb3-ruby1.8
+fi
+# End automatically added section
Added: packages/libdb4.6-ruby/trunk/debian/prerm.debhelper
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/prerm.debhelper (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/prerm.debhelper 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,6 @@
+# Automatically added by dh_installdocs
+if [ "$1" = remove ] || [ "$1" = upgrade ] && \
+ which install-docs >/dev/null 2>&1; then
+ install-docs -r libdb3-ruby1.8
+fi
+# End automatically added section
Added: packages/libdb4.6-ruby/trunk/debian/rules
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/rules (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/rules 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,120 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+#export DH_VERBOSE=1
+#export DH_COMPAT=4
+
+src_name = $(shell dpkg-parsechangelog | sed -ne '/^Source:/s/.*:[ ]*//p')
+bdb_version = $(patsubst libdb%-ruby,%,$(src_name))
+
+so_base = bdb
+so_postfix = $(subst .,,$(bdb_version))
+so_mkflag = CC="gcc -DInit_$(so_base)=Init_$(so_base)$(so_postfix)"
+
+dest_dir = $(CURDIR)/debian/libdb$(bdb_version)-ruby
+
+rb18_libdir = $(shell ruby1.8 -rrbconfig -e 'print Config::CONFIG["rubylibdir"]')
+rb18_archdir= $(shell ruby1.8 -rrbconfig -e 'print Config::CONFIG["archdir"]')
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+
+ -rm -rf build-tree-1.8
+ tar -zcf debian/src.tgz $(filter-out debian,$(wildcard *))
+
+ mkdir build-tree-1.8
+
+ tar -C build-tree-1.8 -zxf debian/src.tgz
+
+ ruby1.8 -C build-tree-1.8 extconf.rb --with-db-version=-4.4
+
+ touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+
+ $(MAKE) -C build-tree-1.8 $(so_mkflag)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ -rm -rf build-tree-1.8
+ -rm -f debian/bdb.html debian/bdb.rd
+ -for ext in postinst prerm doc-base README.Debian; do rm -f debian/libdb$(bdb_version)-ruby*.$$ext; done
+ -rm -f debian/src.tgz
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/libdb4.1-ruby.
+ $(MAKE) -C build-tree-1.8 install RUBYARCHDIR=$(dest_dir)1.8$(rb18_archdir)
+
+ cd $(dest_dir)1.8$(rb18_archdir) && \
+ mv -f $(so_base).so $(so_base)$(so_postfix).so
+
+ (echo "# This file is hack only for Debian System."; \
+ echo "require '$(so_base)$(so_postfix).so'") \
+ > $(dest_dir)1.8$(rb18_libdir)/$(so_base)$(so_postfix).rb
+
+ for f in debian/in.*; \
+ do \
+ sed -e 's!@@ver@@!1.8!g' \
+ -e 's!@@libdir@@!$(rb18_libdir)!g' \
+ < $$f > debian/libdb$(bdb_version)-ruby1.8.`basename $$f | sed -e 's!^in\.!!'`; \
+ done
+
+ sed -e 's/\(((<.*|URL:\)docs\/\(.*\.html.*>))\)/\1\2/g' \
+ < bdb.rd > debian/bdb.rd
+ sed -e 's/\(<a href="\)docs\/\(.*\.html.*">\)/\1\2/g' \
+ < bdb.html > debian/bdb.html
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs Changes
+ dh_installdocs -A README* debian/bdb.html debian/bdb.rd docs/*
+ dh_installexamples -A examples/*
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
Property changes on: packages/libdb4.6-ruby/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: packages/libdb4.6-ruby/trunk/debian/watch
===================================================================
--- packages/libdb4.6-ruby/trunk/debian/watch (rev 0)
+++ packages/libdb4.6-ruby/trunk/debian/watch 2008-02-02 15:10:56 UTC (rev 2473)
@@ -0,0 +1,3 @@
+version=3
+
+opts=pasv ftp://moulon.inra.fr/pub/ruby/bdb-(.*)\.tar\.gz
More information about the Pkg-ruby-extras-commits
mailing list