Codebase list pnm2ppa / ce7c93f
Rename pnm2ppa to printer-driver-pnm2ppa, add transitional package. Didier Raboud 11 years ago
22 changed file(s) with 174 addition(s) and 163 deletion(s). Raw diff Collapse all Expand all
88 Vcs-Git: git://anonscm.debian.org/collab-maint/pnm2ppa.git
99 Standards-Version: 3.9.2.0
1010
11 Package: pnm2ppa
11 Package: printer-driver-pnm2ppa
1212 Architecture: any
1313 Depends: ${shlibs:Depends}, ${misc:Depends}, ghostscript
1414 Suggests: magicfilter | apsfilter
1515 Conflicts: pbm2ppa
16 Replaces: pnm2ppa (<< 1.13-3~)
17 Breaks: pnm2ppa (<< 1.13-3~)
1618 Description: PPM to PPA converter
1719 Using pnm2ppa it's possible to run HP-GDI printers on Linux. These printers
1820 are normally "Windows-only" and use the PPA protocol which is proprietary.
2022 .
2123 pnm2ppa supports the following printers: HP Deskjet 7XX Series, HP Deskjet
2224 820 Series and HP Deskjet 1000 Series.
25
26 Package: pnm2ppa
27 Depends: printer-driver-pnm2ppa, ${misc:Depends}
28 Architecture: all
29 Section: oldlibs
30 Priority: extra
31 Description: transitional dummy package for pnm2ppa printer driver
32 This is a transitional dummy package to transition to uniformly named
33 printer-driver-pnm2ppa.
+0
-3
debian/pnm2ppa.dirs less more
0 usr/share/pnm2ppa
1 usr/share/doc/pnm2ppa/en
2 usr/share/doc/pnm2ppa/pl
+0
-16
debian/pnm2ppa.doc-base.calibrate less more
0 Document: pnm2ppa-calibrate
1 Title: PPA Printer calibration for pnm2ppa
2 Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net
3 Abstract: This manual describes how to calibrate a PPA Printer for use with
4 pnm2ppa.
5 Section: Text
6
7 Format: debiandoc-sgml
8 Files: /usr/share/doc/pnm2ppa/en/sgml/CALIBRATION.sgml.gz
9
10 Format: text
11 Files: /usr/share/doc/pnm2ppa/en/CALIBRATION.txt.gz
12
13 Format: HTML
14 Index: /usr/share/doc/pnm2ppa/en/CALIBRATION.html
15 Files: /usr/share/doc/pnm2ppa/en/CALIBRATION.html
+0
-17
debian/pnm2ppa.doc-base.color less more
0 Document: pnm2ppa-color
1 Title: Color correction for pnm2ppa
2 Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net
3 Abstract: Information and instructions for color correction of pnm2ppa color
4 printing. http://sourceforge.net/projects/pnm2ppa (Updated for pnm2ppa-1.0 and
5 later.)
6 Section: Text
7
8 Format: debiandoc-sgml
9 Files: /usr/share/doc/pnm2ppa/en/sgml/COLOR.sgml.gz
10
11 Format: text
12 Files: /usr/share/doc/pnm2ppa/en/COLOR.txt.gz
13
14 Format: HTML
15 Index: /usr/share/doc/pnm2ppa/en/COLOR.html
16 Files: /usr/share/doc/pnm2ppa/en/COLOR.html
+0
-20
debian/pnm2ppa.doc-base.networking less more
0 Document: pnm2ppa-ppa-networking
1 Title: PPA Networking for Non-Windows Hosts or Clients using SAMBA
2 Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net
3 Abstract: This document discusses Networking HP 710C, 720C 820C or 1000C Series
4 (PPA Protocol) HP DeskJet printers with non-Windows Hosts or Clients, using
5 SAMBA. Topics include choosing between transmitting PPA or PostScript
6 across the network, Windows and Linux/Unix Hosts, Windows and Linux/Unix
7 Clients, and emulating a PostScript printer on Windows. (Updated for
8 pnm2ppa-1.04 and later.)
9 Section: Text
10
11 Format: debiandoc-sgml
12 Files: /usr/share/doc/pnm2ppa/en/sgml/PPA_networking.sgml.gz
13
14 Format: text
15 Files: /usr/share/doc/pnm2ppa/en/PPA_networking.txt.gz
16
17 Format: HTML
18 Index: /usr/share/doc/pnm2ppa/en/PPA_networking.html
19 Files: /usr/share/doc/pnm2ppa/en/PPA_networking*.html
+0
-7
debian/pnm2ppa.docs less more
0 README.security
1 docs/en/CREDITS
2 docs/en/README
3 docs/en/RELEASE-NOTES
4 docs/en/TODO
5 docs/en
6 docs/pl
+0
-4
debian/pnm2ppa.examples less more
0 lpd/
1 pdq/
2 sample_scripts/
3 test*
+0
-2
debian/pnm2ppa.install less more
0 debian/share/pnm2ppa-magicfilter.in usr/share/pnm2ppa
1 debian/share/update-magicfilter usr/share/pnm2ppa
+0
-1
debian/pnm2ppa.manpages less more
0 debian/calibrate_ppa.8
+0
-63
debian/pnm2ppa.postinst less more
0 #! /bin/sh
1 # postinst script for pnm2ppa
2 #
3 # see: dh_installdeb(1)
4 set -e
5
6 # Variables
7 CONFFILE="/etc/pnm2ppa.conf"
8 CONFTMPL="/usr/share/pnm2ppa/pnm2ppa.conf"
9 MKMAGIC="/usr/share/pnm2ppa/update-magicfilter"
10
11 # Debconf, baby -- no tests. It's a dependency for installation.
12 . /usr/share/debconf/confmodule
13
14 case "${1}" in
15 configure)
16 # Make sure we have a config file in place
17 if [ ! -f ${CONFFILE} ] ; then
18 install -m644 ${CONFTMPL} ${CONFFILE}
19 fi
20
21 db_get pnm2ppa/use_debconf
22 if [ "${RET}" = "true" ] ; then
23 # If conf file already exists, use that
24 if [ -f ${CONFFILE} ] ; then
25 CONFSRC=${CONFFILE}
26 else
27 CONFSRC=${CONFTMPL}
28 fi
29
30 # VERY simple sed replacement
31 if [ -f ${CONFSRC} ] ; then
32 db_get pnm2ppa/printer_model
33 TEMPFILE=`tempfile`
34 # Replace everything following "version " w/model
35 sed -e "s,^\(version \).*$,\1 ${RET}," ${CONFSRC} > \
36 ${TEMPFILE}
37 install -m644 ${TEMPFILE} ${CONFFILE}
38 rm ${TEMPFILE}
39 fi
40
41 # Simple magicfilter processing...
42 db_get pnm2ppa/create_magicfilter
43 if [ "${RET}" = "true" ] ; then
44 sh $MKMAGIC
45 fi
46 fi
47
48 ;;
49 abort-upgrade|abort-remove|abort-deconfigure)
50 ;;
51 *)
52 echo "postinst called with unknown argument \`${1}'" >&2
53 exit 1
54 ;;
55 esac
56
57 # dh_installdeb will replace this with shell code automatically
58 # generated by other debhelper scripts.
59
60 #DEBHELPER#
61
62 exit 0
+0
-24
debian/pnm2ppa.postrm less more
0 #!/bin/sh
1
2 set -e
3
4 # Purge actions
5 if [ "$1" = purge ] ; then
6 # Get rid of configuration file
7 if [ -f /etc/pnm2ppa.conf ]; then
8 rm -f /etc/pnm2ppa.conf
9 fi
10 # We're pretty sure that the pnm2ppa magicfilter files were generated
11 # or installed by pnm2ppa packages.
12 if [ -d /etc/magicfilter ] ; then
13 for i in /etc/magicfilter/p?m2ppa*-filter ; do
14 rm -f $i || true
15 done
16
17 # If there are no files in the magicfilter directory, remove.
18 # rmdir will fail if there are files... Not an error.
19 rmdir /etc/magicfilter 2> /dev/null || true
20 fi
21 fi
22
23 #DEBHELPER#
0 usr/share/pnm2ppa
1 usr/share/doc/pnm2ppa/en
2 usr/share/doc/pnm2ppa/pl
0 Document: pnm2ppa-calibrate
1 Title: PPA Printer calibration for pnm2ppa
2 Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net
3 Abstract: This manual describes how to calibrate a PPA Printer for use with
4 pnm2ppa.
5 Section: Text
6
7 Format: debiandoc-sgml
8 Files: /usr/share/doc/printer-driver-pnm2ppa/en/sgml/CALIBRATION.sgml.gz
9
10 Format: text
11 Files: /usr/share/doc/printer-driver-pnm2ppa/en/CALIBRATION.txt.gz
12
13 Format: HTML
14 Index: /usr/share/doc/printer-driver-pnm2ppa/en/CALIBRATION.html
15 Files: /usr/share/doc/printer-driver-pnm2ppa/en/CALIBRATION.html
0 Document: pnm2ppa-color
1 Title: Color correction for pnm2ppa
2 Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net
3 Abstract: Information and instructions for color correction of pnm2ppa color
4 printing. http://sourceforge.net/projects/pnm2ppa (Updated for pnm2ppa-1.0 and
5 later.)
6 Section: Text
7
8 Format: debiandoc-sgml
9 Files: /usr/share/doc/printer-driver-pnm2ppa/en/sgml/COLOR.sgml.gz
10
11 Format: text
12 Files: /usr/share/doc/printer-driver-pnm2ppa/en/COLOR.txt.gz
13
14 Format: HTML
15 Index: /usr/share/doc/printer-driver-pnm2ppa/en/COLOR.html
16 Files: /usr/share/doc/printer-driver-pnm2ppa/en/COLOR.html
0 Document: pnm2ppa-ppa-networking
1 Title: PPA Networking for Non-Windows Hosts or Clients using SAMBA
2 Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net
3 Abstract: This document discusses Networking HP 710C, 720C 820C or 1000C Series
4 (PPA Protocol) HP DeskJet printers with non-Windows Hosts or Clients, using
5 SAMBA. Topics include choosing between transmitting PPA or PostScript
6 across the network, Windows and Linux/Unix Hosts, Windows and Linux/Unix
7 Clients, and emulating a PostScript printer on Windows. (Updated for
8 pnm2ppa-1.04 and later.)
9 Section: Text
10
11 Format: debiandoc-sgml
12 Files: /usr/share/doc/printer-driver-pnm2ppa/en/sgml/PPA_networking.sgml.gz
13
14 Format: text
15 Files: /usr/share/doc/printer-driver-pnm2ppa/en/PPA_networking.txt.gz
16
17 Format: HTML
18 Index: /usr/share/doc/printer-driver-pnm2ppa/en/PPA_networking.html
19 Files: /usr/share/doc/printer-driver-pnm2ppa/en/PPA_networking*.html
0 README.security
1 docs/en/CREDITS
2 docs/en/README
3 docs/en/RELEASE-NOTES
4 docs/en/TODO
5 docs/en
6 docs/pl
0 lpd/
1 pdq/
2 sample_scripts/
3 test*
0 debian/share/pnm2ppa-magicfilter.in usr/share/pnm2ppa
1 debian/share/update-magicfilter usr/share/pnm2ppa
0 #! /bin/sh
1 # postinst script for pnm2ppa
2 #
3 # see: dh_installdeb(1)
4 set -e
5
6 # Variables
7 CONFFILE="/etc/pnm2ppa.conf"
8 CONFTMPL="/usr/share/pnm2ppa/pnm2ppa.conf"
9 MKMAGIC="/usr/share/pnm2ppa/update-magicfilter"
10
11 # Debconf, baby -- no tests. It's a dependency for installation.
12 . /usr/share/debconf/confmodule
13
14 case "${1}" in
15 configure)
16 # Make sure we have a config file in place
17 if [ ! -f ${CONFFILE} ] ; then
18 install -m644 ${CONFTMPL} ${CONFFILE}
19 fi
20
21 db_get pnm2ppa/use_debconf
22 if [ "${RET}" = "true" ] ; then
23 # If conf file already exists, use that
24 if [ -f ${CONFFILE} ] ; then
25 CONFSRC=${CONFFILE}
26 else
27 CONFSRC=${CONFTMPL}
28 fi
29
30 # VERY simple sed replacement
31 if [ -f ${CONFSRC} ] ; then
32 db_get pnm2ppa/printer_model
33 TEMPFILE=`tempfile`
34 # Replace everything following "version " w/model
35 sed -e "s,^\(version \).*$,\1 ${RET}," ${CONFSRC} > \
36 ${TEMPFILE}
37 install -m644 ${TEMPFILE} ${CONFFILE}
38 rm ${TEMPFILE}
39 fi
40
41 # Simple magicfilter processing...
42 db_get pnm2ppa/create_magicfilter
43 if [ "${RET}" = "true" ] ; then
44 sh $MKMAGIC
45 fi
46 fi
47
48 ;;
49 abort-upgrade|abort-remove|abort-deconfigure)
50 ;;
51 *)
52 echo "postinst called with unknown argument \`${1}'" >&2
53 exit 1
54 ;;
55 esac
56
57 # dh_installdeb will replace this with shell code automatically
58 # generated by other debhelper scripts.
59
60 #DEBHELPER#
61
62 exit 0
0 #!/bin/sh
1
2 set -e
3
4 # Purge actions
5 if [ "$1" = purge ] ; then
6 # Get rid of configuration file
7 if [ -f /etc/pnm2ppa.conf ]; then
8 rm -f /etc/pnm2ppa.conf
9 fi
10 # We're pretty sure that the pnm2ppa magicfilter files were generated
11 # or installed by pnm2ppa packages.
12 if [ -d /etc/magicfilter ] ; then
13 for i in /etc/magicfilter/p?m2ppa*-filter ; do
14 rm -f $i || true
15 done
16
17 # If there are no files in the magicfilter directory, remove.
18 # rmdir will fail if there are files... Not an error.
19 rmdir /etc/magicfilter 2> /dev/null || true
20 fi
21 fi
22
23 #DEBHELPER#
88 dh $@ --parallel --builddirectory=build/
99
1010 override_dh_auto_install:
11 dh_auto_install --builddirectory=build/
11 dh_auto_install --builddirectory=build/ --destdir=debian/printer-driver-pnm2ppa/
1212 # Move the configuration file from /etc to /usr/share
13 mv debian/pnm2ppa/etc/pnm2ppa.conf debian/pnm2ppa/usr/share/pnm2ppa/
13 mv debian/printer-driver-pnm2ppa/etc/pnm2ppa.conf debian/printer-driver-pnm2ppa/usr/share/pnm2ppa/
1414
1515 override_dh_install:
1616 dh_install
1717 # Make sure update-magicfilters is executable
18 chmod +x debian/pnm2ppa/usr/share/pnm2ppa/update-magicfilter
18 chmod +x debian/printer-driver-pnm2ppa/usr/share/pnm2ppa/update-magicfilter
1919 ifeq ($(derives_from_ubuntu),yes)
2020 # Install the apport hook on Ubuntu and derivatives
21 install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/pnm2ppa/usr/share/apport/package-hooks/source_pnm2ppa.py
21 install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/printer-driver-pnm2ppa/usr/share/apport/package-hooks/source_pnm2ppa.py
2222 endif
2323
2424 override_dh_installdocs:
2525 dh_installdocs
2626 # Remove useless or redundant files
27 cd debian/pnm2ppa/usr/share/doc/pnm2ppa/;\
27 cd debian/printer-driver-pnm2ppa/usr/share/doc/printer-driver-pnm2ppa/;\
2828 rm en/CREDITS;\
2929 rm en/INSTALL.BEOS;\
3030 rm en/INSTALL.CALDERA;\