summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-06-04 06:08:43 +0000
committerjlam <jlam@pkgsrc.org>2003-06-04 06:08:43 +0000
commit75a6360ed6c6f71622044a371d1740ffc07793f5 (patch)
treedc176fcbe9b319f6872c66aa0582ba0bad212cf9 /print/cups/patches
parentc96c4a61c43a0aeb226f5a982ed5e4744bff3c85 (diff)
downloadpkgsrc-75a6360ed6c6f71622044a371d1740ffc07793f5.tar.gz
The following changes only affect the build of CUPS, and the entirety
of the diffs between vanilla CUPS and pkgsrc CUPS will be sent back to the author. * Allow overriding the default paths for "CUPS_SERVERBIN" and "CUPS_LOCALEDIR" by passing values through the configure script. This facilitates using custom directory hierarchies as is common in various packaging systems. * Allow choosing the man page extension style by passing values directly through the configure script. This allows overriding the defaults for an operating system, which can happen in some packaging systems. Leave the default behaviour unchanged if not specified.
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-an92
-rw-r--r--print/cups/patches/patch-ao80
2 files changed, 145 insertions, 27 deletions
diff --git a/print/cups/patches/patch-an b/print/cups/patches/patch-an
index 042cfb5135b..79d02ede6b7 100644
--- a/print/cups/patches/patch-an
+++ b/print/cups/patches/patch-an
@@ -1,17 +1,30 @@
-$NetBSD: patch-an,v 1.3 2002/12/19 22:24:55 jlam Exp $
+$NetBSD: patch-an,v 1.4 2003/06/04 06:08:44 jlam Exp $
---- config-scripts/cups-directories.m4.orig Thu Oct 17 13:05:37 2002
+--- config-scripts/cups-directories.m4.orig Tue Dec 17 10:56:39 2002
+++ config-scripts/cups-directories.m4
-@@ -28,6 +28,7 @@ AC_ARG_WITH(fontpath, [ --with-fontpath
- AC_ARG_WITH(docdir, [ --with-docdir set path for documentation],docdir="$withval",docdir="")
+@@ -29,4 +29,6 @@ AC_ARG_WITH(docdir, [ --with-docdir
AC_ARG_WITH(logdir, [ --with-logdir set path for log files],logdir="$withval",logdir="")
AC_ARG_WITH(rcdir, [ --with-rcdir set path for rc scripts],rcdir="$withval",rcdir="")
++AC_ARG_WITH(localedir, [ --with-localedir set path for locale files],localedir="$withval",localedir="")
+AC_ARG_WITH(serverbindir, [ --with-serverbindir set path for server helper programs],serverbindir="$withval",serverbindir="")
dnl Fix "prefix" variable if it hasn't been specified...
- if test "$prefix" = "NONE"; then
-@@ -174,20 +175,23 @@ else
+@@ -163,30 +165,30 @@ CUPS_SERVERROOT="$sysconfdir/cups"
+ CUPS_REQUESTS="$localstatedir/spool/cups"
+
+-AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$sysconfdir/cups")
+-AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$localstatedir/spool/cups")
++AC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$CUPS_SERVERROOT")
++AC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$CUPS_REQUESTS")
+
+ if test x$logdir = x; then
+ CUPS_LOGDIR="$localstatedir/log/cups"
+- AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$localstatedir/log/cups")
+ else
+ CUPS_LOGDIR="$logdir"
+- AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$logdir")
fi
++AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$CUPS_LOGDIR")
dnl See what directory to put server executables...
-case "$uname" in
@@ -33,18 +46,77 @@ $NetBSD: patch-an,v 1.3 2002/12/19 22:24:55 jlam Exp $
+ *BSD* | Darwin*)
+ # *BSD and Darwin (MacOS X)
+ CUPS_SERVERBIN="$exec_prefix/libexec/cups"
-+ AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$exec_prefix/libexec/cups")
+ ;;
+ *)
+ # All others
+ CUPS_SERVERBIN="$libdir/cups"
-+ AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$libdir/cups")
+ ;;
+ esac
+else
+ CUPS_SERVERBIN="$serverbindir"
-+ AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$serverbindir")
+fi
++AC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$CUPS_SERVERBIN")
AC_SUBST(INSTALL_SYSV)
- AC_SUBST(CUPS_SERVERROOT)
+@@ -197,27 +199,28 @@ AC_SUBST(CUPS_REQUESTS)
+
+ dnl Set the CUPS_LOCALE directory...
+-case "$uname" in
+- Linux* | *BSD* | Darwin*)
+- CUPS_LOCALEDIR="$datadir/locale"
+- AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$datadir/locale")
+- ;;
+-
+- OSF1* | AIX*)
+- CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
+- AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$exec_prefix/lib/nls/msg")
+- ;;
+-
+- *)
+- # This is the standard System V location...
+- CUPS_LOCALEDIR="$exec_prefix/lib/locale"
+- AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$exec_prefix/lib/locale")
+- ;;
+-esac
++if test x$localedir = x; then
++ case "$uname" in
++ Linux* | *BSD* | Darwin*)
++ CUPS_LOCALEDIR="$datadir/locale"
++ ;;
+
++ OSF1* | AIX*)
++ CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
++ ;;
++
++ *)
++ # This is the standard System V location...
++ CUPS_LOCALEDIR="$exec_prefix/lib/locale"
++ ;;
++ esac
++else
++ CUPS_LOCALEDIR="$localedir"
++fi
++AC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$CUPS_LOCALEDIR")
+ AC_SUBST(CUPS_LOCALEDIR)
+
+ dnl Set the CUPS_DATADIR directory...
+ CUPS_DATADIR="$datadir/cups"
+-AC_DEFINE_UNQUOTED(CUPS_DATADIR, "$datadir/cups")
++AC_DEFINE_UNQUOTED(CUPS_DATADIR, "$CUPS_DATADIR")
+ AC_SUBST(CUPS_DATADIR)
+
+@@ -229,12 +232,11 @@ else
+ CUPS_DOCROOT="$docdir"
+ fi
+-
+-AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$docdir")
++AC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$CUPS_DOCROOT")
+ AC_SUBST(CUPS_DOCROOT)
+
+ dnl Set the CUPS_FONTPATH directory...
+ CUPS_FONTPATH="$fontpath"
++AC_DEFINE_UNQUOTED(CUPS_FONTPATH, "$CUPS_FONTPATH")
+ AC_SUBST(CUPS_FONTPATH)
+-AC_DEFINE_UNQUOTED(CUPS_FONTPATH, "$fontpath")
+
+ dnl
diff --git a/print/cups/patches/patch-ao b/print/cups/patches/patch-ao
index 0bfa7f95945..7930a67ce93 100644
--- a/print/cups/patches/patch-ao
+++ b/print/cups/patches/patch-ao
@@ -1,29 +1,75 @@
-$NetBSD: patch-ao,v 1.4 2002/12/19 22:24:55 jlam Exp $
+$NetBSD: patch-ao,v 1.5 2003/06/04 06:08:45 jlam Exp $
---- config-scripts/cups-manpages.m4.orig Wed Jan 2 13:50:43 2002
+--- config-scripts/cups-manpages.m4.orig Tue Dec 17 10:56:39 2002
+++ config-scripts/cups-manpages.m4
@@ -22,6 +22,8 @@ dnl EMail: cups-info@cups.org
dnl WWW: http://www.cups.org
dnl
-+AC_ARG_WITH(bsdmanext, [ --with-bsdmanext use BSD manpage extensions],bsdmanext="yes",bsdmanext="no")
++AC_ARG_WITH(manext, [ --with-manext set man page extension style (bsd,irix,sysv,none)],manext="$withval",manext="")
+
dnl Fix "mandir" variable...
if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
case "$uname" in
-@@ -91,6 +93,15 @@ case "$uname" in
+@@ -53,9 +55,28 @@ AC_SUBST(AMANDIR)
+ AC_SUBST(PMANDIR)
+
+ dnl Setup manpage extensions...
+-case "$uname" in
+- *BSD* | Darwin*)
+- # *BSD
++if test x$manext = x; then
++ case "$uname" in
++ *BSD* | Darwin*)
++ # *BSD and Darwin (MacOS X)
++ manext=bsd
++ ;;
++ IRIX*)
++ # SGI IRIX
++ manext=irix
++ ;;
++ SunOS* | HP-UX*)
++ # Solaris and HP-UX
++ manext=sysv
++ ;;
++ *)
++ # All others
++ manext=none
++ ;;
++ esac
++fi
++case "$manext" in
++ bsd)
+ CAT1EXT=0
+ CAT3EXT=0
+ CAT5EXT=0
+@@ -63,8 +84,7 @@ case "$uname" in
+ MAN8EXT=8
MAN8DIR=8
;;
- esac
-+
-+if test x$bsdmanext = xyes; then
-+ CAT1EXT=0
-+ CAT3EXT=0
-+ CAT5EXT=0
-+ CAT8EXT=0
-+ MAN8EXT=8
-+ MAN8DIR=8
-+fi
-
- AC_SUBST(CAT1EXT)
- AC_SUBST(CAT3EXT)
+- IRIX*)
+- # SGI IRIX
++ irix)
+ CAT1EXT=z
+ CAT3EXT=z
+ CAT5EXT=z
+@@ -72,8 +92,7 @@ case "$uname" in
+ MAN8EXT=1m
+ MAN8DIR=1
+ ;;
+- SunOS* | HP-UX*)
+- # Solaris and HP-UX
++ sysv)
+ CAT1EXT=1
+ CAT3EXT=3
+ CAT5EXT=5
+@@ -81,8 +100,7 @@ case "$uname" in
+ MAN8EXT=1m
+ MAN8DIR=1m
+ ;;
+- *)
+- # All others
++ none|*)
+ CAT1EXT=1
+ CAT3EXT=3
+ CAT5EXT=5