--- cipux-object-3.4.0.2.orig/debian/README.source +++ cipux-object-3.4.0.2/debian/README.source @@ -0,0 +1,50 @@ +Building this package for Debian +-------------------------------- + +This source package need no special handling for normal package builds. + + +Developing this package for Debian +---------------------------------- + +The source of this package is developed using git and the helper tool +git-buildpackage, with all official releases tagged and signed and +binary diffs of tarballs stored using pristine-tar. This is documented +below /usr/share/doc/git-buildpackage/manual-html/ . + +A custom build target shows current upstream and packaging versions: + + debian/rules print-version + +Current upstream tarball can be prepared using this other build target: + + debian/rules get-orig-source + +To switch to newer upstream source, first add a dummy changelog entry +and comment out DEB_UPSTREAM_TARBALL_MD5 before getting the source: + + dch -v ${new_upstream_version}-1 "Dummy changelog entry" + sed -i -e 's/^\(DEB_UPSTREAM_TARBALL_MD5\b\)/#\1/' debian/rules + debian/rules get-orig-source + +Store new md5sum to help ensure identical source is received later. + +Setting DEB_MAINTAINER_MODE=1 enables additional build routines helpful +during development of the package, but unfit for normal builds. This +typically includes the CDBS feature of auto-updating debian/control with +CDBS-related build-dependencies, which is forbidden by Debian Policy as +build environment must not change during automated builds. + + +Maintaining packaging build routines +------------------------------------ + +This source package wraps debhelper commands and other tedious parts of +the build routines using the CDBS framework. Please refer to the actual +makefile snippets included from debian/rules for details on their +purpose and ways to override defaults. Additionally, makefile snippets +included from below /usr/share/cdbs may also be documented in +/usr/share/doc/cdbs/cdbs-doc.pdf.gz . + + + -- Jonas Smedegaard Thu, 26 Feb 2009 21:28:29 +0100 --- cipux-object-3.4.0.2.orig/debian/libcipux-object-perl.install +++ cipux-object-3.4.0.2/debian/libcipux-object-perl.install @@ -0,0 +1,2 @@ +usr/share/perl5/ +usr/share/man/man3/ --- cipux-object-3.4.0.2.orig/debian/gbp.conf +++ cipux-object-3.4.0.2/debian/gbp.conf @@ -0,0 +1,5 @@ +# Configuration file for git-buildpackage and friends + +[DEFAULT] +pristine-tar = True +sign-tags = True --- cipux-object-3.4.0.2.orig/debian/compat +++ cipux-object-3.4.0.2/debian/compat @@ -0,0 +1 @@ +6 --- cipux-object-3.4.0.2.orig/debian/watch +++ cipux-object-3.4.0.2/debian/watch @@ -0,0 +1,3 @@ +# Run the "uscan" command to check for upstream updates and more. +version=3 +http://release.cipux.org/CipUX-Object-([0-9\.]+)\.tar\.gz --- cipux-object-3.4.0.2.orig/debian/cipux-object-tools.install +++ cipux-object-3.4.0.2/debian/cipux-object-tools.install @@ -0,0 +1,2 @@ +usr/bin/* +usr/share/man/man1/* --- cipux-object-3.4.0.2.orig/debian/TODO +++ cipux-object-3.4.0.2/debian/TODO @@ -0,0 +1 @@ + * Drop dependencies on libversion-perl after Lenny+1 is released. --- cipux-object-3.4.0.2.orig/debian/copyright +++ cipux-object-3.4.0.2/debian/copyright @@ -0,0 +1,33 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=420 +Upstream-Name: CipUX::Object +Upstream-Maintainer: Christian Kuelker +Upstream-Source: http://release.cipux.org/ + svn://svn.debian.org/svn/cipux/trunk/cipux-core/object/src + +Files: * +Copyright: © 2007-2009, Christian Kuelker +License: GPL-2+ + +Files: lib/CipUX/Object/Action/List.pm +Copyright: 2007-2009, Christian Kuelker + 2009, Andreas Brand +License: GPL-2+ + +Files: debian/* +Copyright: © 2004-2009, Jonas Smedegaard +License: GPL-2+ + +Files: debian/cdbs/* +Copyright: 2003,2008, Jonas Smedegaard + 2003, Colin Walters +License: GPL-2+ + +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + . + On Debian GNU/Linux systems, the complete text of the GNU GPL (General + Public License) version 2 can be found at + /usr/share/common-licenses/GPL-2. --- cipux-object-3.4.0.2.orig/debian/rules +++ cipux-object-3.4.0.2/debian/rules @@ -0,0 +1,60 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2008-2009 Jonas Smedegaard +# Description: Main Debian packaging script for cipux-object +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +ifneq (,$(DEB_MAINTAINER_MODE)) + # Enable stuff not policy compliant (eg. unsuitable for build daemons) + DEB_COPYRIGHT_CHECK_STRICT = yes + DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes +endif +include debian/cdbs/1/rules/upstream-tarball.mk +include debian/cdbs/1/rules/copyright-check.mk +include debian/cdbs/1/rules/buildinfo.mk +include debian/cdbs/1/class/perl-build.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +pkg_lib = libcipux-object-perl + +DEB_UPSTREAM_PACKAGE = CipUX-Object +DEB_UPSTREAM_URL = http://release.cipux.org +DEB_UPSTREAM_TARBALL_MD5 = 1f0a56643c1794e21a6f57a1774bc4cd + +# Install through debhelper.mk (not directly with perl-build.mk) +DEB_PERL_DESTDIR = $(cdbs_curpkgdestdir) +DEB_DH_INSTALL_SOURCEDIR = $(DEB_PERL_DESTDIR) + +# Needed both by upstream build (or test) process and at runtime +# TODO: Drop libversion-perl after Lenny+1 +CDBS_DEPENDS_$(pkg_lib) := libclass-std-perl (>= 0.0.9), libcipux-perl (>= 3.4.0.0), libcipux-storage-perl (>= 3.4.0.0), libhash-merge-perl, liblog-log4perl-perl, libreadonly-perl, libversion-perl, libcrypt-smbhash-perl +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), $(CDBS_DEPENDS_$(pkg_lib)) + +# Needed by upstream build process +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libmodule-build-cipux-perl (>= 0.3.0) + +# Needed by upstream tests +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), perl-modules (>= 5.10.0-19) | libtest-simple-perl, libtest-perl-critic-perl, libtest-pod-perl (>= 1.14), libtest-pod-coverage-perl (>= 1.04), libtest-refcount-perl, libtest-leaktrace-perl + +# Needed at runtime +CDBS_DEPENDS_cipux-object-tools := $(pkg_lib), libcipux-perl + +# Needed (often) at runtime +CDBS_RECOMMENDS_$(pkg_lib) = libreadonly-xs-perl + +# Resolve, cleanup and apply CDBS-declared dependencies +include debian/cdbs/1/rules/package-relations.mk --- cipux-object-3.4.0.2.orig/debian/control.in +++ cipux-object-3.4.0.2/debian/control.in @@ -0,0 +1,34 @@ +Source: cipux-object +Section: perl +Priority: optional +Maintainer: CipUX team +Uploaders: Jonas Smedegaard , Christian Kuelker , Xavier Oswald +Build-Depends: @cdbs@ +Standards-Version: 3.8.2 +Vcs-Git: git://git.debian.org/git/collab-maint/cipux-object.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/cipux-object.git;a=summary +Homepage: http://www.cipux.org/ + +Package: libcipux-object-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends} +Recommends: ${cdbs:Recommends} +Suggests: cipux-object-tools +Description: object layer of CipUX + CipUX is a modular framework for information abstraction and + administration, primarily aimed at administration of users, groups and + organisational resources stored in a central LDAP database. + . + This package contains CipUX::Object, the CipUX object layer - a generic + abstract class, which can be used by other classes or scripts. + +Package: cipux-object-tools +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends} +Description: Commandline object-related tools for CipUX + CipUX is a modular framework for information abstraction and + administration, primarily aimed at administration of users, groups and + organisational resources stored in a central LDAP database. + . + This package contains commandline tools to interact with the object + layer of CipUX. --- cipux-object-3.4.0.2.orig/debian/copyright_hints +++ cipux-object-3.4.0.2/debian/copyright_hints @@ -0,0 +1,91 @@ +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=REVISION +Name: Untrusted draft - double-check copyrights yourself! + +Files: Build.PL + MANIFEST + MANIFEST.SKIP + META.yml + Makefile.PL + debian/README.source + debian/TODO + debian/cipux-object-tools.install + debian/compat + debian/control + debian/control.in + debian/gbp.conf + debian/libcipux-object-perl.install + debian/watch + expl/cipux_object_synopsis.pl + t/00.load.t + t/perlcritic.t + t/perlcritic_cpan.t + t/perlcriticrc + t/pod-coverage.t + t/pod.t + t/refcount.t +Copyright: *No copyright* +License: UNKNOWN + +Files: lib/CipUX/Object.pm + lib/CipUX/Object/Action.pm + lib/CipUX/Object/Action/Attribute/Change.pm + lib/CipUX/Object/Action/Attribute/List.pm + lib/CipUX/Object/Action/Create.pm + lib/CipUX/Object/Action/Destroy.pm +Copyright: 2007, - 2009, by Christian Kuelker. All rights reserved! || +License: UNKNOWN + +Files: debian/cdbs/1/class/perl-build-vars.mk + debian/cdbs/1/class/perl-build.mk + debian/cdbs/1/class/perl-vars.mk +Copyright: 2003,2008, Jonas Smedegaard + 2003, Colin Walters +License: GPL + +Files: debian/cdbs/1/rules/buildinfo.mk +Copyright: 2004-2007, Jonas Smedegaard +License: GPL + +Files: debian/cdbs/1/rules/upstream-tarball.mk +Copyright: 2007-2008, Jonas Smedegaard +License: GPL + +Files: debian/cdbs/1/rules/package-relations.mk +Copyright: 2008, Jonas Smedegaard +License: GPL + +Files: debian/rules +Copyright: 2008-2009, Jonas Smedegaard +License: GPL + +Files: debian/cdbs/1/rules/copyright-check.mk +Copyright: \s*(\S.*?)\s*\ +License: GPL + +Files: README +Copyright: 2007, - 2009, Christian Kuelker + 2009, Andreas Brand +License: UNKNOWN + +Files: usr/share/cipux/etc/cipux-object.perl +Copyright: 2007, - 2009, by Christian Kuelker || +License: UNKNOWN + +Files: bin/cipux_object_client +Copyright: 2007, - 2009, by Christian Kuelker, || +License: UNKNOWN + +Files: lib/CipUX/Object/Client.pm +Copyright: 2008-2009, by Christian Kuelker. All rights reserved! || +License: UNKNOWN + +Files: lib/CipUX/Object/Action/List.pm +Copyright: 2009, by Andreas Brand || + 2007, - 2009, by Christian Kuelker || +License: UNKNOWN + +Files: Changes +Copyright: statement to cipux-core object + statement to Action::List +License: UNKNOWN + --- cipux-object-3.4.0.2.orig/debian/control +++ cipux-object-3.4.0.2/debian/control @@ -0,0 +1,34 @@ +Source: cipux-object +Section: perl +Priority: optional +Maintainer: CipUX team +Uploaders: Jonas Smedegaard , Christian Kuelker , Xavier Oswald +Build-Depends: cdbs (>= 0.4.39), devscripts (>= 2.10.7), dh-buildinfo, perl (>= 5.6.0-16), perl-modules (>= 5.10.0) | libmodule-build-perl (>= 0.2808), debhelper (>= 6), libclass-std-perl (>= 0.0.9), libcipux-perl (>= 3.4.0.0), libcipux-storage-perl (>= 3.4.0.0), libhash-merge-perl, liblog-log4perl-perl, libreadonly-perl, libversion-perl, libcrypt-smbhash-perl, libmodule-build-cipux-perl (>= 0.3.0), perl-modules (>= 5.10.0-19) | libtest-simple-perl, libtest-perl-critic-perl, libtest-pod-perl (>= 1.14), libtest-pod-coverage-perl (>= 1.04), libtest-refcount-perl, libtest-leaktrace-perl +Standards-Version: 3.8.2 +Vcs-Git: git://git.debian.org/git/collab-maint/cipux-object.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/cipux-object.git;a=summary +Homepage: http://www.cipux.org/ + +Package: libcipux-object-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends} +Recommends: ${cdbs:Recommends} +Suggests: cipux-object-tools +Description: object layer of CipUX + CipUX is a modular framework for information abstraction and + administration, primarily aimed at administration of users, groups and + organisational resources stored in a central LDAP database. + . + This package contains CipUX::Object, the CipUX object layer - a generic + abstract class, which can be used by other classes or scripts. + +Package: cipux-object-tools +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends} +Description: Commandline object-related tools for CipUX + CipUX is a modular framework for information abstraction and + administration, primarily aimed at administration of users, groups and + organisational resources stored in a central LDAP database. + . + This package contains commandline tools to interact with the object + layer of CipUX. --- cipux-object-3.4.0.2.orig/debian/changelog +++ cipux-object-3.4.0.2/debian/changelog @@ -0,0 +1,176 @@ +cipux-object (3.4.0.2-2) unstable; urgency=low + + * Fix resolving package-relations in cdbs package-relations.mk. + + -- Jonas Smedegaard Fri, 21 Aug 2009 11:30:42 +0200 + +cipux-object (3.4.0.2-1) unstable; urgency=low + + * New upstream release. + * Build-depend on libtest-refcount-perl and libtest-leaktrace-perl. + * Bump policy compliance to standards version 3.8.2. + * Update debian/copyright: New author (same licensing). + * Update package-relations.mk: Cleanup unversioned+versioned + dependency mix. Improve whitespace cleanup. Rewrite and silence + applying dependencies. + + -- Jonas Smedegaard Fri, 21 Aug 2009 10:01:17 +0200 + +cipux-object (3.4.0.0-2) unstable; urgency=low + + * Build-depend on recent perl-modules (favored over + libtest-simple-perl). + * Fix typo in README.source. + * Extend local CDBS snippet package-relations.mk to support all kinds + of dependencies. + + -- Jonas Smedegaard Mon, 18 May 2009 16:51:17 +0200 + +cipux-object (3.4.0.0-1) unstable; urgency=low + + * New upstream release. + * Add README.source. + * Add git-buildpackage configfile, enabling signed tags and use of + pristine-tar. + * Add local CDBS snippet upstream-tarball.mk. + * Drop custom hints in source about use of CDBS (standard + README.source used now). + * Bump standards-version to 3.8.1. + * Update copuright and licensing info: + + Add proper copyright header to debian/rules. + + Fix and update copyright years + + Add verbatim copyright statement + + Merge entries with same owner and license (only years differing) + + update copyright-hints + * Add watch file. + * Tighten (build-)dependencies on libmodule-build-cipux-perl, + libcipux-perl and libcipux-storage-perl. + * No longer install config files or example files (dropped upstream). + + -- Jonas Smedegaard Mon, 23 Mar 2009 09:48:40 +0100 + +cipux-object (3.4.0~svn3015-1) experimental; urgency=low + + * New snapshot of upstream Subversion repository. + + -- Jonas Smedegaard Fri, 02 Jan 2009 04:44:43 +0100 + +cipux-object (3.4.0~svn2980-2) experimental; urgency=low + + * Install debian-edu configfiles as sample files. + * Fix CDBS snippets to never use dash in variable names. + * Fix licence-term -> license, and bump to copyright format spec v420. + + -- Jonas Smedegaard Sun, 21 Dec 2008 19:27:52 +0100 + +cipux-object (3.4.0~svn2980-1) experimental; urgency=low + + * New snapshot of upstream Subversion repository. + * Update copyright hints (no new owners or licenses). + + -- Jonas Smedegaard Wed, 17 Dec 2008 02:40:45 +0100 + +cipux-object (3.4.0~svn2977-1) experimental; urgency=low + + * New snapshot of upstream Subversion repository. + * Build-depend and depend on libcipux-perl (not libcipux-common-perl). + * Build-depend and depend on libcrypt-smbhash-perl. + * Update CDBS snippets: + + Simplify internal variables + + Ignore no files by default in copyright-check.mk + + Correct and update copyright hints of the snippets themselves + * Update debian/copyright and copyright hints: + + Add info on CDBS snippets (new owners, no new licenses) + + Bump to version 413 of new format (no structural changes) + * Semi-auto-update debian/control to update build-dependencies. + + -- Jonas Smedegaard Wed, 17 Dec 2008 01:29:39 +0100 + +cipux-object (3.4.0~svn2751-1) experimental; urgency=low + + * New snapshot of upstream Subversion repository. + * Drop depending on libdate-manip-perl no longer needed by upstream + code. + + -- Jonas Smedegaard Sat, 27 Sep 2008 19:06:19 +0200 + +cipux-object (3.4.0~svn2549-1) experimental; urgency=low + + * New snapshot of upstream Subversion repository. + + -- Jonas Smedegaard Sat, 23 Aug 2008 11:04:23 +0200 + +cipux-object (3.4~svn2532-1) experimental; urgency=low + + * New upstream Subversion snapshot (still related to - but only partly + closes - bug#357694). + * Adjust package relationships: + + Depend and build-depend on libclass-std-perl, libreadonly-perl, + libhash-merge-perl and liblog-log4perl-perl. Recommend + libreadonly-xs-perl. + + Depend and build-depend (again) on libversion-perl (virtual + package in Lenny but not on Etch). Add TODO note about dropping + those dependencies again after Lenny+1. + * Update local cdbs snippet perl-build.mk to tighten build-dependency + on libmodule-build-perl (older releases treat destdir differently). + * Add DEB_MAINTAINER_MODE in debian/rules (thanks to Romain Beauxis). + * Update copyright-hints. + * Semi-auto-update debian/control to update dependencies: + DEB_MAINTAINER_MODE=1 fakeroot debian/rules clean + + -- Jonas Smedegaard Tue, 12 Aug 2008 08:02:52 +0200 + +cipux-object (3.4~svn2388-1~0jones3) jones; urgency=low + + * Allow late nocheck flagging for local cdbs snippet perl-build.mk. + * Drop restricting access to configfiles. Currently contains no + sensitive data, and if added later it should be stored in a separate + file and only that treated specially. + + -- Jonas Smedegaard Sun, 27 Jul 2008 06:28:58 +0200 + +cipux-object (3.4~svn2388-1~0jones2) jones; urgency=low + + * Fix dependencies - for real this time. Also drop virtual packages + provided by perl or perl-modules packages. + * Have libcipux-object-perl suggest cipux-object-tools. + + -- Jonas Smedegaard Fri, 25 Jul 2008 23:09:44 +0200 + +cipux-object (3.4~svn2388-1~0jones1) jones; urgency=low + + * Fix dependencies. + + -- Jonas Smedegaard Fri, 25 Jul 2008 20:54:33 +0200 + +cipux-object (3.4~svn2388-1~0jones) jones; urgency=low + + * New upstream Subversion snapshot. + * Move script to new binary package cipux-object-tools. + * Shorten short descriptions. + * Update CDBS snippets: + + Use new local perl-build.mk to handle Perl Module::Build routines + (and drop local improved perlmodule.mk). + + Use new local package-relations.mk to resolve, cleanup and apply + CDBS-declared (build-)dependencies. + + Update copyright-check.mk to closer match new proposed copyright + format. Update copyright-hints. + + Update README.cdbs-tweaks. + * Semi-auto-update debian/control to update dependencies: + DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean + + * Unofficial release (cipux-storage not yet in Debian experimental). + + -- Jonas Smedegaard Fri, 25 Jul 2008 12:01:17 +0200 + +cipux-object (3.4~svn2362-2) experimental; urgency=low + + * Fix short description. + + -- Jonas Smedegaard Sat, 05 Jul 2008 17:23:47 +0200 + +cipux-object (3.4~svn2362-1) experimental; urgency=low + + * Initial release (related to - but only partly closes - bug#357694). + + -- Jonas Smedegaard Sat, 05 Jul 2008 15:55:31 +0200 --- cipux-object-3.4.0.2.orig/debian/cdbs/1/class/perl-vars.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/class/perl-vars.mk @@ -0,0 +1,41 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Colin Walters +# Copyright © 2003,2008 Jonas Smedegaard +# Description: Defines useful variables for Perl modules +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_class_perl_vars +_cdbs_class_perl_vars = 1 + +DEB_PERL_PACKAGES = $(filter lib%-perl, $(DEB_PACKAGES)) + +DEB_PERL_ARCH_PACKAGES = $(filter $(DEB_PERL_PACKAGES), $(DEB_ARCH_PACKAGES)) +DEB_PERL_INDEP_PACKAGES = $(filter $(DEB_PERL_PACKAGES), $(DEB_INDEP_PACKAGES)) + +# Use DEB_SRCDIR by default +DEB_PERL_SRCDIR ?= $(DEB_SRCDIR) + +# Install directly by default if there is only one perl library package +# To get default CDBS behaviour (CDBS_DESTDIR_pkg or else CDBS_DESTDIR), +# then set DEB_PERL_DESTDIR = $(cdbs_curpkgdestdir) +DEB_PERL_DESTDIR = $(if $(filter 1,$(words $(DEB_PERL_PACKAGES))),$(CURDIR)/debian/$(DEB_PERL_PACKAGES),$(cdbs_curpkgdestdir)) + +endif --- cipux-object-3.4.0.2.orig/debian/cdbs/1/class/perl-build-vars.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/class/perl-build-vars.mk @@ -0,0 +1,46 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Colin Walters +# Copyright © 2003,2008 Jonas Smedegaard +# Description: Defines useful variables for Perl Module::Build modules +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_class_perl_build_vars +_cdbs_class_perl_build_vars = 1 + +#include $(_cdbs_class_path)/perl-vars.mk$(_cdbs_makefile_suffix) +include debian/cdbs/1/class/perl-vars.mk + +DEB_PERL_CONFIGURE_TARGET = +DEB_PERL_CONFIGURE_ARGS = --installdirs vendor --config ccflags="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" --config cxxflags="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" --config ldflags="$(or $(LDFLAGS_$(cdbs_curpkg)),$(LDFLAGS))" + +DEB_PERL_CONFIGURE_FLAGS = destdir=$(cdbs_perl_curpkgdestdir) + +DEB_PERL_BUILD_TARGET = build + +# Run tests by default, and loudly +DEB_PERL_CHECK_TARGET = test +DEB_PERL_CHECK_FLAGS = verbose=1 + +DEB_PERL_INSTALL_TARGET = install + +DEB_PERL_CLEAN_TARGET = realclean + +endif --- cipux-object-3.4.0.2.orig/debian/cdbs/1/class/perl-build.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/class/perl-build.mk @@ -0,0 +1,89 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2003 Colin Walters +# Copyright © 2003,2008 Jonas Smedegaard +# Description: Configures, builds, and cleans Perl Module::Build modules +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_class_perl_build +_cdbs_class_perl_build = 1 + +# Initialize CDBS_BUILD_DEPENDS and shared DEB_PERL_* +include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix) +#include $(_cdbs_rules_path)/perl-build-vars.mk$(_cdbs_makefile_suffix) +include debian/cdbs/1/class/perl-build-vars.mk$(_cdbs_makefile_suffix) + +# Dependency according to Perl policy 4.3 +# (contrary to common misunderstanding a tighter dependency on perl 5.8 +# was only temporarily needed when 5.8 was introduced into Debian sid.) +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), perl (>= 5.6.0-16) + +# Depend on Module::Build +# (older releases choke on --ccflags and treat destdir differently) +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), perl-modules (>= 5.10.0) | libmodule-build-perl (>= 0.2808) + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +# TODO: Move these to buildcore.mk +cdbs_curpkgbuilddir = $(or $(DEB_BUILDDIR_$(cdbs_curpkg)),$(DEB_BUILDDIR)) +cdbs_curpkgdestdir = $(or $(DEB_DESTDIR_$(cdbs_curpkg)),$(DEB_DESTDIR)) + +# Sanity check: DEB_PERL_SRCDIR must be declared early +cdbs_perl_srcdir_early := $(DEB_PERL_SRCDIR) +cdbs_perl_srcdir_check = $(if $(call cdbs_streq,$(cdbs_perl_srcdir_early),$(DEB_PERL_SRCDIR)),,$(error DEB_PERL_SRCDIR must be set before including perl-build.mk, not after)) + +# Sanity check: only DEB_PERL_SRCDIR == DEB_BUILDDIR is supported +# TODO: figure out if Module::Build supports custom builddir +cdbs_perl_builddir_check = $(if $(call cdbs_streq,$(DEB_PERL_SRCDIR),$(DEB_BUILDDIR)),,$(error DEB_PERL_SRCDIR and DEB_BUILDDIR must be the same for Perl Module::Build builds)) + +cdbs_perl_curpkgbuilddir = $(cdbs_perl_builddir_check)$(cdbs_curpkgbuilddir) +cdbs_perl_curpkgdestdir = $(cdbs_perl_builddir_check)$(or $(DEB_PERL_DESTDIR_$(cdbs_curpkg)),$(DEB_PERL_DESTDIR)) + +common-configure-arch common-configure-indep:: $(DEB_PERL_SRCDIR)/Build +$(DEB_PERL_SRCDIR)/Build: + $(cdbs_perl_srcdir_check) + cd $(cdbs_perl_curpkgbuilddir) && perl Build.PL $(DEB_PERL_BUILD_CONFIGURE_TARGET) $(DEB_PERL_CONFIGURE_ARGS) $(DEB_PERL_CONFIGURE_FLAGS) + +common-build-arch common-build-indep:: debian/stamp-perl-build +debian/stamp-perl-build: + cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_BUILD_TARGET) $(DEB_PERL_BUILD_ARGS) $(DEB_PERL_BUILD_FLAGS) + touch $@ + +common-build-arch common-build-indep:: debian/stamp-perl-check +debian/stamp-perl-check: debian/stamp-perl-build + $(if $(findstring nocheck,$(DEB_BUILD_OPTIONS)),,$(if $(DEB_PERL_CHECK_TARGET),cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_CHECK_TARGET) $(DEB_PERL_CHECK_ARGS) $(DEB_PERL_CHECK_FLAGS))) + touch $@ + +common-install-arch common-install-indep:: common-install-impl +common-install-impl:: + cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_INSTALL_TARGET) $(DEB_PERL_INSTALL_ARGS) $(DEB_PERL_INSTALL_FLAGS) + +# Respect Debian Perl Policy § 4.1 +$(patsubst %,binary-post-install/%,$(DEB_PERL_PACKAGES)) :: binary-post-install/%: + find debian/$(cdbs_curpkg)/usr/lib -type f -name .packlist | while read file; do \ + rm -f "$$file"; \ + rmdir --ignore-fail-on-non-empty -p "$$(dirname "$$file")"; \ + done + +clean:: + -cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_CLEAN_TARGET) $(DEB_PERL_CLEAN_ARGS) $(DEB_PERL_CLEAN_FLAGS) + -rm -f debian/stamp-perl-build debian/stamp-perl-check + +endif --- cipux-object-3.4.0.2.orig/debian/cdbs/1/rules/buildinfo.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/rules/buildinfo.mk @@ -0,0 +1,40 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2004-2007 Jonas Smedegaard +# Description: Generate and include build information +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_buildinfo +_cdbs_rules_buildinfo = 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), dh-buildinfo + +common-install-arch common-install-indep:: debian/stamp-buildinfo + +debian/stamp-buildinfo: + dh_buildinfo + touch debian/stamp-buildinfo + +clean:: + rm -f debian/stamp-buildinfo + +endif --- cipux-object-3.4.0.2.orig/debian/cdbs/1/rules/copyright-check.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/rules/copyright-check.mk @@ -0,0 +1,113 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2005-2008 Jonas Smedegaard +# Description: Check for changes to copyright notices in source +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_copyright_check +_cdbs_rules_copyright_check := 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), devscripts (>= 2.10.7) + +# Set to yes to fail on changed/new hints are found +#DEB_COPYRIGHT_CHECK_STRICT := yes + +# Single regular expression for files to include or ignore +DEB_COPYRIGHT_CHECK_REGEX = .* +#DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(debian/.*|(.*/)?config\.(guess|sub|rpath)(\..*)?)$ +DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^debian/(changelog|copyright(|_hints|_newhints))$ + +pre-build:: debian/stamp-copyright-check + +debian/stamp-copyright-check: + @echo 'Scanning upstream source for new/changed copyright notices...' + @echo licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \ + "| some-output-filtering..." + +# Perl in shell in make requires extra care: +# * Single-quoting ('...') protects against shell expansion +# * Double-dollar ($$) expands to plain dollar ($) in make + @licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \ + | LC_ALL=C perl -e \ + 'print "Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=REVISION\n";'\ + 'print "Name: Untrusted draft - double-check copyrights yourself!\n\n";'\ + '$$n=0; while (<>) {'\ + ' s/[^[:print:]]//g;'\ + ' if (/^([^:\s][^:]+):[\s]+(\S.*?)\s*$$/) {'\ + ' $$files[$$n]{name}=$$1;'\ + ' $$files[$$n]{license}=$$2;'\ + ' };'\ + ' if (/^\s*\[Copyright:\s*(\S.*?)\s*\]/) {'\ + ' $$files[$$n]{copyright}=$$1;'\ + ' };'\ + ' /^$$/ and $$n++;'\ + '};'\ + 'foreach $$file (@files) {'\ + ' $$file->{license} =~ s/\s*\(with incorrect FSF address\)//;'\ + ' $$file->{license} =~ s/\s+\(v([^)]+) or later\)/-$$1+/;'\ + ' $$file->{license} =~ s/\s+\(v([^)]+)\)/-$$1/;'\ + ' $$file->{license} =~ s/\s*(\*No copyright\*)\s*// and $$file->{copyright} = $$1;'\ + ' $$file->{license} =~ s/^\s*(GENERATED FILE)/UNKNOWN ($$1)/;'\ + ' $$file->{license} =~ s/\s+(GENERATED FILE)/ ($$1)/;'\ + ' $$file->{copyright} =~ s/(?<=(\b\d{4}))(?{$$y=$$^N})\s*[,-]\s*((??{$$y+1}))\b/-$$2/g;'\ + ' $$file->{copyright} =~ s/(?<=\b\d{4})\s*-\s*\d{4}(?=\s*-\s*(\d{4})\b)//g;'\ + ' $$file->{copyright} =~ s/\b(\d{4})\s+([\S^\d])/$$1, $$2/g;'\ + ' $$file->{copyright} =~ s/^\W*\s+\/\s+//g;'\ + ' $$file->{copyright} =~ s/\s+\/\s+\W*$$//;'\ + ' $$file->{copyright} =~ s/\s+\/\s+/\n\t/g;'\ + ' $$pattern = "$$file->{license} [$$file->{copyright}]";'\ + ' push @{ $$patternfiles{"$$pattern"} }, $$file->{name};'\ + '};'\ + 'foreach $$pattern ( sort {'\ + ' @{$$patternfiles{$$b}} <=> @{$$patternfiles{$$a}}'\ + ' ||'\ + ' $$a cmp $$b'\ + ' } keys %patternfiles ) {'\ + ' ($$license, $$copyright) = $$pattern =~ /(.*) \[(.*)\]/s;'\ + ' print "Files: ", join("\n\t", sort @{ $$patternfiles{$$pattern} }), "\n";'\ + ' print "Copyright: $$copyright\n";'\ + ' print "License: $$license\n\n";'\ + '};'\ + > debian/copyright_newhints + @patterncount="`cat debian/copyright_newhints | sed 's/^[^:]*://' | LANG=C sort -u | grep . -c -`"; \ + echo "Found $$patterncount different copyright and licensing combinations." + @if [ ! -f debian/copyright_hints ]; then touch debian/copyright_hints; fi + @newstrings=`diff -u debian/copyright_hints debian/copyright_newhints | sed '1,2d' | egrep '^\+' - | sed 's/^\+//'`; \ + if [ -n "$$newstrings" ]; then \ + echo "$(if $(DEB_COPYRIGHT_CHECK_STRICT),ERROR,WARNING): The following new or changed copyright notices discovered:"; \ + echo; \ + echo "$$newstrings"; \ + echo; \ + echo "To fix the situation please do the following:"; \ + echo " 1) Investigate the above changes and update debian/copyright as needed"; \ + echo " 2) Replace debian/copyright_hints with debian/copyright_newhints"; \ + $(if $(DEB_COPYRIGHT_CHECK_STRICT),exit 1,:); \ + else \ + echo 'No new copyright notices found - assuming no news is good news...'; \ + rm -f debian/copyright_newhints; \ + fi + touch $@ + +clean:: + rm -f debian/stamp-copyright-check + +endif --- cipux-object-3.4.0.2.orig/debian/cdbs/1/rules/upstream-tarball.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/rules/upstream-tarball.mk @@ -0,0 +1,150 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2007-2008 Jonas Smedegaard +# Description: Convenience rules for dealing with upstream tarballs +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_upstream_tarball +_cdbs_rules_upstream_tarball := 1 + +include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix) + +CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), cdbs (>= 0.4.39) + +# Prefix for upstream location of all upstream tarballs (mandatory!) +#DEB_UPSTREAM_URL = + +DEB_UPSTREAM_PACKAGE = $(DEB_SOURCE_PACKAGE) +DEB_UPSTREAM_TARBALL_VERSION = $(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_VERSION:$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG)=),$(DEB_UPSTREAM_VERSION)) +DEB_UPSTREAM_TARBALL_EXTENSION = tar.gz +# Checksum to ensure integrity of downloadeds using get-orig-source (optional) +#DEB_UPSTREAM_TARBALL_MD5 = + +DEB_UPSTREAM_WORKDIR = ../tarballs + +# Base filename (without extension) as used in upstream URL +DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_PACKAGE)-$(DEB_UPSTREAM_TARBALL_VERSION) + +# Perl regexp to change locally used string into that in upstream URL and srcdir +#DEB_UPSTREAM_TARBALL_BASENAME_MANGLE = + +# Base directory within tarball +DEB_UPSTREAM_TARBALL_SRCDIR = $(cdbs_upstream_tarball_basename) + +# Space-delimited list of directories and files to strip (optional) +#DEB_UPSTREAM_REPACKAGE_EXCLUDE = CVS .cvsignore doc/rfc*.txt doc/draft*.txt +DEB_UPSTREAM_REPACKAGE_TAG = dfsg +DEB_UPSTREAM_REPACKAGE_DELIMITER = ~ + +# TODO: Move this to buildcore.mk +cdbs_findargs-path-or-name = $(if $(findstring /,$(firstword $(1))),-path './$(patsubst ./%,%,$(firstword $(1)))',-name '$(firstword $(1))') $(foreach obj,$(wordlist 2,$(words $(1)),$(1)),-or $(if $(findstring /,$(obj)),-path './$(obj:./%=%)',-name '$(obj)')) + +cdbs_upstream_tarball_basename = $(if $(strip $(DEB_UPSTREAM_TARBALL_BASENAME_MANGLE)),$(shell echo '$(DEB_UPSTREAM_TARBALL_BASENAME)' | perl -pe '$(DEB_UPSTREAM_TARBALL_BASENAME_MANGLE)'),$(DEB_UPSTREAM_TARBALL_BASENAME)) +cdbs_upstream_tarball = $(cdbs_upstream_tarball_basename).$(DEB_UPSTREAM_TARBALL_EXTENSION) +cdbs_upstream_received_tarball = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig.$(if $(findstring $(DEB_UPSTREAM_TARBALL_EXTENSION),tgz),tar.gz,$(DEB_UPSTREAM_TARBALL_EXTENSION)) +cdbs_upstream_local_basename = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION)$(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG)) +cdbs_upstream_local_srcdir = $(cdbs_upstream_tarball_basename)$(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG)) + +# # These variables are deprecated +_cdbs_deprecated_vars += DEB_UPSTREAM_TARBALL DEB_UPSTREAM_LOCAL_TARBALL DEB_UPSTREAM_REPACKAGE_TARBALL DEB_UPSTREAM_TARBALL_VERSION_MANGLE +_cdbs_deprecated_vars += DEB_UPSTREAM_REPACKAGE_EXCLUDES +DEB_UPSTREAM_REPACKAGE_EXCLUDE += $(DEB_UPSTREAM_REPACKAGE_EXCLUDES) + +print-version: + @@echo "Debian version: $(DEB_VERSION)" + @@echo "Upstream version: $(DEB_UPSTREAM_TARBALL_VERSION)" + +get-orig-source: + @@dh_testdir + @@mkdir -p "$(DEB_UPSTREAM_WORKDIR)" + + @if [ ! -s "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ] ; then \ + if [ -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ] ; then \ + rm "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ; \ + fi ; \ + echo "Downloading $(cdbs_upstream_received_tarball) from $(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball) ..." ; \ + wget -nv -T10 -t3 -O "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" "$(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball)" ; \ + else \ + echo "Upstream source tarball have been already downloaded: $(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ; \ + fi + + @md5current=`md5sum "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" | sed -e 's/ .*//'`; \ + if [ -n "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \ + if [ "$$md5current" != "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \ + echo "Expecting upstream tarball md5sum $(DEB_UPSTREAM_TARBALL_MD5), but $$md5current found" ; \ + echo "Upstream tarball md5sum is NOT trusted! Possible upstream tarball forge!" ; \ + echo "Purging downloaded file. Try new download." ; \ + rm -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ; \ + false ; \ + else \ + echo "Upstream tarball is trusted!" ; \ + fi; \ + else \ + echo "Upstream tarball NOT trusted (current md5sum is $$md5current)!" ; \ + fi + +# TODO: Rewrite using make variables like cdbs_upstream_unpack_cmd and +# DEB_UPSTREAM_SUPPORTED_COMPRESSIONS (recent dpkg supports bz2) +# TODO: Add .orig suffix to top folder inside tarball when only +# recompressing (when $uncompress set and ...REPACKAGE_EXCLUDE unset) + @untar="tar -x -C"; \ + case "$(cdbs_upstream_received_tarball)" in \ + *.tar.gz) unpack="gunzip -c";; \ + *.tar.bz2) unpack="bunzip2 -c"; uncompress="bunzip2";; \ + *.tar.Z) unpack="uncompress -c"; uncompress="uncompress";; \ + *.zip) unpack="unzip -q"; uncompress="false"; untar="-d"; nopipe="true";; \ + *.tar) unpack="cat"; uncompress="true";; \ + *) echo "Unknown extension for upstream tarball $(cdbs_upstream_received_tarball)"; false;; \ + esac && \ + if [ -n "$(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE))" ] || [ "$$uncompress" = "false" ]; then \ + echo "Repackaging tarball ..." && \ + mkdir -p "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" && \ + if [ -n "$$nopipe" ]; then \ + $$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" \ + $$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \ + else \ + $$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" \ + | $$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \ + fi && \ + if [ "$(DEB_UPSTREAM_TARBALL_SRCDIR)" != "$(cdbs_upstream_local_srcdir)" ]; then \ + mv -T "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(DEB_UPSTREAM_TARBALL_SRCDIR)" "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(cdbs_upstream_local_srcdir)"; \ + fi && \ + GZIP=-9 tar -b1 -czf "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_basename).orig.tar.gz" -C "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" "$(cdbs_upstream_local_srcdir)" && \ + echo "Cleaning up" && \ + rm -rf "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)"; \ + elif [ -n "$$uncompress" ]; then \ + echo "Recompressing tarball ..." && \ + $$uncompress "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)"; \ + gzip -9 "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_basename).orig.tar"; \ + fi + +fail-source-not-repackaged: + @if find . $(call cdbs_findargs-path-or-name,$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)) | grep '.*'; then \ + echo; \ + echo 'ERROR: Source contains the files/paths listed above'; \ + echo ' which was intended to not be distributed with the source.'; \ + echo ' Please repackage source with these items stripped!'; \ + echo ' (get-orig-source target can automate this - see README.source)'; \ + exit 1; \ + fi + +DEB_PHONY_RULES += print-version get-orig-source fail-source-not-repackaged + +endif --- cipux-object-3.4.0.2.orig/debian/cdbs/1/rules/package-relations.mk +++ cipux-object-3.4.0.2/debian/cdbs/1/rules/package-relations.mk @@ -0,0 +1,66 @@ +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2008 Jonas Smedegaard +# Description: Resolve, cleanup and apply package relationships +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + +_cdbs_scripts_path ?= /usr/lib/cdbs +_cdbs_rules_path ?= /usr/share/cdbs/1/rules +_cdbs_class_path ?= /usr/share/cdbs/1/class + +ifndef _cdbs_rules_package_relations +_cdbs_rules_package_relations = 1 + +include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix) + +# Merge build-dependencies on same packages +# TODO: rewrite (in perl, probably) to be more generic +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.43)/ s/\bcdbs *\(,\|(>= \(0.4.23-1.1\|0.4.27\|0.4.39\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/\bcdbs *\(,\|(>= \(0.4.23-1.1\|0.4.27\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.27)/ s/\bcdbs *\(,\|(>= \(0.4.23-1.1\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 7.0.1)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\|5.0.37.2\|5.0.44\|6\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 6)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\|5.0.37.2\|5.0.44\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5.0.44)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\|5.0.37.2\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5.0.37.2)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.28)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\|4.2.21\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.21)/ s/\bdebhelper *\(,\|(>= \(4.1.60\|4.2.0\))\)/, /g') +CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.0)/ s/\bdebhelper *\(,\|(>= \(4.1.60\))\)/, /g') + +# TODO: Move these to buildcore.mk +cdbs_curvar = $(or $($(1)_$(cdbs_curpkg)),$($1)) +cdbs_squash_commas = $(shell echo '$1' | sed -e 's/ *,[ ,]*/, /g' -e 's/^[ ,]*//' -e 's/[ ,]*$$//') + +# Cleanup superfluous commas and whitespace +CDBS_BUILD_DEPENDS := $(call cdbs_squash_commas,$(CDBS_BUILD_DEPENDS)) + +comma = , +cdbs_all_cur_squash_commas = $(call cdbs_squash_commas,$($(1)_ALL)$(comma) $(call cdbs_curvar,$1)) + +# Apply CDBS-declared dependencies to binary packages +$(patsubst %,binary-predeb/%,$(DEB_PACKAGES)) :: binary-predeb/%: + @echo 'Adding cdbs dependencies to debian/$(cdbs_curpkg).substvars' + @echo 'cdbs:Depends=$(call cdbs_all_cur_squash_commas,CDBS_DEPENDS)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Pre-Depends=$(call cdbs_all_cur_squash_commas,CDBS_PREDEPENDS)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Recommends=$(call cdbs_all_cur_squash_commas,CDBS_RECOMMENDS)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Suggests=$(call cdbs_all_cur_squash_commas,CDBS_SUGGESTS)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Breaks=$(call cdbs_all_cur_squash_commas,CDBS_BREAKS)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Provides=$(call cdbs_all_cur_squash_commas,CDBS_PROVIDES)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Replaces=$(call cdbs_all_cur_squash_commas,CDBS_REPLACES)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Conflicts=$(call cdbs_all_cur_squash_commas,CDBS_CONFLICTS)' >> debian/$(cdbs_curpkg).substvars + @echo 'cdbs:Enhances=$(call cdbs_all_cur_squash_commas,CDBS_ENHANCES)' >> debian/$(cdbs_curpkg).substvars + +endif