--- sdm-0.4.1.orig/debian/README.source +++ sdm-0.4.1/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 --- sdm-0.4.1.orig/debian/sdm-terminal.install +++ sdm-0.4.1/debian/sdm-terminal.install @@ -0,0 +1,5 @@ +sdm usr/sbin +sdm-login usr/sbin +sdm.config etc/sdm +sdm-ssh-askpass usr/bin +ltsp/sdm usr/share/ltsp/screen.d/ --- sdm-0.4.1.orig/debian/gbp.conf +++ sdm-0.4.1/debian/gbp.conf @@ -0,0 +1,5 @@ +# Configuration file for git-buildpackage and friends + +[DEFAULT] +pristine-tar = True +sign-tags = True --- sdm-0.4.1.orig/debian/compat +++ sdm-0.4.1/debian/compat @@ -0,0 +1 @@ +6 --- sdm-0.4.1.orig/debian/watch +++ sdm-0.4.1/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://dev.freegeek.org/~vagrant/sdm/debian/pool/main/s/sdm/sdm_(.*)\.orig\.tar\.gz --- sdm-0.4.1.orig/debian/TODO +++ sdm-0.4.1/debian/TODO @@ -0,0 +1,4 @@ + * Add menu item (and .desktop file?) to change session-manager + * Add run-parts dirs for both server and client to allow other + packages and local scripts to hook into it without messing with the + config files. --- sdm-0.4.1.orig/debian/sdm.install +++ sdm-0.4.1/debian/sdm.install @@ -0,0 +1,6 @@ +sdm-session usr/bin +sdm-autokeys usr/sbin +sdm-wm usr/bin +functions.Xsession usr/share/sdm +Xsession etc/sdm +windowmanagers etc/sdm --- sdm-0.4.1.orig/debian/copyright +++ sdm-0.4.1/debian/copyright @@ -0,0 +1,14 @@ +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=54 +Name: sdm +Source: http://dev.freegeek.org/~vagrant/sdm/debian/pool/main/s/sdm/ + +Copyright: 2003-2009, Vagrant Cascadian +License: GPL-2+ + +Files: debian/* +Copyright: 2003-2009, Jonas Smedegaard +License: GPL-2+ + +License: GPL-2+ + On Debian systems, the complete text of the GNU General Public License + (GPL) version 2 can be found in "/usr/share/common-licenses/GPL-2". --- sdm-0.4.1.orig/debian/rules +++ sdm-0.4.1/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# Copyright © 2004-2006,2009 Jonas Smedegaard +# Description: Main Debian packaging script for sdm +# +# 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 /usr/share/cdbs/1/rules/debhelper.mk +include debian/cdbs/1/rules/copyright-check.mk +include debian/cdbs/1/rules/buildinfo.mk + +DEB_UPSTREAM_URL = http://dev.freegeek.org/~vagrant/sdm/debian/pool/main/s/sdm/ +DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig +DEB_UPSTREAM_TARBALL_MD5 = f20e9d5aae7fd87b790b1911b7bca5dd + +DEB_INSTALL_MANPAGES_sdm = manpages/sdm-session.1 manpages/sdm-autokeys.8 manpages/sdm-wm.1 +DEB_INSTALL_MANPAGES_sdm-terminal = manpages/sdm.8 manpages/sdm-login.8 manpages/sdm-ssh-askpass.1 + +DEB_CLEAN_EXCLUDE += ChangeLog.bak + +# Use dash instead of ash +common-binary-post-install-indep:: + egrep -r -l -Z '^#! ?/bin/ash' debian/* \ + | xargs -r -0 perl -pi -e 's,^#! ?/bin/ash,#!/bin/dash,' + +# Needed (always/often/sometimes) at runtime +# x11-utils (xmessage) needed by sdm-login, sdm-session, sdm-wm and more +# x11-xserver-utils (xsetroot) needed by sdm-login +# xinit needed by sdm +CDBS_DEPENDS_ALL = dash, x11-utils +CDBS_RECOMMENDS_ALL = zenity +CDBS_DEPENDS_sdm = openssh-server | ssh-server, x11-common +CDBS_SUGGESTS_sdm = wmanager, selectwm, icewm | x-window-manager, xterm | x-terminal-emulator +CDBS_DEPENDS_sdm-terminal = xinit, x11-xserver-utils, openssh-client, xserver-xorg | xserver + +# Resolve, cleanup and apply CDBS-declared dependencies +include debian/cdbs/1/rules/package-relations.mk --- sdm-0.4.1.orig/debian/control.in +++ sdm-0.4.1/debian/control.in @@ -0,0 +1,40 @@ +Source: sdm +Section: x11 +Priority: optional +Maintainer: Jonas Smedegaard +Uploaders: Vagrant Cascadian +DM-Upload-Allowed: yes +Build-Depends: @cdbs@ +Standards-Version: 3.8.3 +Vcs-Git: git://git.debian.org/git/collab-maint/sdm.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/sdm.git;a=summary + +Package: sdm +Architecture: all +Depends: ${misc:Depends}, ${cdbs:Depends} +Recommends: ${cdbs:Recommends} +Suggests: ${cdbs:Suggests} +Description: Secure Display Manager - secure remote access to X11 + sdm is an X11 display manager similar to xdm, gdm and kdm, but unlike + those it wraps the X11 traffic within an ssh tunnel to provide a secure + login mechanism for remote X sessions. + sdm provides access only through SSH, not locally. It is technically + possible to access an sdm server from same host, but probably a waste of + CPU power. + . + This package should be installed on any server acting as SDM server. + +Package: sdm-terminal +Architecture: all +Depends: ${misc:Depends}, ${cdbs:Depends} +Recommends: ${cdbs:Recommends} +Description: Secure Display Manager - terminal files + sdm is an X11 display manager similar to xdm, gdm and kdm, but unlike + those it wraps the X11 traffic within an ssh tunnel to provide a secure + login mechanism for remote X sessions. + sdm provides access only through SSH, not locally. It is technically + possible to access an sdm server from same host, but probably a waste of + CPU power. + . + This package contains helper files for a terminal to connect to an sdm + server, and should be installed on any computer accessing an sdm server. --- sdm-0.4.1.orig/debian/copyright_hints +++ sdm-0.4.1/debian/copyright_hints @@ -0,0 +1,66 @@ +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=REVISION +Name: Untrusted draft - double-check copyrights yourself! + +Files: ChangeLog + TODO + debian/README.source + debian/TODO + debian/compat + debian/control + debian/control.in + debian/gbp.conf + debian/sdm-terminal.install + debian/sdm.install + debian/watch + manpages/sdm-autokeys.8 + manpages/sdm-login.8 + manpages/sdm-session.1 + manpages/sdm-ssh-askpass.1 + manpages/sdm-wm.1 + manpages/sdm.8 + release.conf + sdm.config + windowmanagers +Copyright: *No copyright* +License: UNKNOWN + +Files: README + Xsession + functions.Xsession + sdm + sdm-login + sdm-session +Copyright: 2003-2007, Vagrant Cascadian +License: UNKNOWN + +Files: sdm-autokeys + sdm-ssh-askpass + sdm-wm +Copyright: 2003-2004, Vagrant Cascadian +License: UNKNOWN + +Files: debian/rules +Copyright: 2004-2006,2009, Jonas Smedegaard +License: GPL + +Files: debian/cdbs/1/rules/buildinfo.mk +Copyright: 2004-2007, Jonas Smedegaard +License: GPL + +Files: debian/cdbs/1/rules/package-relations.mk +Copyright: 2008, Jonas Smedegaard +License: GPL + +Files: debian/cdbs/1/rules/copyright-check.mk +Copyright: \s*(\S.*?)\s*\ +License: GPL + +Files: COPYING +Copyright: 1989, 1991, Free Software Foundation, Inc + the software, and +License: UNKNOWN + +Files: ltsp/sdm +Copyright: 2005-2009, Vagrant Cascadian , distributed +License: UNKNOWN + --- sdm-0.4.1.orig/debian/control +++ sdm-0.4.1/debian/control @@ -0,0 +1,40 @@ +Source: sdm +Section: x11 +Priority: optional +Maintainer: Jonas Smedegaard +Uploaders: Vagrant Cascadian +DM-Upload-Allowed: yes +Build-Depends: cdbs, debhelper (>= 6), devscripts (>= 2.10.7), dh-buildinfo +Standards-Version: 3.8.3 +Vcs-Git: git://git.debian.org/git/collab-maint/sdm.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/sdm.git;a=summary + +Package: sdm +Architecture: all +Depends: ${misc:Depends}, ${cdbs:Depends} +Recommends: ${cdbs:Recommends} +Suggests: ${cdbs:Suggests} +Description: Secure Display Manager - secure remote access to X11 + sdm is an X11 display manager similar to xdm, gdm and kdm, but unlike + those it wraps the X11 traffic within an ssh tunnel to provide a secure + login mechanism for remote X sessions. + sdm provides access only through SSH, not locally. It is technically + possible to access an sdm server from same host, but probably a waste of + CPU power. + . + This package should be installed on any server acting as SDM server. + +Package: sdm-terminal +Architecture: all +Depends: ${misc:Depends}, ${cdbs:Depends} +Recommends: ${cdbs:Recommends} +Description: Secure Display Manager - terminal files + sdm is an X11 display manager similar to xdm, gdm and kdm, but unlike + those it wraps the X11 traffic within an ssh tunnel to provide a secure + login mechanism for remote X sessions. + sdm provides access only through SSH, not locally. It is technically + possible to access an sdm server from same host, but probably a waste of + CPU power. + . + This package contains helper files for a terminal to connect to an sdm + server, and should be installed on any computer accessing an sdm server. --- sdm-0.4.1.orig/debian/changelog +++ sdm-0.4.1/debian/changelog @@ -0,0 +1,248 @@ +sdm (0.4.1-1) unstable; urgency=low + + [ Vagrant Cascadian ] + * New upstream release. + + Install LTSP screen.d script for sdm. + + Use file in /var/run instead of /tmp, to avoid risk of symlink attacks. + Fixes CVE-2008-5372 and Closes: #509331. + * Added debian/watch file. + * Remove patches applied upstream: + 1001_use_zenity_not_Xdialog.patch, + 1002_fix_sdm-autokeys_bashism.patch + * Updated debian/copyright. + + [ Jonas Smedegaard ] + * Drop use of quilt (upstream co-maintains now). Drop build-depending + on quilt or patchutils, and build-depend unversioned on cdbs. + * Add and configure new CDBS snippet upstream-tarball.mk. + * Mention custom build targets print-version and get-orig-source in + README.source. + + -- Jonas Smedegaard Mon, 07 Sep 2009 09:53:42 +0200 + +sdm (0.4.0b-5) unstable; urgency=low + + [ Jonas Smedegaard ] + * Update package-relations.mk: Cleanup unversioned+versioned + dependency mix. Improve whitespace cleanup. Rewrite and silence + applying dependencies. + * Bump up standards-version to 3.8.3. + * Fix format hint of debian/copyright: DEP5 r54 (not r59). + * Add proper copyright header to debian/rules. + * Enable DM-Upload-Allowed in debian/control. Welcome aboard, + Vagrant! + + [ Vagrant Cascadian ] + * Adjust patch 1001 to fix get username. Closes: #533706. + * Add myself to uploaders. + + -- Jonas Smedegaard Thu, 03 Sep 2009 22:15:41 +0200 + +sdm (0.4.0b-4) unstable; urgency=low + + * Add README.source. + * Update local CDBS snippets: + + Minor updates to buildinfo.mk + + Major rewrite of copyright-check.mk + + Add new snippet package-relations.mk + + Drop auto-update.mk (define DEB_MAINTAINER_MODE instead) + * Improve dependency handling and cleanup dependencies: + + Handle all dependencies in debian/rules + + Use Build-Depends (not Build-Depends-Indep) + + Depend on x11-utils, x11-xserver-utils and xinit (not + xbase-clients) + + Drop fallbacks for ssh-server and ssh-client + + Drop xfree86-related fallbacks + * Rewrite copyright to use DEP5 r59 proposed machine-readable format. + * Packaging moved to Git in collab-maint group at Alioth: + + Add Vcs-* stanzas + + Add git-buildpackage configfile, enabling signed tags and + pristine-tar + * Upstream project is no more: Drop watch file, and remove Homepage + stanza from control file and contact email from copyright file. This + closes: bug#462094, #449973. + * Use zenity instead of Xdialog: Use patchsys-quilt.mk, add patch 1001 + to replace Xdialog with zenity, and build-depend on zenity (not + xdialog). This closes: bug#533252. + * Add patch 1002 to fix bashism in sdm-autokeys. Closes: bug#473691. + * Bump policy compliance to standards-version 3.8.2. + * Bump dephelper compatibility level to 6. Tighten build-dependency. + + -- Jonas Smedegaard Wed, 17 Jun 2009 21:17:14 +0200 + +sdm (0.4.0b-3) unstable; urgency=low + + * Have sdm-terminal depend on xbase-clients. Closes: bug#345882 + (thanks to TANAKA Atushi ). + * Adjust dependencies for better backports support. Closes: bug#350294 + (thanks to Vagrant Cascadian ). + * Update local cdbs snippet buildinfo.mk to fix namespace. + * Add and enable new local cdbs snippets copyright-check.mk and + auto-update.mk. + * Semi-auto-update debian/control. + * Include indented Homepage (not website) in long descriptions. + * Bump up debian/watch to version 3, and simplify (qa.debian.org + chokes on multiple parantheses). + + -- Jonas Smedegaard Sat, 28 Jan 2006 21:56:15 +0100 + +sdm (0.4.0b-2) unstable; urgency=low + + * Depend on openssh-client/openssh-server (favored over ssh). + * Standards-version 3.6.2 (no changes needed). + + -- Jonas Smedegaard Sat, 18 Jun 2005 00:20:06 +0200 + +sdm (0.4.0b-1) unstable; urgency=low + + * New upstream release. + * Update debian/copyright: + + Copyright period extended to include 2004. + + Upstream source tarball is fine now, so remove note on stripping + symlink and CVS dirs. + + Upstream source is now + http://lessdisks.sourceforge.net/debian/current/sdm/ . + * Update watch file to use http://lessdisks.sourceforge.net/debian/ . + * Install functions below /usr/share/ (not /usr/lib/). + * Enable cdbs debian/rules auto-update. + * Add local cdbs snippet to invoke dh-buildinfo. + * Have sdm depend on xfree86-common (requires /etc/X11/Xsession), and + suggest x-window-manager and x-terminal-emulator. + + -- Jonas Smedegaard Thu, 27 Jan 2005 09:51:20 +0100 + +sdm (0.4.0a-1) unstable; urgency=high + + * New upstream release. + + Using hacked source tarball: debian symlink and CVS dirs stripped. + Using hacked source tarball: debian symlink and CVS dirs stripped. + Using hacked source tarball: debian symlink and CVS dirs stripped. + (Repetitions to hopefully [rt]each upstream this time...!). + * Update debian/copyright: + + Add note about non-pristine source (grrr!). + + Update to use new upstream source location. + + Use newer (slightly less silly) pseudonym of upstream author. + * Update watch file to use new upstream source location, and refer to + new website in long descriptions. + * Have sdm-terminal depend on xserver (inspired by upstream). + * Set urgency=high as the changes (despite this changelog entry) are + minor and ought to reach sarge in time for release. + + -- Jonas Smedegaard Tue, 26 Oct 2004 14:40:25 +0200 + +sdm (0.4.0-4) unstable; urgency=high + + * Depend on dash only for _both_ sdm _and_ sdm-terminal (thanks to + upstream watching over me!). Really closes: Bug#248294. + * Keep urgency=high for same reasons as below. + + -- Jonas Smedegaard Sat, 21 Aug 2004 04:41:07 +0200 + +sdm (0.4.0-3) unstable; urgency=high + + * Depend on dash only (no fallback to ash). Closes: Bug#248294 (thanks + to Michal Politowski and Vagrant). + * Much improved short and long descriptions, inspired by the + suggestions provided by David B Harris . + Closes: Bug#247939. + * Add TODO. + * Set urgency=high as the fallback on ash can be fatal so really needs + to go into sarge before the freeze. Also, only meta info is changed; + the actual scripts within the package is unchanged. + + -- Jonas Smedegaard Fri, 20 Aug 2004 22:50:58 +0200 + +sdm (0.4.0-2) unstable; urgency=low + + * Hardcode use of dash (instead of hardcoded use of ash). + + -- Jonas Smedegaard Thu, 8 Jul 2004 01:38:55 +0200 + +sdm (0.4.0-1) unstable; urgency=low + + * New upstream release. + + Avoid pristine source (symlink ruins the whole point of placing + upstream debian dir below distrib!). + * Change debian/copyright to point to upstream location of tarball. + * Add watch file. + * Mention upstream website (lessdisks.sf.net) in long descriptions. + * Improve short and long description of sdm-terminal. + * Depend on dash as preferred alternative to ash. + + -- Jonas Smedegaard Wed, 7 Jul 2004 12:30:05 +0200 + +sdm (0.3.99.cvs20040426-1) unstable; urgency=low + + * Initial official release. + + Change maintainer name to myself + * Move unofficial debian subdir in source tarball to distrib/debian. + * Update debian/copyright: + + Use correct copyright and license info (recently added to source) + + Remove Debian-specific info already contained in debian/changelog + + Change location of upstream source to point to freegeek viewCVS + + Add access info for freegeek CVS + * Repackage using cdbs, and avoid double conffile registration. + * Correct Build-Depends -> build-Depends-Indep. + * Drop sdm-doc (contained only README and TODO now included with both + other packages). + + -- Jonas Smedegaard Mon, 26 Apr 2004 04:47:09 +0200 + +sdm (0.4.0) unstable; urgency=low + + * added support for commandline options for the x server + + -- vagrant Tue, 20 Apr 2004 16:49:24 -0700 + +sdm (0.3-4) unstable; urgency=low + + * changes sdm-session variable to sdmsession + + -- unknown Thu, 14 Aug 2003 11:25:34 -0700 + +sdm (0.3-3) unstable; urgency=low + + * bugfixen in sdm-wm + * added autologin=once option to sdm-login + * getLogin doesn't assume Xdialog exists + * shutdown/reboot options added to getLogin + * sdm-login handles user@server syntax + + -- unknown Tue, 15 Jul 2003 15:00:58 -0700 + +sdm (0.3-2) unstable; urgency=low + + * sdm-session attempt to kill sshd to finish logout + + -- unknown Fri, 16 May 2003 12:38:50 -0700 + +sdm (0.3-1) unstable; urgency=low + + * added overview to README + * lots of new window manager selection features + * added functions.Xsession + * installs /etc/sdm/Xsession by default + * simplified and renamed default login screen + + -- unknown Thu, 15 May 2003 18:24:20 -0700 + +sdm (0.2-2) unstable; urgency=low + + * sdm-ssh-askpass added and set to default SSH_ASKPASS + * sdm-autokeys added + + -- unknown Tue, 13 May 2003 12:43:10 -0700 + +sdm (0.2-1) unstable; urgency=low + + * added support for custom icon and login text + * changed default locations for X + * configurable login screen (getLoginInfo function) + + -- unknown Tue, 13 May 2003 00:41:04 -0700 + +sdm (0.1-1) unstable; urgency=low + + * Initial Release. + + -- unknown Mon, 12 May 2003 14:36:00 -0700 --- sdm-0.4.1.orig/debian/cdbs/1/rules/buildinfo.mk +++ sdm-0.4.1/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 --- sdm-0.4.1.orig/debian/cdbs/1/rules/copyright-check.mk +++ sdm-0.4.1/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 --- sdm-0.4.1.orig/debian/cdbs/1/rules/upstream-tarball.mk +++ sdm-0.4.1/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 --- sdm-0.4.1.orig/debian/cdbs/1/rules/package-relations.mk +++ sdm-0.4.1/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