pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/papersize Update to 1.0.7: Honour PKG_SYSCONFDIR...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/861daaaf3887
branches:  trunk
changeset: 460971:861daaaf3887
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Mon Sep 08 17:38:34 2003 +0000

description:
Update to 1.0.7: Honour PKG_SYSCONFDIR.  Closes PR pkg/22403 by Curt Sampson,
patch by Jeremy C. Reed.

diffstat:

 print/papersize/Makefile           |  4 ++--
 print/papersize/files/getpapersize |  8 ++++----
 print/papersize/files/setpapersize |  8 ++++----
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (89 lines):

diff -r 69b8907949ea -r 861daaaf3887 print/papersize/Makefile
--- a/print/papersize/Makefile  Mon Sep 08 15:29:55 2003 +0000
+++ b/print/papersize/Makefile  Mon Sep 08 17:38:34 2003 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2003/08/15 12:51:38 reed Exp $
+# $NetBSD: Makefile,v 1.15 2003/09/08 17:38:34 jmmv Exp $
 #
 
-DISTNAME=      papersize-1.0.6
+DISTNAME=      papersize-1.0.7
 WRKSRC=                ${WRKDIR}
 CATEGORIES=    print
 MASTER_SITES=  # empty
diff -r 69b8907949ea -r 861daaaf3887 print/papersize/files/getpapersize
--- a/print/papersize/files/getpapersize        Mon Sep 08 15:29:55 2003 +0000
+++ b/print/papersize/files/getpapersize        Mon Sep 08 17:38:34 2003 +0000
@@ -1,6 +1,6 @@
 #!@SH@
 #
-# $NetBSD: getpapersize,v 1.7 2003/08/15 12:51:39 reed Exp $
+# $NetBSD: getpapersize,v 1.8 2003/09/08 17:38:34 jmmv Exp $
 #
 # Small shell script to show the default papersize for packages
 #
@@ -15,7 +15,7 @@
 while [ $# -gt 0 ]; do
        case $1 in
        a2ps)
-               f=@LOCALBASE@/etc/a2ps-site.cfg
+               f=@PKG_SYSCONFDIR@/a2ps-site.cfg
                if [ -s "$f" ]; then
                        @ECHO@ -n "$1 has default papersize: "
                        @AWK@ '/^Options: --medium=/ { gsub(".*=", "", $0); print $0; }' $f
@@ -29,7 +29,7 @@
                fi
                ;;
        enscript)
-               f=@LOCALBASE@/etc/enscript.cfg
+               f=@PKG_SYSCONFDIR@/enscript.cfg
                if [ -s "$f" ]; then
                        @ECHO@ -n "$1 has default papersize: "
                        @AWK@ '/^DefaultMedia:.*/ { gsub(".*:", "", $0); print $0; }' $f
@@ -68,7 +68,7 @@
                fi
                ;;
        psutils)
-               f=@LOCALBASE@/etc/psutils.cfg
+               f=@PKG_SYSCONFDIR@/psutils.cfg
                if [ -s "$f" ]; then
                        @ECHO@ -n "$1 has default papersize: "
                        @AWK@ '/^PAPERSIZE=/ { gsub(".*=", "", $0); print $0; }' $f
diff -r 69b8907949ea -r 861daaaf3887 print/papersize/files/setpapersize
--- a/print/papersize/files/setpapersize        Mon Sep 08 15:29:55 2003 +0000
+++ b/print/papersize/files/setpapersize        Mon Sep 08 17:38:34 2003 +0000
@@ -1,6 +1,6 @@
 #!@SH@
 #
-# $NetBSD: setpapersize,v 1.8 2003/08/15 12:51:39 reed Exp $
+# $NetBSD: setpapersize,v 1.9 2003/09/08 17:38:34 jmmv Exp $
 #
 # Small shell script to set the default papersize for packages
 #
@@ -46,7 +46,7 @@
 while [ $# -gt 0 ]; do
        case $1 in
        a2ps)
-               a2psfile=@LOCALBASE@/etc/a2ps-site.cfg
+               a2psfile=@PKG_SYSCONFDIR@/a2ps-site.cfg
                if [ -s "$a2psfile" ]; then
                        @MV@ $a2psfile $a2psfile.old
                        @SED@ -e 's|^Options: --medium=.*|Options: --medium='$papersize'|' $a2psfile.old > $a2psfile && @RM@ $a2psfile.old
@@ -62,7 +62,7 @@
                fi
                ;;
        enscript)
-               enscriptfile=@LOCALBASE@/etc/enscript.cfg
+               enscriptfile=@PKG_SYSCONFDIR@/enscript.cfg
                if [ -s "$enscriptfile" ]; then
                        @MV@ $enscriptfile $enscriptfile.old
                        @SED@ -e 's|^DefaultMedia:.*|DefaultMedia: '$papersize'|' $enscriptfile.old > $enscriptfile && @RM@ $enscriptfile.old
@@ -97,7 +97,7 @@
                fi
                ;;
        psutils)
-               psutilsfile=@LOCALBASE@/etc/psutils.cfg
+               psutilsfile=@PKG_SYSCONFDIR@/psutils.cfg
                if [ -s "$psutilsfile" ]; then
                        @MV@ $psutilsfile $psutilsfile.old
                        @SED@ -e 's|^PAPERSIZE.*|PAPERSIZE='$lowpaper'|' $psutilsfile.old > $psutilsfile && @RM@ $psutilsfile.old



Home | Main Index | Thread Index | Old Index