From a3838963397f99a3a33ca19f6312c5021eeb5b9b Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 14 Dec 2000 17:04:44 +0000 Subject: Deal with init script in a better way. Also update various patches to versions sent back to Easy Software. --- print/cups/Makefile | 9 ++--- print/cups/files/patch-sum | 10 +++-- print/cups/patches/patch-aa | 16 ++++++-- print/cups/patches/patch-ab | 46 ++--------------------- print/cups/patches/patch-ad | 16 ++++++++ print/cups/patches/patch-ae | 17 +++++++++ print/cups/patches/patch-bb | 89 ++++++++++++++++----------------------------- 7 files changed, 90 insertions(+), 113 deletions(-) create mode 100644 print/cups/patches/patch-ad create mode 100644 print/cups/patches/patch-ae (limited to 'print') diff --git a/print/cups/Makefile b/print/cups/Makefile index acba5acb45f..319a8851b16 100644 --- a/print/cups/Makefile +++ b/print/cups/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2000/12/12 16:03:13 jlam Exp $ +# $NetBSD: Makefile,v 1.14 2000/12/14 17:04:44 jlam Exp $ # DISTNAME= cups-1.1.4-source @@ -26,6 +26,8 @@ USE_LIBTOOL= # defined GNU_CONFIGURE= # defined CONFIGURE_ARGS+= --enable-libtool-unsupported="${LIBTOOL}" CONFIGURE_ARGS+= --enable-rootconfig +CONFIGURE_ARGS+= --with-cups-user="${CUPS_USER}" +CONFIGURE_ARGS+= --with-cups-group="${CUPS_GROUP}" CFLAGS+= -I${LOCALBASE}/include @@ -72,11 +74,6 @@ pre-patch: pre-configure: cd ${WRKSRC} && autoconf -post-configure: - ${SED} -e "s,@CUPS_USER@,${CUPS_USER},g" \ - -e "s,@CUPS_GROUP@,${CUPS_GROUP},g" \ - < ${WRKSRC}/conf/cupsd.conf.in > ${WRKSRC}/conf/cupsd.conf - post-build: ${SED} -e "s,@PREFIX@,${PREFIX},g" \ < ${FILESDIR}/cupsd.sh > ${WRKDIR}/cupsd.sh diff --git a/print/cups/files/patch-sum b/print/cups/files/patch-sum index cd26252379d..d08aaac0fa2 100644 --- a/print/cups/files/patch-sum +++ b/print/cups/files/patch-sum @@ -1,6 +1,8 @@ -$NetBSD: patch-sum,v 1.5 2000/12/07 20:33:06 jlam Exp $ +$NetBSD: patch-sum,v 1.6 2000/12/14 17:04:44 jlam Exp $ -MD5 (patch-aa) = 487e0f2674d818f333aa75fcb959ea61 -MD5 (patch-ab) = 0b881c059a3ab2e831328484f3bce2d3 +MD5 (patch-aa) = d2d5f49a3b305cbdf915cd44eadeaa9f +MD5 (patch-ab) = 3f904cd7c7ed4ebe2e898e34a73edb88 MD5 (patch-ac) = e06be2ba8c1e2a8c113cfed05c989e32 -MD5 (patch-bb) = 69d0be20367413f54a3377d4f07d5d87 +MD5 (patch-ad) = b818bd9cf762083e1943dab3f67863d5 +MD5 (patch-ae) = ed5db3c3f7916e3ea247237491e7337b +MD5 (patch-bb) = 0bd8c80b391e0eb5069fe97bb0490b63 diff --git a/print/cups/patches/patch-aa b/print/cups/patches/patch-aa index 4747e8be301..1c104bc15d0 100644 --- a/print/cups/patches/patch-aa +++ b/print/cups/patches/patch-aa @@ -1,8 +1,18 @@ -$NetBSD: patch-aa,v 1.3 2000/12/07 20:33:06 jlam Exp $ +$NetBSD: patch-aa,v 1.4 2000/12/14 17:04:45 jlam Exp $ --- Makedefs.in.orig Thu Sep 14 11:36:24 2000 +++ Makedefs.in -@@ -49,12 +49,13 @@ +@@ -46,14 +46,21 @@ + SHELL = /bin/sh + + # ++# CUPS administrator user and group... ++# ++ ++CUPS_USER = @CUPS_USER@ ++CUPS_GROUP = @CUPS_GROUP@ ++ ++# # Installation programs... # @@ -17,7 +27,5 @@ $NetBSD: patch-aa,v 1.3 2000/12/07 20:33:06 jlam Exp $ +INSTALL_MAN = $(BSD_INSTALL_MAN) +INSTALL_SCRIPT = $(BSD_INSTALL_SCRIPT) INSTALL_SYSV = @INSTALL_SYSV@ -+INSTALL_INIT = @INSTALL_INIT@ # - # Libraries... diff --git a/print/cups/patches/patch-ab b/print/cups/patches/patch-ab index 217360de37c..455de3fb8f8 100644 --- a/print/cups/patches/patch-ab +++ b/print/cups/patches/patch-ab @@ -1,51 +1,13 @@ -$NetBSD: patch-ab,v 1.3 2000/12/07 20:33:06 jlam Exp $ +$NetBSD: patch-ab,v 1.4 2000/12/14 17:04:45 jlam Exp $ --- Makefile.orig Tue Aug 29 16:33:48 2000 +++ Makefile -@@ -55,25 +55,45 @@ - # Install object and target files... - # - --install: -+install: install-cups install-data install-doc \ -+ install-fonts install-locale install-ppd install-templates \ -+ $(INSTALL_INIT) -+ -+install-cups: - for dir in $(DIRS); do\ +@@ -60,8 +60,6 @@ echo Installing in $$dir... ;\ (cd $$dir; $(MAKE) $(MFLAGS) install) || exit 1;\ done -+ -+install-conf: - echo Installing in conf... - (cd conf; $(MAKE) $(MFLAGS) install) -+ -+install-data: +- echo Installing in conf... +- (cd conf; $(MAKE) $(MFLAGS) install) echo Installing in data... (cd data; $(MAKE) $(MFLAGS) install) -+ -+install-doc: echo Installing in doc... - (cd doc; $(MAKE) $(MFLAGS) install) -+ -+install-fonts: - echo Installing in fonts... - (cd fonts; $(MAKE) $(MFLAGS) install) -+ -+install-locale: - echo Installing in locale... - (cd locale; $(MAKE) $(MFLAGS) install) -+ -+install-ppd: - echo Installing in ppd... - (cd ppd; $(MAKE) $(MFLAGS) install) -+ -+install-templates: - echo Installing in templates... - (cd templates; $(MAKE) $(MFLAGS) install) -+ -+install-init: - echo Installing startup script... - if test "x$INITDIR" != "x"; then \ - $(MKDIR) $(prefix)/$(INITDIR)/init.d; \ diff --git a/print/cups/patches/patch-ad b/print/cups/patches/patch-ad new file mode 100644 index 00000000000..b7d5757ede1 --- /dev/null +++ b/print/cups/patches/patch-ad @@ -0,0 +1,16 @@ +$NetBSD: patch-ad,v 1.3 2000/12/14 17:04:45 jlam Exp $ + +--- doc/sam.shtml.orig Mon Oct 2 10:48:23 2000 ++++ doc/sam.shtml +@@ -230,6 +230,11 @@ + +

Installing the Software

+ ++

Before you install, you'll need to ensure that the CUPS administrator ++user (lp) and group (sys) already exist on your system. If not, then please ++refer to your system documentation for the procedure to add new users and ++groups. ++ +

Use the "install" target to install the software: + +