aboutsummaryrefslogtreecommitdiffstats
path: root/print/alignmargins/files
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2005-01-28 18:49:14 +0800
committerlofi <lofi@FreeBSD.org>2005-01-28 18:49:14 +0800
commit9b80b0f14b7d6869be406be1583b3ab56604afc8 (patch)
tree5ad6390143a16d788b5f926d373f75aaa51b39ea /print/alignmargins/files
parente7f86a4b7176820aa10d19a97740d878b19666a2 (diff)
downloadfreebsd-ports-gnome-9b80b0f14b7d6869be406be1583b3ab56604afc8.tar.gz
freebsd-ports-gnome-9b80b0f14b7d6869be406be1583b3ab56604afc8.tar.zst
freebsd-ports-gnome-9b80b0f14b7d6869be406be1583b3ab56604afc8.zip
Add alignmargins, a utility script to generate custom margins in PPDs for
CUPS.
Diffstat (limited to 'print/alignmargins/files')
-rw-r--r--print/alignmargins/files/patch-alignmargins25
1 files changed, 25 insertions, 0 deletions
diff --git a/print/alignmargins/files/patch-alignmargins b/print/alignmargins/files/patch-alignmargins
new file mode 100644
index 000000000000..20983d8a631f
--- /dev/null
+++ b/print/alignmargins/files/patch-alignmargins
@@ -0,0 +1,25 @@
+--- alignmargins.orig Fri Jan 28 11:19:27 2005
++++ alignmargins Fri Jan 28 11:22:34 2005
+@@ -1,17 +1,17 @@
+ #! /usr/bin/perl
+ $0 =~ m!^(.*)/[^/]+$!;
+ my $programpath = $1;
+-my $printcommand = '/usr/bin/lpr -P ';
+-my $egrep = '/bin/egrep';
++my $printcommand = '%%LOCALBASE%%/bin/lpr -P ';
++my $egrep = '/usr/bin/egrep';
+ my $cat = '/bin/cat';
+ my $cut = '/usr/bin/cut';
+ my $head = '/usr/bin/head';
+ my $tail = '/usr/bin/tail';
+ my $wc = '/usr/bin/wc';
+ my $adjustmentpagename = 'align.ps';
+-my $adjustmentpagepath = ($programpath ? "${programpath}:" : "") . '.:~:/usr/share/alignmargins:/usr/local/share/alignmargins:/usr/share:/usr/local/share:/usr/share/printer-testpages:/usr/local/share/printer-testpages:/usr/share/ghostscript/*/lib:/usr/local/share/ghostscript/*/lib';
+-my $ppddir = '/etc/cups/ppd';
+-my $printerconffile = '/etc/cups/printers.conf';
++my $adjustmentpagepath = ($programpath ? "${programpath}:" : "") . '.:~:%%DATADIR%%:/usr/share/alignmargins:/usr/local/share/alignmargins:/usr/share:/usr/local/share:/usr/share/printer-testpages:/usr/local/share/printer-testpages:/usr/share/ghostscript/*/lib:/usr/local/share/ghostscript/*/lib';
++my $ppddir = '%%LOCALBASE%%/etc/cups/ppd';
++my $printerconffile = '%%LOCALBASE%%/etc/cups/printers.conf';
+
+ # Find "ælign.ps"
+