diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-01-27 11:48:00 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-01-27 11:48:00 +0100 |
commit | 5564ef966d4c1cd5fab88966dece21dde08d69cc (patch) | |
tree | f16831ce3de310c0bd90a7828af1871432d3e792 |
initial packaging
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 52 | ||||
-rw-r--r-- | debian/copyright | 32 | ||||
-rw-r--r-- | debian/cups-tea4cups.dirs | 2 | ||||
-rw-r--r-- | debian/cups-tea4cups.docs | 4 | ||||
-rw-r--r-- | debian/cups-tea4cups.install | 2 | ||||
-rwxr-xr-x | debian/cups-tea4cups.postinst | 43 | ||||
-rwxr-xr-x | debian/cups-tea4cups.postrm | 38 | ||||
-rw-r--r-- | debian/patches/2001_disable-debug-mode.patch | 13 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 30 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
14 files changed, 227 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d56dbcb --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +tea4cups (3.13~alpha1+svn3565-1) UNRELEASED; urgency=low + + * Initial release. (Closes: #736826). + + -- Mike Gabriel <sunweaver@debian.org> Mon, 27 Jan 2014 10:57:21 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f1b0072 --- /dev/null +++ b/debian/control @@ -0,0 +1,52 @@ +Source: tea4cups +Section: text +Priority: optional +Maintainer: Debian Printing Team <debian-printing@lists.debian.org> +Uploaders: + Mike Gabriel <sunweaver@debian.org>, +Build-Depends: + debhelper (>= 9), + cdbs, + python, + subversion, + svn2cl | subversion-tools (<< 1.7.5), +Standards-Version: 3.9.5 +Homepage: http://www.pykota.com/software/tea4cups +Vcs-Git: git://anonscm.debian.org/pkg-cups/tea4cups.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-cups/tea4cups.git;a=summary + +Package: cups-tea4cups +Architecture: all +Depends: + ${python:Depends}, + ${misc:Depends}, + cups, + python, +Description: Swiss Army's knife of advanced CUPS administrators + Tea4CUPS is a CUPS backend wrapper which can capture print datas before they + are sent to a printer and process, duplicate or dispatch them in a number of + ways. + . + Tea4CUPS is the Swiss Army's knife of the advanced CUPS administrator, and + can easily replace or extend most of the existing specialized CUPS backends + (pdf, email, ftp, etc...). + . + You are greatly encouraged to use this software instead of writing your own + CUPS backends: Tea4CUPS will let you plug your own scripts, filters, tools, + or commands wherever you want, while giving them access to all the print + job's characteristics in a consistent way. + . + Tea4CUPS makes all information about the current print job, in particular the + job's datas and attributes, available to your own commands through environment + variables. + . + The possibilities are endless: + . + - Your own commands can optionally decide to discard the current print job + instead of printing it. + - Send the same job to several printers at the same time, which is not + possible with CUPS. + - Automate the PDF archiving of all print jobs. + - Forbid duplicate print jobs (a simple example is shown in the sample + configuration file). + - Easily create a print accounting solution. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..1d47ce3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Tea4CUPS +Upstream-Contact: Jerome Alet <alet@librelogiciel.com> +Source: http://www.pykota.com/software/tea4cups/download + +Files: * +Copyright: 2005-2013, Jerome Alet <alet@librelogiciel.com> + 2005 Peter Stuge <stuge-tea4cups@cdy.org> +License: GPL-2+ + +Files: debian/* +Copyright: 2014, Mike Gabriel <sunweaver@debian.org> +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 of the License, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. diff --git a/debian/cups-tea4cups.dirs b/debian/cups-tea4cups.dirs new file mode 100644 index 0000000..59f7f1a --- /dev/null +++ b/debian/cups-tea4cups.dirs @@ -0,0 +1,2 @@ +usr/lib/cups/backend +etc/cups diff --git a/debian/cups-tea4cups.docs b/debian/cups-tea4cups.docs new file mode 100644 index 0000000..0f48dc6 --- /dev/null +++ b/debian/cups-tea4cups.docs @@ -0,0 +1,4 @@ +CREDITS +NEWS +README +TODO diff --git a/debian/cups-tea4cups.install b/debian/cups-tea4cups.install new file mode 100644 index 0000000..d042e62 --- /dev/null +++ b/debian/cups-tea4cups.install @@ -0,0 +1,2 @@ +tea4cups usr/lib/cups/backend/ +tea4cups.conf etc/cups/ diff --git a/debian/cups-tea4cups.postinst b/debian/cups-tea4cups.postinst new file mode 100755 index 0000000..a28e6bd --- /dev/null +++ b/debian/cups-tea4cups.postinst @@ -0,0 +1,43 @@ +#!/bin/sh +# postinst script for cups-tea4cups +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + # the Tea4CUPS backend requires root privileges... + if ! dpkg-statoverride --list /usr/lib/cups/backend/tea4cups >/dev/null; then + dpkg-statoverride --add --update root root 0700 /usr/lib/cups/backend/tea4cups + fi + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/cups-tea4cups.postrm b/debian/cups-tea4cups.postrm new file mode 100755 index 0000000..c473e24 --- /dev/null +++ b/debian/cups-tea4cups.postrm @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for cups-tea4cups +# +# see: dh_installdeb(1) +# summary of how this script can be called: +# * <postrm> `remove' +# * <postrm> `purge' +# * <old-postrm> `upgrade' <new-version> +# * <new-postrm> `failed-upgrade' <old-version> +# * <new-postrm> `abort-install' +# * <new-postrm> `abort-install' <old-version> +# * <new-postrm> `abort-upgrade' <old-version> +# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> +# for details, see /usr/share/doc/packaging-manual/ + +set -e + + +case "$1" in + purge|remove) + if dpkg-statoverride --list /usr/lib/cups/backend/tea4cups >/dev/null; then + dkg-statoverride --remove /usr/lib/cups/backend/tea4cups + fi + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/patches/2001_disable-debug-mode.patch b/debian/patches/2001_disable-debug-mode.patch new file mode 100644 index 0000000..070ab5e --- /dev/null +++ b/debian/patches/2001_disable-debug-mode.patch @@ -0,0 +1,13 @@ +Description: Disable debug mode in tea4cups.conf +Author: Mike Gabriel <sunweaver@debian.org> +--- a/tea4cups.conf ++++ b/tea4cups.conf +@@ -29,7 +29,7 @@ + + # Should we log debugging information to CUPS' error_log file ? + # defaults to No if unset. +-debug : yes ++#debug : yes + + + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..f4a730b --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +2001_disable-debug-mode.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b8dfd8d --- /dev/null +++ b/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +VERBOSE=1 + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST)))) +PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)) +UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') +DTYPE = +VER ?= $(subst $(DTYPE),,$(UVER)) + +## http://wiki.debian.org/onlyjob/get-orig-source +.PHONY: get-orig-source +get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE)) + @ + +## checkout from subversion (add "subversion, svn2cl | subversion-tools (<< 1.7.5)" to Build-Depends) +UURL = http://svn.pykota.com/tea4cups/trunk +REV = $(shell echo $(VER) | perl -ne 'print "$$1" if m/(?:git|svn|hg)(\d+)/;') +$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: REV=$(REV)) + $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..)) + svn export --config-option config:miscellany:use-commit-times=yes -r $(REV) \ + $(UURL) $(PKG)-$(VER) \ + || $(RM) -r $(PKG)-$(VER) + @echo "# Packing..." + find -L $(PKG)-$(VER) -xdev -type f -print | sort \ + | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \ + && $(RM) -r "$(PKG)-$(VER)" diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..46ebe02 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)
\ No newline at end of file diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..5c2a521 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://www.pykota.com/software/tea4cups/download/tarballs/ \ + http://www.pykota.com/software/tea4cups/download/tarballs/tea4cups-([0-9\.]+)_official\.tar\.gz/view |