From: jlovell
Date: Fri, 27 Jan 2006 21:43:41 +0000 (+0000)
Subject: Load cups into easysw/current.
X-Git-Tag: release-1.6.3~253
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09ec001812911f8890dad0f164ab9098e22208cf;p=thirdparty%2Fcups.git
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@35 a1ca3aef-8c08-0410-bb20-df032aa958be
---
diff --git a/Makedefs.in b/Makedefs.in
index 7177bcbbcd..4c6ccb6764 100644
--- a/Makedefs.in
+++ b/Makedefs.in
@@ -1,5 +1,5 @@
#
-# "$Id: Makedefs.in 4999 2006-01-26 23:36:22Z mike $"
+# "$Id: Makedefs.in 5008 2006-01-27 19:30:34Z mike $"
#
# Common makefile definitions for the Common UNIX Printing System (CUPS).
#
@@ -47,6 +47,7 @@ STRIP = @STRIP@
#
INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 -s
+INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_DIR = $(INSTALL) -d
INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755
@@ -54,11 +55,19 @@ INSTALL_MAN = $(INSTALL) -m 644
INSTALL_SCRIPT = $(INSTALL) -m 755
#
-# Default user and group for the scheduler...
+# Default user, group, and system groups for the scheduler...
#
CUPS_USER = @CUPS_USER@
CUPS_GROUP = @CUPS_GROUP@
+CUPS_SYSTEM_GROUPS = @CUPS_SYSTEM_GROUPS@
+
+#
+# Default permissions...
+#
+
+CUPS_CONFIG_FILE_PERM = @CUPS_CONFIG_FILE_PERM@
+CUPS_LOG_FILE_PERM = @CUPS_LOG_FILE_PERM@
#
# Libraries...
@@ -93,6 +102,7 @@ BACKLIBS = @BACKLIBS@
CFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CFLAGS@ \
@LARGEFILE@ $(OPTIONS)
COMMONLIBS = @LIBS@
+CUPSDLIBS = @CUPSDLIBS@
CXXFLAGS = -I.. $(RC_CFLAGS) $(SSLFLAGS) @CPPFLAGS@ @CXXFLAGS@ \
@LARGEFILE@ $(OPTIONS)
CXXLIBS = @CXXLIBS@
@@ -195,5 +205,5 @@ PAMFILE = @PAMFILE@
#
-# End of "$Id: Makedefs.in 4999 2006-01-26 23:36:22Z mike $"
+# End of "$Id: Makedefs.in 5008 2006-01-27 19:30:34Z mike $"
#
diff --git a/Makefile b/Makefile
index 2c99a07f71..9cfaec9bba 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# "$Id: Makefile 4971 2006-01-24 14:33:18Z mike $"
+# "$Id: Makefile 5003 2006-01-27 02:33:36Z mike $"
#
# Top-level Makefile for the Common UNIX Printing System (CUPS).
#
@@ -28,7 +28,7 @@ include Makedefs
# Directories to make...
#
-DIRS = cups backend berkeley cgi-bin filter man pdftops \
+DIRS = cups backend berkeley cgi-bin filter locale man pdftops \
notifier scheduler systemv
#
@@ -80,8 +80,6 @@ install: installhdrs
(cd doc; $(MAKE) $(MFLAGS) install)
echo Installing in fonts...
(cd fonts; $(MAKE) $(MFLAGS) install)
- echo Installing in locale...
- (cd locale; $(MAKE) $(MFLAGS) install)
echo Installing in ppd...
(cd ppd; $(MAKE) $(MFLAGS) install)
echo Installing in templates...
@@ -167,5 +165,5 @@ tardist:
epm $(EPMFLAGS) -f tardist cups packaging/cups.list
#
-# End of "$Id: Makefile 4971 2006-01-24 14:33:18Z mike $".
+# End of "$Id: Makefile 5003 2006-01-27 02:33:36Z mike $".
#
diff --git a/conf/Makefile b/conf/Makefile
index 6846938069..cf2f88a8a2 100644
--- a/conf/Makefile
+++ b/conf/Makefile
@@ -1,5 +1,5 @@
#
-# "$Id: Makefile 4972 2006-01-24 14:48:12Z mike $"
+# "$Id: Makefile 5008 2006-01-27 19:30:34Z mike $"
#
# Configuration file makefile for the Common UNIX Printing System (CUPS).
#
@@ -54,17 +54,17 @@ install: all
$(INSTALL_DIR) $(SERVERROOT)
for file in $(KEEP); do \
if test -r $(SERVERROOT)/$$file ; then \
- $(INSTALL_DATA) $$file $(SERVERROOT)/$$file.N ; \
+ $(INSTALL_CONFIG) $$file $(SERVERROOT)/$$file.N ; \
else \
- $(INSTALL_DATA) $$file $(SERVERROOT) ; \
+ $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \
fi ; \
done
- $(INSTALL_DATA) cupsd.conf $(SERVERROOT)/cupsd.conf.default
+ $(INSTALL_CONFIG) cupsd.conf $(SERVERROOT)/cupsd.conf.default
for file in $(REPLACE); do \
if test -r $(SERVERROOT)/$$file ; then \
$(MV) $(SERVERROOT)/$$file $(SERVERROOT)/$$file.O ; \
fi ; \
- $(INSTALL_DATA) $$file $(SERVERROOT) ; \
+ $(INSTALL_CONFIG) $$file $(SERVERROOT) ; \
done
-if test x$(PAMDIR) != x$(BUILDROOT); then \
$(INSTALL_DIR) $(PAMDIR); \
@@ -77,5 +77,5 @@ install: all
#
-# End of "$Id: Makefile 4972 2006-01-24 14:48:12Z mike $".
+# End of "$Id: Makefile 5008 2006-01-27 19:30:34Z mike $".
#
diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4
index cc001bf747..18d0bfff12 100644
--- a/config-scripts/cups-common.m4
+++ b/config-scripts/cups-common.m4
@@ -1,5 +1,5 @@
dnl
-dnl "$Id: cups-common.m4 4999 2006-01-26 23:36:22Z mike $"
+dnl "$Id: cups-common.m4 5007 2006-01-27 18:25:42Z mike $"
dnl
dnl Common configuration stuff for the Common UNIX Printing System (CUPS).
dnl
@@ -187,6 +187,7 @@ dnl Extra platform-specific libraries...
case $uname in
Darwin*)
BACKLIBS="-framework IOKit"
+ CUPSDLIBS="-framework IOKit -framework SystemConfiguration"
LIBS="-framework CoreFoundation $LIBS"
dnl Check for CFLocaleCreateCanonicalLocaleIdentifierFromString...
@@ -214,10 +215,12 @@ case $uname in
;;
*)
BACKLIBS=""
+ CUPSDLIBS=""
;;
esac
AC_SUBST(BACKLIBS)
+AC_SUBST(CUPSDLIBS)
dnl New default port definition for IPP...
AC_ARG_WITH(ipp-port, [ --with-ipp-port set default port number for IPP ],
@@ -228,5 +231,5 @@ AC_SUBST(DEFAULT_IPP_PORT)
AC_DEFINE_UNQUOTED(CUPS_DEFAULT_IPP_PORT,$DEFAULT_IPP_PORT)
dnl
-dnl End of "$Id: cups-common.m4 4999 2006-01-26 23:36:22Z mike $".
+dnl End of "$Id: cups-common.m4 5007 2006-01-27 18:25:42Z mike $".
dnl
diff --git a/config-scripts/cups-defaults.m4 b/config-scripts/cups-defaults.m4
new file mode 100644
index 0000000000..26bfae8c71
--- /dev/null
+++ b/config-scripts/cups-defaults.m4
@@ -0,0 +1,105 @@
+dnl
+dnl "$Id$"
+dnl
+dnl Default cupsd configuration settings for the Common UNIX Printing System
+dnl (CUPS).
+dnl
+dnl Copyright 2006 by Easy Software Products, all rights reserved.
+dnl
+dnl These coded instructions, statements, and computer programs are the
+dnl property of Easy Software Products and are protected by Federal
+dnl copyright law. Distribution and use rights are outlined in the file
+dnl "LICENSE.txt" which should have been included with this file. If this
+dnl file is missing or damaged please contact Easy Software Products
+dnl at:
+dnl
+dnl Attn: CUPS Licensing Information
+dnl Easy Software Products
+dnl 44141 Airport View Drive, Suite 204
+dnl Hollywood, Maryland 20636 USA
+dnl
+dnl Voice: (301) 373-9600
+dnl EMail: cups-info@cups.org
+dnl WWW: http://www.cups.org
+dnl
+
+dnl Default ConfigFilePerm
+AC_ARG_WITH(config_perm, [ --with-config-file-perm set default ConfigFilePerm value, default=0640],
+ CUPS_CONFIG_FILE_PERM="$withval",
+ CUPS_CONFIG_FILE_PERM="0640")
+AC_SUBST(CUPS_CONFIG_FILE_PERM)
+AC_DEFINE_UNQUOTED(CUPS_DEFAULT_CONFIG_FILE_PERM, $CUPS_CONFIG_FILE_PERM)
+
+dnl Default LogFilePerm
+AC_ARG_WITH(log_perm, [ --with-log-file-perm set default LogFilePerm value, default=0644],
+ CUPS_LOG_FILE_PERM="$withval",
+ CUPS_LOG_FILE_PERM="0644")
+AC_SUBST(CUPS_LOG_FILE_PERM)
+AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LOG_FILE_PERM, $CUPS_LOG_FILE_PERM)
+
+dnl Default Browsing
+AC_ARG_ENABLE(browsing, [ --enable-browsing enable Browsing by default, default=yes])
+if test "x$enable_browsing" = xno; then
+ CUPS_BROWSING="No"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSING, 0)
+else
+ CUPS_BROWSING="Yes"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSING, 1)
+fi
+AC_SUBST(CUPS_BROWSING)
+
+dnl Default BrowseLocalProtocols
+AC_ARG_WITH(browse_local, [ --with-local-protocols set default BrowseLocalProtocols, default="CUPS"],
+ CUPS_BROWSE_LOCAL_PROTOCOLS="$withval",
+ CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS")
+AC_SUBST(CUPS_BROWSE_LOCAL_PROTOCOLS)
+AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS,
+ "$CUPS_BROWSE_LOCAL_PROTOCOLS")
+
+dnl Default BrowseRemoteProtocols
+AC_ARG_WITH(browse_remote, [ --with-remote-protocols set default BrowseRemoteProtocols, default="CUPS"],
+ CUPS_BROWSE_REMOTE_PROTOCOLS="$withval",
+ CUPS_BROWSE_REMOTE_PROTOCOLS="CUPS")
+AC_SUBST(CUPS_BROWSE_REMOTE_PROTOCOLS)
+AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS,
+ "$CUPS_BROWSE_REMOTE_PROTOCOLS")
+
+dnl Default BrowseShortNames
+AC_ARG_ENABLE(browse_short, [ --enable-browse-short-names
+ enable BrowseShortNames by default, default=yes])
+if test "x$enable_browse_short" = xno; then
+ CUPS_BROWSE_SHORT_NAMES="No"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_SHORT_NAMES, 0)
+else
+ CUPS_BROWSE_SHORT_NAMES="Yes"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_SHORT_NAMES, 1)
+fi
+AC_SUBST(CUPS_BROWSE_SHORT_NAMES)
+
+dnl Default DefaultShared
+AC_ARG_ENABLE(default_shared, [ --enable-default-shared enable DefaultShared by default, default=yes])
+if test "x$enable_default_shared" = xno; then
+ CUPS_DEFAULT_SHARED="No"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_DEFAULT_SHARED, 0)
+else
+ CUPS_DEFAULT_SHARED="Yes"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_DEFAULT_SHARED, 1)
+fi
+AC_SUBST(CUPS_DEFAULT_SHARED)
+
+dnl Default ImplicitClasses
+AC_ARG_ENABLE(implicit, [ --enable-implicit-classes
+ enable ImplicitClasses by default, default=yes])
+if test "x$enable_implicit" = xno; then
+ CUPS_IMPLICIT_CLASSES="No"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_IMPLICIT_CLASSES, 0)
+else
+ CUPS_IMPLICIT_CLASSES="Yes"
+ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_IMPLICIT_CLASSES, 1)
+fi
+AC_SUBST(CUPS_IMPLICIT_CLASSES)
+
+
+dnl
+dnl End of "$Id$".
+dnl
diff --git a/config-scripts/cups-sharedlibs.m4 b/config-scripts/cups-sharedlibs.m4
index 8e015a5d7e..afaab9cf50 100644
--- a/config-scripts/cups-sharedlibs.m4
+++ b/config-scripts/cups-sharedlibs.m4
@@ -1,5 +1,5 @@
dnl
-dnl "$Id: cups-sharedlibs.m4 4800 2005-10-18 18:06:20Z mike $"
+dnl "$Id: cups-sharedlibs.m4 5007 2006-01-27 18:25:42Z mike $"
dnl
dnl Shared library support for the Common UNIX Printing System (CUPS).
dnl
@@ -57,7 +57,7 @@ if test x$enable_shared != xno; then
LIBCUPS="libcups.2.dylib"
LIBCUPSIMAGE="libcupsimage.2.dylib"
DSO="\$(CC)"
- DSOFLAGS="$DSOFLAGS \$(RC_CFLAGS) -dynamiclib -lc"
+ DSOFLAGS="$DSOFLAGS \$(RC_CFLAGS) -dynamiclib -single_module -lc"
;;
AIX*)
LIBCUPS="libcups_s.a"
@@ -152,5 +152,5 @@ AC_SUBST(IMGLIBS)
AC_SUBST(EXPORT_LDFLAGS)
dnl
-dnl End of "$Id: cups-sharedlibs.m4 4800 2005-10-18 18:06:20Z mike $".
+dnl End of "$Id: cups-sharedlibs.m4 5007 2006-01-27 18:25:42Z mike $".
dnl
diff --git a/config.h.in b/config.h.in
index efc0e2f200..a6f0f49047 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,11 +1,11 @@
/*
- * "$Id: config.h.in 4979 2006-01-25 17:47:43Z mike $"
+ * "$Id: config.h.in 5008 2006-01-27 19:30:34Z mike $"
*
* Configuration file for the Common UNIX Printing System (CUPS).
*
* @configure_input@
*
- * Copyright 1997-2005 by Easy Software Products.
+ * Copyright 1997-2006 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -36,11 +36,32 @@
/*
- * Default user and group...
+ * Default user and groups...
*/
#define CUPS_DEFAULT_USER "lp"
#define CUPS_DEFAULT_GROUP "sys"
+#define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
+
+
+/*
+ * Default file permissions...
+ */
+
+#define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
+#define CUPS_DEFAULT_LOG_FILE_PERM 0644
+
+
+/*
+ * Default browsing settings...
+ */
+
+#define CUPS_DEFAULT_BROWSING 1
+#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS"
+#define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "CUPS"
+#define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
+#define CUPS_DEFAULT_DEFAULT_SHARED 1
+#define CUPS_DEFAULT_IMPLICIT_CLASSES 1
/*
@@ -382,5 +403,5 @@
#endif /* !_CUPS_CONFIG_H_ */
/*
- * End of "$Id: config.h.in 4979 2006-01-25 17:47:43Z mike $".
+ * End of "$Id: config.h.in 5008 2006-01-27 19:30:34Z mike $".
*/
diff --git a/configure.in b/configure.in
index 0135039a2b..58dff5694f 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl
-dnl "$Id: configure.in 4971 2006-01-24 14:33:18Z mike $"
+dnl "$Id: configure.in 5008 2006-01-27 19:30:34Z mike $"
dnl
dnl Configuration script for the Common UNIX Printing System (CUPS).
dnl
@@ -26,6 +26,7 @@ AC_INIT(cups/cups.h)
sinclude(config-scripts/cups-opsys.m4)
sinclude(config-scripts/cups-common.m4)
+sinclude(config-scripts/cups-defaults.m4)
sinclude(config-scripts/cups-directories.m4)
sinclude(config-scripts/cups-manpages.m4)
@@ -48,10 +49,11 @@ sinclude(config-scripts/cups-scripting.m4)
AC_OUTPUT(Makedefs packaging/cups.list init/cups.sh cups-config
conf/cupsd.conf conf/pam.std doc/index.html
- doc/help/standard.html templates/edit-config.tmpl)
+ doc/help/standard.html templates/edit-config.tmpl
+ templates/header.tmpl)
chmod +x cups-config
dnl
-dnl End of "$Id: configure.in 4971 2006-01-24 14:33:18Z mike $".
+dnl End of "$Id: configure.in 5008 2006-01-27 19:30:34Z mike $".
dnl
diff --git a/doc/help/standard.html.in b/doc/help/standard.html.in
index cbfa9d328e..5003acec90 100644
--- a/doc/help/standard.html.in
+++ b/doc/help/standard.html.in
@@ -19,7 +19,7 @@ by Easy Software Products, the creator of CUPS.
-
+
cupsd(8) is configured by default to show
printers shared by other systems and only allow local access to
@@ -31,8 +31,49 @@ Basic authentication with membership in the group
(@CUPS_DEFAULT_DOMAINSOCKET@) or "localhost"
(127.0.0.1).
+
+
+
-
+
+
@@ -123,6 +164,5 @@ Basic authentication with membership in the group
-