pnm2ppa:moved into main for pisi 2.0

This commit is contained in:
2015-10-29 00:19:12 +03:00
parent 5215565b7a
commit 02dbd673ed
5 changed files with 242 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure("--sysconfdir=/etc")
def build():
shelltools.export("CFLAGS", "-DNDEBUG %s" % get.CFLAGS())
autotools.make('CC="%s" CFLAGS="%s -DLANG_EN"' % (get.CC(), get.CFLAGS()))
autotools.make('-C ppa_protocol CC="%s" CFLAGS="%s"' % (get.CC(), get.CFLAGS()))
def install():
autotools.install("BINDIR=%(install)s/usr/bin \
CONFDIR=%(install)s/etc \
MANDIR=%(install)s/usr/share/man/man1" % { "install": get.installDIR()})
pisitools.dobin("utils/Linux/detect_ppa")
pisitools.dobin("utils/Linux/test_ppa")
pisitools.insinto("/usr/share/pnm2ppa/lpd", "lpd/*")
pisitools.insinto("/usr/share/pnm2ppa/pdq", "pdq/*")
pisitools.doexe("lpd/lpdsetup", "/usr/share/pnm2ppa/lpd")
pisitools.doexe("sample_scripts/*", "/usr/share/pnm2ppa/sample_scripts")
pisitools.doexe("pdq/gs-pnm2ppa", "/etc/pdq/drivers/ghostscript")
pisitools.doexe("pdq/dummy", "/etc/pdq/interfaces")
pisitools.dohtml("*")
shelltools.cd("docs/en")
pisitools.dodoc("CALIBRATION*txt", "COLOR*txt", "PPA*txt", "RELEASE*", "CREDITS", "LICENSE", "README", "TODO")
@@ -0,0 +1,127 @@
diff -ur pnm2ppa-1.12/Makefile pnm2ppa-1.12.new/Makefile
--- Makefile 2002-11-15 18:29:29.000000000 -0500
+++ Makefile 2002-12-11 17:39:27.000000000 -0500
@@ -5,13 +5,13 @@
# paths to locations where the pnm2ppa binary, the configuration file,
# and the man page should be installed. On some systems (like Solaris)
# the install command requires the syntax BINDIR="-f /usr/local/bin".
-BINDIR="/usr/local/bin"
+BINDIR="/usr/bin"
CONFDIR="/etc"
-MANDIR="/usr/local/man/man1"
+MANDIR="/usr/share/man/man1"
#compiler and linker options:
CC=gcc
-CFLAGS=-Wall -pedantic -O2
+CFLAGS=-Wall -pedantic -O3
LDFLAGS=-lm
INSTALL=install
diff -ur pnm2ppa-1.12/lpd/ascii.if pnm2ppa-1.12.new/lpd/ascii.if
--- lpd/ascii.if 2000-10-28 10:58:07.000000000 -0400
+++ lpd/ascii.if 2002-12-11 17:39:55.000000000 -0500
@@ -1,6 +1,6 @@
#! /bin/sh
# for printing black and white text (ascii) files.
-FILTER="/usr/local/bin/bw.if"
+FILTER="/usr/bin/bw.if"
#FILTER="/usr/local/bin/bweco.if"
#------enscript command line--------------------------
enscript -2rj -p- | $FILTER
diff -ur pnm2ppa-1.12/lpd/bw.if pnm2ppa-1.12.new/lpd/bw.if
--- lpd/bw.if 2000-10-28 10:58:07.000000000 -0400
+++ lpd/bw.if 2002-12-11 17:40:14.000000000 -0500
@@ -6,7 +6,7 @@
#PAPER=a4
#PAPER=a3
#PPAOPTS="-B 2"
-PNM2PPA="/usr/local/bin/pnm2ppa"
+PNM2PPA="/usr/bin/pnm2ppa"
#------------------dont change below this line----------------------
gs -sDEVICE=pbmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
$PNM2PPA --bw $PPAOPTS -i - -o -
diff -ur pnm2ppa-1.12/lpd/bweco.if pnm2ppa-1.12.new/lpd/bweco.if
--- lpd/bweco.if 2000-10-28 10:58:07.000000000 -0400
+++ lpd/bweco.if 2002-12-11 17:40:23.000000000 -0500
@@ -6,7 +6,7 @@
#PAPER=a4
#PAPER=a3
#PPAOPTS="-B 2"
-PNM2PPA="/usr/local/bin/pnm2ppa"
+PNM2PPA="/usr/bin/pnm2ppa"
#------------------dont change below this line----------------------
gs -sDEVICE=pbmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
$PNM2PPA --bw --eco $PPAOPTS -i - -o -
diff -ur pnm2ppa-1.12/lpd/color.if pnm2ppa-1.12.new/lpd/color.if
--- lpd/color.if 2000-10-28 10:58:07.000000000 -0400
+++ lpd/color.if 2002-12-11 17:40:31.000000000 -0500
@@ -6,7 +6,7 @@
#PAPER=a4
#PAPER=a3
#PPAOPTS="-p"
-PNM2PPA="/usr/local/bin/pnm2ppa"
+PNM2PPA="/usr/bin/pnm2ppa"
#------------------dont change below this line----------------------
gs -sDEVICE=ppmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
$PNM2PPA $PPAOPTS -i - -o -
diff -ur pnm2ppa-1.12/lpd/coloreco.if pnm2ppa-1.12.new/lpd/coloreco.if
--- lpd/coloreco.if 2000-10-28 10:58:07.000000000 -0400
+++ lpd/coloreco.if 2002-12-11 17:40:45.000000000 -0500
@@ -6,7 +6,7 @@
#PAPER=a4
#PAPER=a3
#PPAOPTS="--fd"
-PNM2PPA="/usr/local/bin/pnm2ppa"
+PNM2PPA="/usr/bin/pnm2ppa"
#------------------dont change below this line----------------------
gs -sDEVICE=ppmraw -sPAPERSIZE=$PAPER -q -dNOPAUSE -r600 -sOutputFile=- - | \
$PNM2PPA --eco $PPAOPTS -i - -o -
diff -ur pnm2ppa-1.12/lpd/printcap pnm2ppa-1.12.new/lpd/printcap
--- lpd/printcap 2000-10-27 14:12:23.000000000 -0400
+++ lpd/printcap 2002-12-11 17:41:35.000000000 -0500
@@ -6,7 +6,7 @@
:sd=/var/spool/lpd/coloreco:\
:lf=/var/spool/lpd/coloreco/log:\
:af=/var/spool/lpd/coloreco/acct:\
- :if=/usr/local/bin/coloreco.if:\
+ :if=/usr/bin/coloreco.if:\
:la:mx#0:\
:sh:sf:
@@ -16,7 +16,7 @@
:sd=/var/spool/lpd/color:\
:lf=/var/spool/lpd/color/log:\
:af=/var/spool/lpd/color/acct:\
- :if=/usr/local/bin/color.if:\
+ :if=/usr/bin/color.if:\
:la:mx#0:\
:sh:sf:
@@ -26,7 +26,7 @@
:sd=/var/spool/lpd/bw:\
:lf=/var/spool/lpd/bw/log:\
:af=/var/spool/lpd/bw/acct:\
- :if=/usr/local/bin/bw.if:\
+ :if=/usr/bin/bw.if:\
:la:mx#0:\
:sh:sf:
@@ -36,7 +36,7 @@
:sd=/var/spool/lpd/bweco:\
:lf=/var/spool/lpd/bweco/log:\
:af=/var/spool/lpd/bweco/acct:\
- :if=/usr/local/bin/bweco.if:\
+ :if=/usr/bin/bweco.if:\
:la:mx#0:\
:sh:sf:
@@ -46,7 +46,7 @@
:sd=/var/spool/lpd/ascii:\
:lf=/var/spool/lpd/ascii/log:\
:af=/var/spool/lpd/ascii/acct:\
- :if=/usr/local/bin/ascii.if:\
+ :if=/usr/bin/ascii.if:\
:la:mx#0:\
:sh:sf:
@@ -0,0 +1,14 @@
diff -Nur pnm2ppa-1.12-old/pnm2ppa.conf pnm2ppa-1.12/pnm2ppa.conf
--- pnm2ppa-1.12-old/pnm2ppa.conf 2005-12-31 01:54:54.000000000 +0200
+++ pnm2ppa-1.12/pnm2ppa.conf 2005-12-31 01:55:36.000000000 +0200
@@ -15,8 +15,8 @@
# will be used. The printer version can also be set with the command line
# option e.g., "-v 720".
-version 0 # REMOVE THIS ENTRY to make 720 the default printer model!!!
-#version 720 # 710, 712, 722 also acceptable
+# version 0 # REMOVE THIS ENTRY to make 720 the default printer model!!!
+version 720 # 710, 712, 722 also acceptable
#version 820
#version 1000
+53
View File
@@ -0,0 +1,53 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>pnm2ppa</Name>
<Homepage>http://pnm2ppa.sourceforge.net</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>Driver addons for some Hp Deskjet printers</Summary>
<Description>Tool to convert pnm data to ppa data for Hp Deskjet 710, 712, 720, 722, 820, 1000 series printer drivers.</Description>
<Archive type="targz" sha1sum="3de33786e9d3f35a73d7e4acb5281f30654cef7c">mirrors://sourceforge/pnm2ppa/pnm2ppa-1.13.tar.gz</Archive>
<Patches>
<!-- <Patch>pnm2ppa-1.12-pisilinux.diff</Patch> -->
<Patch level="1">pnm2ppa-default_config.patch</Patch>
</Patches>
</Source>
<Package>
<Name>pnm2ppa</Name>
<RuntimeDependencies>
<Dependency>enscript</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="config">/etc/pdq</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/pnm2ppa</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2014-02-04</Date>
<Version>1.13</Version>
<Comment>Version bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-13</Date>
<Version>1.12</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>pnm2ppa</Name>
<Summary xml:lang="tr">Bazı Hp Deskjet yazıcılar için sürücü eklentileri</Summary>
<Description xml:lang="tr">Hp Deskjet 710, 712, 720, 722, 820, 1000 serisi yazıcı sürücüleri için pnm verisini ppa verisine dönüştüren araçlar</Description>
</Source>
</PISI>