--- kwalletcli-2.12.orig/GNUmakefile +++ kwalletcli-2.12/GNUmakefile @@ -75,7 +75,7 @@ -rm -f ${OBJS} ${PROG} ${PROG}: ${OBJS} ${DPADD} - ${CXX} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} + ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} .c.o: ${CC} ${CPPFLAGS} ${CFLAGS} -c -o $@ $< --- kwalletcli-2.12.orig/debian/changelog +++ kwalletcli-2.12/debian/changelog @@ -0,0 +1,298 @@ +kwalletcli (2.12-5) unstable; urgency=low + + * QA upload. + * Add pinentry-gnome3… are we quite there yet, now? kthxbye + + -- Thorsten Glaser Tue, 02 Jun 2015 16:02:43 +0200 + +kwalletcli (2.12-4) unstable; urgency=low + + * QA upload. + * Add pinentry-tty and pinentry-x2go to the list of alternatives + * Escape CC, CFLAGS, etc. properly in debian/rules + * Add explicit packaging licence + * Bump Policy (no changes) + * Update lintian overrides + + -- Thorsten Glaser Sat, 23 May 2015 19:08:42 +0200 + +kwalletcli (2.12-3) unstable; urgency=low + + * QA upload. + * Orphan the package. + + -- Thorsten Glaser Tue, 07 Oct 2014 18:01:48 +0000 + +kwalletcli (2.12-2) unstable; urgency=low + + * debian/control: Move VCS-* fields to Alioth collab-maint git + * Remove now-useless RCS IDs + + -- Thorsten Glaser Tue, 08 Jul 2014 16:11:20 +0200 + +kwalletcli (2.12-1) unstable; urgency=low + + * Fix LTO-less build + * Recommends: kwalletmanager + * New upstream release: + - remove unused code from BSDmakefile + - add list of contributors to LICENCE file + - apply patches from Timo Weingärtner to add recognition for + + git's question (Closes: #745623) + + ssh-agent-filter's confirmation (Closes: #745625) + - whitespace cleanup + * Policy 3.9.5, no changes + * Update lintian warnings (no PGP check for the origtgz) + + -- Thorsten Glaser Sun, 11 May 2014 16:52:36 +0000 + +kwalletcli (2.11-2) unstable; urgency=low + + * Do not call "update-alternatives --remove" on upgrade (cf. #568299) + * Add build-{arch,indep} targets (as alias to build) + * debian/rules: cleanup (remove install/check) + * Modernise maintainer scripts and rules file + * Fix GNUmakefile to add CXXFLAGS to link.cc command + * Attempt LTO; try with --as-needed + * Bring back missing dh_prep call + * Policy 3.9.3 (no changes) + + -- Thorsten Glaser Sat, 25 Feb 2012 13:50:28 +0000 + +kwalletcli (2.11-1) unstable; urgency=low + + * New upstream version; changes: + – Correct exit code for when the read routines die + – Catch signals and terminate gracefully + – Better protocol compliance + – Be more strict when parsing commands + – Quell warning for “GETINFO version” + – Prevent converting underscores into accelerator markings + – Document currently used exit codes + – Add CAVEATS to manual pages + * Merge KDE 3 and KDE 4 packaging + + -- Thorsten Glaser Fri, 03 Jun 2011 14:13:56 +0000 + +kwalletcli (2.10-1~kde3+2) hardy; urgency=low + + * Note that next upstream version’s backport + must use bpo versioning, to keep upgradability + * Upstream CVS snapshot from 20110510 + + -- Thorsten Glaser Tue, 10 May 2011 13:26:42 +0200 + +kwalletcli (2.10-1~kde3+1) lenny-backports-sloppy; urgency=low + + * KDE 3 companion package to kwalletcli_2.10-1 for Lenny and Hardy: + - debian/control: B-D on libqt3-headers ipv libqt4-dev + - debian/control: B-D on kdelibs4-dev ipv kdelibs5-dev + - debian/control: Set Standards-Version to 3.8.0 ipv 3.9.2 + - debian/rules: Set KDE_VER=3 ipv KDE_VER=4 + - debian/source/format: Use 1.0 ipv 3.0 (quilt) + * debian/control: Adjust Vcs-*, Description, Origin, Bugs + + -- Thorsten Glaser Sat, 09 Apr 2011 23:12:45 +0000 + +kwalletcli (2.10-1) unstable; urgency=low + + * kwalletcli can do Multi-Arch: foreign as requested by vorlon + * New upstream version; changes: + - In pinentry-kwallet(1), replace with the slave immediately if + $DISPLAY is unset or empty (as we cannot contact the KDE Wallet + in that case, anyway). Fixes another case of spurious “Do you + want to store … in the KDE Wallet?” questions. + - Fix mis-read in recursive call case (parent, not slave). + - Align look and feel of fallbacks (both xmessage and TUI) with + default pinentry GUI style + - kwalletcli_getpin(1) new options -m (message, with one button); + -Y OK and -N Cancel (set button labels) + - Security fix in kwalletcli_getpin(1): tty I/O now properly + disables echoing input when asking for a passphrase + - After scanning through ssh(1) and ssh-askpass(1) source, teach + kwalletaskpass(1) to use boolean queries for some whitelisted + strings and check it works with confirmation (Closes: #603910) + - Store negative replies to “Do you want to store X in the KDE + Wallet?” as “blacklist” in the wallet in kwalletaskpass(1) and + pinentry-kwallet(1) to avoid asking the user every time + - Document limits and raise kwalletcli(1) -P limit + - Have kwalletcli(1) convert passwords from/to proper UTF-8 for Qt + * Provide ssh-askpass, idea from Daniel Schaal (Closes: #608476) + * debian/rules: Only dh_strip may strip, not upstream makefiles + * Policy 3.9.2 (unchanged, I think should be enough) + + -- Thorsten Glaser Sat, 09 Apr 2011 23:12:42 +0000 + +kwalletcli (2.03-1~kde3+2) xunstable; urgency=low + + * Add Origin and Bugs headers + + -- Thorsten Glaser Sat, 09 Apr 2011 21:50:46 +0000 + +kwalletcli (2.03-1~kde3+1) lenny-backports-sloppy; urgency=low + + * KDE 3 companion package to kwalletcli_2.03-1 for Lenny and Hardy: + - debian/control: B-D on libqt3-headers ipv libqt4-dev + - debian/control: B-D on kdelibs4-dev ipv kdelibs5-dev + - debian/control: set Standards-Version to 3.8.0 ipv 3.9.1 + - debian/rules: set KDE_VER=3 ipv KDE_VER=4 + - debian/source/format: use 1.0 ipv 3.0 (quilt) + * debian/control: adjust Vcs-CVS, Vcs-Browser, Description + + -- Thorsten Glaser Tue, 16 Nov 2010 09:48:19 +0000 + +kwalletcli (2.03-1) unstable; urgency=low + + * New upstream version; changes: + - Fix building the kwalletcli binary with indirect linking; + patch from Felix Geyer + - In kwalletaskpass(1), do not even attempt to call kwalletcli + if $DISPLAY is unset or empty, it will not be able to commu- + nicate with it anyway. Fixes spurious “Do you want to store … + in the KDE Wallet?” questions when logged in via ssh(1). + - Small documentation improvements, mostly re. $DISPLAY + * Policy 3.9.1, no relevant changes + + -- Thorsten Glaser Tue, 16 Nov 2010 09:38:52 +0000 + +kwalletcli (2.02-2~kde3+1) lenny-backports; urgency=low + + * KDE 3 companion package to kwalletcli_2.02-2 for Lenny and Hardy: + - debian/control: B-D on libqt3-headers ipv libqt4-dev + - debian/control: B-D on kdelibs4-dev ipv kdelibs5-dev + - debian/control: set Standards-Version to 3.8.0 ipv 3.9.0 + - debian/rules: set KDE_VER=3 ipv KDE_VER=4 + - debian/source/format: use 1.0 ipv 3.0 (quilt) + * debian/control: adjust Vcs-CVS, Vcs-Browser, Description + + -- Thorsten Glaser Mon, 19 Jul 2010 22:30:33 +0200 + +kwalletcli (2.02-2) unstable; urgency=low + + * The “urgency=ridiculous” release + * Move pinentry-gtk note from debian/README.source to debian/control + * Generate debian/copyright at clean time instead of build time + to stop fellow DDs from nagging (Closes: #566856) + * Remove now empty file debian/README.source + * Bump Policy to 3.9.0.0 (no change required) + * Reword Description in debian/control to reflect that kwalletcli + (currently) only works with/on the default wallet + * Refactor debian/rules submake invocations + * Specify required minimum version of mksh dependency + + -- Thorsten Glaser Mon, 19 Jul 2010 20:15:51 +0000 + +kwalletcli (2.02-1~kde3+1) lenny-backports; urgency=low + + * KDE 3 variant; usual changes are listed in debian/README.source + + -- Thorsten Glaser Wed, 03 Mar 2010 16:01:09 +0000 + +kwalletcli (2.02-1) unstable; urgency=low + + * New upstream version; ChangeLog: + - pinentry-kwallet + + it’s Assuan protocol, not Ägypten + + the BYE command is not undocumented in Assuan, only in pinentry + + implement the (in fact undocumented) GETINFO command + + fix “copy command to co-process” logic (Closes: #572118) + + add optional protocol debugging (exposes passwords tho…) + - kwalletcli.1: document that the default wallet is always used + * Bump Standards-Version, no relevant change + * debian/control: Remove DMUA, I'm a DD now + * debian/README.source: Explain more on the dependency choices + * debian/control: Add Enhances, gajim upstream supports kwalletcli + * debian/rules: Make KDE_VER into a variable for consistency + + -- Thorsten Glaser Wed, 03 Mar 2010 11:30:12 +0000 + +kwalletcli (2.01-1~kde3+2) lenny-backports; urgency=low + + * debian/source/format: Enforce "1.0" manually, for now + * debian/control: Remove DMUA, I'm a DD now + + -- Thorsten Glaser Sun, 28 Feb 2010 19:30:37 +0000 + +kwalletcli (2.01-1~kde3+1) unstable; urgency=low + + * Backport to Debian lenny and *buntu hardy: + - debian/control: B-D on libqt3-headers ipv libqt4-dev + - debian/control: B-D on kdelibs4-dev ipv kdelibs5-dev + - debian/control: set Standards-Version to 3.8.0 ipv 3.8.3 + - debian/README.source: track real Standards-Version + - debian/rules: set KDE_VER=3 ipv KDE_VER=4 + - debian/source/format: remove, use 1.0 + * Adjust Vcs-CVS and Vcs-Browser (separate KDE 3 and KDE 4 trees) + + -- Thorsten Glaser Sun, 24 Jan 2010 00:26:20 +0000 + +kwalletcli (2.01-1) unstable; urgency=low + + * Target Debian sid (first release to be uploaded), Policy + 3.8.3, Source 3.0 (quilt); port to KDE 4. (Closes: #566489) + * Fix lintian: debhelper-but-no-misc-depends + * debian/control: Add Homepage field + * New upstream release (minor bug fixes found during port to sid) + + -- Thorsten Glaser Sat, 23 Jan 2010 14:27:51 +0000 + +kwalletcli (2.00-0~kde3+1) unstable; urgency=low + + * Fix versioning scheme (again), agreed by waldi@d.o: + - sid will receive 2.00-1 + - once that's up I'll provide 2.00-1~kde3+1 for hardy and lenny + * New upstream version + - install SVG and PNG versions of logo + * Concatenate upstream and our copyright information + * Fix lintian warnings on both Hardy and Lenny except + unusual-interpreter mksh, which has been fixed in newer + lintian versions and is irrelevant here + * Improve debian/* files (comments, readability, content) + + -- Thorsten Glaser Mon, 07 Dec 2009 18:04:52 +0100 + +kwalletcli (1.00~kde3-1) experimental; urgency=low + + * Switch to versioning scheme suggested in #debian-qt-kde (OFTC) + (note that we will need to have different source packages for + the KDE3 and KDE4 versions) + + -- Thorsten Glaser Mon, 27 Jul 2009 11:15:49 +0001 + +kwalletcli (0.94-1) experimental; urgency=low + + * New upstream snapshot + * Move to debhelper v5 + * Enhance package description + + -- Thorsten Glaser Mon, 27 Jul 2009 11:15:49 +0200 + +kwalletcli (0.93-1) experimental; urgency=low + + * New upstream snapshot: + - Fix pinentry-kwallet breakage + + -- Thorsten Glaser Sun, 12 Jul 2009 20:02:41 +0200 + +kwalletcli (0.92-1) experimental; urgency=low + + * New upstream snapshot: + - Add -q (quiet) option + - Separate KDE 3 interface via API, for future KDE 4 interface + - Fix some typos and other minor bugs, in code and manpages + + -- Thorsten Glaser Fri, 10 Jul 2009 12:55:32 +0200 + +kwalletcli (0.91-1) experimental; urgency=low + + * New upstream snapshot: + - Return 0 if the version is shown + + -- Thorsten Glaser Thu, 09 Jul 2009 17:07:51 +0200 + +kwalletcli (0.90) experimental; urgency=low + + * Initial release + + -- Thorsten Glaser Wed, 08 Jul 2009 17:35:20 +0200 --- kwalletcli-2.12.orig/debian/compat +++ kwalletcli-2.12/debian/compat @@ -0,0 +1 @@ +5 --- kwalletcli-2.12.orig/debian/control +++ kwalletcli-2.12/debian/control @@ -0,0 +1,33 @@ +Source: kwalletcli +Section: kde +Priority: optional +Homepage: https://www.mirbsd.org/kwalletcli.htm +Maintainer: Debian QA Group +# For KDE 3: change KDE_VER to 3 in debian/rules and use: +#Build-Depends: debhelper (>= 5), kdelibs4-dev, libqt3-headers +# For KDE 4: change KDE_VER to 4 in debian/rules and use: +Build-Depends: debhelper (>= 5), kdelibs5-dev, libqt4-dev +Standards-Version: 3.9.6 +VCS-git: git://anonscm.debian.org/collab-maint/kwalletcli.git +VCS-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/kwalletcli.git + +Package: kwalletcli +Architecture: any +Multi-Arch: foreign +Depends: ${misc:Depends}, ${shlibs:Depends}, mksh (>= 38~) +Provides: ssh-askpass +# pinentry-gtk exists in dapper and etch… it’s there to keep +# things backport friendly +Recommends: gnupg-agent, kwalletmanager, + pinentry-curses | pinentry-gnome3 | pinentry-gtk | pinentry-gtk2 | pinentry-qt | pinentry-qt4 | pinentry-tty | pinentry-x2go, + openssh-client +Enhances: gajim (>= 0.13~) +Description: command line interface to the KDE Wallet + kwalletcli implements a command line interface tool to get and set + password entries in the default KDE Wallet. Also included are a shell + wrapper around pinentry, a pinentry-kwallet application checking the + KDE Wallet for the passphrase requested before asking the user for + use with the GnuPG Agent, which is also capable of running without + a pinentry as backend, and kwalletaskpass, which can store SSH key + passphrases in the KDE Wallet for use with the OpenSSH Agent, and + is registered as ssh-askpass alternative. --- kwalletcli-2.12.orig/debian/copyright +++ kwalletcli-2.12/debian/copyright @@ -0,0 +1,99 @@ +This package was debianised by Thorsten Glaser on +Wed Jul 8 15:29:22 UTC 2009. + +It was downloaded from: +https://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-2.12.tar.gz + + +Note: on Debian systems, the complete text of the GNU LGPL can +be found at: /usr/share/common-licenses/LGPL-3 + +The kwalletcli packaging for Debian is also covered by The MirOS Licence and +Copyright © 2009, 2010, 2011, 2012, 2014, 2015 + Thorsten “mirabilos” Glaser + +Licence: + +kwalletcli – Command-Line Interface for the KDE Wallet +────────────────────────────────────────────────────── + +kwalletcli is “OSI Certified Open Source Software” and distributed +under the following Terms and Conditions: + + +kwalletcli is covered by The MirOS Licence: + +Copyright © 2009, 2010, 2011, 2014 + Thorsten “mirabilos” Glaser +KDE 4 bindings Copyright © 2009 + Thomas Fischer + +Provided that these terms and disclaimer and all copyright notices +are retained or reproduced in an accompanying document, permission +is granted to deal in this work without restriction, including un‐ +limited rights to use, publicly perform, distribute, sell, modify, +merge, give away, or sublicence. + +This work is provided “AS IS” and WITHOUT WARRANTY of any kind, to +the utmost extent permitted by applicable law, neither express nor +implied; without malicious intent or gross negligence. In no event +may a licensor, author or contributor be held liable for indirect, +direct, other damage, loss, or other issues arising in any way out +of dealing in the work, even if advised of the possibility of such +damage or existence of a defect, except proven that it results out +of said person’s immediate fault when using the work as intended. + + +The icon/logo for kwalletcli is a derivate of “The ‘m’” which is a +part of the logo for The MirBSD Korn Shell and covered by the same +licence as mksh itself (The MirOS Licence, see above): + + Copyright © 2008, 2009 Lukas U. + Copyright © 2008 Thorsten „mirabilos“ Glaser + +It is also a derivate of The Oxygen Icon Theme by : + + Copyright © 2007 David Vignoni + Copyright © 2007 Johann Ollivier Lapeyre + Copyright © 2007 Kenneth Wimer + Copyright © 2007 Nuno Fernades Pinheiro + Copyright © 2007 Riccardo Iaconelli + Copyright © 2007 David J. Miller + and others (Jakob Petsovits , etc.) + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public +License as published by the Free Software Foundation; either +version 3 of the License, or (at your option) any later version. + +This library 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 +Library General Public License for more details. + +KDE Oxygen theme icons is a special kind of software library, it +is an artwork library, it's elements can be used in a Graphical +User Interface, or GUI. Source code, for this library means: +where they exist, SVG; otherwise, if applicable, the multi-layered +formats XCF or PSD, or otherwise PNG. + +The LGPL in some sections obliges you to make the files carry +notices. With images this is in some cases impossible or hardly useful. + +With this library a notice is placed at a prominent place in the +directory containing the elements. You may follow this practice. + +The exception in section 5 of the GNU Lesser General Public License +covers the use of elements of this art library in a GUI. + + +The following people, in no particular order, have also contributed +to kwalletcli, in one way or the other: + +• Daniel Schaal +• Felix Geyer +• pinotree (via IRC) +• Timo Weingärtner + + ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ ̲ +$MirOS: contrib/hosted/tg/code/kwalletcli/LICENCE,v 1.5 2014/05/11 16:11:51 tg Exp $ --- kwalletcli-2.12.orig/debian/copyright.hdr +++ kwalletcli-2.12/debian/copyright.hdr @@ -0,0 +1,16 @@ +This package was debianised by Thorsten Glaser on +Wed Jul 8 15:29:22 UTC 2009. + +It was downloaded from: +https://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/kwalletcli-2.12.tar.gz + + +Note: on Debian systems, the complete text of the GNU LGPL can +be found at: /usr/share/common-licenses/LGPL-3 + +The kwalletcli packaging for Debian is also covered by The MirOS Licence and +Copyright © 2009, 2010, 2011, 2012, 2014, 2015 + Thorsten “mirabilos” Glaser + +Licence: + --- kwalletcli-2.12.orig/debian/dirs +++ kwalletcli-2.12/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- kwalletcli-2.12.orig/debian/docs +++ kwalletcli-2.12/debian/docs @@ -0,0 +1,4 @@ +kwalletcli.svg +kwalletcli128.png +kwalletcli32.png +kwalletcli64.png --- kwalletcli-2.12.orig/debian/lintian-bp +++ kwalletcli-2.12/debian/lintian-bp @@ -0,0 +1,2 @@ +# there is none +kwalletcli: no-upstream-changelog --- kwalletcli-2.12.orig/debian/postinst +++ kwalletcli-2.12/debian/postinst @@ -0,0 +1,50 @@ +#!/bin/sh + +set -e + +# This maintainer script can be called the following ways: +# +# * new-postinst "configure" [$most_recently_configured_version] +# The package is unpacked; all dependencies are unpacked and, when there +# are no circular dependencies, configured. +# +# * old-postinst "abort-upgrade" $new_version +# * conflictors-postinst "abort-remove" "in-favour" $package +# $new_version +# * postinst "abort-remove" +# * deconfigureds-postinst "abort-deconfigure" "in-favour" +# $failed_install_package $fip_version ["removing" +# $conflicting_package $cp_version] +# The package is unpacked; all dependencies are at least Half-Installed, +# previously been configured, and not removed. In some error situations, +# dependencies may not be even fully unpacked. +# +# * postinst "triggered" "${triggers[*]}" +# For trigger-only calls, i.e. if "configure" is not called. + +case $1 in +configure) + update-alternatives --install /usr/bin/ssh-askpass ssh-askpass \ + /usr/bin/kwalletaskpass 30 \ + --slave /usr/share/man/man1/ssh-askpass.1.gz ssh-askpass.1.gz \ + /usr/share/man/man1/kwalletaskpass.1.gz + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + ;; + +triggered) + ;; + +*) + echo >&2 "postinst called with unknown subcommand '$1'" + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- kwalletcli-2.12.orig/debian/prerm +++ kwalletcli-2.12/debian/prerm @@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +# This maintainer script can be called the following ways: +# +# * prerm "remove" +# * old-prerm "upgrade" $new_version +# * conflictors-prerm "remove" "in-favour" $package $new_version +# * deconfigureds-prerm "deconfigure" "in-favour" +# $package_being_installed $pbi_version ["removing" +# $conflicting_package $cp_version] +# The package and dependencies are at least Half-Installed; dependencies +# have previously been configured and not removed. +# +# * new-prerm "failed-upgrade" $old_version +# Called when 'old-prerm "upgrade"' fails; new package not unpacked, all +# other constraints the same as above. + +case $1 in +remove|deconfigure) + update-alternatives --remove ssh-askpass /usr/bin/kwalletaskpass + ;; + +upgrade|failed-upgrade) + ;; + +*) + echo >&2 "prerm called with unknown subcommand '$1'" + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- kwalletcli-2.12.orig/debian/rules +++ kwalletcli-2.12/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f + +KDE_VER=4 + +shellescape='$(subst ','\'',$(1))' +shellexport=$(1)=$(call shellescape,${$(1)}) + +CC?= gcc +CXX?= g++ +EXTRA_CFLAGS= -Wall +EXTRA_CXXFLAGS= -Wall +EXTRA_LDFLAGS= -Wl,--as-needed + +ifneq (,$(wildcard /usr/share/dpkg/buildflags.mk)) +# dpkg-dev (>= 1.16.1~) +DEB_CFLAGS_MAINT_APPEND=${EXTRA_CFLAGS} +DEB_CXXFLAGS_MAINT_APPEND=${EXTRA_CXXFLAGS} +DEB_LDFLAGS_MAINT_APPEND=${EXTRA_LDFLAGS} +DEB_BUILD_MAINT_OPTIONS=hardening=+all +include /usr/share/dpkg/buildflags.mk +else +# old-fashioned way to determine build flags +CFLAGS= -O$(if $(findstring noopt,${DEB_BUILD_OPTIONS}),0,2) -g +CXXFLAGS= -O$(if $(findstring noopt,${DEB_BUILD_OPTIONS}),0,2) -g +CFLAGS+= ${EXTRA_CFLAGS} +CXXFLAGS+= ${EXTRA_CXXFLAGS} +LDFLAGS+= ${EXTRA_LDFLAGS} +endif + +MAKE_INVOCATION= ${MAKE} -f GNUmakefile KDE_VER=${KDE_VER} INSTALL_STRIP= + +build build-arch: .build_done +build-indep: + +.build_done: + dh_testdir + +$(foreach i,CC CXX CPPFLAGS LDFLAGS,$(call shellexport,$i)) \ + dCFLAGS=$(call shellescape,${CFLAGS}) \ + dCXXFLAGS=$(call shellescape,${CXXFLAGS}) \ + ; for opts in '-flto=jobserver' '-fwhole-program --combine' '' ''; do \ + set -x; \ + CFLAGS="$$dCFLAGS $$opts"; \ + CXXFLAGS="$$dCXXFLAGS $$opts"; \ + export CC CXX CPPFLAGS LDFLAGS CFLAGS CXXFLAGS; \ + ${MAKE_INVOCATION} && exit 0; \ + ${MAKE_INVOCATION} clean; \ + test -n "$$opts" || unset LDFLAGS; \ + done; echo >&2 Compiling failed.; exit 1 + @:>$@ + +clean: + dh_testdir + ${MAKE_INVOCATION} clean + -rm -f .build_done debian/copyright + cat debian/copyright.hdr LICENCE >debian/copyright + dh_clean + +binary-indep: build-indep + +binary-arch: build-arch + dh_testdir + dh_testroot + if test -x "$$(which dh_prep)"; then dh_prep; else dh_clean -k; fi + dh_installdirs + ${MAKE_INVOCATION} DESTDIR="$$(pwd)/debian/kwalletcli" install + dh_installchangelogs + dh_installdocs + mkdir -p debian/kwalletcli/usr/share/lintian/overrides + cp -a debian/lintian-bp \ + debian/kwalletcli/usr/share/lintian/overrides/kwalletcli + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: binary binary-arch binary-indep build build-arch build-indep clean --- kwalletcli-2.12.orig/debian/source.lintian-overrides +++ kwalletcli-2.12/debian/source.lintian-overrides @@ -0,0 +1,9 @@ +# desired method of keeping changes is CVS +# as long as etch backports are required +kwalletcli source: direct-changes-in-diff-but-no-patch-system * + +# there is none, only a gzsig(1) signature +kwalletcli source: debian-watch-may-check-gpg-signature + +# no, thanks. +kwalletcli source: no-dep5-copyright --- kwalletcli-2.12.orig/debian/source/format +++ kwalletcli-2.12/debian/source/format @@ -0,0 +1 @@ +1.0 --- kwalletcli-2.12.orig/debian/watch +++ kwalletcli-2.12/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.mirbsd.org/MirOS/dist/hosted/kwalletcli/ kwalletcli-(.*)\.tar\.gz